Skip to content

Commit 8d29b96

Browse files
authored
[Compute] Updating sdk to the new version And adding TierOption (#24438)
* updating sdk to the new version * Tier Option * Updating help and changelog and tests
1 parent b22a736 commit 8d29b96

File tree

71 files changed

+979
-349
lines changed

Some content is hidden

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

71 files changed

+979
-349
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-09-01";
108+
string apiVersion = "2024-03-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-09-01";
316+
string apiVersion = "2024-03-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-09-01";
514+
string apiVersion = "2024-03-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-09-01";
690+
string apiVersion = "2024-03-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-09-01";
874+
string apiVersion = "2024-03-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-09-01";
1062+
string apiVersion = "2024-03-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-09-01";
1255+
string apiVersion = "2024-03-01";
12561256
// Tracing
12571257
bool _shouldTrace = ServiceClientTracing.IsEnabled;
12581258
string _invocationId = null;

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

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
108108
{
109109
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
110110
}
111-
string apiVersion = "2023-09-01";
111+
string apiVersion = "2024-03-01";
112112
// Tracing
113113
bool _shouldTrace = ServiceClientTracing.IsEnabled;
114114
string _invocationId = null;
@@ -335,7 +335,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
335335
{
336336
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
337337
}
338-
string apiVersion = "2023-09-01";
338+
string apiVersion = "2024-03-01";
339339
// Tracing
340340
bool _shouldTrace = ServiceClientTracing.IsEnabled;
341341
string _invocationId = null;
@@ -537,7 +537,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
537537
{
538538
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
539539
}
540-
string apiVersion = "2023-09-01";
540+
string apiVersion = "2024-03-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-09-01";
725+
string apiVersion = "2024-03-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-09-01";
926+
string apiVersion = "2024-03-01";
927927
// Tracing
928928
bool _shouldTrace = ServiceClientTracing.IsEnabled;
929929
string _invocationId = null;
@@ -1088,6 +1088,17 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
10881088
/// response. Possible values include: 'virtualMachineScaleSetVMs/$ref',
10891089
/// 'virtualMachines/$ref'
10901090
/// </param>
1091+
/// <param name='resourceIdsOnly'>
1092+
/// The query option to fetch Capacity Reservation Group Resource Ids.
1093+
/// &lt;br&gt; 'CreatedInSubscription' enables fetching Resource Ids for all
1094+
/// capacity reservation group resources created in the subscription.
1095+
/// &lt;br&gt; 'SharedWithSubscription' enables fetching Resource Ids for all
1096+
/// capacity reservation group resources shared with the subscription.
1097+
/// &lt;br&gt; 'All' enables fetching Resource Ids for all capacity reservation
1098+
/// group resources shared with the subscription and created in the
1099+
/// subscription. Possible values include: 'CreatedInSubscription',
1100+
/// 'SharedWithSubscription', 'All'
1101+
/// </param>
10911102
/// <param name='customHeaders'>
10921103
/// Headers that will be added to request.
10931104
/// </param>
@@ -1109,13 +1120,13 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
11091120
/// <return>
11101121
/// A response object containing the response body and response headers.
11111122
/// </return>
1112-
public async Task<AzureOperationResponse<IPage<CapacityReservationGroup>>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
1123+
public async Task<AzureOperationResponse<IPage<CapacityReservationGroup>>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), string resourceIdsOnly = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
11131124
{
11141125
if (Client.SubscriptionId == null)
11151126
{
11161127
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
11171128
}
1118-
string apiVersion = "2023-09-01";
1129+
string apiVersion = "2024-03-01";
11191130
// Tracing
11201131
bool _shouldTrace = ServiceClientTracing.IsEnabled;
11211132
string _invocationId = null;
@@ -1125,6 +1136,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
11251136
Dictionary<string, object> tracingParameters = new Dictionary<string, object>();
11261137
tracingParameters.Add("apiVersion", apiVersion);
11271138
tracingParameters.Add("expand", expand);
1139+
tracingParameters.Add("resourceIdsOnly", resourceIdsOnly);
11281140
tracingParameters.Add("cancellationToken", cancellationToken);
11291141
ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
11301142
}
@@ -1141,6 +1153,10 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
11411153
{
11421154
_queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand)));
11431155
}
1156+
if (resourceIdsOnly != null)
1157+
{
1158+
_queryParameters.Add(string.Format("resourceIdsOnly={0}", System.Uri.EscapeDataString(resourceIdsOnly)));
1159+
}
11441160
if (_queryParameters.Count > 0)
11451161
{
11461162
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);

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

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,20 @@ public static void Delete(this ICapacityReservationGroupsOperations operations,
291291
/// response. Possible values include: 'virtualMachineScaleSetVMs/$ref',
292292
/// 'virtualMachines/$ref'
293293
/// </param>
294-
public static IPage<CapacityReservationGroup> ListBySubscription(this ICapacityReservationGroupsOperations operations, string expand = default(string))
294+
/// <param name='resourceIdsOnly'>
295+
/// The query option to fetch Capacity Reservation Group Resource Ids.
296+
/// &lt;br&gt; 'CreatedInSubscription' enables fetching Resource Ids for all
297+
/// capacity reservation group resources created in the subscription.
298+
/// &lt;br&gt; 'SharedWithSubscription' enables fetching Resource Ids for all
299+
/// capacity reservation group resources shared with the subscription.
300+
/// &lt;br&gt; 'All' enables fetching Resource Ids for all capacity reservation
301+
/// group resources shared with the subscription and created in the
302+
/// subscription. Possible values include: 'CreatedInSubscription',
303+
/// 'SharedWithSubscription', 'All'
304+
/// </param>
305+
public static IPage<CapacityReservationGroup> ListBySubscription(this ICapacityReservationGroupsOperations operations, string expand = default(string), string resourceIdsOnly = default(string))
295306
{
296-
return operations.ListBySubscriptionAsync(expand).GetAwaiter().GetResult();
307+
return operations.ListBySubscriptionAsync(expand, resourceIdsOnly).GetAwaiter().GetResult();
297308
}
298309

299310
/// <summary>
@@ -311,12 +322,23 @@ public static void Delete(this ICapacityReservationGroupsOperations operations,
311322
/// response. Possible values include: 'virtualMachineScaleSetVMs/$ref',
312323
/// 'virtualMachines/$ref'
313324
/// </param>
325+
/// <param name='resourceIdsOnly'>
326+
/// The query option to fetch Capacity Reservation Group Resource Ids.
327+
/// &lt;br&gt; 'CreatedInSubscription' enables fetching Resource Ids for all
328+
/// capacity reservation group resources created in the subscription.
329+
/// &lt;br&gt; 'SharedWithSubscription' enables fetching Resource Ids for all
330+
/// capacity reservation group resources shared with the subscription.
331+
/// &lt;br&gt; 'All' enables fetching Resource Ids for all capacity reservation
332+
/// group resources shared with the subscription and created in the
333+
/// subscription. Possible values include: 'CreatedInSubscription',
334+
/// 'SharedWithSubscription', 'All'
335+
/// </param>
314336
/// <param name='cancellationToken'>
315337
/// The cancellation token.
316338
/// </param>
317-
public static async Task<IPage<CapacityReservationGroup>> ListBySubscriptionAsync(this ICapacityReservationGroupsOperations operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
339+
public static async Task<IPage<CapacityReservationGroup>> ListBySubscriptionAsync(this ICapacityReservationGroupsOperations operations, string expand = default(string), string resourceIdsOnly = default(string), CancellationToken cancellationToken = default(CancellationToken))
318340
{
319-
using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false))
341+
using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(expand, resourceIdsOnly, null, cancellationToken).ConfigureAwait(false))
320342
{
321343
return _result.Body;
322344
}

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-09-01";
196+
string apiVersion = "2024-03-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-09-01";
399+
string apiVersion = "2024-03-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-09-01";
613+
string apiVersion = "2024-03-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-09-01";
848+
string apiVersion = "2024-03-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-09-01";
1058+
string apiVersion = "2024-03-01";
10591059
// Tracing
10601060
bool _shouldTrace = ServiceClientTracing.IsEnabled;
10611061
string _invocationId = null;

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
107107
{
108108
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
109109
}
110-
string apiVersion = "2023-09-01";
110+
string apiVersion = "2024-03-01";
111111
// Tracing
112112
bool _shouldTrace = ServiceClientTracing.IsEnabled;
113113
string _invocationId = null;
@@ -333,7 +333,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
333333
{
334334
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
335335
}
336-
string apiVersion = "2023-09-01";
336+
string apiVersion = "2024-03-01";
337337
// Tracing
338338
bool _shouldTrace = ServiceClientTracing.IsEnabled;
339339
string _invocationId = null;
@@ -531,7 +531,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
531531
{
532532
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
533533
}
534-
string apiVersion = "2023-09-01";
534+
string apiVersion = "2024-03-01";
535535
// Tracing
536536
bool _shouldTrace = ServiceClientTracing.IsEnabled;
537537
string _invocationId = null;
@@ -713,7 +713,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
713713
{
714714
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
715715
}
716-
string apiVersion = "2023-09-01";
716+
string apiVersion = "2024-03-01";
717717
// Tracing
718718
bool _shouldTrace = ServiceClientTracing.IsEnabled;
719719
string _invocationId = null;
@@ -907,7 +907,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
907907
{
908908
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
909909
}
910-
string apiVersion = "2023-09-01";
910+
string apiVersion = "2024-03-01";
911911
// Tracing
912912
bool _shouldTrace = ServiceClientTracing.IsEnabled;
913913
string _invocationId = null;
@@ -1087,7 +1087,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
10871087
{
10881088
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
10891089
}
1090-
string apiVersion = "2023-09-01";
1090+
string apiVersion = "2024-03-01";
10911091
// Tracing
10921092
bool _shouldTrace = ServiceClientTracing.IsEnabled;
10931093
string _invocationId = null;

0 commit comments

Comments
 (0)