Skip to content

Commit a5b9882

Browse files
grizzlytheodoreTheodore Changdolauli
authored
update Az.Compute REST API reference (#23677)
* updated * changelog * resolve changed signatrue * Suppress the error for not using autorest.powershell for sdk generation --------- Co-authored-by: Theodore Chang <[email protected]> Co-authored-by: Xiaogang <[email protected]>
1 parent beeed80 commit a5b9882

File tree

78 files changed

+4094
-350
lines changed

Some content is hidden

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

78 files changed

+4094
-350
lines changed

src/Compute/Compute.Management.Sdk/Generated/AvailabilitySetsOperations.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
105105
{
106106
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
107107
}
108-
string apiVersion = "2023-07-01";
108+
string apiVersion = "2023-09-01";
109109
// Tracing
110110
bool _shouldTrace = ServiceClientTracing.IsEnabled;
111111
string _invocationId = null;
@@ -313,7 +313,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
313313
{
314314
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
315315
}
316-
string apiVersion = "2023-07-01";
316+
string apiVersion = "2023-09-01";
317317
// Tracing
318318
bool _shouldTrace = ServiceClientTracing.IsEnabled;
319319
string _invocationId = null;
@@ -511,7 +511,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
511511
{
512512
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
513513
}
514-
string apiVersion = "2023-07-01";
514+
string apiVersion = "2023-09-01";
515515
// Tracing
516516
bool _shouldTrace = ServiceClientTracing.IsEnabled;
517517
string _invocationId = null;
@@ -687,7 +687,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
687687
{
688688
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
689689
}
690-
string apiVersion = "2023-07-01";
690+
string apiVersion = "2023-09-01";
691691
// Tracing
692692
bool _shouldTrace = ServiceClientTracing.IsEnabled;
693693
string _invocationId = null;
@@ -871,7 +871,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
871871
{
872872
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
873873
}
874-
string apiVersion = "2023-07-01";
874+
string apiVersion = "2023-09-01";
875875
// Tracing
876876
bool _shouldTrace = ServiceClientTracing.IsEnabled;
877877
string _invocationId = null;
@@ -1059,7 +1059,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
10591059
{
10601060
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
10611061
}
1062-
string apiVersion = "2023-07-01";
1062+
string apiVersion = "2023-09-01";
10631063
// Tracing
10641064
bool _shouldTrace = ServiceClientTracing.IsEnabled;
10651065
string _invocationId = null;
@@ -1252,7 +1252,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
12521252
{
12531253
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
12541254
}
1255-
string apiVersion = "2023-07-01";
1255+
string apiVersion = "2023-09-01";
12561256
// Tracing
12571257
bool _shouldTrace = ServiceClientTracing.IsEnabled;
12581258
string _invocationId = null;

src/Compute/Compute.Management.Sdk/Generated/CapacityReservationGroupsOperations.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
5252

5353
/// <summary>
5454
/// The operation to create or update a capacity reservation group. When
55-
/// updating a capacity reservation group, only tags may be modified. Please
56-
/// refer to https://aka.ms/CapacityReservation for more details.
55+
/// updating a capacity reservation group, only tags and sharing profile may be
56+
/// modified. Please refer to https://aka.ms/CapacityReservation for more
57+
/// details.
5758
/// </summary>
5859
/// <param name='resourceGroupName'>
5960
/// The name of the resource group.
@@ -107,7 +108,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
107108
{
108109
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
109110
}
110-
string apiVersion = "2023-07-01";
111+
string apiVersion = "2023-09-01";
111112
// Tracing
112113
bool _shouldTrace = ServiceClientTracing.IsEnabled;
113114
string _invocationId = null;
@@ -284,16 +285,16 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
284285

285286
/// <summary>
286287
/// The operation to update a capacity reservation group. When updating a
287-
/// capacity reservation group, only tags may be modified.
288+
/// capacity reservation group, only tags and sharing profile may be modified.
288289
/// </summary>
289290
/// <param name='resourceGroupName'>
290291
/// The name of the resource group.
291292
/// </param>
292293
/// <param name='capacityReservationGroupName'>
293294
/// The name of the capacity reservation group.
294295
/// </param>
295-
/// <param name='tags'>
296-
/// Resource tags
296+
/// <param name='parameters'>
297+
/// Parameters supplied to the Update capacity reservation Group operation.
297298
/// </param>
298299
/// <param name='customHeaders'>
299300
/// Headers that will be added to request.
@@ -316,7 +317,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
316317
/// <return>
317318
/// A response object containing the response body and response headers.
318319
/// </return>
319-
public async Task<AzureOperationResponse<CapacityReservationGroup>> UpdateWithHttpMessagesAsync(string resourceGroupName, string capacityReservationGroupName, IDictionary<string, string> tags = default(IDictionary<string, string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
320+
public async Task<AzureOperationResponse<CapacityReservationGroup>> UpdateWithHttpMessagesAsync(string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupUpdate parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
320321
{
321322
if (resourceGroupName == null)
322323
{
@@ -326,16 +327,15 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
326327
{
327328
throw new ValidationException(ValidationRules.CannotBeNull, "capacityReservationGroupName");
328329
}
329-
if (Client.SubscriptionId == null)
330+
if (parameters == null)
330331
{
331-
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
332+
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
332333
}
333-
string apiVersion = "2023-07-01";
334-
CapacityReservationGroupUpdate parameters = new CapacityReservationGroupUpdate();
335-
if (tags != null)
334+
if (Client.SubscriptionId == null)
336335
{
337-
parameters.Tags = tags;
336+
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
338337
}
338+
string apiVersion = "2023-09-01";
339339
// Tracing
340340
bool _shouldTrace = ServiceClientTracing.IsEnabled;
341341
string _invocationId = null;
@@ -345,8 +345,8 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
345345
Dictionary<string, object> tracingParameters = new Dictionary<string, object>();
346346
tracingParameters.Add("resourceGroupName", resourceGroupName);
347347
tracingParameters.Add("capacityReservationGroupName", capacityReservationGroupName);
348-
tracingParameters.Add("apiVersion", apiVersion);
349348
tracingParameters.Add("parameters", parameters);
349+
tracingParameters.Add("apiVersion", apiVersion);
350350
tracingParameters.Add("cancellationToken", cancellationToken);
351351
ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters);
352352
}
@@ -537,7 +537,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
537537
{
538538
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
539539
}
540-
string apiVersion = "2023-07-01";
540+
string apiVersion = "2023-09-01";
541541
// Tracing
542542
bool _shouldTrace = ServiceClientTracing.IsEnabled;
543543
string _invocationId = null;
@@ -722,7 +722,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
722722
{
723723
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
724724
}
725-
string apiVersion = "2023-07-01";
725+
string apiVersion = "2023-09-01";
726726
// Tracing
727727
bool _shouldTrace = ServiceClientTracing.IsEnabled;
728728
string _invocationId = null;
@@ -923,7 +923,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
923923
{
924924
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
925925
}
926-
string apiVersion = "2023-07-01";
926+
string apiVersion = "2023-09-01";
927927
// Tracing
928928
bool _shouldTrace = ServiceClientTracing.IsEnabled;
929929
string _invocationId = null;
@@ -1115,7 +1115,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
11151115
{
11161116
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
11171117
}
1118-
string apiVersion = "2023-07-01";
1118+
string apiVersion = "2023-09-01";
11191119
// Tracing
11201120
bool _shouldTrace = ServiceClientTracing.IsEnabled;
11211121
string _invocationId = null;

src/Compute/Compute.Management.Sdk/Generated/CapacityReservationGroupsOperationsExtensions.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ namespace Microsoft.Azure.Management.Compute
1313
using Microsoft.Rest;
1414
using Microsoft.Rest.Azure;
1515
using Models;
16-
using System.Collections;
17-
using System.Collections.Generic;
1816
using System.Threading;
1917
using System.Threading.Tasks;
2018

@@ -25,8 +23,9 @@ public static partial class CapacityReservationGroupsOperationsExtensions
2523
{
2624
/// <summary>
2725
/// The operation to create or update a capacity reservation group. When
28-
/// updating a capacity reservation group, only tags may be modified. Please
29-
/// refer to https://aka.ms/CapacityReservation for more details.
26+
/// updating a capacity reservation group, only tags and sharing profile may be
27+
/// modified. Please refer to https://aka.ms/CapacityReservation for more
28+
/// details.
3029
/// </summary>
3130
/// <param name='operations'>
3231
/// The operations group for this extension method.
@@ -47,8 +46,9 @@ public static CapacityReservationGroup CreateOrUpdate(this ICapacityReservationG
4746

4847
/// <summary>
4948
/// The operation to create or update a capacity reservation group. When
50-
/// updating a capacity reservation group, only tags may be modified. Please
51-
/// refer to https://aka.ms/CapacityReservation for more details.
49+
/// updating a capacity reservation group, only tags and sharing profile may be
50+
/// modified. Please refer to https://aka.ms/CapacityReservation for more
51+
/// details.
5252
/// </summary>
5353
/// <param name='operations'>
5454
/// The operations group for this extension method.
@@ -75,7 +75,7 @@ public static CapacityReservationGroup CreateOrUpdate(this ICapacityReservationG
7575

7676
/// <summary>
7777
/// The operation to update a capacity reservation group. When updating a
78-
/// capacity reservation group, only tags may be modified.
78+
/// capacity reservation group, only tags and sharing profile may be modified.
7979
/// </summary>
8080
/// <param name='operations'>
8181
/// The operations group for this extension method.
@@ -86,17 +86,17 @@ public static CapacityReservationGroup CreateOrUpdate(this ICapacityReservationG
8686
/// <param name='capacityReservationGroupName'>
8787
/// The name of the capacity reservation group.
8888
/// </param>
89-
/// <param name='tags'>
90-
/// Resource tags
89+
/// <param name='parameters'>
90+
/// Parameters supplied to the Update capacity reservation Group operation.
9191
/// </param>
92-
public static CapacityReservationGroup Update(this ICapacityReservationGroupsOperations operations, string resourceGroupName, string capacityReservationGroupName, IDictionary<string, string> tags = default(IDictionary<string, string>))
92+
public static CapacityReservationGroup Update(this ICapacityReservationGroupsOperations operations, string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupUpdate parameters)
9393
{
94-
return operations.UpdateAsync(resourceGroupName, capacityReservationGroupName, tags).GetAwaiter().GetResult();
94+
return operations.UpdateAsync(resourceGroupName, capacityReservationGroupName, parameters).GetAwaiter().GetResult();
9595
}
9696

9797
/// <summary>
9898
/// The operation to update a capacity reservation group. When updating a
99-
/// capacity reservation group, only tags may be modified.
99+
/// capacity reservation group, only tags and sharing profile may be modified.
100100
/// </summary>
101101
/// <param name='operations'>
102102
/// The operations group for this extension method.
@@ -107,15 +107,15 @@ public static CapacityReservationGroup CreateOrUpdate(this ICapacityReservationG
107107
/// <param name='capacityReservationGroupName'>
108108
/// The name of the capacity reservation group.
109109
/// </param>
110-
/// <param name='tags'>
111-
/// Resource tags
110+
/// <param name='parameters'>
111+
/// Parameters supplied to the Update capacity reservation Group operation.
112112
/// </param>
113113
/// <param name='cancellationToken'>
114114
/// The cancellation token.
115115
/// </param>
116-
public static async Task<CapacityReservationGroup> UpdateAsync(this ICapacityReservationGroupsOperations operations, string resourceGroupName, string capacityReservationGroupName, IDictionary<string, string> tags = default(IDictionary<string, string>), CancellationToken cancellationToken = default(CancellationToken))
116+
public static async Task<CapacityReservationGroup> UpdateAsync(this ICapacityReservationGroupsOperations operations, string resourceGroupName, string capacityReservationGroupName, CapacityReservationGroupUpdate parameters, CancellationToken cancellationToken = default(CancellationToken))
117117
{
118-
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, capacityReservationGroupName, tags, null, cancellationToken).ConfigureAwait(false))
118+
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, capacityReservationGroupName, parameters, null, cancellationToken).ConfigureAwait(false))
119119
{
120120
return _result.Body;
121121
}

src/Compute/Compute.Management.Sdk/Generated/CapacityReservationsOperations.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
193193
{
194194
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
195195
}
196-
string apiVersion = "2023-07-01";
196+
string apiVersion = "2023-09-01";
197197
// Tracing
198198
bool _shouldTrace = ServiceClientTracing.IsEnabled;
199199
string _invocationId = null;
@@ -396,7 +396,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
396396
{
397397
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
398398
}
399-
string apiVersion = "2023-07-01";
399+
string apiVersion = "2023-09-01";
400400
// Tracing
401401
bool _shouldTrace = ServiceClientTracing.IsEnabled;
402402
string _invocationId = null;
@@ -610,7 +610,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
610610
{
611611
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
612612
}
613-
string apiVersion = "2023-07-01";
613+
string apiVersion = "2023-09-01";
614614
// Tracing
615615
bool _shouldTrace = ServiceClientTracing.IsEnabled;
616616
string _invocationId = null;
@@ -845,7 +845,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
845845
{
846846
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
847847
}
848-
string apiVersion = "2023-07-01";
848+
string apiVersion = "2023-09-01";
849849
// Tracing
850850
bool _shouldTrace = ServiceClientTracing.IsEnabled;
851851
string _invocationId = null;
@@ -1055,7 +1055,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
10551055
{
10561056
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
10571057
}
1058-
string apiVersion = "2023-07-01";
1058+
string apiVersion = "2023-09-01";
10591059
// Tracing
10601060
bool _shouldTrace = ServiceClientTracing.IsEnabled;
10611061
string _invocationId = null;

0 commit comments

Comments
 (0)