23
23
namespace RubrikSecurityCloud . PowerShell . Cmdlets
24
24
{
25
25
/// <summary>
26
- /// Create a new RscQuery object for any of the 18
26
+ /// Create a new RscQuery object for any of the 19
27
27
/// operations in the 'Cluster' API domain:
28
- /// AddClusterNodes, AddClusterRoute, AddNodesToCloud, DeleteClusterRoute, GenerateClusterRegistrationToken, RecoverCloud, RegisterCloud, ReleasePersistentExo, RemoveCdm, RemoveClusterNodes, RequestPersistentExo, SetMissingClusterStatus, UpdateClusterDefaultAddress, UpdateClusterLocation, UpdateClusterNtpServers, UpdateClusterPauseStatus, UpdateClusterSettings, or UpdatePreviewerClusterConfig.
28
+ /// AddClusterNodes, AddClusterRoute, AddNodesToCloud, DeleteClusterRoute, GenerateClusterRegistrationToken, MigrateCloudClusterDisks, RecoverCloud, RegisterCloud, ReleasePersistentExo, RemoveCdm, RemoveClusterNodes, RequestPersistentExo, SetMissingClusterStatus, UpdateClusterDefaultAddress, UpdateClusterLocation, UpdateClusterNtpServers, UpdateClusterPauseStatus, UpdateClusterSettings, or UpdatePreviewerClusterConfig.
29
29
/// </summary>
30
30
/// <description>
31
31
/// New-RscMutationCluster creates a new
@@ -35,11 +35,11 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
35
35
/// connection to run. To execute the operation, either call Invoke()
36
36
/// on the object returned by this cmdlet, or pass the object to
37
37
/// Invoke-Rsc.
38
- /// There are 18 operations
38
+ /// There are 19 operations
39
39
/// in the 'Cluster' API domain. Select the operation this
40
40
/// query is for by specifying the appropriate value for the
41
41
/// -Operation parameter;
42
- /// one of: AddClusterNodes, AddClusterRoute, AddNodesToCloud, DeleteClusterRoute, GenerateClusterRegistrationToken, RecoverCloud, RegisterCloud, ReleasePersistentExo, RemoveCdm, RemoveClusterNodes, RequestPersistentExo, SetMissingClusterStatus, UpdateClusterDefaultAddress, UpdateClusterLocation, UpdateClusterNtpServers, UpdateClusterPauseStatus, UpdateClusterSettings, or UpdatePreviewerClusterConfig.
42
+ /// one of: AddClusterNodes, AddClusterRoute, AddNodesToCloud, DeleteClusterRoute, GenerateClusterRegistrationToken, MigrateCloudClusterDisks, RecoverCloud, RegisterCloud, ReleasePersistentExo, RemoveCdm, RemoveClusterNodes, RequestPersistentExo, SetMissingClusterStatus, UpdateClusterDefaultAddress, UpdateClusterLocation, UpdateClusterNtpServers, UpdateClusterPauseStatus, UpdateClusterSettings, or UpdatePreviewerClusterConfig.
43
43
/// Each operation has its own set of variables that can be set with
44
44
/// the -Var parameter. For more info about the variables,
45
45
/// call Info() on the object returned by this cmdlet, for example:
@@ -350,6 +350,41 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
350
350
/// </example>
351
351
///
352
352
/// <example>
353
+ /// Runs the MigrateCloudClusterDisks operation
354
+ /// of the 'Cluster' API domain.
355
+ /// <code>
356
+ /// PS >
357
+ ///
358
+ ///
359
+ /// # Create an RscQuery object for:
360
+ /// # API Domain: Cluster
361
+ /// # API Operation: MigrateCloudClusterDisks
362
+ ///
363
+ /// $query = New-RscMutationCluster -MigrateCloudClusterDisks
364
+ ///
365
+ /// # REQUIRED
366
+ /// $query.Var.input = @{
367
+ /// # REQUIRED
368
+ /// cloudAccountId = $someString
369
+ /// # REQUIRED
370
+ /// vendor = $someCcpVendorType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CcpVendorType]) for enum values.
371
+ /// # REQUIRED
372
+ /// clusterUuid = $someString
373
+ /// }
374
+ ///
375
+ /// # Execute the query
376
+ ///
377
+ /// $result = $query | Invoke-Rsc
378
+ ///
379
+ /// Write-Host $result.GetType().Name # prints: CcProvisionJobReply
380
+ ///
381
+ ///
382
+ ///
383
+ /// </code>
384
+ ///
385
+ /// </example>
386
+ ///
387
+ /// <example>
353
388
/// Runs the RecoverCloud operation
354
389
/// of the 'Cluster' API domain.
355
390
/// <code>
@@ -953,6 +988,7 @@ public class New_RscMutationCluster : RscGqlPSCmdlet
953
988
"AddNodesToCloud" ,
954
989
"DeleteClusterRoute" ,
955
990
"GenerateClusterRegistrationToken" ,
991
+ "MigrateCloudClusterDisks" ,
956
992
"RecoverCloud" ,
957
993
"RegisterCloud" ,
958
994
"ReleasePersistentExo" ,
@@ -996,6 +1032,9 @@ protected override void ProcessRecord()
996
1032
case "GenerateClusterRegistrationToken" :
997
1033
this . ProcessRecord_GenerateClusterRegistrationToken ( ) ;
998
1034
break ;
1035
+ case "MigrateCloudClusterDisks" :
1036
+ this . ProcessRecord_MigrateCloudClusterDisks ( ) ;
1037
+ break ;
999
1038
case "RecoverCloud" :
1000
1039
this . ProcessRecord_RecoverCloud ( ) ;
1001
1040
break ;
@@ -1090,6 +1129,15 @@ internal void ProcessRecord_GenerateClusterRegistrationToken()
1090
1129
InitMutationGenerateClusterRegistrationToken ( ) ;
1091
1130
}
1092
1131
1132
+ // This parameter set invokes a single graphql operation:
1133
+ // migrateCloudClusterDisks.
1134
+ internal void ProcessRecord_MigrateCloudClusterDisks ( )
1135
+ {
1136
+ this . _logger . name += " -MigrateCloudClusterDisks" ;
1137
+ // Create new graphql operation migrateCloudClusterDisks
1138
+ InitMutationMigrateCloudClusterDisks ( ) ;
1139
+ }
1140
+
1093
1141
// This parameter set invokes a single graphql operation:
1094
1142
// recoverCloudCluster.
1095
1143
internal void ProcessRecord_RecoverCloud ( )
@@ -1441,6 +1489,33 @@ internal void InitMutationGenerateClusterRegistrationToken()
1441
1489
) ;
1442
1490
}
1443
1491
1492
+ // Create new GraphQL Mutation:
1493
+ // migrateCloudClusterDisks(input: MigrateCloudClusterDisksInput!): CcProvisionJobReply!
1494
+ internal void InitMutationMigrateCloudClusterDisks ( )
1495
+ {
1496
+ Tuple < string , string > [ ] argDefs = {
1497
+ Tuple . Create ( "input" , "MigrateCloudClusterDisksInput!" ) ,
1498
+ } ;
1499
+ Initialize (
1500
+ argDefs ,
1501
+ "mutation" ,
1502
+ "MutationMigrateCloudClusterDisks" ,
1503
+ "($input: MigrateCloudClusterDisksInput!)" ,
1504
+ "CcProvisionJobReply" ,
1505
+ Mutation . MigrateCloudClusterDisks ,
1506
+ Mutation . MigrateCloudClusterDisksFieldSpec ,
1507
+ @"# REQUIRED
1508
+ $query.Var.input = @{
1509
+ # REQUIRED
1510
+ cloudAccountId = $someString
1511
+ # REQUIRED
1512
+ vendor = $someCcpVendorType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CcpVendorType]) for enum values.
1513
+ # REQUIRED
1514
+ clusterUuid = $someString
1515
+ }"
1516
+ ) ;
1517
+ }
1518
+
1444
1519
// Create new GraphQL Mutation:
1445
1520
// recoverCloudCluster(input: RecoverCloudClusterInput!): CcProvisionJobReply!
1446
1521
internal void InitMutationRecoverCloudCluster ( )
0 commit comments