-
Notifications
You must be signed in to change notification settings - Fork 4k
[HDInsight on AKS] New Api version 2023-11-01-preview #24375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6728ac3
Update readme.md
61f9bbc
Revert module version in files
5736b49
Add a custom command.
e85c6a8
Update readme.md and re generate.
01a1f7c
Update all docs and examples.
7ca37d6
Update test cases and session records.
66854f6
Merge remote-tracking branch 'up/generation' into hilo-20231101
c5dc951
Add a command.
ca82ea1
Remove generated UX folder.
93a9e3f
Remove local input-file value from readme.md
da827c7
Update a command params.
beb04ab
Add synopsis and des for two new custom commands.
3db69db
Add exception for signature issues.
7005461
Fix a error for custom command.
b11520e
Fix examples errors.
0f37d7a
Fix an example error.
c2b864c
Update examples.
b57cda0
Remove "SupportsShouldProcess"
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.