@@ -21,6 +21,64 @@ namespace Microsoft.Azure.Management.ContainerService
21
21
/// </summary>
22
22
public static partial class AgentPoolsOperationsExtensions
23
23
{
24
+ /// <summary>
25
+ /// Aborts last operation running on agent pool.
26
+ /// </summary>
27
+ /// <remarks>
28
+ /// Aborts the currently running operation on the agent pool. The Agent Pool
29
+ /// will be moved to a Canceling state and eventually to a Canceled state when
30
+ /// cancellation finishes. If the operation completes before cancellation can
31
+ /// take place, a 409 error code is returned.
32
+ /// </remarks>
33
+ /// <param name='operations'>
34
+ /// The operations group for this extension method.
35
+ /// </param>
36
+ /// <param name='resourceGroupName'>
37
+ /// The name of the resource group. The name is case insensitive.
38
+ /// </param>
39
+ /// <param name='resourceName'>
40
+ /// The name of the managed cluster resource.
41
+ /// </param>
42
+ /// <param name='agentPoolName'>
43
+ /// The name of the agent pool.
44
+ /// </param>
45
+ public static AgentPoolsAbortLatestOperationHeaders AbortLatestOperation ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName )
46
+ {
47
+ return operations . AbortLatestOperationAsync ( resourceGroupName , resourceName , agentPoolName ) . GetAwaiter ( ) . GetResult ( ) ;
48
+ }
49
+
50
+ /// <summary>
51
+ /// Aborts last operation running on agent pool.
52
+ /// </summary>
53
+ /// <remarks>
54
+ /// Aborts the currently running operation on the agent pool. The Agent Pool
55
+ /// will be moved to a Canceling state and eventually to a Canceled state when
56
+ /// cancellation finishes. If the operation completes before cancellation can
57
+ /// take place, a 409 error code is returned.
58
+ /// </remarks>
59
+ /// <param name='operations'>
60
+ /// The operations group for this extension method.
61
+ /// </param>
62
+ /// <param name='resourceGroupName'>
63
+ /// The name of the resource group. The name is case insensitive.
64
+ /// </param>
65
+ /// <param name='resourceName'>
66
+ /// The name of the managed cluster resource.
67
+ /// </param>
68
+ /// <param name='agentPoolName'>
69
+ /// The name of the agent pool.
70
+ /// </param>
71
+ /// <param name='cancellationToken'>
72
+ /// The cancellation token.
73
+ /// </param>
74
+ public static async Task < AgentPoolsAbortLatestOperationHeaders > AbortLatestOperationAsync ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName , CancellationToken cancellationToken = default ( CancellationToken ) )
75
+ {
76
+ using ( var _result = await operations . AbortLatestOperationWithHttpMessagesAsync ( resourceGroupName , resourceName , agentPoolName , null , cancellationToken ) . ConfigureAwait ( false ) )
77
+ {
78
+ return _result . Headers ;
79
+ }
80
+ }
81
+
24
82
/// <summary>
25
83
/// Gets a list of agent pools in the specified managed cluster.
26
84
/// </summary>
@@ -174,9 +232,9 @@ public static AgentPool CreateOrUpdate(this IAgentPoolsOperations operations, st
174
232
/// <param name='agentPoolName'>
175
233
/// The name of the agent pool.
176
234
/// </param>
177
- public static void Delete ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName )
235
+ public static AgentPoolsDeleteHeaders Delete ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName )
178
236
{
179
- operations . DeleteAsync ( resourceGroupName , resourceName , agentPoolName ) . GetAwaiter ( ) . GetResult ( ) ;
237
+ return operations . DeleteAsync ( resourceGroupName , resourceName , agentPoolName ) . GetAwaiter ( ) . GetResult ( ) ;
180
238
}
181
239
182
240
/// <summary>
@@ -197,9 +255,12 @@ public static void Delete(this IAgentPoolsOperations operations, string resource
197
255
/// <param name='cancellationToken'>
198
256
/// The cancellation token.
199
257
/// </param>
200
- public static async Task DeleteAsync ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName , CancellationToken cancellationToken = default ( CancellationToken ) )
258
+ public static async Task < AgentPoolsDeleteHeaders > DeleteAsync ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName , CancellationToken cancellationToken = default ( CancellationToken ) )
201
259
{
202
- ( await operations . DeleteWithHttpMessagesAsync ( resourceGroupName , resourceName , agentPoolName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
260
+ using ( var _result = await operations . DeleteWithHttpMessagesAsync ( resourceGroupName , resourceName , agentPoolName , null , cancellationToken ) . ConfigureAwait ( false ) )
261
+ {
262
+ return _result . Headers ;
263
+ }
203
264
}
204
265
205
266
/// <summary>
@@ -253,7 +314,7 @@ public static AgentPoolUpgradeProfile GetUpgradeProfile(this IAgentPoolsOperatio
253
314
/// </summary>
254
315
/// <remarks>
255
316
/// See [supported Kubernetes
256
- /// versions](https://learn .microsoft.com/azure/aks/supported-kubernetes-versions)
317
+ /// versions](https://docs .microsoft.com/azure/aks/supported-kubernetes-versions)
257
318
/// for more details about the version lifecycle.
258
319
/// </remarks>
259
320
/// <param name='operations'>
@@ -275,7 +336,7 @@ public static AgentPoolAvailableVersions GetAvailableAgentPoolVersions(this IAge
275
336
/// </summary>
276
337
/// <remarks>
277
338
/// See [supported Kubernetes
278
- /// versions](https://learn .microsoft.com/azure/aks/supported-kubernetes-versions)
339
+ /// versions](https://docs .microsoft.com/azure/aks/supported-kubernetes-versions)
279
340
/// for more details about the version lifecycle.
280
341
/// </remarks>
281
342
/// <param name='operations'>
@@ -305,7 +366,7 @@ public static AgentPoolAvailableVersions GetAvailableAgentPoolVersions(this IAge
305
366
/// Upgrading the node image version of an agent pool applies the newest OS and
306
367
/// runtime updates to the nodes. AKS provides one new image per week with the
307
368
/// latest updates. For more details on node image versions, see:
308
- /// https://learn .microsoft.com/azure/aks/node-image-upgrade
369
+ /// https://docs .microsoft.com/azure/aks/node-image-upgrade
309
370
/// </remarks>
310
371
/// <param name='operations'>
311
372
/// The operations group for this extension method.
@@ -331,7 +392,7 @@ public static AgentPool UpgradeNodeImageVersion(this IAgentPoolsOperations opera
331
392
/// Upgrading the node image version of an agent pool applies the newest OS and
332
393
/// runtime updates to the nodes. AKS provides one new image per week with the
333
394
/// latest updates. For more details on node image versions, see:
334
- /// https://learn .microsoft.com/azure/aks/node-image-upgrade
395
+ /// https://docs .microsoft.com/azure/aks/node-image-upgrade
335
396
/// </remarks>
336
397
/// <param name='operations'>
337
398
/// The operations group for this extension method.
@@ -356,6 +417,64 @@ public static AgentPool UpgradeNodeImageVersion(this IAgentPoolsOperations opera
356
417
}
357
418
}
358
419
420
+ /// <summary>
421
+ /// Aborts last operation running on agent pool.
422
+ /// </summary>
423
+ /// <remarks>
424
+ /// Aborts the currently running operation on the agent pool. The Agent Pool
425
+ /// will be moved to a Canceling state and eventually to a Canceled state when
426
+ /// cancellation finishes. If the operation completes before cancellation can
427
+ /// take place, a 409 error code is returned.
428
+ /// </remarks>
429
+ /// <param name='operations'>
430
+ /// The operations group for this extension method.
431
+ /// </param>
432
+ /// <param name='resourceGroupName'>
433
+ /// The name of the resource group. The name is case insensitive.
434
+ /// </param>
435
+ /// <param name='resourceName'>
436
+ /// The name of the managed cluster resource.
437
+ /// </param>
438
+ /// <param name='agentPoolName'>
439
+ /// The name of the agent pool.
440
+ /// </param>
441
+ public static AgentPoolsAbortLatestOperationHeaders BeginAbortLatestOperation ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName )
442
+ {
443
+ return operations . BeginAbortLatestOperationAsync ( resourceGroupName , resourceName , agentPoolName ) . GetAwaiter ( ) . GetResult ( ) ;
444
+ }
445
+
446
+ /// <summary>
447
+ /// Aborts last operation running on agent pool.
448
+ /// </summary>
449
+ /// <remarks>
450
+ /// Aborts the currently running operation on the agent pool. The Agent Pool
451
+ /// will be moved to a Canceling state and eventually to a Canceled state when
452
+ /// cancellation finishes. If the operation completes before cancellation can
453
+ /// take place, a 409 error code is returned.
454
+ /// </remarks>
455
+ /// <param name='operations'>
456
+ /// The operations group for this extension method.
457
+ /// </param>
458
+ /// <param name='resourceGroupName'>
459
+ /// The name of the resource group. The name is case insensitive.
460
+ /// </param>
461
+ /// <param name='resourceName'>
462
+ /// The name of the managed cluster resource.
463
+ /// </param>
464
+ /// <param name='agentPoolName'>
465
+ /// The name of the agent pool.
466
+ /// </param>
467
+ /// <param name='cancellationToken'>
468
+ /// The cancellation token.
469
+ /// </param>
470
+ public static async Task < AgentPoolsAbortLatestOperationHeaders > BeginAbortLatestOperationAsync ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName , CancellationToken cancellationToken = default ( CancellationToken ) )
471
+ {
472
+ using ( var _result = await operations . BeginAbortLatestOperationWithHttpMessagesAsync ( resourceGroupName , resourceName , agentPoolName , null , cancellationToken ) . ConfigureAwait ( false ) )
473
+ {
474
+ return _result . Headers ;
475
+ }
476
+ }
477
+
359
478
/// <summary>
360
479
/// Creates or updates an agent pool in the specified managed cluster.
361
480
/// </summary>
@@ -423,9 +542,9 @@ public static AgentPool BeginCreateOrUpdate(this IAgentPoolsOperations operation
423
542
/// <param name='agentPoolName'>
424
543
/// The name of the agent pool.
425
544
/// </param>
426
- public static void BeginDelete ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName )
545
+ public static AgentPoolsDeleteHeaders BeginDelete ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName )
427
546
{
428
- operations . BeginDeleteAsync ( resourceGroupName , resourceName , agentPoolName ) . GetAwaiter ( ) . GetResult ( ) ;
547
+ return operations . BeginDeleteAsync ( resourceGroupName , resourceName , agentPoolName ) . GetAwaiter ( ) . GetResult ( ) ;
429
548
}
430
549
431
550
/// <summary>
@@ -446,9 +565,12 @@ public static void BeginDelete(this IAgentPoolsOperations operations, string res
446
565
/// <param name='cancellationToken'>
447
566
/// The cancellation token.
448
567
/// </param>
449
- public static async Task BeginDeleteAsync ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName , CancellationToken cancellationToken = default ( CancellationToken ) )
568
+ public static async Task < AgentPoolsDeleteHeaders > BeginDeleteAsync ( this IAgentPoolsOperations operations , string resourceGroupName , string resourceName , string agentPoolName , CancellationToken cancellationToken = default ( CancellationToken ) )
450
569
{
451
- ( await operations . BeginDeleteWithHttpMessagesAsync ( resourceGroupName , resourceName , agentPoolName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
570
+ using ( var _result = await operations . BeginDeleteWithHttpMessagesAsync ( resourceGroupName , resourceName , agentPoolName , null , cancellationToken ) . ConfigureAwait ( false ) )
571
+ {
572
+ return _result . Headers ;
573
+ }
452
574
}
453
575
454
576
/// <summary>
@@ -458,7 +580,7 @@ public static void BeginDelete(this IAgentPoolsOperations operations, string res
458
580
/// Upgrading the node image version of an agent pool applies the newest OS and
459
581
/// runtime updates to the nodes. AKS provides one new image per week with the
460
582
/// latest updates. For more details on node image versions, see:
461
- /// https://learn .microsoft.com/azure/aks/node-image-upgrade
583
+ /// https://docs .microsoft.com/azure/aks/node-image-upgrade
462
584
/// </remarks>
463
585
/// <param name='operations'>
464
586
/// The operations group for this extension method.
@@ -484,7 +606,7 @@ public static AgentPool BeginUpgradeNodeImageVersion(this IAgentPoolsOperations
484
606
/// Upgrading the node image version of an agent pool applies the newest OS and
485
607
/// runtime updates to the nodes. AKS provides one new image per week with the
486
608
/// latest updates. For more details on node image versions, see:
487
- /// https://learn .microsoft.com/azure/aks/node-image-upgrade
609
+ /// https://docs .microsoft.com/azure/aks/node-image-upgrade
488
610
/// </remarks>
489
611
/// <param name='operations'>
490
612
/// The operations group for this extension method.
0 commit comments