Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/DevCenter/DevCenter.AutoRest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DevCenter")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.2")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("3.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("3.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
14 changes: 5 additions & 9 deletions src/DevCenter/DevCenter.AutoRest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ input-file:
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-01-preview/commonDefinitions.json
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-01-preview/devcenter.json
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-04-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
Expand Down Expand Up @@ -317,24 +313,24 @@ directive:
- where:
subject: Schedule
hide: true
# Remove body variant
# Remove non-expanded body variants (keep Expanded, JsonFilePath, JsonString)
- where:
verb: Update
variant: ^Update$|^UpdateViaIdentity$
variant: ^(Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
verb: New
variant: ^Create$|^CreateViaIdentity$
variant: ^(Create)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
verb: Invoke
subject: ExecuteCheckNameAvailability
variant: ^Execute$|^ExecuteViaIdentity$
variant: ^(Execute)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
verb: Invoke
subject: ExecuteCheckScopedNameAvailability
variant: ^Execute$|^ExecuteViaIdentity$
variant: ^(Execute)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
# Set required parameters
- where:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# region Generated
# Load the private module dll
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.DevCenter.private.dll')
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.DevCenter.private.dll')

# Load the internal module
$internalModulePath = Join-Path $PSScriptRoot '../internal/Az.DevCenter.internal.psm1'
$internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.DevCenter.internal.psm1'
if(Test-Path $internalModulePath) {
$null = Import-Module -Name $internalModulePath
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Gets a schedule resource.
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.ISchedule
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.ISchedule
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -61,7 +61,7 @@ INPUTOBJECT <IDevCenterIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminschedule
#>
function Get-AzDevCenterAdminSchedule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.ISchedule])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.ISchedule])]
[CmdletBinding(DefaultParameterSetName = 'GetWithDefault', PositionalBinding = $false)]
param(
[Parameter(ParameterSetName = 'GetWithDefault', Mandatory)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Creates or updates an attached NetworkConnection.
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.IAttachedNetworkConnection
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAttachedNetworkConnection
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -61,7 +61,7 @@ INPUTOBJECT <IDevCenterIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminattachednetwork
#>
function New-AzDevCenterAdminAttachedNetwork {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.IAttachedNetworkConnection])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAttachedNetworkConnection])]
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'CreateExpanded', Mandatory)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Creates or updates a catalog.
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.ICatalog
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.ICatalog
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -61,7 +61,7 @@ INPUTOBJECT <IDevCenterIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmincatalog
#>
function New-AzDevCenterAdminCatalog {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.ICatalog])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.ICatalog])]
[CmdletBinding(DefaultParameterSetName = 'CreateExpandedAdo', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'CreateExpandedAdo', Mandatory)]
Expand Down Expand Up @@ -160,15 +160,15 @@ function New-AzDevCenterAdminCatalog {
${GitHubUri},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType])]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PSArgumentCompleterAttribute("Manual", "Scheduled")]
[System.String]
# 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.Api20250401Preview.ICatalogUpdatePropertiesTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.ICatalogUpdatePropertiesTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Creates or updates a Dev Box definition.
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.IDevBoxDefinition
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevBoxDefinition
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -61,7 +61,7 @@ INPUTOBJECT <IDevCenterIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmindevboxdefinition
#>
function New-AzDevCenterAdminDevBoxDefinition {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.IDevBoxDefinition])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevBoxDefinition])]
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'CreateExpanded', Mandatory)]
Expand Down Expand Up @@ -107,9 +107,9 @@ function New-AzDevCenterAdminDevBoxDefinition {

[Parameter(ParameterSetName = 'CreateExpanded')]
[Parameter(ParameterSetName = 'CreateViaIdentityExpanded')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport])]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PSArgumentCompleterAttribute("Disabled", "Enabled")]
[System.String]
# 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
Expand Down Expand Up @@ -165,16 +165,16 @@ function New-AzDevCenterAdminDevBoxDefinition {

[Parameter(ParameterSetName = 'CreateExpanded')]
[Parameter(ParameterSetName = 'CreateViaIdentityExpanded')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier])]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")]
[System.String]
# 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.
${SkuTier},

[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.Api50.ITrackedResourceTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Creates or updates a gallery.
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.IGallery
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IGallery
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -61,7 +61,7 @@ INPUTOBJECT <IDevCenterIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmingallery
#>
function New-AzDevCenterAdminGallery {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.IGallery])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IGallery])]
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'CreateExpanded', Mandatory)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Creates or updates a Network Connections resource
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.INetworkConnection
Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.INetworkConnection
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -61,7 +61,7 @@ INPUTOBJECT <IDevCenterIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminnetworkconnection
#>
function New-AzDevCenterAdminNetworkConnection {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20250401Preview.INetworkConnection])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.INetworkConnection])]
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'CreateExpanded', Mandatory)]
Expand Down Expand Up @@ -101,9 +101,9 @@ function New-AzDevCenterAdminNetworkConnection {

[Parameter(ParameterSetName = 'CreateExpanded', Mandatory)]
[Parameter(ParameterSetName = 'CreateViaIdentityExpanded', Mandatory)]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType])]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PSArgumentCompleterAttribute("HybridAzureADJoin", "AzureADJoin", "None")]
[System.String]
# AAD Join type.
${DomainJoinType},

Expand Down Expand Up @@ -153,7 +153,7 @@ function New-AzDevCenterAdminNetworkConnection {
[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.Api50.ITrackedResourceTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
Expand Down
Loading
Loading