Skip to content

Commit a6cbecc

Browse files
[skip ci] Archive e961c97 (Azure#27578)
1 parent cc2f73e commit a6cbecc

File tree

234 files changed

+9197
-6296
lines changed

Some content is hidden

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

234 files changed

+9197
-6296
lines changed

generated/ConnectedKubernetes/ConnectedKubernetes.Autorest/Az.ConnectedKubernetes.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<PropertyGroup>
33
<PsModuleName>ConnectedKubernetes</PsModuleName>
44
<PsRootModuleName>ConnectedKubernetes</PsRootModuleName>
5+
<PsModuleFolder>ConnectedKubernetes.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/ConnectedKubernetes/ConnectedKubernetes.Autorest/Az.ConnectedKubernetes.format.ps1xml

Lines changed: 188 additions & 194 deletions
Large diffs are not rendered by default.

generated/ConnectedKubernetes/ConnectedKubernetes.Autorest/Az.ConnectedKubernetes.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.ConnectedKubernetes.private.dll'
1313
FormatsToProcess = './Az.ConnectedKubernetes.format.ps1xml'
14-
FunctionsToExport = 'Get-AzConnectedKubernetes', 'Get-AzConnectedKubernetesUserCredential', 'New-AzConnectedKubernetes', 'Remove-AzConnectedKubernetes', 'Set-AzConnectedKubernetes', 'Update-AzConnectedKubernetes', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzConnectedKubernetes', 'Get-AzConnectedKubernetesUserCredential', 'New-AzConnectedKubernetes', 'Remove-AzConnectedKubernetes', 'Set-AzConnectedKubernetes', 'Update-AzConnectedKubernetes'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ConnectedKubernetes'

generated/ConnectedKubernetes/ConnectedKubernetes.Autorest/Properties/AssemblyInfo.cs

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
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 - ConnectedKubernetes")]
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 - ConnectedKubernetes")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.14.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.14.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+
28+
29+
30+
31+
2332

24-
[assembly: ComVisible(false)]
25-
[assembly: CLSCompliant(false)]
26-
[assembly: Guid("57c436a1-0e82-42cb-a1a6-f727667af406")]
27-
[assembly: AssemblyVersion("0.14.0")]
28-
[assembly: AssemblyFileVersion("0.14.0")]

generated/ConnectedKubernetes/ConnectedKubernetes.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/ConnectedKubernetes/ConnectedKubernetes.Autorest/exports/Get-AzConnectedKubernetes.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Get-AzConnectedKubernetes -InputObject $conAks
3232
.Inputs
3333
Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity
3434
.Outputs
35-
Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview.IConnectedCluster
35+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedCluster
3636
.Notes
3737
COMPLEX PARAMETER PROPERTIES
3838
@@ -47,7 +47,7 @@ INPUTOBJECT <IConnectedKubernetesIdentity>: Identity Parameter
4747
https://learn.microsoft.com/powershell/module/az.connectedkubernetes/get-azconnectedkubernetes
4848
#>
4949
function Get-AzConnectedKubernetes {
50-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview.IConnectedCluster])]
50+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedCluster])]
5151
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
5252
param(
5353
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -78,7 +78,6 @@ param(
7878
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Path')]
7979
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity]
8080
# Identity Parameter
81-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8281
${InputObject},
8382

8483
[Parameter()]
@@ -137,6 +136,15 @@ begin {
137136
$PSBoundParameters['OutBuffer'] = 1
138137
}
139138
$parameterSet = $PSCmdlet.ParameterSetName
139+
140+
$testPlayback = $false
141+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.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+
}
140148

141149
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
142150
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -161,9 +169,7 @@ begin {
161169
List = 'Az.ConnectedKubernetes.private\Get-AzConnectedKubernetes_List';
162170
List1 = 'Az.ConnectedKubernetes.private\Get-AzConnectedKubernetes_List1';
163171
}
164-
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
165-
$testPlayback = $false
166-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
172+
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
167173
if ($testPlayback) {
168174
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
169175
} else {
@@ -177,6 +183,9 @@ begin {
177183
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
178184
}
179185
$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+
}
180189
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
181190
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
182191
$steppablePipeline.Begin($PSCmdlet)

generated/ConnectedKubernetes/ConnectedKubernetes.Autorest/exports/Get-AzConnectedKubernetesUserCredential.ps1

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ Get-AzConnectedKubernetesUserCredential -ClusterName azps_test_cluster -Resource
2525
Get-AzConnectedKubernetesUserCredential -ClusterName azps_test_cluster -ResourceGroupName azps_test_group -AuthenticationMethod Token -ClientProxy:$false
2626
2727
.Inputs
28-
Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview.IListClusterUserCredentialProperties
28+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IListClusterUserCredentialProperties
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview.ICredentialResults
30+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.ICredentialResults
3131
.Notes
3232
COMPLEX PARAMETER PROPERTIES
3333
3434
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.
3535
3636
PROPERTY <IListClusterUserCredentialProperties>: .
37-
AuthenticationMethod <AuthenticationMethod>: The mode of client authentication.
37+
AuthenticationMethod <String>: The mode of client authentication.
3838
ClientProxy <Boolean>: Boolean value to indicate whether the request is for client side proxy or not
3939
.Link
4040
https://learn.microsoft.com/powershell/module/az.connectedkubernetes/get-azconnectedkubernetesusercredential
4141
#>
4242
function Get-AzConnectedKubernetesUserCredential {
43-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview.ICredentialResults])]
43+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.ICredentialResults])]
4444
[CmdletBinding(DefaultParameterSetName='ListExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
4545
param(
4646
[Parameter(Mandatory)]
@@ -66,15 +66,14 @@ param(
6666

6767
[Parameter(ParameterSetName='List', Mandatory, ValueFromPipeline)]
6868
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')]
69-
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview.IListClusterUserCredentialProperties]
69+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IListClusterUserCredentialProperties]
7070
# .
71-
# To construct, see NOTES section for PROPERTY properties and create a hash table.
7271
${Property},
7372

7473
[Parameter(ParameterSetName='ListExpanded', Mandatory)]
75-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.AuthenticationMethod])]
74+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.PSArgumentCompleterAttribute("Token", "AAD")]
7675
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')]
77-
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.AuthenticationMethod]
76+
[System.String]
7877
# The mode of client authentication.
7978
${AuthenticationMethod},
8079

@@ -84,6 +83,18 @@ param(
8483
# Boolean value to indicate whether the request is for client side proxy or not
8584
${ClientProxy},
8685

86+
[Parameter(ParameterSetName='ListViaJsonFilePath', Mandatory)]
87+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')]
88+
[System.String]
89+
# Path of Json file supplied to the List operation
90+
${JsonFilePath},
91+
92+
[Parameter(ParameterSetName='ListViaJsonString', Mandatory)]
93+
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category('Body')]
94+
[System.String]
95+
# Json string supplied to the List operation
96+
${JsonString},
97+
8798
[Parameter()]
8899
[Alias('AzureRMContext', 'AzureCredential')]
89100
[ValidateNotNull()]
@@ -140,6 +151,15 @@ begin {
140151
$PSBoundParameters['OutBuffer'] = 1
141152
}
142153
$parameterSet = $PSCmdlet.ParameterSetName
154+
155+
$testPlayback = $false
156+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
157+
158+
$context = Get-AzContext
159+
if (-not $context -and -not $testPlayback) {
160+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
161+
exit
162+
}
143163

144164
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
145165
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -161,10 +181,10 @@ begin {
161181
$mapping = @{
162182
List = 'Az.ConnectedKubernetes.private\Get-AzConnectedKubernetesUserCredential_List';
163183
ListExpanded = 'Az.ConnectedKubernetes.private\Get-AzConnectedKubernetesUserCredential_ListExpanded';
184+
ListViaJsonFilePath = 'Az.ConnectedKubernetes.private\Get-AzConnectedKubernetesUserCredential_ListViaJsonFilePath';
185+
ListViaJsonString = 'Az.ConnectedKubernetes.private\Get-AzConnectedKubernetesUserCredential_ListViaJsonString';
164186
}
165-
if (('List', 'ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
166-
$testPlayback = $false
167-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
187+
if (('List', 'ListExpanded', 'ListViaJsonFilePath', 'ListViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
168188
if ($testPlayback) {
169189
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
170190
} else {
@@ -178,6 +198,9 @@ begin {
178198
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
179199
}
180200
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
201+
if ($wrappedCmd -eq $null) {
202+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
203+
}
181204
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
182205
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
183206
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)