Skip to content

Commit

Permalink
Updating Compute Admin model api versions for the Open API Spec changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bganapa committed Aug 18, 2021
1 parent c533f32 commit 0a6cc47
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/Azs.Compute.Admin/custom/New-AzsComputeQuota.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Creates or Updates a Compute Quota with the provided quota parameters.
.Example
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/new-azscomputequota
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
.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.
Expand All @@ -25,7 +25,7 @@ NEWQUOTA <IQuota>: Holds Compute quota information used to control resource allo
https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/new-azscomputequota
#>
function New-AzsComputeQuota {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
Expand All @@ -52,7 +52,7 @@ param(

[Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota]
# Holds Compute quota information used to control resource allocation.
# To construct, see NOTES section for NEWQUOTA properties and create a hash table.
${NewQuota},
Expand Down
8 changes: 4 additions & 4 deletions src/Azs.Compute.Admin/custom/New-AzsDiskMigrationJob.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Starts a managed disk migration job to migrate managed disks to the specified de
.Example
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/new-azsdiskmigrationjob
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180730Preview.IDisk[]
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDisk[]
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180730Preview.IDiskMigrationJob
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDiskMigrationJob
.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.
Expand All @@ -23,7 +23,7 @@ https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/new-azsdisk
#>
function New-AzsDiskMigrationJob {
[Alias('Start-AzsDiskMigrationJob')]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180730Preview.IDiskMigrationJob])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDiskMigrationJob])]
[CmdletBinding(DefaultParameterSetName='Volume', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
Expand Down Expand Up @@ -68,7 +68,7 @@ param(

[Parameter(Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180730Preview.IDisk[]]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDisk[]]
# .
# To construct, see NOTES section for DISKS properties and create a hash table.
${Disks},
Expand Down
8 changes: 4 additions & 4 deletions src/Azs.Compute.Admin/custom/Set-AzsComputeQuota.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Creates or Updates a Compute Quota with the provided quota parameters.
.Example
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/set-azscomputequota
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
.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.
Expand All @@ -25,7 +25,7 @@ NEWQUOTA <IQuota>: Holds Compute quota information used to control resource allo
https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/set-azscomputequota
#>
function Set-AzsComputeQuota {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota])]
[CmdletBinding(DefaultParameterSetName='Update', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
Expand All @@ -38,7 +38,7 @@ param(

[Parameter(Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota]
# Holds Compute quota information used to control resource allocation.
# To construct, see NOTES section for NEWQUOTA properties and create a hash table.
${NewQuota},
Expand Down

0 comments on commit 0a6cc47

Please sign in to comment.