-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Init readme. split Update to 2 command: Update and Upgrade. * Update readme * Update examples. * Update test and records * Update a example. * Resolve pipeline issues. * Update SignatureIssues * Update. * Fix pipeline errors. * Update a example * Rename properties * Update to 2024-05-01-preview * Update a example * Rename commands Upgrade-xxx to Invoke-xxxUpgrade * Remove unused files. * Update SignatureIssues.csv * Update a autogen cmdlet to custom cmdlet --------- Co-authored-by: v-yuchenli <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
- Loading branch information
1 parent
8735795
commit 6c5282e
Showing
17 changed files
with
154 additions
and
78 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
69 changes: 69 additions & 0 deletions
69
...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,69 @@ | ||
|
||
# ---------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# 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. | ||
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code | ||
# is regenerated. | ||
# ---------------------------------------------------------------------------------- | ||
|
||
<# | ||
.Synopsis | ||
Create an in-memory object for ClusterHotfixUpgradeProperties. | ||
.Description | ||
Create an in-memory object for ClusterHotfixUpgradeProperties. | ||
.Outputs | ||
Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties | ||
.Link | ||
https://learn.microsoft.com/powershell/module/Az.HdInsightOnAks/new-azhdinsightonaksclusterhotfixupgradeobject | ||
#> | ||
function New-AzHdInsightOnAksClusterHotfixUpgradeObject { | ||
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.IClusterUpgrade')] | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param( | ||
|
||
[Parameter(HelpMessage="Name of component to be upgraded.")] | ||
[string] | ||
$ComponentName, | ||
[Parameter(HelpMessage="Target build number of component to be upgraded.")] | ||
[string] | ||
$TargetBuildNumber, | ||
[Parameter(HelpMessage="Target cluster version of component to be upgraded.")] | ||
[string] | ||
$TargetClusterVersion, | ||
[Parameter(HelpMessage="Target OSS version of component to be upgraded.")] | ||
[string] | ||
$TargetOssVersion | ||
) | ||
|
||
process { | ||
$Object = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterHotfixUpgradeProperties]::New() | ||
|
||
$RequestObject = [Microsoft.Azure.PowerShell.Cmdlets.HdInsightOnAks.Models.ClusterUpgrade]::New() | ||
|
||
if ($PSBoundParameters.ContainsKey('ComponentName')) { | ||
$Object.ComponentName = $ComponentName | ||
} | ||
if ($PSBoundParameters.ContainsKey('TargetBuildNumber')) { | ||
$Object.TargetBuildNumber = $TargetBuildNumber | ||
} | ||
if ($PSBoundParameters.ContainsKey('TargetClusterVersion')) { | ||
$Object.TargetClusterVersion = $TargetClusterVersion | ||
} | ||
if ($PSBoundParameters.ContainsKey('TargetOssVersion')) { | ||
$Object.TargetOssVersion = $TargetOssVersion | ||
} | ||
|
||
$RequestObject.Property = $Object | ||
return $RequestObject | ||
} | ||
} | ||
|
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.