Skip to content

Commit 8dded3d

Browse files
committed
Version 1.12
New Features: - Get-RscSla now retrieves all fields required to update or create SLA Domains. - Set-RscSla allows pipeline input of SLA object, allowing full SLA domain automation. - Get-RscNutanixVm can now filter by cluster. - Get-RscVmwareVm can now filter by organization. - Get-RscMssqlInstance can now filter out relics and replicated objects (replicas) with -Relic:$false -Replica:$false - Get-RscMssqlDatabase can now filter out relics and replicated objects (replicas) with -Relic:$false -Replica:$false - Register-RscRubrikBackupService now supports adding physical hosts by hostname. - Get-RscNasSystem no longer requires -id parameter - Get-RscNasShare no longer requires -id parameter - New Get cmdlets - Get-RscArchivalLocation - Get-RscAzureNativeVm - Get-RscCloudNativeTagRule - Get-RscDb2Database - Get-RscDb2Instance - Get-RscHypervVm - Get-RscMongoCollection - Get-RscMongoDatabase - Get-RscMongoSource - Get-RscOracleDatabase - Get-RscOracleHost - Get-RscSapHanaDatabase - Get-RscSapHanaSystem - Get-RscAwsNativeEc2Instance Fixes: - Get-RscSnapshot no longer throws an exception due to overfetch of fields. - New-RscSla now properly adds arguments to query. - Get-RscOrganization correctly retrieves organizations by name - Fixed format widths on some table views - Added table formatting to cmdlets. You can revert back to list view with `<cmdlet>` | Format-List
1 parent d1ba8e3 commit 8dded3d

File tree

1,741 files changed

+110915
-35378
lines changed

Some content is hidden

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

1,741 files changed

+110915
-35378
lines changed

CHANGELOG.md

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

3+
## Version 1.12
4+
5+
New Features:
6+
7+
- Get-RscSla now retrieves all fields required to update or create SLA Domains.
8+
- Set-RscSla allows pipeline input of SLA object, allowing full SLA domain automation.
9+
- Get-RscNutanixVm can now filter by cluster.
10+
- Get-RscVmwareVm can now filter by organization.
11+
- Get-RscMssqlInstance can now filter out relics and replicated objects (replicas) with -Relic:$false -Replica:$false
12+
- Get-RscMssqlDatabase can now filter out relics and replicated objects (replicas) with -Relic:$false -Replica:$false
13+
- Register-RscRubrikBackupService now supports adding physical hosts by hostname.
14+
- Get-RscNasSystem no longer requires -id parameter
15+
- Get-RscNasShare no longer requires -id parameter
16+
- New Get cmdlets
17+
- Get-RscArchivalLocation
18+
- Get-RscAzureNativeVm
19+
- Get-RscCloudNativeTagRule
20+
- Get-RscDb2Database
21+
- Get-RscDb2Instance
22+
- Get-RscHypervVm
23+
- Get-RscMongoCollection
24+
- Get-RscMongoDatabase
25+
- Get-RscMongoSource
26+
- Get-RscOracleDatabase
27+
- Get-RscOracleHost
28+
- Get-RscSapHanaDatabase
29+
- Get-RscSapHanaSystem
30+
- Get-RscAwsNativeEc2Instance
31+
32+
Fixes:
33+
34+
- Get-RscSnapshot no longer throws an exception due to overfetch of fields.
35+
- New-RscSla now properly adds arguments to query.
36+
- Get-RscOrganization correctly retrieves organizations by name
37+
- Fixed format widths on some table views
38+
- Added table formatting to cmdlets. You can revert back to list view with `<cmdlet>` | Format-List
39+
340
## Version 1.11.2
441

542
Schema update.

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ clean:
1818

1919
test:
2020
pwsh -c "./Utils/Test-RscSdk.ps1"
21+
22+
test-toolkit:
23+
pwsh -c "./Utils/Test-RscSdk.ps1 -SkipCoreTests"

RubrikSecurityCloud/RubrikSecurityCloud.PowerShell/RubrikSecurityCloud.psd1

+21-3
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.11.2'
11+
ModuleVersion = '1.12'
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: v20241014-23 .'
30+
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20241209-45 .'
3131

3232
# Minimum version of the PowerShell engine required by this module
3333
PowerShellVersion = '5.0.0'
@@ -62,12 +62,30 @@ PowerShellVersion = '5.0.0'
6262

6363
# Format files (.ps1xml) to be loaded when importing this module
6464
FormatsToProcess = @(
65+
"Toolkit/Format/AwsNativeEc2Instance.Format.ps1xml",
66+
"Toolkit/Format/AzureNativeVirtualMachine.Format.ps1xml",
67+
"Toolkit/Format/CloudNativeTagRule.Format.ps1xml",
68+
"Toolkit/Format/Db2Database.Format.ps1xml",
69+
"Toolkit/Format/Db2Instance.Format.ps1xml",
6570
"Toolkit/Format/GlobalSlaReply.Format.ps1xml",
71+
"Toolkit/Format/HyperVVirtualMachine.Format.ps1xml",
72+
"Toolkit/Format/MongoCollection.Format.ps1xml",
73+
"Toolkit/Format/MongoDatabase.Format.ps1xml",
74+
"Toolkit/Format/MongoSource.Format.ps1xml",
75+
"Toolkit/Format/MssqlDatabase.Format.ps1xml",
76+
"Toolkit/Format/MssqlInstance.Format.ps1xml",
6677
"Toolkit/Format/NutanixVm.Format.ps1xml",
78+
"Toolkit/Format/OracleDatabase.Format.ps1xml",
79+
"Toolkit/Format/OracleHost.Format.ps1xml",
80+
"Toolkit/Format/Org.Format.ps1xml",
6781
"Toolkit/Format/Permission.Format.ps1xml",
82+
"Toolkit/Format/PhysicalHost.Format.ps1xml",
6883
"Toolkit/Format/Role.Format.ps1xml",
84+
"Toolkit/Format/SapHanaDatabase.Format.ps1xml",
85+
"Toolkit/Format/SapHanaSystem.Format.ps1xml",
6986
"Toolkit/Format/Snappable.Format.ps1xml",
70-
"Toolkit/Format/VsphereVm.Format.ps1xml")
87+
"Toolkit/Format/VsphereVm.Format.ps1xml",
88+
"Toolkit/Format/WindowsCluster.Format.ps1xml")
7189

7290
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
7391
NestedModules = @('PublicFunctions.psm1')

RubrikSecurityCloud/RubrikSecurityCloud.PowerShell/docs/GenerateDocs.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ foreach ($memberItem in $xml.doc.members.member){
6868

6969
$cmdletName = $nameArr[1].split(".")[$_.count -1]
7070
$cmdletName = $cmdLetName.Replace("_","-")
71-
#Write-Output("`nFound Cmdlet: " + $cmdletName);
71+
Write-Output("`nProcessing Cmdlet: " + $cmdletName);
7272
#Write-Output("Opening markdownd for $cmdletName")
7373

7474
# TODO: SPARK-410830 SDK Build fails in GenerateDocs.ps1
7575
# see https://rubrik.atlassian.net/browse/SPARK-410830
76-
if ($cmdletName -eq "New-RscMutationSyslog" -or $cmdletName -eq "New-RscQueryMisc"){
77-
Write-Output("Skipping $cmdletName due to known issue SPARK-410830")
76+
if ($cmdletName -eq "New-RscMutationSyslog" -or $cmdletName -eq "New-RscQueryMisc" -or $cmdletName -eq "Get-RscSnapshot"){
77+
Write-Warning("Skipping $cmdletName due to known issue SPARK-410830")
7878
continue
7979
}
8080

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

+28-2
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,17 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
176176
/// name = $someString
177177
/// # REQUIRED
178178
/// isOrgAdmin = $someBoolean
179+
/// # OPTIONAL
180+
/// authDomainId = $someString
179181
/// }
180182
/// )
181183
/// # OPTIONAL
182184
/// isServiceAccountEnabled = $someBoolean
183185
/// # OPTIONAL
184186
/// isServiceAccountDisabled = $someBoolean
185187
/// # OPTIONAL
188+
/// isInheritIpAllowlistDisabled = $someBoolean
189+
/// # OPTIONAL
186190
/// crossAccountCapabilities = @(
187191
/// $someCrossAccountCapability # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CrossAccountCapability]) for enum values.
188192
/// )
@@ -567,6 +571,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
567571
/// $query.Var.protectableClusters = @(
568572
/// $someString
569573
/// )
574+
/// # OPTIONAL
575+
/// $query.Var.isSynced = $someBoolean
570576
///
571577
/// # Execute the query
572578
///
@@ -682,13 +688,19 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
682688
/// name = $someString
683689
/// # REQUIRED
684690
/// isOrgAdmin = $someBoolean
691+
/// # OPTIONAL
692+
/// authDomainId = $someString
685693
/// }
686694
/// )
687695
/// # OPTIONAL
688696
/// isServiceAccountEnabled = $someBoolean
689697
/// # OPTIONAL
690698
/// isServiceAccountDisabled = $someBoolean
691699
/// # OPTIONAL
700+
/// isInheritIpAllowlistDisabled = $someBoolean
701+
/// # OPTIONAL
702+
/// shouldKeepGlobalIpAllowlist = $someBoolean
703+
/// # OPTIONAL
692704
/// crossAccountCapabilities = @(
693705
/// $someCrossAccountCapability # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CrossAccountCapability]) for enum values.
694706
/// )
@@ -1082,13 +1094,17 @@ internal void InitMutationCreateOrg()
10821094
name = $someString
10831095
# REQUIRED
10841096
isOrgAdmin = $someBoolean
1097+
# OPTIONAL
1098+
authDomainId = $someString
10851099
}
10861100
)
10871101
# OPTIONAL
10881102
isServiceAccountEnabled = $someBoolean
10891103
# OPTIONAL
10901104
isServiceAccountDisabled = $someBoolean
10911105
# OPTIONAL
1106+
isInheritIpAllowlistDisabled = $someBoolean
1107+
# OPTIONAL
10921108
crossAccountCapabilities = @(
10931109
$someCrossAccountCapability # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CrossAccountCapability]) for enum values.
10941110
)
@@ -1352,6 +1368,7 @@ internal void InitMutationGenerateTotpSecret()
13521368
// description: String!
13531369
// permissions: [PermissionInput!]!
13541370
// protectableClusters: [String!]!
1371+
// isSynced: Boolean
13551372
// ): UUID!
13561373
internal void InitMutationMutateRole()
13571374
{
@@ -1361,12 +1378,13 @@ internal void InitMutationMutateRole()
13611378
Tuple.Create("description", "String!"),
13621379
Tuple.Create("permissions", "[PermissionInput!]!"),
13631380
Tuple.Create("protectableClusters", "[String!]!"),
1381+
Tuple.Create("isSynced", "Boolean"),
13641382
};
13651383
Initialize(
13661384
argDefs,
13671385
"mutation",
13681386
"MutationMutateRole",
1369-
"($roleId: String,$name: String!,$description: String!,$permissions: [PermissionInput!]!,$protectableClusters: [String!]!)",
1387+
"($roleId: String,$name: String!,$description: String!,$permissions: [PermissionInput!]!,$protectableClusters: [String!]!,$isSynced: Boolean)",
13701388
"System.String",
13711389
Mutation.MutateRole,
13721390
Mutation.MutateRoleFieldSpec,
@@ -1397,7 +1415,9 @@ internal void InitMutationMutateRole()
13971415
# REQUIRED
13981416
$query.Var.protectableClusters = @(
13991417
$someString
1400-
)"
1418+
)
1419+
# OPTIONAL
1420+
$query.Var.isSynced = $someBoolean"
14011421
);
14021422
}
14031423

@@ -1505,13 +1525,19 @@ internal void InitMutationUpdateOrg()
15051525
name = $someString
15061526
# REQUIRED
15071527
isOrgAdmin = $someBoolean
1528+
# OPTIONAL
1529+
authDomainId = $someString
15081530
}
15091531
)
15101532
# OPTIONAL
15111533
isServiceAccountEnabled = $someBoolean
15121534
# OPTIONAL
15131535
isServiceAccountDisabled = $someBoolean
15141536
# OPTIONAL
1537+
isInheritIpAllowlistDisabled = $someBoolean
1538+
# OPTIONAL
1539+
shouldKeepGlobalIpAllowlist = $someBoolean
1540+
# OPTIONAL
15151541
crossAccountCapabilities = @(
15161542
$someCrossAccountCapability # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CrossAccountCapability]) for enum values.
15171543
)

0 commit comments

Comments
 (0)