Skip to content

Commit 6b26735

Browse files
yuc-Liv-yuchenli
andauthored
[HDInsight] Update api version to 2024-08-01-preview (#25885)
* Init generated code. * init readme file * New commands and feature. * Update help docs. * Update test * Update docs * Update help doc. * Update test * Added some test records. * Update help doc. * New cmdlet `Update-AzHDInsightCluster` * Update test cases. * Update test and a doc * Fix lint error * Fix * Fix * Update changelog. * Update * Update help doc. --------- Co-authored-by: v-yuchenli <[email protected]>
1 parent 5af1f12 commit 6b26735

File tree

106 files changed

+25700
-9000
lines changed

Some content is hidden

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

106 files changed

+25700
-9000
lines changed

src/Accounts/Accounts/Utilities/CommandMappings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,9 +2983,12 @@
29832983
"Add-AzHDInsightSecurityProfile": {},
29842984
"Add-AzHDInsightStorage": {},
29852985
"Disable-AzHDInsightAzureMonitor": {},
2986+
"Disable-AzHDInsightAzureMonitorAgent": {},
29862987
"Disable-AzHDInsightMonitoring": {},
29872988
"Enable-AzHDInsightAzureMonitor": {},
2989+
"Enable-AzHDInsightAzureMonitorAgent": {},
29882990
"Enable-AzHDInsightMonitoring": {},
2991+
"Enable-AzHDInsightMonitoringAgent": {},
29892992
"Get-AzHDInsightAzureMonitor": {},
29902993
"Get-AzHDInsightCluster": {},
29912994
"Get-AzHDInsightClusterAutoscaleConfiguration": {},
@@ -2998,6 +3001,7 @@
29983001
"Get-AzHDInsightScriptActionHistory": {},
29993002
"Invoke-AzHDInsightHiveJob": {},
30003003
"New-AzHDInsightCluster": {},
3004+
"Update-AzHDInsightCluster": {},
30013005
"New-AzHDInsightClusterAutoscaleConfiguration": {},
30023006
"New-AzHDInsightClusterAutoscaleScheduleCondition": {},
30033007
"New-AzHDInsightClusterConfig": {},

src/HDInsight/HDInsight.Management.Sdk/Generated/ClustersOperations.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ internal ClustersOperations (HDInsightManagementClient client)
7575
/// <param name='tags'>
7676
/// The resource tags.
7777
/// </param>
78+
/// <param name='identity'>
79+
/// The identity of the cluster, if configured.
80+
/// </param>
7881
/// <param name='customHeaders'>
7982
/// Headers that will be added to request.
8083
/// </param>
@@ -96,7 +99,7 @@ internal ClustersOperations (HDInsightManagementClient client)
9699
/// <return>
97100
/// A response object containing the response body and response headers.
98101
/// </return>
99-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Cluster>> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
102+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Cluster>> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), ClusterIdentity identity = default(ClusterIdentity), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
100103
{
101104

102105

@@ -123,9 +126,10 @@ internal ClustersOperations (HDInsightManagementClient client)
123126
}
124127

125128
ClusterPatchParameters parameters = new ClusterPatchParameters();
126-
if(tags != null)
129+
if(tags != null||identity != null)
127130
{
128131
parameters.Tags = tags;
132+
parameters.Identity = identity;
129133
}
130134
// Tracing
131135
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
@@ -1524,7 +1528,10 @@ internal ClustersOperations (HDInsightManagementClient client)
15241528
{
15251529
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
15261530
}
1527-
1531+
if (parameters != null)
1532+
{
1533+
parameters.Validate();
1534+
}
15281535
if (this.Client.SubscriptionId == null)
15291536
{
15301537
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");

src/HDInsight/HDInsight.Management.Sdk/Generated/ClustersOperationsExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public static Cluster Create(this IClustersOperations operations, string resourc
6363
/// <param name='clusterName'>
6464
/// The name of the cluster.
6565
/// </param>
66-
public static Cluster Update(this IClustersOperations operations, string resourceGroupName, string clusterName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>))
66+
public static Cluster Update(this IClustersOperations operations, string resourceGroupName, string clusterName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), ClusterIdentity identity = default(ClusterIdentity))
6767
{
68-
return ((IClustersOperations)operations).UpdateAsync(resourceGroupName, clusterName, tags).GetAwaiter().GetResult();
68+
return ((IClustersOperations)operations).UpdateAsync(resourceGroupName, clusterName, tags, identity).GetAwaiter().GetResult();
6969
}
7070

7171
/// <summary>
@@ -83,9 +83,9 @@ public static Cluster Create(this IClustersOperations operations, string resourc
8383
/// <param name='cancellationToken'>
8484
/// The cancellation token.
8585
/// </param>
86-
public static async System.Threading.Tasks.Task<Cluster> UpdateAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
86+
public static async System.Threading.Tasks.Task<Cluster> UpdateAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), ClusterIdentity identity = default(ClusterIdentity), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
8787
{
88-
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, clusterName, tags, null, cancellationToken).ConfigureAwait(false))
88+
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, clusterName, tags, identity, null, cancellationToken).ConfigureAwait(false))
8989
{
9090
return _result.Body;
9191
}

src/HDInsight/HDInsight.Management.Sdk/Generated/ConfigurationsOperations.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ internal ConfigurationsOperations (HDInsightManagementClient client)
247247

248248
}
249249
/// <summary>
250-
/// Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead.
250+
/// Configures the HTTP settings on the specified cluster. This API is
251+
/// deprecated, please use UpdateGatewaySettings in cluster endpoint instead.
251252
/// </summary>
252253
/// <param name='resourceGroupName'>
253254
/// The name of the resource group.

0 commit comments

Comments
 (0)