forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Migrate HdInsightOnAks from generation to main (Azure#25611)" (…
…Azure#25684) This reverts commit 6981fa4.
- Loading branch information
Showing
458 changed files
with
11,278 additions
and
54,605 deletions.
There are no files selected for viewing
1,506 changes: 42 additions & 1,464 deletions
1,506
src/HdInsightOnAks/HdInsightOnAks.Autorest/Az.HdInsightOnAks.format.ps1xml
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools-clusters.json
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
2 changes: 1 addition & 1 deletion
2
src/HdInsightOnAks/HdInsightOnAks.Autorest/UX/Microsoft.HDInsight/clusterpools.json
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
61 changes: 61 additions & 0 deletions
61
...sightOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterConfigFileObject.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,61 @@ | ||
# ---------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# ---------------------------------------------------------------------------------- | ||
|
||
<# | ||
.Synopsis | ||
Create cluster config file. | ||
.Description | ||
Create cluster config file. | ||
.Example | ||
$coreSiteConfigFile=New-AzHDInsightAksClusterConfigFile -FileName "core-site.xml" -Value @{"fs.defaultFS"="abfs://testcontainer@$teststorage.dfs.core.windows.net"} | ||
.Inputs | ||
System.Collections.HashTable | ||
.Outputs | ||
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile | ||
.Notes | ||
.Link | ||
https://learn.microsoft.com/powershell/module/az.hdinsightonaks/New-AzHdInsightOnAksClusterConfigFileObject | ||
#> | ||
function New-AzHdInsightOnAksClusterConfigFileObject { | ||
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterConfigFile])] | ||
[CmdletBinding(DefaultParameterSetName = 'Create', PositionalBinding = $false)] | ||
param( | ||
[Parameter(ParameterSetName = 'Create', Mandatory)] | ||
[Alias('Name')] | ||
[System.String] | ||
# The name of the config file. | ||
${FileName}, | ||
|
||
[Parameter(ParameterSetName = 'Create', Mandatory)] | ||
[System.Collections.HashTable] | ||
# List of key value pairs where key represents a valid service configuration name and value represents the value of the config. | ||
${Value} | ||
) | ||
|
||
process { | ||
try { | ||
$configFileValue = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFileValues | ||
|
||
foreach ($item in $Value.GetEnumerator()) { | ||
$configFileValue.Add($item.Name, $item.Value) | ||
} | ||
|
||
$configFile = New-Object Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterConfigFile -Property @{FileName = $FileName; Value = $configFileValue } | ||
return $configFile | ||
} | ||
catch { | ||
|
||
throw | ||
} | ||
|
||
finally { | ||
|
||
} | ||
} | ||
} |
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 | ||
} | ||
} | ||
} |
70 changes: 0 additions & 70 deletions
70
...ghtOnAks/HdInsightOnAks.Autorest/custom/New-AzHdInsightOnAksClusterMavenLibraryObject.ps1
This file was deleted.
Oops, something went wrong.
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 | ||
} | ||
} | ||
} |
Oops, something went wrong.