Skip to content

Commit f22f6cf

Browse files
committed
Version 1.11
Schema update.
1 parent 54eb553 commit f22f6cf

File tree

515 files changed

+53252
-34703
lines changed

Some content is hidden

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

515 files changed

+53252
-34703
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 1.11
4+
5+
Schema update.
6+
37
## Version 1.10
48

59
- Updated schema,
@@ -14,7 +18,7 @@ Fixes:
1418

1519
## Version 1.8
1620

17-
New Features:
21+
New Features:
1822

1923
- Get-RscVmwareVm now takes a cluster object via pipeline. e.g. `Get-RscCluster "foo" | Get-RscVmwareVm`
2024
- Add snapshotconsistencylevel to vSphereVM fields that are fetched from API.

RubrikSecurityCloud/RubrikSecurityCloud.PowerShell/RubrikSecurityCloud.psd1

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
RootModule = 'LoadModule.psm1'
99

1010
# Version number of this module.
11-
ModuleVersion = '1.10'
11+
ModuleVersion = '1.11'
1212

1313
# Supported PSEditions
1414
# CompatiblePSEditions = @()
@@ -27,7 +27,7 @@ Copyright = '(c) Rubrik. All rights reserved.'
2727

2828
# Description of the functionality provided by this module
2929
# NOTE: This entry is generated.
30-
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20240923-11 .'
30+
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20241007-35 .'
3131

3232
# Minimum version of the PowerShell engine required by this module
3333
PowerShellVersion = '5.0.0'

RubrikSecurityCloud/RubrikSecurityCloud.PowerShell/generated/New-RscMutationAws.cs

+20
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
256256
/// accessKey = $someString
257257
/// # REQUIRED
258258
/// secretKey = $someString
259+
/// # OPTIONAL
260+
/// stsEndpoint = $someString
261+
/// # OPTIONAL
262+
/// stsRegion = $someAwsRegion # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsRegion]) for enum values.
259263
/// }
260264
///
261265
/// # Execute the query
@@ -1496,6 +1500,10 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
14961500
/// accessKey = $someString
14971501
/// # REQUIRED
14981502
/// secretKey = $someString
1503+
/// # OPTIONAL
1504+
/// stsEndpoint = $someString
1505+
/// # OPTIONAL
1506+
/// stsRegion = $someAwsRegion # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsRegion]) for enum values.
14991507
/// }
15001508
///
15011509
/// # Execute the query
@@ -2100,6 +2108,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
21002108
/// }
21012109
/// # OPTIONAL
21022110
/// outpostAwsNativeId = $someString
2111+
/// # OPTIONAL
2112+
/// orgId = $someString
21032113
/// }
21042114
///
21052115
/// # Execute the query
@@ -2815,6 +2825,10 @@ internal void InitMutationCreateAwsAccount()
28152825
accessKey = $someString
28162826
# REQUIRED
28172827
secretKey = $someString
2828+
# OPTIONAL
2829+
stsEndpoint = $someString
2830+
# OPTIONAL
2831+
stsRegion = $someAwsRegion # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsRegion]) for enum values.
28182832
}"
28192833
);
28202834
}
@@ -3895,6 +3909,10 @@ internal void InitMutationUpdateAwsAccount()
38953909
accessKey = $someString
38963910
# REQUIRED
38973911
secretKey = $someString
3912+
# OPTIONAL
3913+
stsEndpoint = $someString
3914+
# OPTIONAL
3915+
stsRegion = $someAwsRegion # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsRegion]) for enum values.
38983916
}"
38993917
);
39003918
}
@@ -4411,6 +4429,8 @@ internal void InitMutationValidateAndCreateAwsCloudAccount()
44114429
}
44124430
# OPTIONAL
44134431
outpostAwsNativeId = $someString
4432+
# OPTIONAL
4433+
orgId = $someString
44144434
}"
44154435
);
44164436
}

RubrikSecurityCloud/RubrikSecurityCloud.PowerShell/generated/New-RscMutationFileset.cs

+101-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
namespace RubrikSecurityCloud.PowerShell.Cmdlets
2424
{
2525
/// <summary>
26-
/// Create a new RscQuery object for any of the 6
26+
/// Create a new RscQuery object for any of the 7
2727
/// operations in the 'Fileset' API domain:
28-
/// BulkCreate, BulkCreateTemplates, BulkDelete, BulkDeleteTemplate, BulkUpdateTemplate, or RecoverFiles.
28+
/// BulkCreate, BulkCreateTemplates, BulkDelete, BulkDeleteTemplate, BulkUpdateTemplate, RecoverFiles, or Update.
2929
/// </summary>
3030
/// <description>
3131
/// New-RscMutationFileset creates a new
@@ -35,11 +35,11 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
3535
/// connection to run. To execute the operation, either call Invoke()
3636
/// on the object returned by this cmdlet, or pass the object to
3737
/// Invoke-Rsc.
38-
/// There are 6 operations
38+
/// There are 7 operations
3939
/// in the 'Fileset' API domain. Select the operation this
4040
/// query is for by specifying the appropriate value for the
4141
/// -Operation parameter;
42-
/// one of: BulkCreate, BulkCreateTemplates, BulkDelete, BulkDeleteTemplate, BulkUpdateTemplate, or RecoverFiles.
42+
/// one of: BulkCreate, BulkCreateTemplates, BulkDelete, BulkDeleteTemplate, BulkUpdateTemplate, RecoverFiles, or Update.
4343
/// Each operation has its own set of variables that can be set with
4444
/// the -Var parameter. For more info about the variables,
4545
/// call Info() on the object returned by this cmdlet, for example:
@@ -434,6 +434,52 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
434434
///
435435
/// </example>
436436
///
437+
/// <example>
438+
/// Runs the Update operation
439+
/// of the 'Fileset' API domain.
440+
/// <code>
441+
/// PS &gt;
442+
///
443+
///
444+
/// # Create an RscQuery object for:
445+
/// # API Domain: Fileset
446+
/// # API Operation: Update
447+
///
448+
/// $query = New-RscMutationFileset -Update
449+
///
450+
/// # REQUIRED
451+
/// $query.Var.input = @{
452+
/// # REQUIRED
453+
/// filesetUpdateProperties = @{
454+
/// # OPTIONAL
455+
/// configuredSlaDomainId = $someString
456+
/// # OPTIONAL
457+
/// forceFull = $someBoolean
458+
/// # OPTIONAL
459+
/// forceFullPartitionIds = @(
460+
/// $someInt
461+
/// )
462+
/// # OPTIONAL
463+
/// snapMirrorLabelForFullBackup = $someString
464+
/// # OPTIONAL
465+
/// snapMirrorLabelForIncrementalBackup = $someString
466+
/// }
467+
/// # REQUIRED
468+
/// id = $someString
469+
/// }
470+
///
471+
/// # Execute the query
472+
///
473+
/// $result = $query | Invoke-Rsc
474+
///
475+
/// Write-Host $result.GetType().Name # prints: FilesetDetail
476+
///
477+
///
478+
///
479+
/// </code>
480+
///
481+
/// </example>
482+
///
437483
[CmdletBinding()]
438484
[Cmdlet(
439485
"New",
@@ -456,6 +502,7 @@ public class New_RscMutationFileset : RscGqlPSCmdlet
456502
"BulkDeleteTemplate",
457503
"BulkUpdateTemplate",
458504
"RecoverFiles",
505+
"Update",
459506
IgnoreCase = true)]
460507
public string Operation { get; set; } = "";
461508

@@ -489,6 +536,9 @@ protected override void ProcessRecord()
489536
case "RecoverFiles":
490537
this.ProcessRecord_RecoverFiles();
491538
break;
539+
case "Update":
540+
this.ProcessRecord_Update();
541+
break;
492542
default:
493543
throw new Exception("Unknown Operation " + this.GetOp().OpName());
494544
}
@@ -553,6 +603,15 @@ internal void ProcessRecord_RecoverFiles()
553603
InitMutationFilesetRecoverFiles();
554604
}
555605

606+
// This parameter set invokes a single graphql operation:
607+
// updateFileset.
608+
internal void ProcessRecord_Update()
609+
{
610+
this._logger.name += " -Update";
611+
// Create new graphql operation updateFileset
612+
InitMutationUpdateFileset();
613+
}
614+
556615

557616
// Create new GraphQL Mutation:
558617
// bulkCreateFilesets(input: BulkCreateFilesetsInput!): BulkCreateFilesetsReply!
@@ -864,6 +923,44 @@ internal void InitMutationFilesetRecoverFiles()
864923
);
865924
}
866925

926+
// Create new GraphQL Mutation:
927+
// updateFileset(input: UpdateFilesetInput!): FilesetDetail!
928+
internal void InitMutationUpdateFileset()
929+
{
930+
Tuple<string, string>[] argDefs = {
931+
Tuple.Create("input", "UpdateFilesetInput!"),
932+
};
933+
Initialize(
934+
argDefs,
935+
"mutation",
936+
"MutationUpdateFileset",
937+
"($input: UpdateFilesetInput!)",
938+
"FilesetDetail",
939+
Mutation.UpdateFileset,
940+
Mutation.UpdateFilesetFieldSpec,
941+
@"# REQUIRED
942+
$query.Var.input = @{
943+
# REQUIRED
944+
filesetUpdateProperties = @{
945+
# OPTIONAL
946+
configuredSlaDomainId = $someString
947+
# OPTIONAL
948+
forceFull = $someBoolean
949+
# OPTIONAL
950+
forceFullPartitionIds = @(
951+
$someInt
952+
)
953+
# OPTIONAL
954+
snapMirrorLabelForFullBackup = $someString
955+
# OPTIONAL
956+
snapMirrorLabelForIncrementalBackup = $someString
957+
}
958+
# REQUIRED
959+
id = $someString
960+
}"
961+
);
962+
}
963+
867964

868965
} // class New_RscMutationFileset
869966
}

RubrikSecurityCloud/RubrikSecurityCloud.PowerShell/generated/New-RscMutationGcp.cs

+30
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,21 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
148148
/// cloudAccountsProjectIds = @(
149149
/// $someString
150150
/// )
151+
/// # OPTIONAL
152+
/// projectIds = @(
153+
/// $someString
154+
/// )
155+
/// # OPTIONAL
156+
/// featuresWithPermissionGroups = @(
157+
/// @{
158+
/// # OPTIONAL
159+
/// featureType = $someCloudAccountFeature # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CloudAccountFeature]) for enum values.
160+
/// # OPTIONAL
161+
/// permissionsGroups = @(
162+
/// $somePermissionsGroup # Call [Enum]::GetValues([RubrikSecurityCloud.Types.PermissionsGroup]) for enum values.
163+
/// )
164+
/// }
165+
/// )
151166
/// }
152167
///
153168
/// # Execute the query
@@ -803,6 +818,21 @@ internal void InitMutationGcpCloudAccountAddProjects()
803818
cloudAccountsProjectIds = @(
804819
$someString
805820
)
821+
# OPTIONAL
822+
projectIds = @(
823+
$someString
824+
)
825+
# OPTIONAL
826+
featuresWithPermissionGroups = @(
827+
@{
828+
# OPTIONAL
829+
featureType = $someCloudAccountFeature # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CloudAccountFeature]) for enum values.
830+
# OPTIONAL
831+
permissionsGroups = @(
832+
$somePermissionsGroup # Call [Enum]::GetValues([RubrikSecurityCloud.Types.PermissionsGroup]) for enum values.
833+
)
834+
}
835+
)
806836
}"
807837
);
808838
}

RubrikSecurityCloud/RubrikSecurityCloud.PowerShell/generated/New-RscMutationO365.cs

+4
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
972972
/// # OPTIONAL
973973
/// destinationOrgUuid = $someString
974974
/// # OPTIONAL
975+
/// rubrikOrgUuid = $someString
976+
/// # OPTIONAL
975977
/// SharePointDriveRestoreConfig = @{
976978
/// # REQUIRED
977979
/// driveRestoreConfig = @{
@@ -3260,6 +3262,8 @@ internal void InitMutationRestoreO365Snappable()
32603262
# OPTIONAL
32613263
destinationOrgUuid = $someString
32623264
# OPTIONAL
3265+
rubrikOrgUuid = $someString
3266+
# OPTIONAL
32633267
SharePointDriveRestoreConfig = @{
32643268
# REQUIRED
32653269
driveRestoreConfig = @{

0 commit comments

Comments
 (0)