Skip to content

Commit 874fe8d

Browse files
[skip ci] Archive cb824b8 (#27642)
1 parent cb824b8 commit 874fe8d

File tree

127 files changed

+3792
-1218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+3792
-1218
lines changed

generated/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.format.ps1xml

+76-20
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
<Configuration>
33
<ViewDefinitions>
44
<View>
5-
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupProfile</Name>
5+
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupInstanceCountSummary</Name>
66
<ViewSelectedBy>
7-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupProfile#Multiple</TypeName>
7+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupInstanceCountSummary#Multiple</TypeName>
88
</ViewSelectedBy>
99
<TableControl>
1010
<TableHeaders>
1111
<TableColumnHeader>
12-
<Label>Revision</Label>
12+
<Label>Zone</Label>
1313
</TableColumnHeader>
1414
</TableHeaders>
1515
<TableRowEntries>
1616
<TableRowEntry>
1717
<TableColumnItems>
1818
<TableColumnItem>
19-
<PropertyName>Revision</PropertyName>
19+
<PropertyName>Zone</PropertyName>
2020
</TableColumnItem>
2121
</TableColumnItems>
2222
</TableRowEntry>
2323
</TableRowEntries>
2424
</TableControl>
2525
</View>
2626
<View>
27-
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupProfileUpdate</Name>
27+
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupProfile</Name>
2828
<ViewSelectedBy>
29-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupProfileUpdate#Multiple</TypeName>
29+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.ContainerGroupProfile#Multiple</TypeName>
3030
</ViewSelectedBy>
3131
<TableControl>
3232
<TableHeaders>
@@ -182,9 +182,65 @@
182182
</TableControl>
183183
</View>
184184
<View>
185-
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolResourceStateCount</Name>
185+
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolContainerGroupStateCount</Name>
186+
<ViewSelectedBy>
187+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolContainerGroupStateCount#Multiple</TypeName>
188+
</ViewSelectedBy>
189+
<TableControl>
190+
<TableHeaders>
191+
<TableColumnHeader>
192+
<Label>Count</Label>
193+
</TableColumnHeader>
194+
<TableColumnHeader>
195+
<Label>State</Label>
196+
</TableColumnHeader>
197+
</TableHeaders>
198+
<TableRowEntries>
199+
<TableRowEntry>
200+
<TableColumnItems>
201+
<TableColumnItem>
202+
<PropertyName>Count</PropertyName>
203+
</TableColumnItem>
204+
<TableColumnItem>
205+
<PropertyName>State</PropertyName>
206+
</TableColumnItem>
207+
</TableColumnItems>
208+
</TableRowEntry>
209+
</TableRowEntries>
210+
</TableControl>
211+
</View>
212+
<View>
213+
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolStatus</Name>
186214
<ViewSelectedBy>
187-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolResourceStateCount#Multiple</TypeName>
215+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolStatus#Multiple</TypeName>
216+
</ViewSelectedBy>
217+
<TableControl>
218+
<TableHeaders>
219+
<TableColumnHeader>
220+
<Label>Code</Label>
221+
</TableColumnHeader>
222+
<TableColumnHeader>
223+
<Label>Message</Label>
224+
</TableColumnHeader>
225+
</TableHeaders>
226+
<TableRowEntries>
227+
<TableRowEntry>
228+
<TableColumnItems>
229+
<TableColumnItem>
230+
<PropertyName>Code</PropertyName>
231+
</TableColumnItem>
232+
<TableColumnItem>
233+
<PropertyName>Message</PropertyName>
234+
</TableColumnItem>
235+
</TableColumnItems>
236+
</TableRowEntry>
237+
</TableRowEntries>
238+
</TableControl>
239+
</View>
240+
<View>
241+
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolVirtualMachineStateCount</Name>
242+
<ViewSelectedBy>
243+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.PoolVirtualMachineStateCount#Multiple</TypeName>
188244
</ViewSelectedBy>
189245
<TableControl>
190246
<TableHeaders>
@@ -318,27 +374,27 @@
318374
</TableControl>
319375
</View>
320376
<View>
321-
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolElasticityProfileUpdate</Name>
377+
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolPrediction</Name>
322378
<ViewSelectedBy>
323-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolElasticityProfileUpdate#Multiple</TypeName>
379+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyContainerGroupPoolPrediction#Multiple</TypeName>
324380
</ViewSelectedBy>
325381
<TableControl>
326382
<TableHeaders>
327383
<TableColumnHeader>
328-
<Label>MaxReadyCapacity</Label>
384+
<Label>ForecastInfo</Label>
329385
</TableColumnHeader>
330386
<TableColumnHeader>
331-
<Label>RefillPolicy</Label>
387+
<Label>ForecastStartTime</Label>
332388
</TableColumnHeader>
333389
</TableHeaders>
334390
<TableRowEntries>
335391
<TableRowEntry>
336392
<TableColumnItems>
337393
<TableColumnItem>
338-
<PropertyName>MaxReadyCapacity</PropertyName>
394+
<PropertyName>ForecastInfo</PropertyName>
339395
</TableColumnItem>
340396
<TableColumnItem>
341-
<PropertyName>RefillPolicy</PropertyName>
397+
<PropertyName>ForecastStartTime</PropertyName>
342398
</TableColumnItem>
343399
</TableColumnItems>
344400
</TableRowEntry>
@@ -670,27 +726,27 @@
670726
</TableControl>
671727
</View>
672728
<View>
673-
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolElasticityProfileUpdate</Name>
729+
<Name>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolPrediction</Name>
674730
<ViewSelectedBy>
675-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolElasticityProfileUpdate#Multiple</TypeName>
731+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Models.StandbyVirtualMachinePoolPrediction#Multiple</TypeName>
676732
</ViewSelectedBy>
677733
<TableControl>
678734
<TableHeaders>
679735
<TableColumnHeader>
680-
<Label>MaxReadyCapacity</Label>
736+
<Label>ForecastInfo</Label>
681737
</TableColumnHeader>
682738
<TableColumnHeader>
683-
<Label>MinReadyCapacity</Label>
739+
<Label>ForecastStartTime</Label>
684740
</TableColumnHeader>
685741
</TableHeaders>
686742
<TableRowEntries>
687743
<TableRowEntry>
688744
<TableColumnItems>
689745
<TableColumnItem>
690-
<PropertyName>MaxReadyCapacity</PropertyName>
746+
<PropertyName>ForecastInfo</PropertyName>
691747
</TableColumnItem>
692748
<TableColumnItem>
693-
<PropertyName>MinReadyCapacity</PropertyName>
749+
<PropertyName>ForecastStartTime</PropertyName>
694750
</TableColumnItem>
695751
</TableColumnItems>
696752
</TableRowEntry>
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
// ----------------------------------------------------------------------------------
2-
//
3-
// Copyright Microsoft Corporation
4-
// Licensed under the Apache License, Version 2.0 (the "License");
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
53
// you may not use this file except in compliance with the License.
64
// You may obtain a copy of the License at
75
// http://www.apache.org/licenses/LICENSE-2.0
86
// Unless required by applicable law or agreed to in writing, software
9-
// distributed under the License is distributed on an "AS IS" BASIS,
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
108
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
// See the License for the specific language governing permissions and
1210
// limitations under the License.
13-
// ----------------------------------------------------------------------------------
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
1413

1514
using System;
1615
using System.Reflection;
16+
using System.Runtime.CompilerServices;
1717
using System.Runtime.InteropServices;
1818

19-
[assembly: AssemblyTitle("Microsoft Azure Powershell - StandbyPool")]
20-
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
21-
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
22-
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
23-
24-
[assembly: ComVisible(false)]
25-
[assembly: CLSCompliant(false)]
26-
[assembly: Guid("31490496-dae5-4647-86bb-0525963e0b39")]
27-
[assembly: AssemblyVersion("0.2.1")]
28-
[assembly: AssemblyFileVersion("0.2.1")]
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StandbyPool")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPool.ps1

+12-2
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ begin {
136136
$PSBoundParameters['OutBuffer'] = 1
137137
}
138138
$parameterSet = $PSCmdlet.ParameterSetName
139+
140+
$testPlayback = $false
141+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
142+
143+
$context = Get-AzContext
144+
if (-not $context -and -not $testPlayback) {
145+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
146+
exit
147+
}
139148

140149
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
141150
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -161,8 +170,6 @@ begin {
161170
List1 = 'Az.StandbyPool.private\Get-AzStandbyContainerGroupPool_List1';
162171
}
163172
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
164-
$testPlayback = $false
165-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
166173
if ($testPlayback) {
167174
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
168175
} else {
@@ -176,6 +183,9 @@ begin {
176183
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
177184
}
178185
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
186+
if ($wrappedCmd -eq $null) {
187+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
188+
}
179189
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
180190
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
181191
$steppablePipeline.Begin($PSCmdlet)

generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyContainerGroupPoolStatus.ps1

+12-2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ begin {
150150
$PSBoundParameters['OutBuffer'] = 1
151151
}
152152
$parameterSet = $PSCmdlet.ParameterSetName
153+
154+
$testPlayback = $false
155+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
156+
157+
$context = Get-AzContext
158+
if (-not $context -and -not $testPlayback) {
159+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
160+
exit
161+
}
153162

154163
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
155164
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -175,8 +184,6 @@ begin {
175184
List = 'Az.StandbyPool.private\Get-AzStandbyContainerGroupPoolStatus_List';
176185
}
177186
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
178-
$testPlayback = $false
179-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
180187
if ($testPlayback) {
181188
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
182189
} else {
@@ -193,6 +200,9 @@ begin {
193200
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
194201
}
195202
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
203+
if ($wrappedCmd -eq $null) {
204+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
205+
}
196206
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
197207
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
198208
$steppablePipeline.Begin($PSCmdlet)

generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPool.ps1

+12-2
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ begin {
136136
$PSBoundParameters['OutBuffer'] = 1
137137
}
138138
$parameterSet = $PSCmdlet.ParameterSetName
139+
140+
$testPlayback = $false
141+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
142+
143+
$context = Get-AzContext
144+
if (-not $context -and -not $testPlayback) {
145+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
146+
exit
147+
}
139148

140149
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
141150
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -161,8 +170,6 @@ begin {
161170
List1 = 'Az.StandbyPool.private\Get-AzStandbyVMPool_List1';
162171
}
163172
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
164-
$testPlayback = $false
165-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
166173
if ($testPlayback) {
167174
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
168175
} else {
@@ -176,6 +183,9 @@ begin {
176183
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
177184
}
178185
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
186+
if ($wrappedCmd -eq $null) {
187+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
188+
}
179189
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
180190
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
181191
$steppablePipeline.Begin($PSCmdlet)

generated/StandbyPool/StandbyPool.Autorest/exports/Get-AzStandbyVMPoolStatus.ps1

+12-2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ begin {
150150
$PSBoundParameters['OutBuffer'] = 1
151151
}
152152
$parameterSet = $PSCmdlet.ParameterSetName
153+
154+
$testPlayback = $false
155+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
156+
157+
$context = Get-AzContext
158+
if (-not $context -and -not $testPlayback) {
159+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
160+
exit
161+
}
153162

154163
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
155164
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -175,8 +184,6 @@ begin {
175184
List = 'Az.StandbyPool.private\Get-AzStandbyVMPoolStatus_List';
176185
}
177186
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
178-
$testPlayback = $false
179-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
180187
if ($testPlayback) {
181188
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
182189
} else {
@@ -193,6 +200,9 @@ begin {
193200
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
194201
}
195202
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
203+
if ($wrappedCmd -eq $null) {
204+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
205+
}
196206
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
197207
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
198208
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)