Skip to content

Commit ad3db57

Browse files
haaghaHaider Agha
andauthored
Updating Compute to use Track1 2025-04-01 SDK (#28578)
Co-authored-by: Haider Agha <[email protected]>
1 parent 6fe4a6a commit ad3db57

File tree

71 files changed

+2077
-344
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

+2077
-344
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
8484
{
8585
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
8686
}
87-
string apiVersion = "2024-11-01";
87+
string apiVersion = "2025-04-01";
8888
// Tracing
8989
bool _shouldTrace = ServiceClientTracing.IsEnabled;
9090
string _invocationId = null;
@@ -283,7 +283,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
283283
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
284284
}
285285
}
286-
string apiVersion = "2024-11-01";
286+
string apiVersion = "2025-04-01";
287287
// Tracing
288288
bool _shouldTrace = ServiceClientTracing.IsEnabled;
289289
string _invocationId = null;
@@ -486,7 +486,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
486486
{
487487
throw new ValidationException(ValidationRules.CannotBeNull, "availabilitySetName");
488488
}
489-
string apiVersion = "2024-11-01";
489+
string apiVersion = "2025-04-01";
490490
// Tracing
491491
bool _shouldTrace = ServiceClientTracing.IsEnabled;
492492
string _invocationId = null;
@@ -702,7 +702,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
702702
{
703703
parameters.Validate();
704704
}
705-
string apiVersion = "2024-11-01";
705+
string apiVersion = "2025-04-01";
706706
// Tracing
707707
bool _shouldTrace = ServiceClientTracing.IsEnabled;
708708
string _invocationId = null;
@@ -921,7 +921,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
921921
{
922922
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
923923
}
924-
string apiVersion = "2024-11-01";
924+
string apiVersion = "2025-04-01";
925925
// Tracing
926926
bool _shouldTrace = ServiceClientTracing.IsEnabled;
927927
string _invocationId = null;
@@ -1130,7 +1130,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
11301130
{
11311131
throw new ValidationException(ValidationRules.CannotBeNull, "availabilitySetName");
11321132
}
1133-
string apiVersion = "2024-11-01";
1133+
string apiVersion = "2025-04-01";
11341134
// Tracing
11351135
bool _shouldTrace = ServiceClientTracing.IsEnabled;
11361136
string _invocationId = null;
@@ -1314,7 +1314,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
13141314
{
13151315
throw new ValidationException(ValidationRules.CannotBeNull, "availabilitySetName");
13161316
}
1317-
string apiVersion = "2024-11-01";
1317+
string apiVersion = "2025-04-01";
13181318
// Tracing
13191319
bool _shouldTrace = ServiceClientTracing.IsEnabled;
13201320
string _invocationId = null;
@@ -1537,7 +1537,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
15371537
{
15381538
throw new ValidationException(ValidationRules.CannotBeNull, "virtualMachineScaleSetFlexible");
15391539
}
1540-
string apiVersion = "2024-11-01";
1540+
string apiVersion = "2025-04-01";
15411541
MigrateToVirtualMachineScaleSetInput parameters = new MigrateToVirtualMachineScaleSetInput();
15421542
if (virtualMachineScaleSetFlexible != null)
15431543
{
@@ -1742,7 +1742,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
17421742
{
17431743
throw new ValidationException(ValidationRules.CannotBeNull, "virtualMachineScaleSetFlexible");
17441744
}
1745-
string apiVersion = "2024-11-01";
1745+
string apiVersion = "2025-04-01";
17461746
MigrateToVirtualMachineScaleSetInput parameters = new MigrateToVirtualMachineScaleSetInput();
17471747
if (virtualMachineScaleSetFlexible != null)
17481748
{
@@ -1942,7 +1942,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
19421942
{
19431943
throw new ValidationException(ValidationRules.CannotBeNull, "availabilitySetName");
19441944
}
1945-
string apiVersion = "2024-11-01";
1945+
string apiVersion = "2025-04-01";
19461946
// Tracing
19471947
bool _shouldTrace = ServiceClientTracing.IsEnabled;
19481948
string _invocationId = null;
@@ -2150,7 +2150,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
21502150
{
21512151
throw new ValidationException(ValidationRules.CannotBeNull, "availabilitySetName");
21522152
}
2153-
string apiVersion = "2024-11-01";
2153+
string apiVersion = "2025-04-01";
21542154
ConvertToVirtualMachineScaleSetInput parameters = default(ConvertToVirtualMachineScaleSetInput);
21552155
if (virtualMachineScaleSetName != null)
21562156
{

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
100100
{
101101
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
102102
}
103-
string apiVersion = "2024-11-01";
103+
string apiVersion = "2025-04-01";
104104
// Tracing
105105
bool _shouldTrace = ServiceClientTracing.IsEnabled;
106106
string _invocationId = null;
@@ -313,7 +313,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
313313
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
314314
}
315315
}
316-
string apiVersion = "2024-11-01";
316+
string apiVersion = "2025-04-01";
317317
// Tracing
318318
bool _shouldTrace = ServiceClientTracing.IsEnabled;
319319
string _invocationId = null;
@@ -530,7 +530,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
530530
{
531531
throw new ValidationException(ValidationRules.CannotBeNull, "capacityReservationGroupName");
532532
}
533-
string apiVersion = "2024-11-01";
533+
string apiVersion = "2025-04-01";
534534
// Tracing
535535
bool _shouldTrace = ServiceClientTracing.IsEnabled;
536536
string _invocationId = null;
@@ -754,7 +754,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
754754
{
755755
parameters.Validate();
756756
}
757-
string apiVersion = "2024-11-01";
757+
string apiVersion = "2025-04-01";
758758
// Tracing
759759
bool _shouldTrace = ServiceClientTracing.IsEnabled;
760760
string _invocationId = null;
@@ -992,7 +992,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
992992
{
993993
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
994994
}
995-
string apiVersion = "2024-11-01";
995+
string apiVersion = "2025-04-01";
996996
// Tracing
997997
bool _shouldTrace = ServiceClientTracing.IsEnabled;
998998
string _invocationId = null;
@@ -1205,7 +1205,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client)
12051205
{
12061206
throw new ValidationException(ValidationRules.CannotBeNull, "capacityReservationGroupName");
12071207
}
1208-
string apiVersion = "2024-11-01";
1208+
string apiVersion = "2025-04-01";
12091209
// Tracing
12101210
bool _shouldTrace = ServiceClientTracing.IsEnabled;
12111211
string _invocationId = null;

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
107107
{
108108
throw new ValidationException(ValidationRules.CannotBeNull, "capacityReservationGroupName");
109109
}
110-
string apiVersion = "2024-11-01";
110+
string apiVersion = "2025-04-01";
111111
// Tracing
112112
bool _shouldTrace = ServiceClientTracing.IsEnabled;
113113
string _invocationId = null;
@@ -325,7 +325,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
325325
{
326326
throw new ValidationException(ValidationRules.CannotBeNull, "capacityReservationName");
327327
}
328-
string apiVersion = "2024-11-01";
328+
string apiVersion = "2025-04-01";
329329
// Tracing
330330
bool _shouldTrace = ServiceClientTracing.IsEnabled;
331331
string _invocationId = null;
@@ -544,7 +544,8 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
544544
/// The operation to delete a capacity reservation. This operation is allowed
545545
/// only when all the associated resources are disassociated from the capacity
546546
/// reservation. Please refer to https://aka.ms/CapacityReservation for more
547-
/// details.
547+
/// details. Note: Block capacity reservations cannot be deleted after it has
548+
/// been successfully allocated until the schedule end time.
548549
/// </summary>
549550
/// <param name='resourceGroupName'>
550551
/// The name of the resource group. The name is case insensitive.
@@ -643,7 +644,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
643644
{
644645
parameters.Validate();
645646
}
646-
string apiVersion = "2024-11-01";
647+
string apiVersion = "2025-04-01";
647648
// Tracing
648649
bool _shouldTrace = ServiceClientTracing.IsEnabled;
649650
string _invocationId = null;
@@ -902,7 +903,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
902903
{
903904
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
904905
}
905-
string apiVersion = "2024-11-01";
906+
string apiVersion = "2025-04-01";
906907
// Tracing
907908
bool _shouldTrace = ServiceClientTracing.IsEnabled;
908909
string _invocationId = null;
@@ -1065,7 +1066,8 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
10651066
/// The operation to delete a capacity reservation. This operation is allowed
10661067
/// only when all the associated resources are disassociated from the capacity
10671068
/// reservation. Please refer to https://aka.ms/CapacityReservation for more
1068-
/// details.
1069+
/// details. Note: Block capacity reservations cannot be deleted after it has
1070+
/// been successfully allocated until the schedule end time.
10691071
/// </summary>
10701072
/// <param name='resourceGroupName'>
10711073
/// The name of the resource group. The name is case insensitive.
@@ -1123,7 +1125,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client)
11231125
{
11241126
throw new ValidationException(ValidationRules.CannotBeNull, "capacityReservationName");
11251127
}
1126-
string apiVersion = "2024-11-01";
1128+
string apiVersion = "2025-04-01";
11271129
// Tracing
11281130
bool _shouldTrace = ServiceClientTracing.IsEnabled;
11291131
string _invocationId = null;

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ public static CapacityReservation Update(this ICapacityReservationsOperations op
235235
/// The operation to delete a capacity reservation. This operation is allowed
236236
/// only when all the associated resources are disassociated from the capacity
237237
/// reservation. Please refer to https://aka.ms/CapacityReservation for more
238-
/// details.
238+
/// details. Note: Block capacity reservations cannot be deleted after it has
239+
/// been successfully allocated until the schedule end time.
239240
/// </summary>
240241
/// <param name='operations'>
241242
/// The operations group for this extension method.
@@ -258,7 +259,8 @@ public static void Delete(this ICapacityReservationsOperations operations, strin
258259
/// The operation to delete a capacity reservation. This operation is allowed
259260
/// only when all the associated resources are disassociated from the capacity
260261
/// reservation. Please refer to https://aka.ms/CapacityReservation for more
261-
/// details.
262+
/// details. Note: Block capacity reservations cannot be deleted after it has
263+
/// been successfully allocated until the schedule end time.
262264
/// </summary>
263265
/// <param name='operations'>
264266
/// The operations group for this extension method.
@@ -392,7 +394,8 @@ public static CapacityReservation BeginUpdate(this ICapacityReservationsOperatio
392394
/// The operation to delete a capacity reservation. This operation is allowed
393395
/// only when all the associated resources are disassociated from the capacity
394396
/// reservation. Please refer to https://aka.ms/CapacityReservation for more
395-
/// details.
397+
/// details. Note: Block capacity reservations cannot be deleted after it has
398+
/// been successfully allocated until the schedule end time.
396399
/// </summary>
397400
/// <param name='operations'>
398401
/// The operations group for this extension method.
@@ -415,7 +418,8 @@ public static void BeginDelete(this ICapacityReservationsOperations operations,
415418
/// The operation to delete a capacity reservation. This operation is allowed
416419
/// only when all the associated resources are disassociated from the capacity
417420
/// reservation. Please refer to https://aka.ms/CapacityReservation for more
418-
/// details.
421+
/// details. Note: Block capacity reservations cannot be deleted after it has
422+
/// been successfully allocated until the schedule end time.
419423
/// </summary>
420424
/// <param name='operations'>
421425
/// The operations group for this extension method.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
8282
{
8383
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
8484
}
85-
string apiVersion = "2024-11-01";
85+
string apiVersion = "2025-04-01";
8686
// Tracing
8787
bool _shouldTrace = ServiceClientTracing.IsEnabled;
8888
string _invocationId = null;
@@ -278,7 +278,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
278278
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
279279
}
280280
}
281-
string apiVersion = "2024-11-01";
281+
string apiVersion = "2025-04-01";
282282
// Tracing
283283
bool _shouldTrace = ServiceClientTracing.IsEnabled;
284284
string _invocationId = null;
@@ -487,7 +487,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
487487
{
488488
throw new ValidationException(ValidationRules.CannotBeNull, "hostGroupName");
489489
}
490-
string apiVersion = "2024-11-01";
490+
string apiVersion = "2025-04-01";
491491
// Tracing
492492
bool _shouldTrace = ServiceClientTracing.IsEnabled;
493493
string _invocationId = null;
@@ -710,7 +710,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
710710
{
711711
parameters.Validate();
712712
}
713-
string apiVersion = "2024-11-01";
713+
string apiVersion = "2025-04-01";
714714
// Tracing
715715
bool _shouldTrace = ServiceClientTracing.IsEnabled;
716716
string _invocationId = null;
@@ -947,7 +947,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
947947
{
948948
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
949949
}
950-
string apiVersion = "2024-11-01";
950+
string apiVersion = "2025-04-01";
951951
// Tracing
952952
bool _shouldTrace = ServiceClientTracing.IsEnabled;
953953
string _invocationId = null;
@@ -1156,7 +1156,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
11561156
{
11571157
throw new ValidationException(ValidationRules.CannotBeNull, "hostGroupName");
11581158
}
1159-
string apiVersion = "2024-11-01";
1159+
string apiVersion = "2025-04-01";
11601160
// Tracing
11611161
bool _shouldTrace = ServiceClientTracing.IsEnabled;
11621162
string _invocationId = null;

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
107107
{
108108
throw new ValidationException(ValidationRules.CannotBeNull, "hostGroupName");
109109
}
110-
string apiVersion = "2024-11-01";
110+
string apiVersion = "2025-04-01";
111111
// Tracing
112112
bool _shouldTrace = ServiceClientTracing.IsEnabled;
113113
string _invocationId = null;
@@ -325,7 +325,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
325325
{
326326
throw new ValidationException(ValidationRules.CannotBeNull, "hostName");
327327
}
328-
string apiVersion = "2024-11-01";
328+
string apiVersion = "2025-04-01";
329329
// Tracing
330330
bool _shouldTrace = ServiceClientTracing.IsEnabled;
331331
string _invocationId = null;
@@ -627,7 +627,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
627627
{
628628
throw new ValidationException(ValidationRules.CannotBeNull, "hostName");
629629
}
630-
string apiVersion = "2024-11-01";
630+
string apiVersion = "2025-04-01";
631631
// Tracing
632632
bool _shouldTrace = ServiceClientTracing.IsEnabled;
633633
string _invocationId = null;
@@ -912,7 +912,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
912912
{
913913
parameters.Validate();
914914
}
915-
string apiVersion = "2024-11-01";
915+
string apiVersion = "2025-04-01";
916916
// Tracing
917917
bool _shouldTrace = ServiceClientTracing.IsEnabled;
918918
string _invocationId = null;
@@ -1171,7 +1171,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
11711171
{
11721172
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
11731173
}
1174-
string apiVersion = "2024-11-01";
1174+
string apiVersion = "2025-04-01";
11751175
// Tracing
11761176
bool _shouldTrace = ServiceClientTracing.IsEnabled;
11771177
string _invocationId = null;
@@ -1402,7 +1402,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
14021402
{
14031403
throw new ValidationException(ValidationRules.CannotBeNull, "hostName");
14041404
}
1405-
string apiVersion = "2024-11-01";
1405+
string apiVersion = "2025-04-01";
14061406
// Tracing
14071407
bool _shouldTrace = ServiceClientTracing.IsEnabled;
14081408
string _invocationId = null;
@@ -1600,7 +1600,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
16001600
{
16011601
throw new ValidationException(ValidationRules.CannotBeNull, "hostName");
16021602
}
1603-
string apiVersion = "2024-11-01";
1603+
string apiVersion = "2025-04-01";
16041604
// Tracing
16051605
bool _shouldTrace = ServiceClientTracing.IsEnabled;
16061606
string _invocationId = null;
@@ -1811,7 +1811,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
18111811
{
18121812
throw new ValidationException(ValidationRules.CannotBeNull, "hostName");
18131813
}
1814-
string apiVersion = "2024-11-01";
1814+
string apiVersion = "2025-04-01";
18151815
// Tracing
18161816
bool _shouldTrace = ServiceClientTracing.IsEnabled;
18171817
string _invocationId = null;

0 commit comments

Comments
 (0)