Skip to content

Commit b152291

Browse files
yuc-Liv-yuchenli
andauthored
[HDInsight on AKS] New Api version 2023-11-01-preview (#24375)
* Update readme.md * Revert module version in files * Add a custom command. * Update readme.md and re generate. * Update all docs and examples. * Update test cases and session records. * Add a command. * Remove generated UX folder. * Remove local input-file value from readme.md * Update a command params. * Add synopsis and des for two new custom commands. * Add exception for signature issues. * Fix a error for custom command. * Fix examples errors. * Fix an example error. * Update examples. * Remove "SupportsShouldProcess" --------- Co-authored-by: v-yuchenli <[email protected]>
1 parent 187b7fe commit b152291

File tree

67 files changed

+6534
-3941
lines changed

Some content is hidden

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

67 files changed

+6534
-3941
lines changed

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-AzHdInsightOnAksClusterInstanceView', 'Get-AzHdInsightOnAksClusterJob', 'Get-AzHdInsightOnAksClusterPool', 'Get-AzHdInsightOnAksClusterServiceConfig', 'New-AzHdInsightOnAksCluster', 'New-AzHdInsightOnAksClusterConfigFileObject', 'New-AzHdInsightOnAksClusterPool', '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-AzHdInsightOnAksClusterPoolTag'
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'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HdInsightOnAks'

src/HdInsightOnAks/HdInsightOnAks.Autorest/README.md

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

55
---
6-
## Status
7-
[![Az.HdInsightOnAks](https://img.shields.io/powershellgallery/v/Az.HdInsightOnAks.svg?style=flat-square&label=Az.HdInsightOnAks "Az.HdInsightOnAks")](https://www.powershellgallery.com/packages/Az.HdInsightOnAks/)
8-
96
## Info
107
- Modifiable: yes
118
- Generated: all
@@ -49,14 +46,12 @@ In this directory, run AutoRest:
4946
### General settings
5047
> Values
5148
``` yaml
52-
commit: f09aacf4c6b63be416212cb182f6b31e8bc6d545
49+
tag: package-preview-2023-11
50+
commit: 754d31188c080f20b8155acdf8b8fbd77dace467
5351
require:
5452
- $(this-folder)/../../readme.azure.noprofile.md
5553
- $(repo)/specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md
56-
57-
# input-file:
58-
# - D:\source\azure-rest-api-specs\specification\hdinsight\resource-manager\Microsoft.HDInsight\HDInsightOnAks\preview\2023-06-01-preview\hdinsight.json
59-
inlining-threshold: 100
54+
inlining-threshold: 200
6055
```
6156
6257
> Names

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+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 pool upgrade parameters.
18+
.Description
19+
Create an object to hold the cluster pool upgrade parameters.
20+
21+
.Outputs
22+
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgrade
23+
.Link
24+
https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject
25+
#>
26+
function New-AzHdInsightOnAksClusterPoolAKSUpgradeObject {
27+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgrade])]
28+
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
29+
param(
30+
[Parameter(ParameterSetName = 'Create')]
31+
[System.String]
32+
# Target AKS version. When it's not set, latest version will be used. When upgradeClusterPool is true and upgradeAllClusterNodes is false, target version should be greater or equal to current version. When upgradeClusterPool is false and upgradeAllClusterNodes is true, target version should be equal to AKS version of cluster pool.
33+
${TargetAksVersion},
34+
35+
[Parameter(ParameterSetName = 'Create')]
36+
[System.String]
37+
# whether upgrade all clusters' nodes. If it's true, upgradeClusterPool should be false.
38+
${UpgradeAllClusterNode},
39+
40+
[Parameter(ParameterSetName = 'Create')]
41+
[System.String]
42+
# whether upgrade cluster pool or not. If it's true, upgradeAllClusterNodes should be false.
43+
${UpgradeClusterPool}
44+
)
45+
process {
46+
try {
47+
$aksPatchProperty = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties -Property `
48+
@{TargetAksVersion = $TargetAksVersion;
49+
UpgradeAllClusterNode = $UpgradeAllClusterNode;
50+
UpgradeClusterPool = $UpgradeClusterPool;
51+
}
52+
53+
$AKSPatchatchObject = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgrade -Property `
54+
@{Property = $aksPatchProperty }
55+
56+
return $AKSPatchatchObject
57+
}
58+
catch {
59+
throw
60+
}
61+
}
62+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
2525
#>
2626
function New-AzHdInsightOnAksClusterServiceConfigObject {
2727
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfig])]
28-
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
28+
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
2929
param(
3030
[Parameter(ParameterSetName = 'Create', Mandatory)]
3131
[Alias('Name')]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
2828
#>
2929
function New-AzHdInsightOnAksClusterServiceConfigsProfileObject {
3030
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterServiceConfigsProfile])]
31-
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
31+
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
3232
param(
3333
[Parameter(ParameterSetName = 'Create', Mandatory)]
3434
[Alias('Name')]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
2929
#>
3030
function New-AzHdInsightOnAksFlinkJobObject{
3131
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterJob])]
32-
[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess)]
32+
[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false)]
3333
param(
3434
[Parameter(ParameterSetName='Create', Mandatory)]
3535
[System.String]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
2828
#>
2929
function New-AzHdInsightOnAksNodeProfileObject {
3030
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.INodeProfile])]
31-
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
31+
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
3232
param(
3333
[Parameter(ParameterSetName = 'Create', Mandatory)]
3434
[System.String]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightO
3030
#>
3131
function New-AzHdInsightOnAksSecretReferenceObject {
3232
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ISecretReference])]
33-
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false, SupportsShouldProcess)]
33+
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)]
3434
param(
3535
[Parameter(ParameterSetName = 'Create', Mandatory)]
3636
[System.String]

0 commit comments

Comments
 (0)