@@ -267,6 +267,176 @@ public static CommandOutput InvokeCommand(this ICassandraClustersOperations oper
267
267
}
268
268
}
269
269
/// <summary>
270
+ /// List all commands currently running on ring info
271
+ /// </summary>
272
+ /// <param name='operations'>
273
+ /// The operations group for this extension method.
274
+ /// </param>
275
+ /// <param name='resourceGroupName'>
276
+ /// The name of the resource group. The name is case insensitive.
277
+ /// </param>
278
+ /// <param name='clusterName'>
279
+ /// Managed Cassandra cluster name.
280
+ /// </param>
281
+ public static System . Collections . Generic . IEnumerable < CommandPublicResource > ListCommand ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName )
282
+ {
283
+ return ( ( ICassandraClustersOperations ) operations ) . ListCommandAsync ( resourceGroupName , clusterName ) . GetAwaiter ( ) . GetResult ( ) ;
284
+ }
285
+
286
+ /// <summary>
287
+ /// List all commands currently running on ring info
288
+ /// </summary>
289
+ /// <param name='operations'>
290
+ /// The operations group for this extension method.
291
+ /// </param>
292
+ /// <param name='resourceGroupName'>
293
+ /// The name of the resource group. The name is case insensitive.
294
+ /// </param>
295
+ /// <param name='clusterName'>
296
+ /// Managed Cassandra cluster name.
297
+ /// </param>
298
+ /// <param name='cancellationToken'>
299
+ /// The cancellation token.
300
+ /// </param>
301
+ public static async System . Threading . Tasks . Task < System . Collections . Generic . IEnumerable < CommandPublicResource > > ListCommandAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
302
+ {
303
+ using ( var _result = await operations . ListCommandWithHttpMessagesAsync ( resourceGroupName , clusterName , null , cancellationToken ) . ConfigureAwait ( false ) )
304
+ {
305
+ return _result . Body ;
306
+ }
307
+ }
308
+ /// <summary>
309
+ /// Get details about a specified command that was run asynchronously.
310
+ /// </summary>
311
+ /// <param name='operations'>
312
+ /// The operations group for this extension method.
313
+ /// </param>
314
+ /// <param name='resourceGroupName'>
315
+ /// The name of the resource group. The name is case insensitive.
316
+ /// </param>
317
+ /// <param name='clusterName'>
318
+ /// Managed Cassandra cluster name.
319
+ /// </param>
320
+ /// <param name='commandId'>
321
+ /// Managed Cassandra cluster command id.
322
+ /// </param>
323
+ public static ListCommands GetCommandAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , string commandId )
324
+ {
325
+ return ( ( ICassandraClustersOperations ) operations ) . GetCommandAsyncAsync ( resourceGroupName , clusterName , commandId ) . GetAwaiter ( ) . GetResult ( ) ;
326
+ }
327
+
328
+ /// <summary>
329
+ /// Get details about a specified command that was run asynchronously.
330
+ /// </summary>
331
+ /// <param name='operations'>
332
+ /// The operations group for this extension method.
333
+ /// </param>
334
+ /// <param name='resourceGroupName'>
335
+ /// The name of the resource group. The name is case insensitive.
336
+ /// </param>
337
+ /// <param name='clusterName'>
338
+ /// Managed Cassandra cluster name.
339
+ /// </param>
340
+ /// <param name='commandId'>
341
+ /// Managed Cassandra cluster command id.
342
+ /// </param>
343
+ /// <param name='cancellationToken'>
344
+ /// The cancellation token.
345
+ /// </param>
346
+ public static async System . Threading . Tasks . Task < ListCommands > GetCommandAsyncAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , string commandId , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
347
+ {
348
+ using ( var _result = await operations . GetCommandAsyncWithHttpMessagesAsync ( resourceGroupName , clusterName , commandId , null , cancellationToken ) . ConfigureAwait ( false ) )
349
+ {
350
+ return _result . Body ;
351
+ }
352
+ }
353
+ /// <summary>
354
+ /// List the backups of this cluster that are available to restore.
355
+ /// </summary>
356
+ /// <param name='operations'>
357
+ /// The operations group for this extension method.
358
+ /// </param>
359
+ /// <param name='resourceGroupName'>
360
+ /// The name of the resource group. The name is case insensitive.
361
+ /// </param>
362
+ /// <param name='clusterName'>
363
+ /// Managed Cassandra cluster name.
364
+ /// </param>
365
+ public static System . Collections . Generic . IEnumerable < BackupResource > ListBackups ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName )
366
+ {
367
+ return ( ( ICassandraClustersOperations ) operations ) . ListBackupsAsync ( resourceGroupName , clusterName ) . GetAwaiter ( ) . GetResult ( ) ;
368
+ }
369
+
370
+ /// <summary>
371
+ /// List the backups of this cluster that are available to restore.
372
+ /// </summary>
373
+ /// <param name='operations'>
374
+ /// The operations group for this extension method.
375
+ /// </param>
376
+ /// <param name='resourceGroupName'>
377
+ /// The name of the resource group. The name is case insensitive.
378
+ /// </param>
379
+ /// <param name='clusterName'>
380
+ /// Managed Cassandra cluster name.
381
+ /// </param>
382
+ /// <param name='cancellationToken'>
383
+ /// The cancellation token.
384
+ /// </param>
385
+ public static async System . Threading . Tasks . Task < System . Collections . Generic . IEnumerable < BackupResource > > ListBackupsAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
386
+ {
387
+ using ( var _result = await operations . ListBackupsWithHttpMessagesAsync ( resourceGroupName , clusterName , null , cancellationToken ) . ConfigureAwait ( false ) )
388
+ {
389
+ return _result . Body ;
390
+ }
391
+ }
392
+ /// <summary>
393
+ /// Get the properties of an individual backup of this cluster that is
394
+ /// available to restore.
395
+ /// </summary>
396
+ /// <param name='operations'>
397
+ /// The operations group for this extension method.
398
+ /// </param>
399
+ /// <param name='resourceGroupName'>
400
+ /// The name of the resource group. The name is case insensitive.
401
+ /// </param>
402
+ /// <param name='clusterName'>
403
+ /// Managed Cassandra cluster name.
404
+ /// </param>
405
+ /// <param name='backupId'>
406
+ /// Id of a restorable backup of a Cassandra cluster.
407
+ /// </param>
408
+ public static BackupResource GetBackup ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , string backupId )
409
+ {
410
+ return ( ( ICassandraClustersOperations ) operations ) . GetBackupAsync ( resourceGroupName , clusterName , backupId ) . GetAwaiter ( ) . GetResult ( ) ;
411
+ }
412
+
413
+ /// <summary>
414
+ /// Get the properties of an individual backup of this cluster that is
415
+ /// available to restore.
416
+ /// </summary>
417
+ /// <param name='operations'>
418
+ /// The operations group for this extension method.
419
+ /// </param>
420
+ /// <param name='resourceGroupName'>
421
+ /// The name of the resource group. The name is case insensitive.
422
+ /// </param>
423
+ /// <param name='clusterName'>
424
+ /// Managed Cassandra cluster name.
425
+ /// </param>
426
+ /// <param name='backupId'>
427
+ /// Id of a restorable backup of a Cassandra cluster.
428
+ /// </param>
429
+ /// <param name='cancellationToken'>
430
+ /// The cancellation token.
431
+ /// </param>
432
+ public static async System . Threading . Tasks . Task < BackupResource > GetBackupAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , string backupId , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
433
+ {
434
+ using ( var _result = await operations . GetBackupWithHttpMessagesAsync ( resourceGroupName , clusterName , backupId , null , cancellationToken ) . ConfigureAwait ( false ) )
435
+ {
436
+ return _result . Body ;
437
+ }
438
+ }
439
+ /// <summary>
270
440
/// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
271
441
/// Deallocation will deallocate the host virtual machine of this cluster, and
272
442
/// reserved the data disk. This won't do anything on an already deallocated
@@ -281,9 +451,13 @@ public static CommandOutput InvokeCommand(this ICassandraClustersOperations oper
281
451
/// <param name='clusterName'>
282
452
/// Managed Cassandra cluster name.
283
453
/// </param>
284
- public static void Deallocate ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName )
454
+ /// <param name='xMsForceDeallocate'>
455
+ /// Force to deallocate a cluster of Cluster Type Production. Force to
456
+ /// deallocate a cluster of Cluster Type Production might cause data loss
457
+ /// </param>
458
+ public static void Deallocate ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , string xMsForceDeallocate = default ( string ) )
285
459
{
286
- ( ( ICassandraClustersOperations ) operations ) . DeallocateAsync ( resourceGroupName , clusterName ) . GetAwaiter ( ) . GetResult ( ) ;
460
+ ( ( ICassandraClustersOperations ) operations ) . DeallocateAsync ( resourceGroupName , clusterName , xMsForceDeallocate ) . GetAwaiter ( ) . GetResult ( ) ;
287
461
}
288
462
289
463
/// <summary>
@@ -301,12 +475,16 @@ public static void Deallocate(this ICassandraClustersOperations operations, stri
301
475
/// <param name='clusterName'>
302
476
/// Managed Cassandra cluster name.
303
477
/// </param>
478
+ /// <param name='xMsForceDeallocate'>
479
+ /// Force to deallocate a cluster of Cluster Type Production. Force to
480
+ /// deallocate a cluster of Cluster Type Production might cause data loss
481
+ /// </param>
304
482
/// <param name='cancellationToken'>
305
483
/// The cancellation token.
306
484
/// </param>
307
- public static async System . Threading . Tasks . Task DeallocateAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
485
+ public static async System . Threading . Tasks . Task DeallocateAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , string xMsForceDeallocate = default ( string ) , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
308
486
{
309
- ( await operations . DeallocateWithHttpMessagesAsync ( resourceGroupName , clusterName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
487
+ ( await operations . DeallocateWithHttpMessagesAsync ( resourceGroupName , clusterName , xMsForceDeallocate , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
310
488
}
311
489
/// <summary>
312
490
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
@@ -561,9 +739,13 @@ public static CommandOutput BeginInvokeCommand(this ICassandraClustersOperations
561
739
/// <param name='clusterName'>
562
740
/// Managed Cassandra cluster name.
563
741
/// </param>
564
- public static void BeginDeallocate ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName )
742
+ /// <param name='xMsForceDeallocate'>
743
+ /// Force to deallocate a cluster of Cluster Type Production. Force to
744
+ /// deallocate a cluster of Cluster Type Production might cause data loss
745
+ /// </param>
746
+ public static void BeginDeallocate ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , string xMsForceDeallocate = default ( string ) )
565
747
{
566
- ( ( ICassandraClustersOperations ) operations ) . BeginDeallocateAsync ( resourceGroupName , clusterName ) . GetAwaiter ( ) . GetResult ( ) ;
748
+ ( ( ICassandraClustersOperations ) operations ) . BeginDeallocateAsync ( resourceGroupName , clusterName , xMsForceDeallocate ) . GetAwaiter ( ) . GetResult ( ) ;
567
749
}
568
750
569
751
/// <summary>
@@ -581,12 +763,16 @@ public static void BeginDeallocate(this ICassandraClustersOperations operations,
581
763
/// <param name='clusterName'>
582
764
/// Managed Cassandra cluster name.
583
765
/// </param>
766
+ /// <param name='xMsForceDeallocate'>
767
+ /// Force to deallocate a cluster of Cluster Type Production. Force to
768
+ /// deallocate a cluster of Cluster Type Production might cause data loss
769
+ /// </param>
584
770
/// <param name='cancellationToken'>
585
771
/// The cancellation token.
586
772
/// </param>
587
- public static async System . Threading . Tasks . Task BeginDeallocateAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
773
+ public static async System . Threading . Tasks . Task BeginDeallocateAsync ( this ICassandraClustersOperations operations , string resourceGroupName , string clusterName , string xMsForceDeallocate = default ( string ) , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
588
774
{
589
- ( await operations . BeginDeallocateWithHttpMessagesAsync ( resourceGroupName , clusterName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
775
+ ( await operations . BeginDeallocateWithHttpMessagesAsync ( resourceGroupName , clusterName , xMsForceDeallocate , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
590
776
}
591
777
/// <summary>
592
778
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
0 commit comments