forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HDInsight on AKS] New Api version 2023-11-01-preview (Azure#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 <v-yuchenli@microsoft.com>
- Loading branch information
Showing
67 changed files
with
6,534 additions
and
3,941 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...htOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterHotfixUpgradeObject.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# ---------------------------------------------------------------------------------- | ||
# | ||
# Copyright Microsoft Corporation | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ---------------------------------------------------------------------------------- | ||
|
||
<# | ||
.Synopsis | ||
Create an object to hold the cluster upgrade parameters. | ||
.Description | ||
Create an object to hold the cluster upgrade parameters. | ||
.Outputs | ||
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade | ||
.Link | ||
https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterHotfixUpgradeObject | ||
#> | ||
function New-AzHdInsightOnAksClusterHotfixUpgradeObject { | ||
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade])] | ||
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)] | ||
param( | ||
[Parameter(ParameterSetName = 'Create')] | ||
[System.String] | ||
# Name of component to be upgraded. | ||
${ComponentName}, | ||
|
||
[Parameter(ParameterSetName = 'Create')] | ||
[System.String] | ||
# Target build number of component to be upgraded. | ||
${TargetBuildNumber}, | ||
|
||
[Parameter(ParameterSetName = 'Create')] | ||
[System.String] | ||
# Target cluster version of component to be upgraded. | ||
${TargetClusterVersion}, | ||
|
||
[Parameter(ParameterSetName = 'Create')] | ||
[System.String] | ||
# Target OSS version of component to be upgraded. | ||
${TargetOssVersion} | ||
) | ||
process { | ||
try { | ||
$hotfixProperty = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties -Property ` | ||
@{ComponentName = $ComponentName; | ||
TargetBuildNumber = $TargetBuildNumber; | ||
TargetClusterVersion = $TargetClusterVersion; | ||
TargetOssVersion = $TargetOssVersion; | ||
} | ||
|
||
$hotfixObject = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade -Property ` | ||
@{Property = $hotfixProperty } | ||
|
||
return $hotfixObject | ||
} | ||
catch { | ||
throw | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...tOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# ---------------------------------------------------------------------------------- | ||
# | ||
# Copyright Microsoft Corporation | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ---------------------------------------------------------------------------------- | ||
|
||
<# | ||
.Synopsis | ||
Create an object to hold the cluster pool upgrade parameters. | ||
.Description | ||
Create an object to hold the cluster pool upgrade parameters. | ||
.Outputs | ||
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgrade | ||
.Link | ||
https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterPoolAKSUpgradeObject | ||
#> | ||
function New-AzHdInsightOnAksClusterPoolAKSUpgradeObject { | ||
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterPoolUpgrade])] | ||
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)] | ||
param( | ||
[Parameter(ParameterSetName = 'Create')] | ||
[System.String] | ||
# 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. | ||
${TargetAksVersion}, | ||
|
||
[Parameter(ParameterSetName = 'Create')] | ||
[System.String] | ||
# whether upgrade all clusters' nodes. If it's true, upgradeClusterPool should be false. | ||
${UpgradeAllClusterNode}, | ||
|
||
[Parameter(ParameterSetName = 'Create')] | ||
[System.String] | ||
# whether upgrade cluster pool or not. If it's true, upgradeAllClusterNodes should be false. | ||
${UpgradeClusterPool} | ||
) | ||
process { | ||
try { | ||
$aksPatchProperty = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolAksPatchVersionUpgradeProperties -Property ` | ||
@{TargetAksVersion = $TargetAksVersion; | ||
UpgradeAllClusterNode = $UpgradeAllClusterNode; | ||
UpgradeClusterPool = $UpgradeClusterPool; | ||
} | ||
|
||
$AKSPatchatchObject = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterPoolUpgrade -Property ` | ||
@{Property = $aksPatchProperty } | ||
|
||
return $AKSPatchatchObject | ||
} | ||
catch { | ||
throw | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.