@@ -52,8 +52,9 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
52
52
53
53
/// <summary>
54
54
/// 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.
57
58
/// </summary>
58
59
/// <param name='resourceGroupName'>
59
60
/// The name of the resource group.
@@ -107,7 +108,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
107
108
{
108
109
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
109
110
}
110
- string apiVersion = "2023-07 -01" ;
111
+ string apiVersion = "2023-09 -01" ;
111
112
// Tracing
112
113
bool _shouldTrace = ServiceClientTracing . IsEnabled ;
113
114
string _invocationId = null ;
@@ -284,16 +285,16 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
284
285
285
286
/// <summary>
286
287
/// 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.
288
289
/// </summary>
289
290
/// <param name='resourceGroupName'>
290
291
/// The name of the resource group.
291
292
/// </param>
292
293
/// <param name='capacityReservationGroupName'>
293
294
/// The name of the capacity reservation group.
294
295
/// </param>
295
- /// <param name='tags '>
296
- /// Resource tags
296
+ /// <param name='parameters '>
297
+ /// Parameters supplied to the Update capacity reservation Group operation.
297
298
/// </param>
298
299
/// <param name='customHeaders'>
299
300
/// Headers that will be added to request.
@@ -316,7 +317,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
316
317
/// <return>
317
318
/// A response object containing the response body and response headers.
318
319
/// </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 ) )
320
321
{
321
322
if ( resourceGroupName == null )
322
323
{
@@ -326,16 +327,15 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
326
327
{
327
328
throw new ValidationException ( ValidationRules . CannotBeNull , "capacityReservationGroupName" ) ;
328
329
}
329
- if ( Client . SubscriptionId == null )
330
+ if ( parameters == null )
330
331
{
331
- throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId " ) ;
332
+ throw new ValidationException ( ValidationRules . CannotBeNull , "parameters " ) ;
332
333
}
333
- string apiVersion = "2023-07-01" ;
334
- CapacityReservationGroupUpdate parameters = new CapacityReservationGroupUpdate ( ) ;
335
- if ( tags != null )
334
+ if ( Client . SubscriptionId == null )
336
335
{
337
- parameters . Tags = tags ;
336
+ throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
338
337
}
338
+ string apiVersion = "2023-09-01" ;
339
339
// Tracing
340
340
bool _shouldTrace = ServiceClientTracing . IsEnabled ;
341
341
string _invocationId = null ;
@@ -345,8 +345,8 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
345
345
Dictionary < string , object > tracingParameters = new Dictionary < string , object > ( ) ;
346
346
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
347
347
tracingParameters . Add ( "capacityReservationGroupName" , capacityReservationGroupName ) ;
348
- tracingParameters . Add ( "apiVersion" , apiVersion ) ;
349
348
tracingParameters . Add ( "parameters" , parameters ) ;
349
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
350
350
tracingParameters . Add ( "cancellationToken" , cancellationToken ) ;
351
351
ServiceClientTracing . Enter ( _invocationId , this , "Update" , tracingParameters ) ;
352
352
}
@@ -537,7 +537,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
537
537
{
538
538
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
539
539
}
540
- string apiVersion = "2023-07 -01" ;
540
+ string apiVersion = "2023-09 -01" ;
541
541
// Tracing
542
542
bool _shouldTrace = ServiceClientTracing . IsEnabled ;
543
543
string _invocationId = null ;
@@ -722,7 +722,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
722
722
{
723
723
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
724
724
}
725
- string apiVersion = "2023-07 -01" ;
725
+ string apiVersion = "2023-09 -01" ;
726
726
// Tracing
727
727
bool _shouldTrace = ServiceClientTracing . IsEnabled ;
728
728
string _invocationId = null ;
@@ -923,7 +923,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
923
923
{
924
924
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
925
925
}
926
- string apiVersion = "2023-07 -01" ;
926
+ string apiVersion = "2023-09 -01" ;
927
927
// Tracing
928
928
bool _shouldTrace = ServiceClientTracing . IsEnabled ;
929
929
string _invocationId = null ;
@@ -1115,7 +1115,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
1115
1115
{
1116
1116
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
1117
1117
}
1118
- string apiVersion = "2023-07 -01" ;
1118
+ string apiVersion = "2023-09 -01" ;
1119
1119
// Tracing
1120
1120
bool _shouldTrace = ServiceClientTracing . IsEnabled ;
1121
1121
string _invocationId = null ;
0 commit comments