Skip to content

Commit 85c9893

Browse files
[skip ci] Archive 6b9629c (#27626)
1 parent 6b9629c commit 85c9893

File tree

299 files changed

+19316
-6993
lines changed

Some content is hidden

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

299 files changed

+19316
-6993
lines changed

generated/DiskPool/DiskPool.Autorest/Az.DiskPool.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<PropertyGroup>
33
<PsModuleName>DiskPool</PsModuleName>
44
<PsRootModuleName>DiskPool</PsRootModuleName>
5+
<PsModuleFolder>DiskPool.Autorest</PsModuleFolder>
56
</PropertyGroup>
67

78
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
89
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
9-
1010
</Project>

generated/DiskPool/DiskPool.Autorest/Az.DiskPool.format.ps1xml

Lines changed: 120 additions & 254 deletions
Large diffs are not rendered by default.

generated/DiskPool/DiskPool.Autorest/Az.DiskPool.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.DiskPool.private.dll'
1313
FormatsToProcess = './Az.DiskPool.format.ps1xml'
14-
FunctionsToExport = 'Get-AzDiskPool', 'Get-AzDiskPoolIscsiTarget', 'Get-AzDiskPoolOutboundNetworkDependencyEndpoint', 'Get-AzDiskPoolResourceSku', 'Get-AzDiskPoolZone', 'Invoke-AzDiskPoolRedeployment', 'New-AzDiskPool', 'New-AzDiskPoolAclObject', 'New-AzDiskPoolIscsiLunObject', 'New-AzDiskPoolIscsiTarget', 'Remove-AzDiskPool', 'Remove-AzDiskPoolIscsiTarget', 'Start-AzDiskPool', 'Stop-AzDiskPool', 'Update-AzDiskPool', 'Update-AzDiskPoolIscsiTarget', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzDiskPool', 'Get-AzDiskPoolIscsiTarget', 'Get-AzDiskPoolOutboundNetworkDependencyEndpoint', 'Get-AzDiskPoolResourceSku', 'Get-AzDiskPoolZone', 'Invoke-AzDiskPoolRedeployment', 'New-AzDiskPool', 'New-AzDiskPoolAclObject', 'New-AzDiskPoolIscsiLunObject', 'New-AzDiskPoolIscsiTarget', 'Remove-AzDiskPool', 'Remove-AzDiskPoolIscsiTarget', 'Start-AzDiskPool', 'Stop-AzDiskPool', 'Update-AzDiskPool', 'Update-AzDiskPoolIscsiTarget'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DiskPool'
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
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 - DiskPool")]
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)]
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 - DiskPool")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+
2328

24-
[assembly: ComVisible(false)]
25-
[assembly: CLSCompliant(false)]
26-
[assembly: Guid("d09d4475-3b47-46a3-a08f-09d9e88e264c")]
27-
[assembly: AssemblyVersion("0.3.2")]
28-
[assembly: AssemblyFileVersion("0.3.2")]

generated/DiskPool/DiskPool.Autorest/check-dependencies.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
15+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
1616
$ErrorActionPreference = 'Stop'
1717

18-
if(-not $Isolated) {
18+
if(-not $NotIsolated) {
1919
Write-Host -ForegroundColor Green 'Creating isolated process...'
2020
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
21-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
21+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2222
return
2323
}
2424

generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPool.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ New-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -Loc
3131
.Inputs
3232
Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolIdentity
3333
.Outputs
34-
Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IDiskPool
34+
Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool
3535
.Notes
3636
COMPLEX PARAMETER PROPERTIES
3737
@@ -48,7 +48,7 @@ INPUTOBJECT <IDiskPoolIdentity>: Identity Parameter
4848
https://learn.microsoft.com/powershell/module/az.diskpool/get-azdiskpool
4949
#>
5050
function Get-AzDiskPool {
51-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IDiskPool])]
51+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool])]
5252
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5353
param(
5454
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -79,7 +79,6 @@ param(
7979
[Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category('Path')]
8080
[Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolIdentity]
8181
# Identity Parameter
82-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8382
${InputObject},
8483

8584
[Parameter()]
@@ -138,6 +137,15 @@ begin {
138137
$PSBoundParameters['OutBuffer'] = 1
139138
}
140139
$parameterSet = $PSCmdlet.ParameterSetName
140+
141+
$testPlayback = $false
142+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
143+
144+
$context = Get-AzContext
145+
if (-not $context -and -not $testPlayback) {
146+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
147+
exit
148+
}
141149

142150
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
143151
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -162,9 +170,7 @@ begin {
162170
List = 'Az.DiskPool.private\Get-AzDiskPool_List';
163171
List1 = 'Az.DiskPool.private\Get-AzDiskPool_List1';
164172
}
165-
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
166-
$testPlayback = $false
167-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
173+
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
168174
if ($testPlayback) {
169175
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
170176
} else {
@@ -178,6 +184,9 @@ begin {
178184
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
179185
}
180186
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
187+
if ($wrappedCmd -eq $null) {
188+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
189+
}
181190
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
182191
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
183192
$steppablePipeline.Begin($PSCmdlet)

generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolIscsiTarget.ps1

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,20 @@ New-AzDiskPoolIscsiTarget -DiskPoolName 'disk-pool-5' -Name 'target1' -ResourceG
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IIscsiTarget
32+
Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
3636
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.
3737
38+
DISKPOOLINPUTOBJECT <IDiskPoolIdentity>: Identity Parameter
39+
[DiskPoolName <String>]: The name of the Disk Pool.
40+
[Id <String>]: Resource identity path
41+
[IscsiTargetName <String>]: The name of the iSCSI Target.
42+
[Location <String>]: The location of the resource.
43+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
44+
[SubscriptionId <String>]: The ID of the target subscription.
45+
3846
INPUTOBJECT <IDiskPoolIdentity>: Identity Parameter
3947
[DiskPoolName <String>]: The name of the Disk Pool.
4048
[Id <String>]: Resource identity path
@@ -46,7 +54,7 @@ INPUTOBJECT <IDiskPoolIdentity>: Identity Parameter
4654
https://learn.microsoft.com/powershell/module/az.diskpool/get-azdiskpooliscsitarget
4755
#>
4856
function Get-AzDiskPoolIscsiTarget {
49-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IIscsiTarget])]
57+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget])]
5058
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5159
param(
5260
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -57,6 +65,7 @@ param(
5765
${DiskPoolName},
5866

5967
[Parameter(ParameterSetName='Get', Mandatory)]
68+
[Parameter(ParameterSetName='GetViaIdentityDiskPool', Mandatory)]
6069
[Alias('IscsiTargetName')]
6170
[Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category('Path')]
6271
[System.String]
@@ -83,9 +92,14 @@ param(
8392
[Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category('Path')]
8493
[Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolIdentity]
8594
# Identity Parameter
86-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8795
${InputObject},
8896

97+
[Parameter(ParameterSetName='GetViaIdentityDiskPool', Mandatory, ValueFromPipeline)]
98+
[Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category('Path')]
99+
[Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolIdentity]
100+
# Identity Parameter
101+
${DiskPoolInputObject},
102+
89103
[Parameter()]
90104
[Alias('AzureRMContext', 'AzureCredential')]
91105
[ValidateNotNull()]
@@ -142,6 +156,15 @@ begin {
142156
$PSBoundParameters['OutBuffer'] = 1
143157
}
144158
$parameterSet = $PSCmdlet.ParameterSetName
159+
160+
$testPlayback = $false
161+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
162+
163+
$context = Get-AzContext
164+
if (-not $context -and -not $testPlayback) {
165+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
166+
exit
167+
}
145168

146169
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
147170
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -163,11 +186,10 @@ begin {
163186
$mapping = @{
164187
Get = 'Az.DiskPool.private\Get-AzDiskPoolIscsiTarget_Get';
165188
GetViaIdentity = 'Az.DiskPool.private\Get-AzDiskPoolIscsiTarget_GetViaIdentity';
189+
GetViaIdentityDiskPool = 'Az.DiskPool.private\Get-AzDiskPoolIscsiTarget_GetViaIdentityDiskPool';
166190
List = 'Az.DiskPool.private\Get-AzDiskPoolIscsiTarget_List';
167191
}
168-
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
169-
$testPlayback = $false
170-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
192+
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
171193
if ($testPlayback) {
172194
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
173195
} else {
@@ -181,6 +203,9 @@ begin {
181203
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
182204
}
183205
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
206+
if ($wrappedCmd -eq $null) {
207+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
208+
}
184209
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
185210
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
186211
$steppablePipeline.Begin($PSCmdlet)

generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.ps1

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Gets the network endpoints of all outbound dependencies of a Disk Pool
2323
Get-AzDiskPoolOutboundNetworkDependencyEndpoint -DiskPoolName disk-pool-1 -ResourceGroupName storagepool-rg-test | Format-Table -Wrap
2424
2525
.Outputs
26-
Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IOutboundEnvironmentEndpoint
26+
Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IOutboundEnvironmentEndpoint
2727
.Link
2828
https://learn.microsoft.com/powershell/module/az.diskpool/get-azdiskpooloutboundnetworkdependencyendpoint
2929
#>
3030
function Get-AzDiskPoolOutboundNetworkDependencyEndpoint {
31-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Api20210801.IOutboundEnvironmentEndpoint])]
31+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IOutboundEnvironmentEndpoint])]
3232
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
3333
param(
3434
[Parameter(Mandatory)]
@@ -107,6 +107,15 @@ begin {
107107
$PSBoundParameters['OutBuffer'] = 1
108108
}
109109
$parameterSet = $PSCmdlet.ParameterSetName
110+
111+
$testPlayback = $false
112+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
113+
114+
$context = Get-AzContext
115+
if (-not $context -and -not $testPlayback) {
116+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
117+
exit
118+
}
110119

111120
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
112121
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -128,9 +137,7 @@ begin {
128137
$mapping = @{
129138
List = 'Az.DiskPool.private\Get-AzDiskPoolOutboundNetworkDependencyEndpoint_List';
130139
}
131-
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
132-
$testPlayback = $false
133-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
140+
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
134141
if ($testPlayback) {
135142
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
136143
} else {
@@ -144,6 +151,9 @@ begin {
144151
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
145152
}
146153
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
154+
if ($wrappedCmd -eq $null) {
155+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
156+
}
147157
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
148158
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
149159
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)