Skip to content

Commit 6981fa4

Browse files
Migrate HdInsightOnAks from generation to main (#25611)
* Move HdInsightOnAks to main * Update ChangeLog.md * Update SignatureIssues.csv --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent d26c1bc commit 6981fa4

File tree

458 files changed

+55014
-11687
lines changed

Some content is hidden

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

458 files changed

+55014
-11687
lines changed

src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml

Lines changed: 1459 additions & 37 deletions
Large diffs are not rendered by default.

src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.HdInsightOnAks.private.dll'
1313
FormatsToProcess = './Az.HdInsightOnAks.format.ps1xml'
14-
FunctionsToExport = 'Get-AzHdInsightOnAksAvailableClusterPoolVersion', 'Get-AzHdInsightOnAksAvailableClusterVersion', 'Get-AzHdInsightOnAksCluster', 'Get-AzHdInsightOnAksClusterAvailableUpgrade', 'Get-AzHdInsightOnAksClusterInstanceView', 'Get-AzHdInsightOnAksClusterJob', 'Get-AzHdInsightOnAksClusterPool', 'Get-AzHdInsightOnAksClusterPoolAvailableUpgrade', 'Get-AzHdInsightOnAksClusterServiceConfig', 'New-AzHdInsightOnAksCluster', 'New-AzHdInsightOnAksClusterConfigFileObject', 'New-AzHdInsightOnAksClusterHotfixUpgradeObject', 'New-AzHdInsightOnAksClusterPool', 'New-AzHdInsightOnAksClusterPoolAKSUpgradeObject', 'New-AzHdInsightOnAksClusterServiceConfigObject', 'New-AzHdInsightOnAksClusterServiceConfigsProfileObject', 'New-AzHdInsightOnAksFlinkJobObject', 'New-AzHdInsightOnAksNodeProfileObject', 'New-AzHdInsightOnAksSecretReferenceObject', 'New-AzHdInsightOnAksTrinoHiveCatalogObject', 'Remove-AzHdInsightOnAksCluster', 'Remove-AzHdInsightOnAksClusterPool', 'Resize-AzHdInsightOnAksCluster', 'Set-AzHdInsightOnAksClusterPool', 'Start-AzHdInsightOnAksClusterJob', 'Test-AzHdInsightOnAksLocationNameAvailability', 'Update-AzHdInsightOnAksCluster', 'Update-AzHdInsightOnAksClusterPool', 'Update-AzHdInsightOnAksClusterPoolTag'
14+
FunctionsToExport = 'Get-AzHdInsightOnAksAvailableClusterPoolVersion', 'Get-AzHdInsightOnAksAvailableClusterVersion', 'Get-AzHdInsightOnAksCluster', 'Get-AzHdInsightOnAksClusterAvailableUpgrade', 'Get-AzHdInsightOnAksClusterInstanceView', 'Get-AzHdInsightOnAksClusterJob', 'Get-AzHdInsightOnAksClusterLibrary', 'Get-AzHdInsightOnAksClusterPool', 'Get-AzHdInsightOnAksClusterPoolAvailableUpgrade', 'Get-AzHdInsightOnAksClusterPoolUpgradeHistory', 'Get-AzHdInsightOnAksClusterServiceConfig', 'Get-AzHdInsightOnAksClusterUpgradeHistory', 'Invoke-AzHdInsightOnAksManageClusterLibrary', 'New-AzHdInsightOnAksCluster', 'New-AzHdInsightOnAksClusterConfigFileObject', 'New-AzHdInsightOnAksClusterHotfixUpgradeObject', 'New-AzHdInsightOnAksClusterMavenLibraryObject', 'New-AzHdInsightOnAksClusterPool', 'New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject', 'New-AzHdInsightOnAksClusterPyPiLibraryObject', 'New-AzHdInsightOnAksClusterServiceConfigObject', 'New-AzHdInsightOnAksClusterServiceConfigsProfileObject', 'New-AzHdInsightOnAksFlinkJobObject', 'New-AzHdInsightOnAksManagedIdentityObject', 'New-AzHdInsightOnAksNodeProfileObject', 'New-AzHdInsightOnAksSecretReferenceObject', 'New-AzHdInsightOnAksTrinoHiveCatalogObject', 'Remove-AzHdInsightOnAksCluster', 'Remove-AzHdInsightOnAksClusterPool', 'Resize-AzHdInsightOnAksCluster', 'Set-AzHdInsightOnAksClusterPool', 'Start-AzHdInsightOnAksClusterJob', 'Test-AzHdInsightOnAksLocationNameAvailability', 'Update-AzHdInsightOnAksCluster', 'Update-AzHdInsightOnAksClusterPoolTag', 'Upgrade-AzHdInsightOnAksCluster', 'Upgrade-AzHdInsightOnAksClusterManualRollback', 'Upgrade-AzHdInsightOnAksClusterPool'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HdInsightOnAks'

src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ In this directory, run AutoRest:
4646
### General settings
4747
> Values
4848
``` yaml
49-
tag: package-preview-2023-11
50-
commit: 754d31188c080f20b8155acdf8b8fbd77dace467
49+
tag: package-preview-2024-05
50+
commit: c766bb559e93067acf5a852e63f7edcee75a2f5b
5151
require:
5252
- $(this-folder)/../../readme.azure.noprofile.md
5353
- $(repo)/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md
@@ -71,6 +71,25 @@ default-exclude-tableview-properties: true
7171
``` yaml
7272
identity-correction-for-post: true
7373
directive:
74+
- model-cmdlet:
75+
- model-name: ManagedIdentitySpec
76+
cmdlet-name: New-AzHdInsightOnAksManagedIdentityObject
77+
- model-name: ClusterHotfixUpgradeProperties
78+
cmdlet-name: New-AzHdInsightOnAksClusterHotfixUpgradeObject
79+
- model-name: ClusterPoolAksPatchVersionUpgradeProperties
80+
cmdlet-name: New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject
81+
- model-name: NodeProfile
82+
cmdlet-name: New-AzHdInsightOnAksNodeProfileObject
83+
- model-name: SecretReference
84+
cmdlet-name: New-AzHdInsightOnAksSecretReferenceObject
85+
- model-name: HiveCatalogOption
86+
cmdlet-name: New-AzHdInsightOnAksTrinoHiveCatalogObject
87+
- model-name: ClusterConfigFile
88+
cmdlet-name: New-AzHdInsightOnAksClusterConfigFileObject
89+
- model-name: ClusterServiceConfig
90+
cmdlet-name: New-AzHdInsightOnAksClusterServiceConfigObject
91+
- model-name: ClusterServiceConfigsProfile
92+
cmdlet-name: New-AzHdInsightOnAksClusterServiceConfigsProfileObject
7493
- from: swagger-document
7594
where: $.paths..responses.202
7695
transform: delete $.headers
@@ -122,7 +141,17 @@ directive:
122141
model-name: ClusterVersion
123142
property-name: PropertiesClusterVersion
124143
set:
125-
property-name: ClusterVersionValue
144+
property-name: ClusterVersionValue
145+
- where:
146+
model-name: SecretReference
147+
property-name: KeyVaultObjectName
148+
set:
149+
property-name: SecretName
150+
- where:
151+
model-name: ClusterServiceConfig
152+
property-name: Component
153+
set:
154+
property-name: ComponentName
126155
# the below is cmdlet part
127156
- where:
128157
verb: New|Set
@@ -309,5 +338,11 @@ directive:
309338
set:
310339
parameter-name: FlinkHiveCatalogDbUserName
311340
# The below customize the output model
341+
- where:
342+
verb: Update
343+
subject: [Cluster|ClusterPool]
344+
variant: [Upgrade|UpgradeExpanded|UpgradeViaIdentity|UpgradeViaIdentityExpanded|UpgradeViaJsonFilePath|UpgradeViaJsonString]
345+
set:
346+
verb: Upgrade
312347

313348
```

src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools-clusters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "clusterpools/clusters",
3-
"apiVersion": "2023-11-01-preview",
3+
"apiVersion": "2024-05-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.hdinsightonaks"
66
},

src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "clusterpools",
3-
"apiVersion": "2023-11-01-preview",
3+
"apiVersion": "2024-05-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.hdinsightonaks"
66
},

src/HdInsightOnAks/HdInsightOnAks.Autorest/build-module.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX)
15+
param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX, [Switch]$DisableAfterBuildTasks)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
@@ -130,7 +130,7 @@ $examplesFolder = Join-Path $PSScriptRoot 'examples'
130130
$null = New-Item -ItemType Directory -Force -Path $examplesFolder
131131

132132
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
133-
$modelCmdlets = @()
133+
$modelCmdlets = @(@{modelName="ManagedIdentitySpec"; cmdletName="New-AzHdInsightOnAksManagedIdentityObject"}, @{modelName="ClusterHotfixUpgradeProperties"; cmdletName="New-AzHdInsightOnAksClusterHotfixUpgradeObject"}, @{modelName="ClusterPoolAksPatchVersionUpgradeProperties"; cmdletName="New-AzHdInsightOnAksClusterPoolAksPatchVersionUpgradeObject"}, @{modelName="NodeProfile"; cmdletName="New-AzHdInsightOnAksNodeProfileObject"}, @{modelName="SecretReference"; cmdletName="New-AzHdInsightOnAksSecretReferenceObject"}, @{modelName="HiveCatalogOption"; cmdletName="New-AzHdInsightOnAksTrinoHiveCatalogObject"}, @{modelName="ClusterConfigFile"; cmdletName="New-AzHdInsightOnAksClusterConfigFileObject"}, @{modelName="ClusterServiceConfig"; cmdletName="New-AzHdInsightOnAksClusterServiceConfigObject"}, @{modelName="ClusterServiceConfigsProfile"; cmdletName="New-AzHdInsightOnAksClusterServiceConfigsProfileObject"})
134134
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
135135
if (Test-Path $modelCmdletFolder) {
136136
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
@@ -177,4 +177,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
177177
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
178178
}
179179

180+
if (-not $DisableAfterBuildTasks){
181+
$afterBuildTasksPath = Join-Path $PSScriptRoot ''
182+
$afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
183+
if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
184+
Write-Host -ForegroundColor Green 'Running after build tasks...'
185+
. $afterBuildTasksPath @afterBuildTasksArgs
186+
}
187+
}
188+
189+
180190
Write-Host -ForegroundColor Green '-------------Done-------------'

src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterConfigFileObject.ps1

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
2+
# ----------------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
14+
# is regenerated.
15+
# ----------------------------------------------------------------------------------
16+
17+
<#
18+
.Synopsis
19+
Create an in-memory object for MavenLibraryProperties.
20+
.Description
21+
Create an in-memory object for MavenLibraryProperties.
22+
23+
.Outputs
24+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.MavenLibraryProperties
25+
.Link
26+
https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclustermavenlibraryobject
27+
#>
28+
function New-AzHdInsightOnAksClusterMavenLibraryObject {
29+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterLibrary')]
30+
[CmdletBinding(PositionalBinding=$false)]
31+
Param(
32+
33+
[Parameter(Mandatory, HelpMessage="GroupId of the Maven package.")]
34+
[string]
35+
$GroupId,
36+
[Parameter(Mandatory, HelpMessage="ArtifactId of the Maven package.")]
37+
[string]
38+
$Name,
39+
[Parameter(HelpMessage="Version of the Maven package.")]
40+
[string]
41+
$Version,
42+
[Parameter(HelpMessage="Remark of the latest library management operation.")]
43+
[string]
44+
$Remark
45+
)
46+
47+
process {
48+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.MavenLibraryProperties]::New()
49+
50+
if ($PSBoundParameters.ContainsKey('GroupId')) {
51+
$Object.GroupId = $GroupId
52+
}
53+
if ($PSBoundParameters.ContainsKey('Name')) {
54+
$Object.Name = $Name
55+
}
56+
if ($PSBoundParameters.ContainsKey('Version')) {
57+
$Object.Version = $Version
58+
}
59+
if ($PSBoundParameters.ContainsKey('Remark')) {
60+
$Object.Remark = $Remark
61+
}
62+
63+
$LibraryObj = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterLibrary]::New()
64+
65+
$LibraryObj.Property = $Object
66+
67+
return $LibraryObj
68+
}
69+
}
70+

src/HdInsightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)