Skip to content

Commit d625ad0

Browse files
Migrate HdInsightOnAks from generation to main (#24480)
* Move HdInsightOnAks to main * Update SignatureIssues.csv * Update ChangeLog.md --------- Co-authored-by: Vincent Dai <[email protected]>
1 parent 3ecebe5 commit d625ad0

File tree

502 files changed

+60077
-7335
lines changed

Some content is hidden

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

502 files changed

+60077
-7335
lines changed

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

Lines changed: 903 additions & 17 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -1,153 +1,23 @@
1-
#
2-
# Module manifest for module 'Az.HdInsightOnAks'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 9/19/2023
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.HdInsightOnAks.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '0.1.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = '5d9ea51e-3614-409d-b09a-9188a642e11c'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: HdInsightOnAks cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# ClrVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.0'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.HdInsightOnAks.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.HdInsightOnAks.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-AzHdInsightOnAksAvailableClusterPoolVersion',
73-
'Get-AzHdInsightOnAksAvailableClusterVersion',
74-
'Get-AzHdInsightOnAksCluster',
75-
'Get-AzHdInsightOnAksClusterInstanceView',
76-
'Get-AzHdInsightOnAksClusterJob', 'Get-AzHdInsightOnAksClusterPool',
77-
'Get-AzHdInsightOnAksClusterServiceConfig',
78-
'New-AzHdInsightOnAksCluster',
79-
'New-AzHdInsightOnAksClusterConfigFileObject',
80-
'New-AzHdInsightOnAksClusterPool',
81-
'New-AzHdInsightOnAksClusterServiceConfigObject',
82-
'New-AzHdInsightOnAksClusterServiceConfigsProfileObject',
83-
'New-AzHdInsightOnAksFlinkJobObject',
84-
'New-AzHdInsightOnAksNodeProfileObject',
85-
'New-AzHdInsightOnAksSecretReferenceObject',
86-
'New-AzHdInsightOnAksTrinoHiveCatalogObject',
87-
'Remove-AzHdInsightOnAksCluster',
88-
'Remove-AzHdInsightOnAksClusterPool',
89-
'Resize-AzHdInsightOnAksCluster', 'Set-AzHdInsightOnAksClusterPool',
90-
'Start-AzHdInsightOnAksClusterJob',
91-
'Test-AzHdInsightOnAksLocationNameAvailability',
92-
'Update-AzHdInsightOnAksCluster',
93-
'Update-AzHdInsightOnAksClusterPoolTag'
94-
95-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
96-
CmdletsToExport = @()
97-
98-
# Variables to export from this module
99-
# VariablesToExport = @()
100-
101-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
102-
AliasesToExport = @()
103-
104-
# DSC resources to export from this module
105-
# DscResourcesToExport = @()
106-
107-
# List of all modules packaged with this module
108-
# ModuleList = @()
109-
110-
# List of all files packaged with this module
111-
# FileList = @()
112-
113-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
114-
PrivateData = @{
115-
2+
GUID = '5d9ea51e-3614-409d-b09a-9188a642e11c'
3+
RootModule = './Az.HdInsightOnAks.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: HdInsightOnAks cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.HdInsightOnAks.private.dll'
13+
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'
15+
PrivateData = @{
11616
PSData = @{
117-
118-
# Tags applied to this module. These help with module discovery in online galleries.
119-
Tags = 'Azure','ResourceManager','ARM','PSModule','HdInsightOnAks'
120-
121-
# A URL to the license for this module.
122-
LicenseUri = 'https://aka.ms/azps-license'
123-
124-
# A URL to the main website for this project.
125-
ProjectUri = 'https://github.com/Azure/azure-powershell'
126-
127-
# A URL to an icon representing this module.
128-
# IconUri = ''
129-
130-
# ReleaseNotes of this module
131-
# ReleaseNotes = ''
132-
133-
# Prerelease string of this module
134-
# Prerelease = ''
135-
136-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
137-
# RequireLicenseAcceptance = $false
138-
139-
# External dependent modules of this module
140-
# ExternalModuleDependencies = @()
141-
142-
} # End of PSData hashtable
143-
144-
} # End of PrivateData hashtable
145-
146-
# HelpInfo URI of this module
147-
# HelpInfoURI = ''
148-
149-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
150-
# DefaultCommandPrefix = ''
151-
17+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HdInsightOnAks'
18+
LicenseUri = 'https://aka.ms/azps-license'
19+
ProjectUri = 'https://github.com/Azure/azure-powershell'
20+
ReleaseNotes = ''
21+
}
22+
}
15223
}
153-

src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.psm1

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,37 +47,41 @@
4747

4848
# Ask for the shared functionality table
4949
$VTable = Register-AzModule
50-
50+
5151
# Tweaks the pipeline on module load
5252
$instance.OnModuleLoad = $VTable.OnModuleLoad
5353

5454
# Following two delegates are added for telemetry
5555
$instance.GetTelemetryId = $VTable.GetTelemetryId
5656
$instance.Telemetry = $VTable.Telemetry
57-
57+
58+
# Delegate to sanitize the output object
59+
$instance.SanitizeOutput = $VTable.SanitizerHandler
60+
61+
# Delegate to get the telemetry info
62+
$instance.GetTelemetryInfo = $VTable.GetTelemetryInfo
5863

5964
# Tweaks the pipeline per call
6065
$instance.OnNewRequest = $VTable.OnNewRequest
61-
66+
6267
# Gets shared parameter values
6368
$instance.GetParameterValue = $VTable.GetParameterValue
64-
69+
6570
# Allows shared module to listen to events from this module
6671
$instance.EventListener = $VTable.EventListener
67-
72+
6873
# Gets shared argument completers
6974
$instance.ArgumentCompleter = $VTable.ArgumentCompleter
70-
75+
7176
# The name of the currently selected Azure profile
7277
$instance.ProfileName = $VTable.ProfileName
7378

74-
7579
# Load the custom module
7680
$customModulePath = Join-Path $PSScriptRoot './custom/Az.HdInsightOnAks.custom.psm1'
7781
if(Test-Path $customModulePath) {
7882
$null = Import-Module -Name $customModulePath
7983
}
80-
84+
8185
# Export nothing to clear implicit exports
8286
Export-ModuleMember
8387

@@ -97,12 +101,12 @@
97101
# Load the last folder if no profile is selected
98102
$profileDirectory = $directories | Select-Object -Last 1
99103
}
100-
104+
101105
if($profileDirectory) {
102106
Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
103107
$exportsPath = $profileDirectory.FullName
104108
}
105-
109+
106110
if($exportsPath) {
107111
Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
108112
$cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath

src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
This directory contains the PowerShell module for the HdInsightOnAks service.
44

55
---
6-
76
## Info
87
- Modifiable: yes
98
- Generated: all
@@ -47,14 +46,12 @@ In this directory, run AutoRest:
4746
### General settings
4847
> Values
4948
``` yaml
50-
branch: f09aacf4c6b63be416212cb182f6b31e8bc6d545
49+
tag: package-preview-2023-11
50+
commit: 754d31188c080f20b8155acdf8b8fbd77dace467
5151
require:
52-
- $(this-folder)/../readme.azure.noprofile.md
52+
- $(this-folder)/../../readme.azure.noprofile.md
5353
- $(repo)/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md
54-
55-
# input-file:
56-
# - D:\source\azure-rest-api-specs\specification\hdinsight\resource-manager\Microsoft.HDInsight\HDInsightOnAks\preview\2023-06-01-preview\hdinsight.json
57-
inlining-threshold: 100
54+
inlining-threshold: 200
5855
```
5956
6057
> Names
@@ -73,8 +70,6 @@ default-exclude-tableview-properties: true
7370
> Directives
7471
``` yaml
7572
identity-correction-for-post: true
76-
use-extension:
77-
"@autorest/powershell": "4.0.644"
7873
directive:
7974
- from: swagger-document
8075
where: $.paths..responses.202

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-06-01-preview",
3+
"apiVersion": "2023-11-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-06-01-preview",
3+
"apiVersion": "2023-11-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.hdinsightonaks"
66
},

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
171171
Write-Host -ForegroundColor Green 'Creating example stubs...'
172172
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
173173

174+
if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
175+
{
176+
Write-Host -ForegroundColor Green 'Creating ux metadata...'
177+
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
178+
}
179+
174180
Write-Host -ForegroundColor Green '-------------Done-------------'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
2424
#>
2525
function New-AzHdInsightOnAksClusterConfigFileObject {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile])]
27-
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
27+
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
2828
param(
2929
[Parameter(ParameterSetName = 'Create', Mandatory)]
3030
[Alias('Name')]
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# ----------------------------------------------------------------------------------
2+
#
3+
# Copyright Microsoft Corporation
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+
# ----------------------------------------------------------------------------------
14+
15+
<#
16+
.Synopsis
17+
Create an object to hold the cluster upgrade parameters.
18+
.Description
19+
Create an object to hold the cluster upgrade parameters.
20+
21+
.Outputs
22+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade
23+
.Link
24+
https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterHotfixUpgradeObject
25+
#>
26+
function New-AzHdInsightOnAksClusterHotfixUpgradeObject {
27+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade])]
28+
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
29+
param(
30+
[Parameter(ParameterSetName = 'Create')]
31+
[System.String]
32+
# Name of component to be upgraded.
33+
${ComponentName},
34+
35+
[Parameter(ParameterSetName = 'Create')]
36+
[System.String]
37+
# Target build number of component to be upgraded.
38+
${TargetBuildNumber},
39+
40+
[Parameter(ParameterSetName = 'Create')]
41+
[System.String]
42+
# Target cluster version of component to be upgraded.
43+
${TargetClusterVersion},
44+
45+
[Parameter(ParameterSetName = 'Create')]
46+
[System.String]
47+
# Target OSS version of component to be upgraded.
48+
${TargetOssVersion}
49+
)
50+
process {
51+
try {
52+
$hotfixProperty = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties -Property `
53+
@{ComponentName = $ComponentName;
54+
TargetBuildNumber = $TargetBuildNumber;
55+
TargetClusterVersion = $TargetClusterVersion;
56+
TargetOssVersion = $TargetOssVersion;
57+
}
58+
59+
$hotfixObject = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade -Property `
60+
@{Property = $hotfixProperty }
61+
62+
return $hotfixObject
63+
}
64+
catch {
65+
throw
66+
}
67+
}
68+
}

0 commit comments

Comments
 (0)