diff --git a/src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.format.ps1xml b/src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.format.ps1xml
index 966afcf7d53b..af54d8efd51a 100644
--- a/src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.format.ps1xml
+++ b/src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.format.ps1xml
@@ -181,6 +181,34 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolResourceStateCount
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolResourceStateCount#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Count
+
+
+ State
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ProxyResource
@@ -453,6 +481,114 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResource#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyPoolIdentity
@@ -463,6 +599,9 @@
+
+
+
@@ -482,6 +621,9 @@
ResourceGroupName
+
+ RuntimeView
+ StandbyContainerGroupPoolName
@@ -509,6 +651,9 @@
+
+
+
@@ -516,6 +661,9 @@
MaxReadyCapacity
+
+ MinReadyCapacity
+
@@ -531,6 +679,9 @@
+
+
+
@@ -538,6 +689,9 @@
MaxReadyCapacity
+
+ MinReadyCapacity
+
@@ -719,6 +873,114 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResource#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachineResource
@@ -971,5 +1233,27 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.VirtualMachineInstanceCountSummary
+
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.VirtualMachineInstanceCountSummary#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Zone
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.psd1 b/src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.psd1
index a0bc22b2d60b..16e5966b5835 100644
--- a/src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.psd1
+++ b/src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.psd1
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.StandbyPool.private.dll'
FormatsToProcess = './Az.StandbyPool.format.ps1xml'
- FunctionsToExport = 'Get-AzStandbyContainerGroupPool', 'Get-AzStandbyVMPool', 'Get-AzStandbyVMPoolVM', 'New-AzStandbyContainerGroupPool', 'New-AzStandbyVMPool', 'Remove-AzStandbyContainerGroupPool', 'Remove-AzStandbyVMPool', 'Update-AzStandbyContainerGroupPool', 'Update-AzStandbyVMPool'
+ FunctionsToExport = 'Get-AzStandbyContainerGroupPool', 'Get-AzStandbyContainerGroupPoolStatus', 'Get-AzStandbyVMPool', 'Get-AzStandbyVMPoolStatus', 'New-AzStandbyContainerGroupPool', 'New-AzStandbyVMPool', 'Remove-AzStandbyContainerGroupPool', 'Remove-AzStandbyVMPool', 'Update-AzStandbyContainerGroupPool', 'Update-AzStandbyVMPool'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StandbyPool'
diff --git a/src/StandbyPool/StandbyPool.Autorest/README.md b/src/StandbyPool/StandbyPool.Autorest/README.md
index 00bb6bf7f36a..883cfa6bd7e0 100644
--- a/src/StandbyPool/StandbyPool.Autorest/README.md
+++ b/src/StandbyPool/StandbyPool.Autorest/README.md
@@ -28,7 +28,8 @@ For information on how to develop for `Az.StandbyPool`, see [how-to.md](how-to.m
```yaml
# pin the swagger version by using the commit id instead of branch name
-commit: 5cbd7c23897da22f52da4f02534b2819abe9f761
+commit: 1866fc3609f55fad6a5e74a9b206ae4ca144c03a
+tag: package-2024-03
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
@@ -63,14 +64,21 @@ directive:
subject: StandbyVirtualMachinePool
set:
subject: StandbyVMPool
-
- # Rename StandbyVirtualMachine to StandbyVM
+
+ # Rename Get-AzStandbyVirtualMachinePoolRuntimeView to Get-AzStandbyVMPoolStatus
- where:
verb: Get
- subject: StandbyVirtualMachine
+ subject: StandbyVirtualMachinePoolRuntimeView
set:
- subject: StandbyVMPoolVM
+ subject: StandbyVMPoolStatus
+ # Rename Get-AzStandbyContainerGroupPoolRuntimeView to Get-AzStandbyContainerGroupPoolStatus
+ - where:
+ verb: Get
+ subject: StandbyContainerGroupPoolRuntimeView
+ set:
+ subject: StandbyContainerGroupPoolStatus
+
# Rename standby container group pool parameters
- where:
verb: New|Update
@@ -99,13 +107,27 @@ directive:
parameter-name: ElasticityProfileRefillPolicy
set:
parameter-name: RefillPolicy
-
+
- where:
verb: New|Update
subject: StandbyContainerGroupPool
parameter-name: ContainerGroupPropertySubnetId
set:
parameter-name: SubnetId
+
+ - where:
+ verb: Get
+ subject: StandbyContainerGroupPoolStatus
+ parameter-name: StandbyContainerGroupPoolName
+ set:
+ parameter-name: Name
+
+ - where:
+ verb: Get
+ subject: StandbyContainerGroupPoolStatus
+ parameter-name: RuntimeView
+ set:
+ parameter-name: Version
# Rename standby virtual machine pool parameters
- where:
@@ -122,6 +144,13 @@ directive:
set:
parameter-name: MaxReadyCapacity
+ - where:
+ verb: New|Update
+ subject: StandbyVMPool
+ parameter-name: ElasticityProfileMinReadyCapacity
+ set:
+ parameter-name: MinReadyCapacity
+
- where:
verb: New|Update
subject: StandbyVMPool
@@ -129,14 +158,13 @@ directive:
set:
parameter-name: VMState
-# Rename standby virtual machine parameters
- where:
verb: Get
subject: StandbyVMPoolVM
parameter-name: Name
set:
parameter-name: VMName
-
+
- where:
verb: Get
subject: StandbyVMPoolVM
@@ -144,6 +172,45 @@ directive:
set:
parameter-name: Name
+ - where:
+ verb: Get
+ subject: StandbyVMPoolStatus
+ parameter-name: StandbyVirtualMachinePoolName
+ set:
+ parameter-name: Name
+
+ - where:
+ verb: Get
+ subject: StandbyVMPoolStatus
+ parameter-name: RuntimeView
+ set:
+ parameter-name: Version
+
+ # Hide parameters from cmdlets
+ - where:
+ verb: Get
+ subject: StandbyVMPoolStatus
+ parameter-name: Version
+ hide: true
+ set:
+ default:
+ script: "'latest'"
+
+ - where:
+ verb: Get
+ subject: StandbyContainerGroupPoolStatus
+ parameter-name: Version
+ hide: true
+ set:
+ default:
+ script: "'latest'"
+
+ # Remove Get-StandbyVirtualMachine
+ - where:
+ verb: Get
+ subject: StandbyVirtualMachine
+ remove: true
+
# Remove the set-* cmdlet
- where:
verb: Set
diff --git a/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools-runtimeViews.json b/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools-runtimeViews.json
new file mode 100644
index 000000000000..6c0d65cec131
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools-runtimeViews.json
@@ -0,0 +1,47 @@
+{
+ "resourceType": "standbyContainerGroupPools/runtimeViews",
+ "apiVersion": "2024-03-01",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.standbypool"
+ },
+ "commands": [
+ {
+ "name": "Get-AzStandbyContainerGroupPoolStatus",
+ "description": "Get a StandbyContainerGroupPoolRuntimeViewResource",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews/{runtimeView}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbycontainergrouppoolstatus"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-Name ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Get a StandbyContainerGroupPoolRuntimeViewResource",
+ "parameters": [
+ {
+ "name": "-Name",
+ "value": "[Path.standbyContainerGroupPoolName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools.json b/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools.json
index 4e05bde920c0..df84a297e4bc 100644
--- a/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools.json
+++ b/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools.json
@@ -1,6 +1,6 @@
{
"resourceType": "standbyContainerGroupPools",
- "apiVersion": "2023-12-01-preview",
+ "apiVersion": "2024-03-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
},
diff --git a/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools-standbyVirtualMachines.json b/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools-runtimeViews.json
similarity index 62%
rename from src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools-standbyVirtualMachines.json
rename to src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools-runtimeViews.json
index 1b9458490ee4..d55827742807 100644
--- a/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools-standbyVirtualMachines.json
+++ b/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools-runtimeViews.json
@@ -1,32 +1,31 @@
{
- "resourceType": "standbyVirtualMachinePools/standbyVirtualMachines",
- "apiVersion": "2023-12-01-preview",
+ "resourceType": "standbyVirtualMachinePools/runtimeViews",
+ "apiVersion": "2024-03-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
},
"commands": [
{
- "name": "Get-AzStandbyVMPoolVM",
- "description": "Get a StandbyVirtualMachineResource",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}",
+ "name": "Get-AzStandbyVMPoolStatus",
+ "description": "Get a StandbyVirtualMachinePoolRuntimeViewResource",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}",
"help": {
"learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbyvmpoolvm"
+ "url": "https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbyvmpoolstatus"
},
"parameterSets": [
{
"parameters": [
"-Name ",
"-ResourceGroupName ",
- "[-SubscriptionId ]",
- "-VMName "
+ "[-SubscriptionId ]"
]
}
]
},
"examples": [
{
- "description": "Get a StandbyVirtualMachineResource",
+ "description": "Get a StandbyVirtualMachinePoolRuntimeViewResource",
"parameters": [
{
"name": "-Name",
@@ -39,10 +38,6 @@
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
- },
- {
- "name": "-VMName",
- "value": "[Path.standbyVirtualMachineName]"
}
]
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools.json b/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools.json
index ea1733382ddd..41a7e4fb9f83 100644
--- a/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools.json
+++ b/src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools.json
@@ -1,6 +1,6 @@
{
"resourceType": "standbyVirtualMachinePools",
- "apiVersion": "2023-12-01-preview",
+ "apiVersion": "2024-03-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
},
diff --git a/src/StandbyPool/StandbyPool.Autorest/build-module.ps1 b/src/StandbyPool/StandbyPool.Autorest/build-module.ps1
index 98d26963ab03..c5c70b3928b9 100644
--- a/src/StandbyPool/StandbyPool.Autorest/build-module.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/build-module.ps1
@@ -12,7 +12,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
-param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX)
+param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX, [Switch]$DisableAfterBuildTasks)
$ErrorActionPreference = 'Stop'
if($PSEdition -ne 'Core') {
@@ -177,4 +177,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
}
+if (-not $DisableAfterBuildTasks){
+ $afterBuildTasksPath = Join-Path $PSScriptRoot ''
+ $afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
+ if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
+ Write-Host -ForegroundColor Green 'Running after build tasks...'
+ . $afterBuildTasksPath @afterBuildTasksArgs
+ }
+}
+
+
Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyContainerGroupPool.md b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyContainerGroupPool.md
index 5f3aba3cba71..6c4d58a44ef9 100644
--- a/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyContainerGroupPool.md
+++ b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyContainerGroupPool.md
@@ -1,4 +1,4 @@
-### Example 1: Get a standby container pool
+### Example 1: Get a standby container group pool
```powershell
Get-AzStandbyContainerGroupPool `
-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
@@ -30,4 +30,4 @@ Tag : {
Type : microsoft.standbypool/standbycontainergrouppools
```
-Above command is getting a standby container pool.
+Above command is getting a standby container group pool.
diff --git a/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyContainerGroupPoolStatus.md b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyContainerGroupPoolStatus.md
new file mode 100644
index 000000000000..c469fef2bbc9
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyContainerGroupPoolStatus.md
@@ -0,0 +1,40 @@
+### Example 1: Get runtime view of a standby container group pool
+```powershell
+Get-AzStandbyContainerGroupPoolStatus `
+-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
+-Name testPool `
+-ResourceGroupName test-standbypool
+```
+
+```output
+Id : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Standb
+ yPool/standbyContainerGroupPools/testPool/runtimeViews/latest
+InstanceCountSummary : {{
+ "instanceCountsByState": [
+ {
+ "state": "Creating",
+ "count": 1
+ },
+ {
+ "state": "Running",
+ "count": 0
+ },
+ {
+ "state": "Deleting",
+ "count": 0
+ }
+ ]
+ }}
+Name : latest
+ProvisioningState : Succeeded
+ResourceGroupName : test-standbypool
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type : Microsoft.StandbyPool/standbyContainerGroupPools/runtimeViews
+```
+
+Above command is getting a runtime veiw of standby container group pool.
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPool.md b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPool.md
index c1197cb78497..850e2d7dad27 100644
--- a/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPool.md
+++ b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPool.md
@@ -9,6 +9,7 @@ Get-AzStandbyVMPool `
```output
AttachedVirtualMachineScaleSetId : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss
ElasticityProfileMaxReadyCapacity : 1
+ElasticityProfileMinReadyCapacity : 1
Id : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/testPool
Location : eastus
Name : testPool
diff --git a/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPoolStatus.md b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPoolStatus.md
new file mode 100644
index 000000000000..3bdd38b04ef1
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPoolStatus.md
@@ -0,0 +1,52 @@
+### Example 1: Get runtime view of a standby virtual machine pool
+```powershell
+Get-AzStandbyVMPoolStatus `
+-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
+-ResourceGroupName test-standbypool `
+-Name testPool
+```
+
+```output
+Id : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Standb
+ yPool/standbyVirtualMachinePools/testPool/runtimeViews/latest
+InstanceCountSummary : {{
+ "instanceCountsByState": [
+ {
+ "state": "Creating",
+ "count": 0
+ },
+ {
+ "state": "Starting",
+ "count": 0
+ },
+ {
+ "state": "Running",
+ "count": 1
+ },
+ {
+ "state": "Deallocating",
+ "count": 0
+ },
+ {
+ "state": "Deallocated",
+ "count": 0
+ },
+ {
+ "state": "Deleting",
+ "count": 0
+ }
+ ]
+ }}
+Name : latest
+ProvisioningState : Succeeded
+ResourceGroupName : test-standbypool
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type : Microsoft.StandbyPool/standbyVirtualMachinePools/runtimeViews
+```
+
+Above command is getting a runtime veiw of standby virtual machine pool.
diff --git a/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPoolVM.md b/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPoolVM.md
deleted file mode 100644
index cb921f1f6527..000000000000
--- a/src/StandbyPool/StandbyPool.Autorest/examples/Get-AzStandbyVMPoolVM.md
+++ /dev/null
@@ -1,10 +0,0 @@
-### Example 1: List virtual machines in standby virtual machine pool
-```powershell
-Get-AzStandbyVMPoolVM -Name testPool -SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b -ResourceGroupName test-standbypool
-```
-
-```output
-None
-```
-
-Above command is listing virtual machines in standby virtual machine pool
diff --git a/src/StandbyPool/StandbyPool.Autorest/examples/New-AzStandbyVMPool.md b/src/StandbyPool/StandbyPool.Autorest/examples/New-AzStandbyVMPool.md
index dce0fa09d259..4e06f5d07e75 100644
--- a/src/StandbyPool/StandbyPool.Autorest/examples/New-AzStandbyVMPool.md
+++ b/src/StandbyPool/StandbyPool.Autorest/examples/New-AzStandbyVMPool.md
@@ -7,12 +7,14 @@ New-AzStandbyVMPool `
-Location eastus `
-VMSSId /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss `
-MaxReadyCapacity 1 `
+-MinReadyCapacity 1 `
-VMState Running
```
```output
AttachedVirtualMachineScaleSetId : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss
ElasticityProfileMaxReadyCapacity : 1
+ElasticityProfileMinReadyCapacity : 1
Id : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/testPool
Location : eastus
Name : testPool
diff --git a/src/StandbyPool/StandbyPool.Autorest/examples/Update-AzStandbyVMPool.md b/src/StandbyPool/StandbyPool.Autorest/examples/Update-AzStandbyVMPool.md
index 38f88ce6b9ef..8dbc1cef4d41 100644
--- a/src/StandbyPool/StandbyPool.Autorest/examples/Update-AzStandbyVMPool.md
+++ b/src/StandbyPool/StandbyPool.Autorest/examples/Update-AzStandbyVMPool.md
@@ -10,6 +10,7 @@ Update-AzStandbyVMPool `
```output
AttachedVirtualMachineScaleSetId : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss
ElasticityProfileMaxReadyCapacity : 2
+ElasticityProfileMinReadyCapacity : 2
Id : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/testPool
Location : eastus
Name : testPool
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.ps1
index 815a6ac5c2f2..24f6e209d6c0 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.ps1
@@ -37,6 +37,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPoolStatus.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPoolStatus.ps1
new file mode 100644
index 000000000000..de866602f94a
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPoolStatus.ps1
@@ -0,0 +1,237 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get a StandbyContainerGroupPoolRuntimeViewResource
+.Description
+Get a StandbyContainerGroupPoolRuntimeViewResource
+.Example
+Get-AzStandbyContainerGroupPoolStatus `
+-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
+-Name testPool `
+-ResourceGroupName test-standbypool
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource
+.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
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
+ [StandbyContainerGroupPoolName ]: Name of the standby container group pool
+ [StandbyVirtualMachineName ]: Name of the standby virtual machine
+ [StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+STANDBYCONTAINERGROUPPOOLINPUTOBJECT : Identity Parameter
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
+ [StandbyContainerGroupPoolName ]: Name of the standby container group pool
+ [StandbyVirtualMachineName ]: Name of the standby virtual machine
+ [StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbycontainergrouppoolstatus
+#>
+function Get-AzStandbyContainerGroupPoolStatus {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
+ [System.String]
+ # Name of the standby container group pool
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityStandbyContainerGroupPool', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity]
+ # Identity Parameter
+ ${StandbyContainerGroupPoolInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.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.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_Get';
+ GetViaIdentity = 'Az.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_GetViaIdentity';
+ GetViaIdentityStandbyContainerGroupPool = 'Az.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_GetViaIdentityStandbyContainerGroupPool';
+ List = 'Az.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ if (('Get', 'GetViaIdentityStandbyContainerGroupPool') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Version') ) {
+ $PSBoundParameters['Version'] = 'latest'
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::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.StandbyPool.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/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.ps1
index 2e224e02e030..8c8f02683181 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.ps1
@@ -37,6 +37,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolVM.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolStatus.ps1
similarity index 88%
rename from src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolVM.ps1
rename to src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolStatus.ps1
index 00f7e9c3ed0b..582122512202 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolVM.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolStatus.ps1
@@ -16,16 +16,19 @@
<#
.Synopsis
-Get a StandbyVirtualMachineResource
+Get a StandbyVirtualMachinePoolRuntimeViewResource
.Description
-Get a StandbyVirtualMachineResource
+Get a StandbyVirtualMachinePoolRuntimeViewResource
.Example
-Get-AzStandbyVMPoolVM -Name testPool -SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b -ResourceGroupName test-standbypool
+Get-AzStandbyVMPoolStatus `
+-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
+-ResourceGroupName test-standbypool `
+-Name testPool
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResource
+Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -34,6 +37,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -42,20 +46,20 @@ INPUTOBJECT : Identity Parameter
STANDBYVIRTUALMACHINEPOOLINPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
.Link
-https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbyvmpoolvm
+https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbyvmpoolstatus
#>
-function Get-AzStandbyVMPoolVM {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResource])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+function Get-AzStandbyVMPoolStatus {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
- [Alias('StandbyVirtualMachinePoolName')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
[System.String]
# Name of the standby virtual machine pool
@@ -78,14 +82,6 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetViaIdentityStandbyVirtualMachinePool', Mandatory)]
- [Alias('StandbyVirtualMachineName')]
- [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
- [System.String]
- # Name of the standby virtual machine
- ${VMName},
-
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity]
@@ -173,10 +169,10 @@ begin {
}
$mapping = @{
- Get = 'Az.StandbyPool.private\Get-AzStandbyVMPoolVM_Get';
- GetViaIdentity = 'Az.StandbyPool.private\Get-AzStandbyVMPoolVM_GetViaIdentity';
- GetViaIdentityStandbyVirtualMachinePool = 'Az.StandbyPool.private\Get-AzStandbyVMPoolVM_GetViaIdentityStandbyVirtualMachinePool';
- List = 'Az.StandbyPool.private\Get-AzStandbyVMPoolVM_List';
+ Get = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_Get';
+ GetViaIdentity = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_GetViaIdentity';
+ GetViaIdentityStandbyVirtualMachinePool = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_GetViaIdentityStandbyVirtualMachinePool';
+ List = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
@@ -187,6 +183,9 @@ begin {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
}
+ if (('Get', 'GetViaIdentityStandbyVirtualMachinePool') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Version') ) {
+ $PSBoundParameters['Version'] = 'latest'
+ }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyVMPool.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyVMPool.ps1
index 8601b242e9e3..3f44cada5d92 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyVMPool.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/New-AzStandbyVMPool.ps1
@@ -27,6 +27,7 @@ New-AzStandbyVMPool `
-Location eastus `
-VMSSId /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss `
-MaxReadyCapacity 1 `
+-MinReadyCapacity 1 `
-VMState Running
.Outputs
@@ -69,9 +70,16 @@ param(
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.Int64]
- # Specifies maximum number of virtual machines in the standby virtual machine pool.
+ # Specifies the maximum number of virtual machines in the standby virtual machine pool.
${MaxReadyCapacity},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
+ [System.Int64]
+ # Specifies the desired minimum number of virtual machines in the standby virtual machine pool.
+ # MinReadyCapacity cannot exceed MaxReadyCapacity.
+ ${MinReadyCapacity},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ITrackedResourceTags]))]
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/ProxyCmdletDefinitions.ps1
index 71c0e6192de9..3f43cdcfa2e6 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -14,6 +14,228 @@
# is regenerated.
# ----------------------------------------------------------------------------------
+<#
+.Synopsis
+Get a StandbyContainerGroupPoolRuntimeViewResource
+.Description
+Get a StandbyContainerGroupPoolRuntimeViewResource
+.Example
+Get-AzStandbyContainerGroupPoolStatus `
+-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
+-Name testPool `
+-ResourceGroupName test-standbypool
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource
+.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
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
+ [StandbyContainerGroupPoolName ]: Name of the standby container group pool
+ [StandbyVirtualMachineName ]: Name of the standby virtual machine
+ [StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+STANDBYCONTAINERGROUPPOOLINPUTOBJECT : Identity Parameter
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
+ [StandbyContainerGroupPoolName ]: Name of the standby container group pool
+ [StandbyVirtualMachineName ]: Name of the standby virtual machine
+ [StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbycontainergrouppoolstatus
+#>
+function Get-AzStandbyContainerGroupPoolStatus {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
+ [System.String]
+ # Name of the standby container group pool
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityStandbyContainerGroupPool', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity]
+ # Identity Parameter
+ ${StandbyContainerGroupPoolInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.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.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_Get';
+ GetViaIdentity = 'Az.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_GetViaIdentity';
+ GetViaIdentityStandbyContainerGroupPool = 'Az.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_GetViaIdentityStandbyContainerGroupPool';
+ List = 'Az.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ if (('Get', 'GetViaIdentityStandbyContainerGroupPool') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Version') ) {
+ $PSBoundParameters['Version'] = 'latest'
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::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.StandbyPool.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
Get a StandbyContainerGroupPoolResource
@@ -37,6 +259,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -220,16 +443,19 @@ end {
<#
.Synopsis
-Get a StandbyVirtualMachineResource
+Get a StandbyVirtualMachinePoolRuntimeViewResource
.Description
-Get a StandbyVirtualMachineResource
+Get a StandbyVirtualMachinePoolRuntimeViewResource
.Example
-Get-AzStandbyVMPoolVM -Name testPool -SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b -ResourceGroupName test-standbypool
+Get-AzStandbyVMPoolStatus `
+-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
+-ResourceGroupName test-standbypool `
+-Name testPool
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResource
+Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -238,6 +464,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -246,20 +473,20 @@ INPUTOBJECT : Identity Parameter
STANDBYVIRTUALMACHINEPOOLINPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
.Link
-https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbyvmpoolvm
+https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbyvmpoolstatus
#>
-function Get-AzStandbyVMPoolVM {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResource])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+function Get-AzStandbyVMPoolStatus {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
- [Alias('StandbyVirtualMachinePoolName')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
[System.String]
# Name of the standby virtual machine pool
@@ -282,14 +509,6 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetViaIdentityStandbyVirtualMachinePool', Mandatory)]
- [Alias('StandbyVirtualMachineName')]
- [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
- [System.String]
- # Name of the standby virtual machine
- ${VMName},
-
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentity]
@@ -377,10 +596,10 @@ begin {
}
$mapping = @{
- Get = 'Az.StandbyPool.private\Get-AzStandbyVMPoolVM_Get';
- GetViaIdentity = 'Az.StandbyPool.private\Get-AzStandbyVMPoolVM_GetViaIdentity';
- GetViaIdentityStandbyVirtualMachinePool = 'Az.StandbyPool.private\Get-AzStandbyVMPoolVM_GetViaIdentityStandbyVirtualMachinePool';
- List = 'Az.StandbyPool.private\Get-AzStandbyVMPoolVM_List';
+ Get = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_Get';
+ GetViaIdentity = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_GetViaIdentity';
+ GetViaIdentityStandbyVirtualMachinePool = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_GetViaIdentityStandbyVirtualMachinePool';
+ List = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
@@ -391,6 +610,9 @@ begin {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
}
+ if (('Get', 'GetViaIdentityStandbyVirtualMachinePool') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Version') ) {
+ $PSBoundParameters['Version'] = 'latest'
+ }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -464,6 +686,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -920,6 +1143,7 @@ New-AzStandbyVMPool `
-Location eastus `
-VMSSId /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss `
-MaxReadyCapacity 1 `
+-MinReadyCapacity 1 `
-VMState Running
.Outputs
@@ -962,9 +1186,16 @@ param(
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.Int64]
- # Specifies maximum number of virtual machines in the standby virtual machine pool.
+ # Specifies the maximum number of virtual machines in the standby virtual machine pool.
${MaxReadyCapacity},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
+ [System.Int64]
+ # Specifies the desired minimum number of virtual machines in the standby virtual machine pool.
+ # MinReadyCapacity cannot exceed MaxReadyCapacity.
+ ${MinReadyCapacity},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ITrackedResourceTags]))]
@@ -1171,6 +1402,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -1389,6 +1621,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -1607,6 +1840,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -1875,6 +2109,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -1924,9 +2159,17 @@ param(
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.Int64]
- # Specifies maximum number of virtual machines in the standby virtual machine pool.
+ # Specifies the maximum number of virtual machines in the standby virtual machine pool.
${MaxReadyCapacity},
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
+ [System.Int64]
+ # Specifies the desired minimum number of virtual machines in the standby virtual machine pool.
+ # MinReadyCapacity cannot exceed MaxReadyCapacity.
+ ${MinReadyCapacity},
+
[Parameter(ParameterSetName='UpdateExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyContainerGroupPool.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyContainerGroupPool.ps1
index 0be705a37efb..e42e311f2806 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyContainerGroupPool.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyContainerGroupPool.ps1
@@ -38,6 +38,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyVMPool.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyVMPool.ps1
index be944388091e..35c748b2a544 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyVMPool.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/Remove-AzStandbyVMPool.ps1
@@ -38,6 +38,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyContainerGroupPool.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyContainerGroupPool.ps1
index 48ba9285bd6d..36e1d5cc7526 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyContainerGroupPool.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyContainerGroupPool.ps1
@@ -38,6 +38,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
diff --git a/src/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyVMPool.ps1 b/src/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyVMPool.ps1
index 4a00d7c6c894..605de572922b 100644
--- a/src/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyVMPool.ps1
+++ b/src/StandbyPool/StandbyPool.Autorest/exports/Update-AzStandbyVMPool.ps1
@@ -38,6 +38,7 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[Id ]: Resource identity path
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuntimeView ]: The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.
[StandbyContainerGroupPoolName ]: Name of the standby container group pool
[StandbyVirtualMachineName ]: Name of the standby virtual machine
[StandbyVirtualMachinePoolName ]: Name of the standby virtual machine pool
@@ -87,9 +88,17 @@ param(
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
[System.Int64]
- # Specifies maximum number of virtual machines in the standby virtual machine pool.
+ # Specifies the maximum number of virtual machines in the standby virtual machine pool.
${MaxReadyCapacity},
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
+ [System.Int64]
+ # Specifies the desired minimum number of virtual machines in the standby virtual machine pool.
+ # MinReadyCapacity cannot exceed MaxReadyCapacity.
+ ${MinReadyCapacity},
+
[Parameter(ParameterSetName='UpdateExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Category('Body')]
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.PowerShell.cs
new file mode 100644
index 000000000000..16104f8b7892
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.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.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// Displays the counts of container groups in each state, as known by the StandbyPool resource provider.
+ ///
+ [System.ComponentModel.TypeConverter(typeof(ContainerGroupInstanceCountSummaryTypeConverter))]
+ public partial class ContainerGroupInstanceCountSummary
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of 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 ContainerGroupInstanceCountSummary(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("InstanceCountsByState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummaryInternal)this).InstanceCountsByState = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountsByState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummaryInternal)this).InstanceCountsByState, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolResourceStateCountTypeConverter.ConvertFrom));
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal ContainerGroupInstanceCountSummary(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("InstanceCountsByState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummaryInternal)this).InstanceCountsByState = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountsByState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummaryInternal)this).InstanceCountsByState, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolResourceStateCountTypeConverter.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.StandbyPool.Models.IContainerGroupInstanceCountSummary DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new ContainerGroupInstanceCountSummary(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new ContainerGroupInstanceCountSummary(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ ///
+ /// an instance of the model class.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.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();
+ }
+ }
+ /// Displays the counts of container groups in each state, as known by the StandbyPool resource provider.
+ [System.ComponentModel.TypeConverter(typeof(ContainerGroupInstanceCountSummaryTypeConverter))]
+ public partial interface IContainerGroupInstanceCountSummary
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.TypeConverter.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.TypeConverter.cs
new file mode 100644
index 000000000000..ff5b7f7ff6f7
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.TypeConverter.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.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class ContainerGroupInstanceCountSummaryTypeConverter : 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.StandbyPool.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IContainerGroupInstanceCountSummary ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return ContainerGroupInstanceCountSummary.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return ContainerGroupInstanceCountSummary.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return ContainerGroupInstanceCountSummary.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.cs
new file mode 100644
index 000000000000..0d23f233943f
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.cs
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Displays the counts of container groups in each state, as known by the StandbyPool resource provider.
+ ///
+ public partial class ContainerGroupInstanceCountSummary :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummaryInternal
+ {
+
+ /// Backing field for property.
+ private System.Collections.Generic.List _instanceCountsByState;
+
+ /// The count of pooled resources in each state.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List InstanceCountsByState { get => this._instanceCountsByState; set => this._instanceCountsByState = value; }
+
+ /// Creates an new instance.
+ public ContainerGroupInstanceCountSummary()
+ {
+
+ }
+ }
+ /// Displays the counts of container groups in each state, as known by the StandbyPool resource provider.
+ public partial interface IContainerGroupInstanceCountSummary :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable
+ {
+ /// The count of pooled resources in each state.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"The count of pooled resources in each state.",
+ SerializedName = @"instanceCountsByState",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCount) })]
+ System.Collections.Generic.List InstanceCountsByState { get; set; }
+
+ }
+ /// Displays the counts of container groups in each state, as known by the StandbyPool resource provider.
+ internal partial interface IContainerGroupInstanceCountSummaryInternal
+
+ {
+ /// The count of pooled resources in each state.
+ System.Collections.Generic.List InstanceCountsByState { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.json.cs
new file mode 100644
index 000000000000..578bea32dbb4
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/ContainerGroupInstanceCountSummary.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.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Displays the counts of container groups in each state, as known by the StandbyPool resource provider.
+ ///
+ public partial class ContainerGroupInstanceCountSummary
+ {
+
+ ///
+ /// 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.StandbyPool.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.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject instance to deserialize from.
+ internal ContainerGroupInstanceCountSummary(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ {_instanceCountsByState = If( json?.PropertyT("instanceCountsByState"), out var __jsonInstanceCountsByState) ? If( __jsonInstanceCountsByState as Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IPoolResourceStateCount) (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolResourceStateCount.FromJson(__u) )) ))() : null : _instanceCountsByState;}
+ AfterFromJson(json);
+ }
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json ? new ContainerGroupInstanceCountSummary(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.StandbyPool.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ if (null != this._instanceCountsByState)
+ {
+ var __w = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.XNodeArray();
+ foreach( var __x in this._instanceCountsByState )
+ {
+ AddIf(__x?.ToJson(null, serializationMode) ,__w.Add);
+ }
+ container.Add("instanceCountsByState",__w);
+ }
+ AfterToJson(ref container);
+ return container;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.PowerShell.cs
new file mode 100644
index 000000000000..4f2d4fd6bdbc
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.PowerShell.cs
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider.
+ ///
+ [System.ComponentModel.TypeConverter(typeof(PoolResourceStateCountTypeConverter))]
+ public partial class PoolResourceStateCount
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of 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.StandbyPool.Models.IPoolResourceStateCount DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new PoolResourceStateCount(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCount DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new PoolResourceStateCount(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal PoolResourceStateCount(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("State"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal)this).State, global::System.Convert.ToString);
+ }
+ if (content.Contains("Count"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal)this).Count = (long) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal)this).Count, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal PoolResourceStateCount(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("State"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal)this).State, global::System.Convert.ToString);
+ }
+ if (content.Contains("Count"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal)this).Count = (long) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal)this).Count, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ 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.StandbyPool.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();
+ }
+ }
+ /// Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider.
+ [System.ComponentModel.TypeConverter(typeof(PoolResourceStateCountTypeConverter))]
+ public partial interface IPoolResourceStateCount
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.TypeConverter.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.TypeConverter.cs
new file mode 100644
index 000000000000..67b78b17d466
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.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.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class PoolResourceStateCountTypeConverter : 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.StandbyPool.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IPoolResourceStateCount ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCount).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return PoolResourceStateCount.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return PoolResourceStateCount.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return PoolResourceStateCount.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.cs
new file mode 100644
index 000000000000..79be2cd9e719
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider.
+ ///
+ public partial class PoolResourceStateCount :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCount,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCountInternal
+ {
+
+ /// Backing field for property.
+ private long _count;
+
+ /// The count of pooled resources in the given state.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public long Count { get => this._count; set => this._count = value; }
+
+ /// Backing field for property.
+ private string _state;
+
+ /// The state that the pooled resources count is for.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public string State { get => this._state; set => this._state = value; }
+
+ /// Creates an new instance.
+ public PoolResourceStateCount()
+ {
+
+ }
+ }
+ /// Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider.
+ public partial interface IPoolResourceStateCount :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable
+ {
+ /// The count of pooled resources in the given state.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"The count of pooled resources in the given state.",
+ SerializedName = @"count",
+ PossibleTypes = new [] { typeof(long) })]
+ long Count { get; set; }
+ /// The state that the pooled resources count is for.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"The state that the pooled resources count is for.",
+ SerializedName = @"state",
+ PossibleTypes = new [] { typeof(string) })]
+ string State { get; set; }
+
+ }
+ /// Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider.
+ internal partial interface IPoolResourceStateCountInternal
+
+ {
+ /// The count of pooled resources in the given state.
+ long Count { get; set; }
+ /// The state that the pooled resources count is for.
+ string State { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.json.cs
new file mode 100644
index 000000000000..a96f69d1bf78
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/PoolResourceStateCount.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.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider.
+ ///
+ public partial class PoolResourceStateCount
+ {
+
+ ///
+ /// 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.StandbyPool.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.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCount.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCount.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IPoolResourceStateCount FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json ? new PoolResourceStateCount(json) : null;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject instance to deserialize from.
+ internal PoolResourceStateCount(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)_state;}
+ {_count = If( json?.PropertyT("count"), out var __jsonCount) ? (long)__jsonCount : _count;}
+ 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.StandbyPool.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add );
+ AddIf( (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNumber(this._count), "count" ,container.Add );
+ AfterToJson(ref container);
+ return container;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.cs
index b6471f982638..8bf6dc3fa5be 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.cs
@@ -164,7 +164,7 @@ public partial interface IStandbyContainerGroupPoolResource :
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
+ Update = true,
Description = @"Specifies container group profile id of standby container groups.",
SerializedName = @"id",
PossibleTypes = new [] { typeof(string) })]
@@ -175,7 +175,7 @@ public partial interface IStandbyContainerGroupPoolResource :
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
+ Update = true,
Description = @"Specifies revision of container group profile.",
SerializedName = @"revision",
PossibleTypes = new [] { typeof(long) })]
@@ -186,7 +186,7 @@ public partial interface IStandbyContainerGroupPoolResource :
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
+ Update = true,
Description = @"Specifies subnet Ids for container group.",
SerializedName = @"subnetIds",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISubnet) })]
@@ -197,7 +197,7 @@ public partial interface IStandbyContainerGroupPoolResource :
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
+ Update = true,
Description = @"Specifies maximum number of standby container groups in the standby pool.",
SerializedName = @"maxReadyCapacity",
PossibleTypes = new [] { typeof(long) })]
@@ -208,7 +208,7 @@ public partial interface IStandbyContainerGroupPoolResource :
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
+ Update = true,
Description = @"Specifies refill policy of the pool.",
SerializedName = @"refillPolicy",
PossibleTypes = new [] { typeof(string) })]
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.json.cs
index 89d3a02d2223..7e27e1e7a115 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResource.json.cs
@@ -102,10 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
return container;
}
__trackedResource?.ToJson(container, serializationMode);
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeCreate))
- {
- AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
- }
+ AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceListResult.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceListResult.cs
index 57b35b9d3cf2..e1b7cff77702 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceListResult.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceListResult.cs
@@ -13,15 +13,12 @@ public partial class StandbyContainerGroupPoolResourceListResult :
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceListResultInternal
{
- /// Internal Acessors for NextLink
- string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } }
-
/// Backing field for property.
private string _nextLink;
/// The link to the next page of items
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
- public string NextLink { get => this._nextLink; }
+ public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
private System.Collections.Generic.List _value;
@@ -45,14 +42,14 @@ public partial interface IStandbyContainerGroupPoolResourceListResult :
/// The link to the next page of items
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
- ReadOnly = true,
+ ReadOnly = false,
Read = true,
- Create = false,
- Update = false,
+ Create = true,
+ Update = true,
Description = @"The link to the next page of items",
SerializedName = @"nextLink",
PossibleTypes = new [] { typeof(string) })]
- string NextLink { get; }
+ string NextLink { get; set; }
/// The StandbyContainerGroupPoolResource items on this page
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = true,
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceListResult.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceListResult.json.cs
index 682823881bec..64babdc66b6c 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceListResult.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceListResult.json.cs
@@ -112,10 +112,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
}
container.Add("value",__w);
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead))
- {
- AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
- }
+ AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdate.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdate.cs
index 014f1f1a3729..9980fee9dc92 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdate.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolResourceUpdate.cs
@@ -48,7 +48,7 @@ public partial class StandbyContainerGroupPoolResourceUpdate :
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateProperties _property;
- /// The updatable properties of the StandbyContainerGroupPoolResource.
+ /// The resource-specific properties for this resource.
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
internal Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolResourceUpdateProperties()); set => this._property = value; }
@@ -159,7 +159,7 @@ internal partial interface IStandbyContainerGroupPoolResourceUpdateInternal
/// Specifies refill policy of the pool.
[global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("always")]
string ElasticityProfileRefillPolicy { get; set; }
- /// The updatable properties of the StandbyContainerGroupPoolResource.
+ /// The resource-specific properties for this resource.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateProperties Property { get; set; }
/// Resource tags.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolResourceUpdateTags Tag { get; set; }
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.PowerShell.cs
new file mode 100644
index 000000000000..fe16e0af59f8
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.PowerShell.cs
@@ -0,0 +1,267 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// Contains information about a standby container group pool as last known by the StandbyPool resource provider.
+ ///
+ [System.ComponentModel.TypeConverter(typeof(StandbyContainerGroupPoolRuntimeViewResourceTypeConverter))]
+ public partial class StandbyContainerGroupPoolRuntimeViewResource
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of 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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new StandbyContainerGroupPoolRuntimeViewResource(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new StandbyContainerGroupPoolRuntimeViewResource(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from
+ /// a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ ///
+ /// an instance of the model class.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal StandbyContainerGroupPoolRuntimeViewResource(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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourcePropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCountSummary"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).InstanceCountSummary = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountSummary",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).InstanceCountSummary, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupInstanceCountSummaryTypeConverter.ConvertFrom));
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal StandbyContainerGroupPoolRuntimeViewResource(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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourcePropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCountSummary"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).InstanceCountSummary = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountSummary",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal)this).InstanceCountSummary, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupInstanceCountSummaryTypeConverter.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.StandbyPool.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();
+ }
+ }
+ /// Contains information about a standby container group pool as last known by the StandbyPool resource provider.
+ [System.ComponentModel.TypeConverter(typeof(StandbyContainerGroupPoolRuntimeViewResourceTypeConverter))]
+ public partial interface IStandbyContainerGroupPoolRuntimeViewResource
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.TypeConverter.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.TypeConverter.cs
new file mode 100644
index 000000000000..48b0eafd3aa1
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.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.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class StandbyContainerGroupPoolRuntimeViewResourceTypeConverter : 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.StandbyPool.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return StandbyContainerGroupPoolRuntimeViewResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return StandbyContainerGroupPoolRuntimeViewResource.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return StandbyContainerGroupPoolRuntimeViewResource.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.cs
new file mode 100644
index 000000000000..67b7d0520846
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.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.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Contains information about a standby container group pool as last known by the StandbyPool resource provider.
+ ///
+ public partial class StandbyContainerGroupPoolRuntimeViewResource :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IValidates
+ {
+ ///
+ /// Backing field for Inherited model
+ ///
+ private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ProxyResource();
+
+ ///
+ /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; }
+
+ ///
+ /// A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
+ public System.Collections.Generic.List InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; }
+
+ /// Internal Acessors for Id
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id = value; }
+
+ /// Internal Acessors for Name
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name = value; }
+
+ /// Internal Acessors for SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData = value; }
+
+ /// Internal Acessors for Type
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type = value; }
+
+ /// Internal Acessors for InstanceCountSummary
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary = value; }
+
+ /// Internal Acessors for Property
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceProperties()); set { {_property = value;} } }
+
+ /// Internal Acessors for ProvisioningState
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState = value; }
+
+ /// The name of the resource
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties _property;
+
+ /// The resource-specific properties for this resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceProperties()); set => this._property = value; }
+
+ /// Displays the provisioning state of the standby pool
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState; }
+
+ /// Gets the resource group name
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ 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.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; }
+
+ /// The timestamp of resource creation (UTC).
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// The identity that created the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; }
+
+ /// The type of identity that created the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; }
+
+ /// The timestamp of resource last modification (UTC)
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// The identity that last modified the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// The type of identity that last modified the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; }
+
+ ///
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; }
+
+ ///
+ /// Creates an new instance.
+ ///
+ public StandbyContainerGroupPoolRuntimeViewResource()
+ {
+
+ }
+
+ /// 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.StandbyPool.Runtime.IEventListener eventListener)
+ {
+ await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource);
+ await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource);
+ }
+ }
+ /// Contains information about a standby container group pool as last known by the StandbyPool resource provider.
+ public partial interface IStandbyContainerGroupPoolRuntimeViewResource :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IProxyResource
+ {
+ ///
+ /// A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.",
+ SerializedName = @"instanceCountSummary",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary) })]
+ System.Collections.Generic.List InstanceCountSummary { get; }
+ /// Displays the provisioning state of the standby pool
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"Displays the provisioning state of the standby pool",
+ SerializedName = @"provisioningState",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
+ string ProvisioningState { get; }
+
+ }
+ /// Contains information about a standby container group pool as last known by the StandbyPool resource provider.
+ internal partial interface IStandbyContainerGroupPoolRuntimeViewResourceInternal :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IProxyResourceInternal
+ {
+ ///
+ /// A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.
+ ///
+ System.Collections.Generic.List InstanceCountSummary { get; set; }
+ /// The resource-specific properties for this resource.
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties Property { get; set; }
+ /// Displays the provisioning state of the standby pool
+ [global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
+ string ProvisioningState { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.json.cs
new file mode 100644
index 000000000000..6c538b77350c
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResource.json.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.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Contains information about a standby container group pool as last known by the StandbyPool resource provider.
+ ///
+ public partial class StandbyContainerGroupPoolRuntimeViewResource
+ {
+
+ ///
+ /// 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.StandbyPool.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.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json ? new StandbyContainerGroupPoolRuntimeViewResource(json) : null;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject instance to deserialize from.
+ internal StandbyContainerGroupPoolRuntimeViewResource(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ProxyResource(json);
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceProperties.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.StandbyPool.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ __proxyResource?.ToJson(container, serializationMode);
+ AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.PowerShell.cs
new file mode 100644
index 000000000000..e7ac87b8324f
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.PowerShell.cs
@@ -0,0 +1,177 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ /// The response of a StandbyContainerGroupPoolRuntimeViewResource list operation.
+ [System.ComponentModel.TypeConverter(typeof(StandbyContainerGroupPoolRuntimeViewResourceListResultTypeConverter))]
+ public partial class StandbyContainerGroupPoolRuntimeViewResourceListResult
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of 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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new StandbyContainerGroupPoolRuntimeViewResourceListResult(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new StandbyContainerGroupPoolRuntimeViewResourceListResult(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content
+ /// from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ ///
+ /// an instance of the model class.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal StandbyContainerGroupPoolRuntimeViewResourceListResult(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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NextLink"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal)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 StandbyContainerGroupPoolRuntimeViewResourceListResult(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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResourceTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NextLink"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal)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.StandbyPool.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 response of a StandbyContainerGroupPoolRuntimeViewResource list operation.
+ [System.ComponentModel.TypeConverter(typeof(StandbyContainerGroupPoolRuntimeViewResourceListResultTypeConverter))]
+ public partial interface IStandbyContainerGroupPoolRuntimeViewResourceListResult
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.TypeConverter.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.TypeConverter.cs
new file mode 100644
index 000000000000..bb5c5c6cacfb
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.TypeConverter.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class StandbyContainerGroupPoolRuntimeViewResourceListResultTypeConverter : 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.StandbyPool.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return StandbyContainerGroupPoolRuntimeViewResourceListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return StandbyContainerGroupPoolRuntimeViewResourceListResult.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return StandbyContainerGroupPoolRuntimeViewResourceListResult.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.cs
new file mode 100644
index 000000000000..d91ecd1752a0
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ /// The response of a StandbyContainerGroupPoolRuntimeViewResource list operation.
+ public partial class StandbyContainerGroupPoolRuntimeViewResourceListResult :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal
+ {
+
+ /// Backing field for property.
+ private string _nextLink;
+
+ /// The link to the next page of items
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public string NextLink { get => this._nextLink; set => this._nextLink = value; }
+
+ /// Backing field for property.
+ private System.Collections.Generic.List _value;
+
+ /// The StandbyContainerGroupPoolRuntimeViewResource items on this page
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List Value { get => this._value; set => this._value = value; }
+
+ ///
+ /// Creates an new instance.
+ ///
+ public StandbyContainerGroupPoolRuntimeViewResourceListResult()
+ {
+
+ }
+ }
+ /// The response of a StandbyContainerGroupPoolRuntimeViewResource list operation.
+ public partial interface IStandbyContainerGroupPoolRuntimeViewResourceListResult :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable
+ {
+ /// The link to the next page of items
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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 StandbyContainerGroupPoolRuntimeViewResource items on this page
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"The StandbyContainerGroupPoolRuntimeViewResource items on this page",
+ SerializedName = @"value",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource) })]
+ System.Collections.Generic.List Value { get; set; }
+
+ }
+ /// The response of a StandbyContainerGroupPoolRuntimeViewResource list operation.
+ internal partial interface IStandbyContainerGroupPoolRuntimeViewResourceListResultInternal
+
+ {
+ /// The link to the next page of items
+ string NextLink { get; set; }
+ /// The StandbyContainerGroupPoolRuntimeViewResource items on this page
+ System.Collections.Generic.List Value { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.json.cs
new file mode 100644
index 000000000000..b6ce00526e7d
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceListResult.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.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ /// The response of a StandbyContainerGroupPoolRuntimeViewResource list operation.
+ public partial class StandbyContainerGroupPoolRuntimeViewResourceListResult
+ {
+
+ ///
+ /// 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.StandbyPool.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.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json ? new StandbyContainerGroupPoolRuntimeViewResourceListResult(json) : null;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject instance to deserialize from.
+ internal StandbyContainerGroupPoolRuntimeViewResourceListResult(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResource) (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolRuntimeViewResource.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.StandbyPool.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.PowerShell.cs
new file mode 100644
index 000000000000..f44389aec1ae
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.PowerShell.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.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ ///
+ [System.ComponentModel.TypeConverter(typeof(StandbyContainerGroupPoolRuntimeViewResourcePropertiesTypeConverter))]
+ public partial class StandbyContainerGroupPoolRuntimeViewResourceProperties
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of 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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new StandbyContainerGroupPoolRuntimeViewResourceProperties(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new StandbyContainerGroupPoolRuntimeViewResourceProperties(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content
+ /// from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ ///
+ /// an instance of the model class.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal StandbyContainerGroupPoolRuntimeViewResourceProperties(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("InstanceCountSummary"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)this).InstanceCountSummary = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountSummary",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)this).InstanceCountSummary, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupInstanceCountSummaryTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)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 StandbyContainerGroupPoolRuntimeViewResourceProperties(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("InstanceCountSummary"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)this).InstanceCountSummary = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountSummary",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)this).InstanceCountSummary, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupInstanceCountSummaryTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal)this).ProvisioningState, 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.StandbyPool.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();
+ }
+ }
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ [System.ComponentModel.TypeConverter(typeof(StandbyContainerGroupPoolRuntimeViewResourcePropertiesTypeConverter))]
+ public partial interface IStandbyContainerGroupPoolRuntimeViewResourceProperties
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.TypeConverter.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.TypeConverter.cs
new file mode 100644
index 000000000000..e48ca8917b73
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.TypeConverter.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class StandbyContainerGroupPoolRuntimeViewResourcePropertiesTypeConverter : 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.StandbyPool.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return StandbyContainerGroupPoolRuntimeViewResourceProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return StandbyContainerGroupPoolRuntimeViewResourceProperties.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return StandbyContainerGroupPoolRuntimeViewResourceProperties.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.cs
new file mode 100644
index 000000000000..cd3fbb49bbb0
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.cs
@@ -0,0 +1,92 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ ///
+ public partial class StandbyContainerGroupPoolRuntimeViewResourceProperties :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal
+ {
+
+ /// Backing field for property.
+ private System.Collections.Generic.List _instanceCountSummary;
+
+ ///
+ /// A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List InstanceCountSummary { get => this._instanceCountSummary; }
+
+ /// Internal Acessors for InstanceCountSummary
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.InstanceCountSummary { get => this._instanceCountSummary; set { {_instanceCountSummary = value;} } }
+
+ /// Internal Acessors for ProvisioningState
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+
+ /// Backing field for property.
+ private string _provisioningState;
+
+ /// Displays the provisioning state of the standby pool
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public string ProvisioningState { get => this._provisioningState; }
+
+ ///
+ /// Creates an new instance.
+ ///
+ public StandbyContainerGroupPoolRuntimeViewResourceProperties()
+ {
+
+ }
+ }
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ public partial interface IStandbyContainerGroupPoolRuntimeViewResourceProperties :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable
+ {
+ ///
+ /// A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = true,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.",
+ SerializedName = @"instanceCountSummary",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IContainerGroupInstanceCountSummary) })]
+ System.Collections.Generic.List InstanceCountSummary { get; }
+ /// Displays the provisioning state of the standby pool
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"Displays the provisioning state of the standby pool",
+ SerializedName = @"provisioningState",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
+ string ProvisioningState { get; }
+
+ }
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ internal partial interface IStandbyContainerGroupPoolRuntimeViewResourcePropertiesInternal
+
+ {
+ ///
+ /// A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.
+ ///
+ System.Collections.Generic.List InstanceCountSummary { get; set; }
+ /// Displays the provisioning state of the standby pool
+ [global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
+ string ProvisioningState { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.json.cs
new file mode 100644
index 000000000000..ce03a16ef3a0
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyContainerGroupPoolRuntimeViewResourceProperties.json.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ ///
+ public partial class StandbyContainerGroupPoolRuntimeViewResourceProperties
+ {
+
+ ///
+ /// 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.StandbyPool.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.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyContainerGroupPoolRuntimeViewResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json ? new StandbyContainerGroupPoolRuntimeViewResourceProperties(json) : null;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject instance to deserialize from.
+ internal StandbyContainerGroupPoolRuntimeViewResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ {_instanceCountSummary = If( json?.PropertyT("instanceCountSummary"), out var __jsonInstanceCountSummary) ? If( __jsonInstanceCountSummary as Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IContainerGroupInstanceCountSummary) (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupInstanceCountSummary.FromJson(__u) )) ))() : null : _instanceCountSummary;}
+ {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;}
+ 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.StandbyPool.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead))
+ {
+ if (null != this._instanceCountSummary)
+ {
+ var __w = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.XNodeArray();
+ foreach( var __x in this._instanceCountSummary )
+ {
+ AddIf(__x?.ToJson(null, serializationMode) ,__w.Add);
+ }
+ container.Add("instanceCountSummary",__w);
+ }
+ }
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead))
+ {
+ AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
+ }
+ AfterToJson(ref container);
+ return container;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.PowerShell.cs
index 1d3c6e456f5c..fc06cefde9de 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.PowerShell.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.PowerShell.cs
@@ -124,6 +124,10 @@ internal StandbyPoolIdentity(global::System.Collections.IDictionary content)
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).StandbyVirtualMachinePoolName = (string) content.GetValueForProperty("StandbyVirtualMachinePoolName",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).StandbyVirtualMachinePoolName, global::System.Convert.ToString);
}
+ if (content.Contains("RuntimeView"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).RuntimeView = (string) content.GetValueForProperty("RuntimeView",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).RuntimeView, global::System.Convert.ToString);
+ }
if (content.Contains("StandbyVirtualMachineName"))
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).StandbyVirtualMachineName = (string) content.GetValueForProperty("StandbyVirtualMachineName",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).StandbyVirtualMachineName, global::System.Convert.ToString);
@@ -165,6 +169,10 @@ internal StandbyPoolIdentity(global::System.Management.Automation.PSObject conte
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).StandbyVirtualMachinePoolName = (string) content.GetValueForProperty("StandbyVirtualMachinePoolName",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).StandbyVirtualMachinePoolName, global::System.Convert.ToString);
}
+ if (content.Contains("RuntimeView"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).RuntimeView = (string) content.GetValueForProperty("RuntimeView",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).RuntimeView, global::System.Convert.ToString);
+ }
if (content.Contains("StandbyVirtualMachineName"))
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).StandbyVirtualMachineName = (string) content.GetValueForProperty("StandbyVirtualMachineName",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyPoolIdentityInternal)this).StandbyVirtualMachineName, global::System.Convert.ToString);
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.cs
index 97e9b57f648b..7960e806afa5 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.cs
@@ -26,6 +26,16 @@ public partial class StandbyPoolIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; }
+ /// Backing field for property.
+ private string _runtimeView;
+
+ ///
+ /// The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime
+ /// view of the pool, otherwise the request will fail with NotFound exception.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public string RuntimeView { get => this._runtimeView; set => this._runtimeView = value; }
+
/// Backing field for property.
private string _standbyContainerGroupPoolName;
@@ -85,6 +95,20 @@ public partial interface IStandbyPoolIdentity :
SerializedName = @"resourceGroupName",
PossibleTypes = new [] { typeof(string) })]
string ResourceGroupName { get; set; }
+ ///
+ /// The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime
+ /// view of the pool, otherwise the request will fail with NotFound exception.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.",
+ SerializedName = @"runtimeView",
+ PossibleTypes = new [] { typeof(string) })]
+ string RuntimeView { get; set; }
/// Name of the standby container group pool
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -138,6 +162,11 @@ internal partial interface IStandbyPoolIdentityInternal
string Id { get; set; }
/// The name of the resource group. The name is case insensitive.
string ResourceGroupName { get; set; }
+ ///
+ /// The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime
+ /// view of the pool, otherwise the request will fail with NotFound exception.
+ ///
+ string RuntimeView { get; set; }
/// Name of the standby container group pool
string StandbyContainerGroupPoolName { get; set; }
/// Name of the standby virtual machine
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.json.cs
index 214b3fc130b6..828d1f1862dc 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyPoolIdentity.json.cs
@@ -80,6 +80,7 @@ internal StandbyPoolIdentity(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runt
{_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;}
{_standbyContainerGroupPoolName = If( json?.PropertyT("standbyContainerGroupPoolName"), out var __jsonStandbyContainerGroupPoolName) ? (string)__jsonStandbyContainerGroupPoolName : (string)_standbyContainerGroupPoolName;}
{_standbyVirtualMachinePoolName = If( json?.PropertyT("standbyVirtualMachinePoolName"), out var __jsonStandbyVirtualMachinePoolName) ? (string)__jsonStandbyVirtualMachinePoolName : (string)_standbyVirtualMachinePoolName;}
+ {_runtimeView = If( json?.PropertyT("runtimeView"), out var __jsonRuntimeView) ? (string)__jsonRuntimeView : (string)_runtimeView;}
{_standbyVirtualMachineName = If( json?.PropertyT("standbyVirtualMachineName"), out var __jsonStandbyVirtualMachineName) ? (string)__jsonStandbyVirtualMachineName : (string)_standbyVirtualMachineName;}
{_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;}
AfterFromJson(json);
@@ -108,6 +109,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add );
AddIf( null != (((object)this._standbyContainerGroupPoolName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._standbyContainerGroupPoolName.ToString()) : null, "standbyContainerGroupPoolName" ,container.Add );
AddIf( null != (((object)this._standbyVirtualMachinePoolName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._standbyVirtualMachinePoolName.ToString()) : null, "standbyVirtualMachinePoolName" ,container.Add );
+ AddIf( null != (((object)this._runtimeView)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._runtimeView.ToString()) : null, "runtimeView" ,container.Add );
AddIf( null != (((object)this._standbyVirtualMachineName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._standbyVirtualMachineName.ToString()) : null, "standbyVirtualMachineName" ,container.Add );
AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
AfterToJson(ref container);
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.PowerShell.cs
index 238d1605a47f..fe691c5cbac7 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.PowerShell.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.PowerShell.cs
@@ -118,6 +118,10 @@ internal StandbyVirtualMachinePoolElasticityProfile(global::System.Collections.I
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)this).MaxReadyCapacity = (long) content.GetValueForProperty("MaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)this).MaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("MinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)this).MinReadyCapacity = (long?) content.GetValueForProperty("MinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)this).MinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializeDictionary(content);
}
@@ -139,6 +143,10 @@ internal StandbyVirtualMachinePoolElasticityProfile(global::System.Management.Au
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)this).MaxReadyCapacity = (long) content.GetValueForProperty("MaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)this).MaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("MinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)this).MinReadyCapacity = (long?) content.GetValueForProperty("MinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)this).MinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializePSObject(content);
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.cs
index 465d93eb35cd..8a57b25d38c6 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.cs
@@ -17,11 +17,21 @@ public partial class StandbyVirtualMachinePoolElasticityProfile :
private long _maxReadyCapacity;
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
public long MaxReadyCapacity { get => this._maxReadyCapacity; set => this._maxReadyCapacity = value; }
+ /// Backing field for property.
+ private long? _minReadyCapacity;
+
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public long? MinReadyCapacity { get => this._minReadyCapacity; set => this._minReadyCapacity = value; }
+
///
/// Creates an new instance.
///
@@ -35,7 +45,7 @@ public partial interface IStandbyVirtualMachinePoolElasticityProfile :
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable
{
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = true,
@@ -43,10 +53,24 @@ public partial interface IStandbyVirtualMachinePoolElasticityProfile :
Read = true,
Create = true,
Update = true,
- Description = @"Specifies maximum number of virtual machines in the standby virtual machine pool.",
+ Description = @"Specifies the maximum number of virtual machines in the standby virtual machine pool.",
SerializedName = @"maxReadyCapacity",
PossibleTypes = new [] { typeof(long) })]
long MaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity.",
+ SerializedName = @"minReadyCapacity",
+ PossibleTypes = new [] { typeof(long) })]
+ long? MinReadyCapacity { get; set; }
}
/// Details of the elasticity profile.
@@ -54,9 +78,14 @@ internal partial interface IStandbyVirtualMachinePoolElasticityProfileInternal
{
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
long MaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ long? MinReadyCapacity { get; set; }
}
}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.json.cs
index 081d134ef890..d6f46348356b 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfile.json.cs
@@ -78,6 +78,7 @@ internal StandbyVirtualMachinePoolElasticityProfile(Microsoft.Azure.PowerShell.C
return;
}
{_maxReadyCapacity = If( json?.PropertyT("maxReadyCapacity"), out var __jsonMaxReadyCapacity) ? (long)__jsonMaxReadyCapacity : _maxReadyCapacity;}
+ {_minReadyCapacity = If( json?.PropertyT("minReadyCapacity"), out var __jsonMinReadyCapacity) ? (long?)__jsonMinReadyCapacity : _minReadyCapacity;}
AfterFromJson(json);
}
@@ -103,6 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
return container;
}
AddIf( (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNumber(this._maxReadyCapacity), "maxReadyCapacity" ,container.Add );
+ AddIf( null != this._minReadyCapacity ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNumber((long)this._minReadyCapacity) : null, "minReadyCapacity" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.PowerShell.cs
index c40408c031a8..6b7d23d48b8b 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.PowerShell.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.PowerShell.cs
@@ -118,6 +118,10 @@ internal StandbyVirtualMachinePoolElasticityProfileUpdate(global::System.Collect
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)this).MaxReadyCapacity = (long?) content.GetValueForProperty("MaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)this).MaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("MinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)this).MinReadyCapacity = (long?) content.GetValueForProperty("MinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)this).MinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializeDictionary(content);
}
@@ -139,6 +143,10 @@ internal StandbyVirtualMachinePoolElasticityProfileUpdate(global::System.Managem
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)this).MaxReadyCapacity = (long?) content.GetValueForProperty("MaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)this).MaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("MinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)this).MinReadyCapacity = (long?) content.GetValueForProperty("MinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)this).MinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializePSObject(content);
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.cs
index 1b555231b038..9f63e3f3e1b0 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.cs
@@ -17,11 +17,21 @@ public partial class StandbyVirtualMachinePoolElasticityProfileUpdate :
private long? _maxReadyCapacity;
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
public long? MaxReadyCapacity { get => this._maxReadyCapacity; set => this._maxReadyCapacity = value; }
+ /// Backing field for property.
+ private long? _minReadyCapacity;
+
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public long? MinReadyCapacity { get => this._minReadyCapacity; set => this._minReadyCapacity = value; }
+
///
/// Creates an new instance.
///
@@ -35,7 +45,7 @@ public partial interface IStandbyVirtualMachinePoolElasticityProfileUpdate :
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable
{
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -43,10 +53,24 @@ public partial interface IStandbyVirtualMachinePoolElasticityProfileUpdate :
Read = true,
Create = true,
Update = true,
- Description = @"Specifies maximum number of virtual machines in the standby virtual machine pool.",
+ Description = @"Specifies the maximum number of virtual machines in the standby virtual machine pool.",
SerializedName = @"maxReadyCapacity",
PossibleTypes = new [] { typeof(long) })]
long? MaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity.",
+ SerializedName = @"minReadyCapacity",
+ PossibleTypes = new [] { typeof(long) })]
+ long? MinReadyCapacity { get; set; }
}
/// Details of the elasticity profile.
@@ -54,9 +78,14 @@ internal partial interface IStandbyVirtualMachinePoolElasticityProfileUpdateInte
{
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
long? MaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ long? MinReadyCapacity { get; set; }
}
}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.json.cs
index a9b8eee558c5..8cdfcab5c81e 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolElasticityProfileUpdate.json.cs
@@ -79,6 +79,7 @@ internal StandbyVirtualMachinePoolElasticityProfileUpdate(Microsoft.Azure.PowerS
return;
}
{_maxReadyCapacity = If( json?.PropertyT("maxReadyCapacity"), out var __jsonMaxReadyCapacity) ? (long?)__jsonMaxReadyCapacity : _maxReadyCapacity;}
+ {_minReadyCapacity = If( json?.PropertyT("minReadyCapacity"), out var __jsonMinReadyCapacity) ? (long?)__jsonMinReadyCapacity : _minReadyCapacity;}
AfterFromJson(json);
}
@@ -104,6 +105,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
return container;
}
AddIf( null != this._maxReadyCapacity ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNumber((long)this._maxReadyCapacity) : null, "maxReadyCapacity" ,container.Add );
+ AddIf( null != this._minReadyCapacity ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNumber((long)this._minReadyCapacity) : null, "minReadyCapacity" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.PowerShell.cs
index c5a574d0accb..ac882315364f 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.PowerShell.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.PowerShell.cs
@@ -183,6 +183,10 @@ internal StandbyVirtualMachinePoolResource(global::System.Collections.IDictionar
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal)this).ElasticityProfileMaxReadyCapacity = (long) content.GetValueForProperty("ElasticityProfileMaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal)this).ElasticityProfileMaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("ElasticityProfileMinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal)this).ElasticityProfileMinReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal)this).ElasticityProfileMinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializeDictionary(content);
}
@@ -272,6 +276,10 @@ internal StandbyVirtualMachinePoolResource(global::System.Management.Automation.
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal)this).ElasticityProfileMaxReadyCapacity = (long) content.GetValueForProperty("ElasticityProfileMaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal)this).ElasticityProfileMaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("ElasticityProfileMinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal)this).ElasticityProfileMinReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceInternal)this).ElasticityProfileMinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializePSObject(content);
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.cs
index ff8b85ba2680..a11357b82ea8 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.cs
@@ -26,11 +26,18 @@ public partial class StandbyVirtualMachinePoolResource :
public string AttachedVirtualMachineScaleSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).AttachedVirtualMachineScaleSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).AttachedVirtualMachineScaleSetId = value ?? null; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
public long? ElasticityProfileMaxReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ElasticityProfileMaxReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ElasticityProfileMaxReadyCapacity = value ?? default(long); }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
+ public long? ElasticityProfileMinReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ElasticityProfileMinReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)Property).ElasticityProfileMinReadyCapacity = value ?? default(long); }
+
///
/// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
///
@@ -156,24 +163,38 @@ public partial interface IStandbyVirtualMachinePoolResource :
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
+ Update = true,
Description = @"Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to.",
SerializedName = @"attachedVirtualMachineScaleSetId",
PossibleTypes = new [] { typeof(string) })]
string AttachedVirtualMachineScaleSetId { get; set; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
- Description = @"Specifies maximum number of virtual machines in the standby virtual machine pool.",
+ Update = true,
+ Description = @"Specifies the maximum number of virtual machines in the standby virtual machine pool.",
SerializedName = @"maxReadyCapacity",
PossibleTypes = new [] { typeof(long) })]
long? ElasticityProfileMaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity.",
+ SerializedName = @"minReadyCapacity",
+ PossibleTypes = new [] { typeof(long) })]
+ long? ElasticityProfileMinReadyCapacity { get; set; }
/// The status of the last operation.
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -192,7 +213,7 @@ public partial interface IStandbyVirtualMachinePoolResource :
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
+ Update = true,
Description = @"Specifies the desired state of virtual machines in the pool.",
SerializedName = @"virtualMachineState",
PossibleTypes = new [] { typeof(string) })]
@@ -211,9 +232,14 @@ internal partial interface IStandbyVirtualMachinePoolResourceInternal :
/// Specifies the elasticity profile of the standby virtual machine pools.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfile ElasticityProfile { get; set; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
long? ElasticityProfileMaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ long? ElasticityProfileMinReadyCapacity { get; set; }
/// The resource-specific properties for this resource.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceProperties Property { get; set; }
/// The status of the last operation.
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.json.cs
index d5dd01a2e773..aac2c4a03075 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResource.json.cs
@@ -102,10 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
return container;
}
__trackedResource?.ToJson(container, serializationMode);
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeCreate))
- {
- AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
- }
+ AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceListResult.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceListResult.cs
index 6f394b1facb5..ef97578a21aa 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceListResult.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceListResult.cs
@@ -13,15 +13,12 @@ public partial class StandbyVirtualMachinePoolResourceListResult :
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceListResultInternal
{
- /// Internal Acessors for NextLink
- string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } }
-
/// Backing field for property.
private string _nextLink;
/// The link to the next page of items
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
- public string NextLink { get => this._nextLink; }
+ public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
private System.Collections.Generic.List _value;
@@ -45,14 +42,14 @@ public partial interface IStandbyVirtualMachinePoolResourceListResult :
/// The link to the next page of items
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
- ReadOnly = true,
+ ReadOnly = false,
Read = true,
- Create = false,
- Update = false,
+ Create = true,
+ Update = true,
Description = @"The link to the next page of items",
SerializedName = @"nextLink",
PossibleTypes = new [] { typeof(string) })]
- string NextLink { get; }
+ string NextLink { get; set; }
/// The StandbyVirtualMachinePoolResource items on this page
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = true,
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceListResult.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceListResult.json.cs
index b583bc3c7a2a..665ae684c8b9 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceListResult.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceListResult.json.cs
@@ -112,10 +112,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
}
container.Add("value",__w);
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead))
- {
- AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
- }
+ AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceProperties.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceProperties.PowerShell.cs
index f23971805342..7de53ebddc8c 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceProperties.PowerShell.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceProperties.PowerShell.cs
@@ -134,6 +134,10 @@ internal StandbyVirtualMachinePoolResourceProperties(global::System.Collections.
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)this).ElasticityProfileMaxReadyCapacity = (long) content.GetValueForProperty("ElasticityProfileMaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)this).ElasticityProfileMaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("ElasticityProfileMinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)this).ElasticityProfileMinReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)this).ElasticityProfileMinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializeDictionary(content);
}
@@ -171,6 +175,10 @@ internal StandbyVirtualMachinePoolResourceProperties(global::System.Management.A
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)this).ElasticityProfileMaxReadyCapacity = (long) content.GetValueForProperty("ElasticityProfileMaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)this).ElasticityProfileMaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("ElasticityProfileMinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)this).ElasticityProfileMinReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal)this).ElasticityProfileMinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializePSObject(content);
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceProperties.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceProperties.cs
index 2fe08ecd1438..f7b67f4490c4 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceProperties.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceProperties.cs
@@ -30,11 +30,18 @@ public partial class StandbyVirtualMachinePoolResourceProperties :
internal Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfile ElasticityProfile { get => (this._elasticityProfile = this._elasticityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolElasticityProfile()); set => this._elasticityProfile = value; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
public long? ElasticityProfileMaxReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)ElasticityProfile).MaxReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)ElasticityProfile).MaxReadyCapacity = value ?? default(long); }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
+ public long? ElasticityProfileMinReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)ElasticityProfile).MinReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileInternal)ElasticityProfile).MinReadyCapacity = value ?? default(long); }
+
/// Internal Acessors for ElasticityProfile
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfile Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourcePropertiesInternal.ElasticityProfile { get => (this._elasticityProfile = this._elasticityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolElasticityProfile()); set { {_elasticityProfile = value;} } }
@@ -81,7 +88,7 @@ public partial interface IStandbyVirtualMachinePoolResourceProperties :
PossibleTypes = new [] { typeof(string) })]
string AttachedVirtualMachineScaleSetId { get; set; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -89,10 +96,24 @@ public partial interface IStandbyVirtualMachinePoolResourceProperties :
Read = true,
Create = true,
Update = true,
- Description = @"Specifies maximum number of virtual machines in the standby virtual machine pool.",
+ Description = @"Specifies the maximum number of virtual machines in the standby virtual machine pool.",
SerializedName = @"maxReadyCapacity",
PossibleTypes = new [] { typeof(long) })]
long? ElasticityProfileMaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity.",
+ SerializedName = @"minReadyCapacity",
+ PossibleTypes = new [] { typeof(long) })]
+ long? ElasticityProfileMinReadyCapacity { get; set; }
/// The status of the last operation.
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -130,9 +151,14 @@ internal partial interface IStandbyVirtualMachinePoolResourcePropertiesInternal
/// Specifies the elasticity profile of the standby virtual machine pools.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfile ElasticityProfile { get; set; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
long? ElasticityProfileMaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ long? ElasticityProfileMinReadyCapacity { get; set; }
/// The status of the last operation.
[global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
string ProvisioningState { get; set; }
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.PowerShell.cs
index 27909dffb6a3..ee39d215228a 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.PowerShell.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.PowerShell.cs
@@ -138,6 +138,10 @@ internal StandbyVirtualMachinePoolResourceUpdate(global::System.Collections.IDic
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal)this).ElasticityProfileMaxReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal)this).ElasticityProfileMaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("ElasticityProfileMinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal)this).ElasticityProfileMinReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal)this).ElasticityProfileMinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializeDictionary(content);
}
@@ -179,6 +183,10 @@ internal StandbyVirtualMachinePoolResourceUpdate(global::System.Management.Autom
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal)this).ElasticityProfileMaxReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal)this).ElasticityProfileMaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("ElasticityProfileMinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal)this).ElasticityProfileMinReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal)this).ElasticityProfileMinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializePSObject(content);
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.cs
index 26191deb7313..ec9bd130c5cc 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdate.cs
@@ -20,11 +20,18 @@ public partial class StandbyVirtualMachinePoolResourceUpdate :
public string AttachedVirtualMachineScaleSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).AttachedVirtualMachineScaleSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).AttachedVirtualMachineScaleSetId = value ?? null; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
public long? ElasticityProfileMaxReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfileMaxReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfileMaxReadyCapacity = value ?? default(long); }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
+ public long? ElasticityProfileMinReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfileMinReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfileMinReadyCapacity = value ?? default(long); }
+
/// Internal Acessors for ElasticityProfile
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateInternal.ElasticityProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)Property).ElasticityProfile = value; }
@@ -34,7 +41,7 @@ public partial class StandbyVirtualMachinePoolResourceUpdate :
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateProperties _property;
- /// The updatable properties of the StandbyVirtualMachinePoolResource.
+ /// The resource-specific properties for this resource.
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
internal Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolResourceUpdateProperties()); set => this._property = value; }
@@ -73,7 +80,7 @@ public partial interface IStandbyVirtualMachinePoolResourceUpdate :
PossibleTypes = new [] { typeof(string) })]
string AttachedVirtualMachineScaleSetId { get; set; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -81,10 +88,24 @@ public partial interface IStandbyVirtualMachinePoolResourceUpdate :
Read = true,
Create = true,
Update = true,
- Description = @"Specifies maximum number of virtual machines in the standby virtual machine pool.",
+ Description = @"Specifies the maximum number of virtual machines in the standby virtual machine pool.",
SerializedName = @"maxReadyCapacity",
PossibleTypes = new [] { typeof(long) })]
long? ElasticityProfileMaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity.",
+ SerializedName = @"minReadyCapacity",
+ PossibleTypes = new [] { typeof(long) })]
+ long? ElasticityProfileMinReadyCapacity { get; set; }
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -121,10 +142,15 @@ internal partial interface IStandbyVirtualMachinePoolResourceUpdateInternal
/// Specifies the elasticity profile of the standby virtual machine pools.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdate ElasticityProfile { get; set; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
long? ElasticityProfileMaxReadyCapacity { get; set; }
- /// The updatable properties of the StandbyVirtualMachinePoolResource.
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ long? ElasticityProfileMinReadyCapacity { get; set; }
+ /// The resource-specific properties for this resource.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateProperties Property { get; set; }
/// Resource tags.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdateTags Tag { get; set; }
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdateProperties.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdateProperties.PowerShell.cs
index 3f6d1e9fe1d6..985bec83d932 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdateProperties.PowerShell.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdateProperties.PowerShell.cs
@@ -130,6 +130,10 @@ internal StandbyVirtualMachinePoolResourceUpdateProperties(global::System.Collec
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)this).ElasticityProfileMaxReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)this).ElasticityProfileMaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("ElasticityProfileMinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)this).ElasticityProfileMinReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)this).ElasticityProfileMinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializeDictionary(content);
}
@@ -163,6 +167,10 @@ internal StandbyVirtualMachinePoolResourceUpdateProperties(global::System.Manage
{
((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)this).ElasticityProfileMaxReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMaxReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)this).ElasticityProfileMaxReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
+ if (content.Contains("ElasticityProfileMinReadyCapacity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)this).ElasticityProfileMinReadyCapacity = (long?) content.GetValueForProperty("ElasticityProfileMinReadyCapacity",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal)this).ElasticityProfileMinReadyCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
AfterDeserializePSObject(content);
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdateProperties.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdateProperties.cs
index 480bf09f5104..36583a1fbccc 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdateProperties.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolResourceUpdateProperties.cs
@@ -30,11 +30,18 @@ public partial class StandbyVirtualMachinePoolResourceUpdateProperties :
internal Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdate ElasticityProfile { get => (this._elasticityProfile = this._elasticityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolElasticityProfileUpdate()); set => this._elasticityProfile = value; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
public long? ElasticityProfileMaxReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)ElasticityProfile).MaxReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)ElasticityProfile).MaxReadyCapacity = value ?? default(long); }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
+ public long? ElasticityProfileMinReadyCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)ElasticityProfile).MinReadyCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdateInternal)ElasticityProfile).MinReadyCapacity = value ?? default(long); }
+
/// Internal Acessors for ElasticityProfile
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdate Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolResourceUpdatePropertiesInternal.ElasticityProfile { get => (this._elasticityProfile = this._elasticityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolElasticityProfileUpdate()); set { {_elasticityProfile = value;} } }
@@ -71,7 +78,7 @@ public partial interface IStandbyVirtualMachinePoolResourceUpdateProperties :
PossibleTypes = new [] { typeof(string) })]
string AttachedVirtualMachineScaleSetId { get; set; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -79,10 +86,24 @@ public partial interface IStandbyVirtualMachinePoolResourceUpdateProperties :
Read = true,
Create = true,
Update = true,
- Description = @"Specifies maximum number of virtual machines in the standby virtual machine pool.",
+ Description = @"Specifies the maximum number of virtual machines in the standby virtual machine pool.",
SerializedName = @"maxReadyCapacity",
PossibleTypes = new [] { typeof(long) })]
long? ElasticityProfileMaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity.",
+ SerializedName = @"minReadyCapacity",
+ PossibleTypes = new [] { typeof(long) })]
+ long? ElasticityProfileMinReadyCapacity { get; set; }
/// Specifies the desired state of virtual machines in the pool.
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
@@ -108,9 +129,14 @@ internal partial interface IStandbyVirtualMachinePoolResourceUpdatePropertiesInt
/// Specifies the elasticity profile of the standby virtual machine pools.
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolElasticityProfileUpdate ElasticityProfile { get; set; }
///
- /// Specifies maximum number of virtual machines in the standby virtual machine pool.
+ /// Specifies the maximum number of virtual machines in the standby virtual machine pool.
///
long? ElasticityProfileMaxReadyCapacity { get; set; }
+ ///
+ /// Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot
+ /// exceed MaxReadyCapacity.
+ ///
+ long? ElasticityProfileMinReadyCapacity { get; set; }
/// Specifies the desired state of virtual machines in the pool.
[global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Running", "Deallocated")]
string VirtualMachineState { get; set; }
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.PowerShell.cs
new file mode 100644
index 000000000000..9ba3db947189
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.PowerShell.cs
@@ -0,0 +1,267 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider.
+ ///
+ [System.ComponentModel.TypeConverter(typeof(StandbyVirtualMachinePoolRuntimeViewResourceTypeConverter))]
+ public partial class StandbyVirtualMachinePoolRuntimeViewResource
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of 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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new StandbyVirtualMachinePoolRuntimeViewResource(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new StandbyVirtualMachinePoolRuntimeViewResource(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from
+ /// a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ ///
+ /// an instance of the model class.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal StandbyVirtualMachinePoolRuntimeViewResource(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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCountSummary"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).InstanceCountSummary = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountSummary",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).InstanceCountSummary, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.VirtualMachineInstanceCountSummaryTypeConverter.ConvertFrom));
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal StandbyVirtualMachinePoolRuntimeViewResource(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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCountSummary"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).InstanceCountSummary = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountSummary",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal)this).InstanceCountSummary, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.VirtualMachineInstanceCountSummaryTypeConverter.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.StandbyPool.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();
+ }
+ }
+ /// Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider.
+ [System.ComponentModel.TypeConverter(typeof(StandbyVirtualMachinePoolRuntimeViewResourceTypeConverter))]
+ public partial interface IStandbyVirtualMachinePoolRuntimeViewResource
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.TypeConverter.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.TypeConverter.cs
new file mode 100644
index 000000000000..bd3fb21ada58
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.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.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourceTypeConverter : 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.StandbyPool.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResource.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResource.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.cs
new file mode 100644
index 000000000000..3f921f295862
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.cs
@@ -0,0 +1,193 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider.
+ ///
+ public partial class StandbyVirtualMachinePoolRuntimeViewResource :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IValidates
+ {
+ ///
+ /// Backing field for Inherited model
+ ///
+ private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ProxyResource();
+
+ ///
+ /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; }
+
+ ///
+ /// A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the
+ /// StandbyPool resource provider.
+ /// If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
+ /// Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ /// Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
+ public System.Collections.Generic.List InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; }
+
+ /// Internal Acessors for Id
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Id = value; }
+
+ /// Internal Acessors for Name
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name = value; }
+
+ /// Internal Acessors for SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData = value; }
+
+ /// Internal Acessors for Type
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type = value; }
+
+ /// Internal Acessors for InstanceCountSummary
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.InstanceCountSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).InstanceCountSummary = value; }
+
+ /// Internal Acessors for Property
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceProperties()); set { {_property = value;} } }
+
+ /// Internal Acessors for ProvisioningState
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState = value; }
+
+ /// The name of the resource
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Name; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties _property;
+
+ /// The resource-specific properties for this resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceProperties()); set => this._property = value; }
+
+ /// Displays the provisioning state of the standby pool
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inlined)]
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)Property).ProvisioningState; }
+
+ /// Gets the resource group name
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ 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.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemData; }
+
+ /// The timestamp of resource creation (UTC).
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// The identity that created the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; }
+
+ /// The type of identity that created the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; }
+
+ /// The timestamp of resource last modification (UTC)
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// The identity that last modified the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// The type of identity that last modified the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; }
+
+ ///
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Inherited)]
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IResourceInternal)__proxyResource).Type; }
+
+ ///
+ /// Creates an new instance.
+ ///
+ public StandbyVirtualMachinePoolRuntimeViewResource()
+ {
+
+ }
+
+ /// 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.StandbyPool.Runtime.IEventListener eventListener)
+ {
+ await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource);
+ await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource);
+ }
+ }
+ /// Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider.
+ public partial interface IStandbyVirtualMachinePoolRuntimeViewResource :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IProxyResource
+ {
+ ///
+ /// A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the
+ /// StandbyPool resource provider.
+ /// If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
+ /// Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ /// Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the StandbyPool resource provider.
+ If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
+ Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ Note: any resources in the Running state may still be installing extensions / not fully provisioned.",
+ SerializedName = @"instanceCountSummary",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IVirtualMachineInstanceCountSummary) })]
+ System.Collections.Generic.List InstanceCountSummary { get; }
+ /// Displays the provisioning state of the standby pool
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"Displays the provisioning state of the standby pool",
+ SerializedName = @"provisioningState",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
+ string ProvisioningState { get; }
+
+ }
+ /// Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider.
+ internal partial interface IStandbyVirtualMachinePoolRuntimeViewResourceInternal :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IProxyResourceInternal
+ {
+ ///
+ /// A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the
+ /// StandbyPool resource provider.
+ /// If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
+ /// Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ /// Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ ///
+ System.Collections.Generic.List InstanceCountSummary { get; set; }
+ /// The resource-specific properties for this resource.
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties Property { get; set; }
+ /// Displays the provisioning state of the standby pool
+ [global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
+ string ProvisioningState { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.json.cs
new file mode 100644
index 000000000000..bff6c8cde1c2
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResource.json.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.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider.
+ ///
+ public partial class StandbyVirtualMachinePoolRuntimeViewResource
+ {
+
+ ///
+ /// 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.StandbyPool.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.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json ? new StandbyVirtualMachinePoolRuntimeViewResource(json) : null;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject instance to deserialize from.
+ internal StandbyVirtualMachinePoolRuntimeViewResource(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ProxyResource(json);
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceProperties.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.StandbyPool.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ __proxyResource?.ToJson(container, serializationMode);
+ AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.PowerShell.cs
new file mode 100644
index 000000000000..4685e8032e45
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.PowerShell.cs
@@ -0,0 +1,177 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ /// The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation.
+ [System.ComponentModel.TypeConverter(typeof(StandbyVirtualMachinePoolRuntimeViewResourceListResultTypeConverter))]
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourceListResult
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of 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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new StandbyVirtualMachinePoolRuntimeViewResourceListResult(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new StandbyVirtualMachinePoolRuntimeViewResourceListResult(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content
+ /// from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ ///
+ /// an instance of the model class.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal StandbyVirtualMachinePoolRuntimeViewResourceListResult(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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NextLink"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal)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 StandbyVirtualMachinePoolRuntimeViewResourceListResult(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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResourceTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("NextLink"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal)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.StandbyPool.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 response of a StandbyVirtualMachinePoolRuntimeViewResource list operation.
+ [System.ComponentModel.TypeConverter(typeof(StandbyVirtualMachinePoolRuntimeViewResourceListResultTypeConverter))]
+ public partial interface IStandbyVirtualMachinePoolRuntimeViewResourceListResult
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.TypeConverter.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.TypeConverter.cs
new file mode 100644
index 000000000000..00ed8d94322e
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.TypeConverter.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourceListResultTypeConverter : 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.StandbyPool.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResourceListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResourceListResult.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResourceListResult.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.cs
new file mode 100644
index 000000000000..a62fa29a8a15
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ /// The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation.
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourceListResult :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal
+ {
+
+ /// Backing field for property.
+ private string _nextLink;
+
+ /// The link to the next page of items
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public string NextLink { get => this._nextLink; set => this._nextLink = value; }
+
+ /// Backing field for property.
+ private System.Collections.Generic.List _value;
+
+ /// The StandbyVirtualMachinePoolRuntimeViewResource items on this page
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List Value { get => this._value; set => this._value = value; }
+
+ ///
+ /// Creates an new instance.
+ ///
+ public StandbyVirtualMachinePoolRuntimeViewResourceListResult()
+ {
+
+ }
+ }
+ /// The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation.
+ public partial interface IStandbyVirtualMachinePoolRuntimeViewResourceListResult :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable
+ {
+ /// The link to the next page of items
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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 StandbyVirtualMachinePoolRuntimeViewResource items on this page
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
+ Description = @"The StandbyVirtualMachinePoolRuntimeViewResource items on this page",
+ SerializedName = @"value",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource) })]
+ System.Collections.Generic.List Value { get; set; }
+
+ }
+ /// The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation.
+ internal partial interface IStandbyVirtualMachinePoolRuntimeViewResourceListResultInternal
+
+ {
+ /// The link to the next page of items
+ string NextLink { get; set; }
+ /// The StandbyVirtualMachinePoolRuntimeViewResource items on this page
+ System.Collections.Generic.List Value { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.json.cs
new file mode 100644
index 000000000000..9dee3feffc54
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceListResult.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.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ /// The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation.
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourceListResult
+ {
+
+ ///
+ /// 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.StandbyPool.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.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json ? new StandbyVirtualMachinePoolRuntimeViewResourceListResult(json) : null;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject instance to deserialize from.
+ internal StandbyVirtualMachinePoolRuntimeViewResourceListResult(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResource) (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolRuntimeViewResource.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.StandbyPool.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.PowerShell.cs
new file mode 100644
index 000000000000..c5cfb655de10
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.PowerShell.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.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ ///
+ [System.ComponentModel.TypeConverter(typeof(StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTypeConverter))]
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourceProperties
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of 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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new StandbyVirtualMachinePoolRuntimeViewResourceProperties(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new StandbyVirtualMachinePoolRuntimeViewResourceProperties(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content
+ /// from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ ///
+ /// an instance of the model class.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal StandbyVirtualMachinePoolRuntimeViewResourceProperties(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("InstanceCountSummary"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)this).InstanceCountSummary = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountSummary",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)this).InstanceCountSummary, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.VirtualMachineInstanceCountSummaryTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)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 StandbyVirtualMachinePoolRuntimeViewResourceProperties(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("InstanceCountSummary"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)this).InstanceCountSummary = (System.Collections.Generic.List) content.GetValueForProperty("InstanceCountSummary",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)this).InstanceCountSummary, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.VirtualMachineInstanceCountSummaryTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal)this).ProvisioningState, 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.StandbyPool.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();
+ }
+ }
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ [System.ComponentModel.TypeConverter(typeof(StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTypeConverter))]
+ public partial interface IStandbyVirtualMachinePoolRuntimeViewResourceProperties
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.TypeConverter.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.TypeConverter.cs
new file mode 100644
index 000000000000..62738fbd1c83
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.TypeConverter.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTypeConverter : 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.StandbyPool.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResourceProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResourceProperties.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return StandbyVirtualMachinePoolRuntimeViewResourceProperties.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/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.cs
new file mode 100644
index 000000000000..84232979686e
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.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.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ ///
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourceProperties :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal
+ {
+
+ /// Backing field for property.
+ private System.Collections.Generic.List _instanceCountSummary;
+
+ ///
+ /// A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the
+ /// StandbyPool resource provider.
+ /// If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
+ /// Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ /// Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public System.Collections.Generic.List InstanceCountSummary { get => this._instanceCountSummary; }
+
+ /// Internal Acessors for InstanceCountSummary
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.InstanceCountSummary { get => this._instanceCountSummary; set { {_instanceCountSummary = value;} } }
+
+ /// Internal Acessors for ProvisioningState
+ string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+
+ /// Backing field for property.
+ private string _provisioningState;
+
+ /// Displays the provisioning state of the standby pool
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
+ public string ProvisioningState { get => this._provisioningState; }
+
+ ///
+ /// Creates an new instance.
+ ///
+ public StandbyVirtualMachinePoolRuntimeViewResourceProperties()
+ {
+
+ }
+ }
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ public partial interface IStandbyVirtualMachinePoolRuntimeViewResourceProperties :
+ Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.IJsonSerializable
+ {
+ ///
+ /// A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the
+ /// StandbyPool resource provider.
+ /// If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
+ /// Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ /// Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = true,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the StandbyPool resource provider.
+ If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
+ Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ Note: any resources in the Running state may still be installing extensions / not fully provisioned.",
+ SerializedName = @"instanceCountSummary",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IVirtualMachineInstanceCountSummary) })]
+ System.Collections.Generic.List InstanceCountSummary { get; }
+ /// Displays the provisioning state of the standby pool
+ [Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
+ Description = @"Displays the provisioning state of the standby pool",
+ SerializedName = @"provisioningState",
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
+ string ProvisioningState { get; }
+
+ }
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ internal partial interface IStandbyVirtualMachinePoolRuntimeViewResourcePropertiesInternal
+
+ {
+ ///
+ /// A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the
+ /// StandbyPool resource provider.
+ /// If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
+ /// Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ /// Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ ///
+ System.Collections.Generic.List InstanceCountSummary { get; set; }
+ /// Displays the provisioning state of the standby pool
+ [global::Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Deleting")]
+ string ProvisioningState { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.json.cs
new file mode 100644
index 000000000000..dfe2c17c1121
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.json.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Extensions;
+
+ ///
+ /// Contains information about a standby pool as last known by the StandbyPool resource provider.
+ ///
+ public partial class StandbyVirtualMachinePoolRuntimeViewResourceProperties
+ {
+
+ ///
+ /// 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.StandbyPool.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.StandbyPool.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.StandbyPool.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.StandbyPool.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachinePoolRuntimeViewResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json ? new StandbyVirtualMachinePoolRuntimeViewResourceProperties(json) : null;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject instance to deserialize from.
+ internal StandbyVirtualMachinePoolRuntimeViewResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ {_instanceCountSummary = If( json?.PropertyT("instanceCountSummary"), out var __jsonInstanceCountSummary) ? If( __jsonInstanceCountSummary as Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.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.StandbyPool.Models.IVirtualMachineInstanceCountSummary) (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.VirtualMachineInstanceCountSummary.FromJson(__u) )) ))() : null : _instanceCountSummary;}
+ {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;}
+ 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.StandbyPool.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead))
+ {
+ if (null != this._instanceCountSummary)
+ {
+ var __w = new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.XNodeArray();
+ foreach( var __x in this._instanceCountSummary )
+ {
+ AddIf(__x?.ToJson(null, serializationMode) ,__w.Add);
+ }
+ container.Add("instanceCountSummary",__w);
+ }
+ }
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead))
+ {
+ AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
+ }
+ AfterToJson(ref container);
+ return container;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.cs
index 248ba31567c3..90b212778b5b 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.cs
@@ -144,7 +144,7 @@ public partial interface IStandbyVirtualMachineResource :
ReadOnly = false,
Read = true,
Create = true,
- Update = false,
+ Update = true,
Description = @"Resource id of the virtual machine.",
SerializedName = @"virtualMachineResourceId",
PossibleTypes = new [] { typeof(string) })]
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.json.cs
index d038ec4e181b..a4bd6043dd67 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResource.json.cs
@@ -104,10 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
return container;
}
__proxyResource?.ToJson(container, serializationMode);
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeCreate))
- {
- AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
- }
+ AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResourceListResult.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResourceListResult.cs
index af561512e385..91a7adf46cc6 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResourceListResult.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResourceListResult.cs
@@ -13,15 +13,12 @@ public partial class StandbyVirtualMachineResourceListResult :
Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourceListResultInternal
{
- /// Internal Acessors for NextLink
- string Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.IStandbyVirtualMachineResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } }
-
/// Backing field for property.
private string _nextLink;
/// The link to the next page of items
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.PropertyOrigin.Owned)]
- public string NextLink { get => this._nextLink; }
+ public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
private System.Collections.Generic.List _value;
@@ -43,14 +40,14 @@ public partial interface IStandbyVirtualMachineResourceListResult :
/// The link to the next page of items
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = false,
- ReadOnly = true,
+ ReadOnly = false,
Read = true,
- Create = false,
- Update = false,
+ Create = true,
+ Update = true,
Description = @"The link to the next page of items",
SerializedName = @"nextLink",
PossibleTypes = new [] { typeof(string) })]
- string NextLink { get; }
+ string NextLink { get; set; }
/// The StandbyVirtualMachineResource items on this page
[Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Info(
Required = true,
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResourceListResult.json.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResourceListResult.json.cs
index 5d78d4e872e5..5f4320c84bfa 100644
--- a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResourceListResult.json.cs
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/StandbyVirtualMachineResourceListResult.json.cs
@@ -112,10 +112,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode ToJs
}
container.Add("value",__w);
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.SerializationMode.IncludeRead))
- {
- AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
- }
+ AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/VirtualMachineInstanceCountSummary.PowerShell.cs b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/VirtualMachineInstanceCountSummary.PowerShell.cs
new file mode 100644
index 000000000000..68b5d03ec05d
--- /dev/null
+++ b/src/StandbyPool/StandbyPool.Autorest/generated/api/Models/VirtualMachineInstanceCountSummary.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.StandbyPool.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PowerShell;
+
+ ///
+ /// Contains the counts of VMs in each power state in a given zone, fault domain, as known by the StandbyPool resource provider.
+ /// Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.
+ /// Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ ///
+ [System.ComponentModel.TypeConverter(typeof(VirtualMachineInstanceCountSummaryTypeConverter))]
+ public partial class VirtualMachineInstanceCountSummary
+ {
+
+ ///
+ ///