Skip to content

Commit

Permalink
Version 1.12
Browse files Browse the repository at this point in the history
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
  • Loading branch information
guirava committed Dec 13, 2024
1 parent d1ba8e3 commit 8dded3d
Show file tree
Hide file tree
Showing 1,741 changed files with 110,915 additions and 35,378 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# Changelog

## 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

## Version 1.11.2

Schema update.
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ clean:

test:
pwsh -c "./Utils/Test-RscSdk.ps1"

test-toolkit:
pwsh -c "./Utils/Test-RscSdk.ps1 -SkipCoreTests"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
RootModule = 'LoadModule.psm1'

# Version number of this module.
ModuleVersion = '1.11.2'
ModuleVersion = '1.12'

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

# Description of the functionality provided by this module
# NOTE: This entry is generated.
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20241014-23 .'
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20241209-45 .'

# Minimum version of the PowerShell engine required by this module
PowerShellVersion = '5.0.0'
Expand Down Expand Up @@ -62,12 +62,30 @@ PowerShellVersion = '5.0.0'

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = @(
"Toolkit/Format/AwsNativeEc2Instance.Format.ps1xml",
"Toolkit/Format/AzureNativeVirtualMachine.Format.ps1xml",
"Toolkit/Format/CloudNativeTagRule.Format.ps1xml",
"Toolkit/Format/Db2Database.Format.ps1xml",
"Toolkit/Format/Db2Instance.Format.ps1xml",
"Toolkit/Format/GlobalSlaReply.Format.ps1xml",
"Toolkit/Format/HyperVVirtualMachine.Format.ps1xml",
"Toolkit/Format/MongoCollection.Format.ps1xml",
"Toolkit/Format/MongoDatabase.Format.ps1xml",
"Toolkit/Format/MongoSource.Format.ps1xml",
"Toolkit/Format/MssqlDatabase.Format.ps1xml",
"Toolkit/Format/MssqlInstance.Format.ps1xml",
"Toolkit/Format/NutanixVm.Format.ps1xml",
"Toolkit/Format/OracleDatabase.Format.ps1xml",
"Toolkit/Format/OracleHost.Format.ps1xml",
"Toolkit/Format/Org.Format.ps1xml",
"Toolkit/Format/Permission.Format.ps1xml",
"Toolkit/Format/PhysicalHost.Format.ps1xml",
"Toolkit/Format/Role.Format.ps1xml",
"Toolkit/Format/SapHanaDatabase.Format.ps1xml",
"Toolkit/Format/SapHanaSystem.Format.ps1xml",
"Toolkit/Format/Snappable.Format.ps1xml",
"Toolkit/Format/VsphereVm.Format.ps1xml")
"Toolkit/Format/VsphereVm.Format.ps1xml",
"Toolkit/Format/WindowsCluster.Format.ps1xml")

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
NestedModules = @('PublicFunctions.psm1')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ foreach ($memberItem in $xml.doc.members.member){

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,17 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// name = $someString
/// # REQUIRED
/// isOrgAdmin = $someBoolean
/// # OPTIONAL
/// authDomainId = $someString
/// }
/// )
/// # OPTIONAL
/// isServiceAccountEnabled = $someBoolean
/// # OPTIONAL
/// isServiceAccountDisabled = $someBoolean
/// # OPTIONAL
/// isInheritIpAllowlistDisabled = $someBoolean
/// # OPTIONAL
/// crossAccountCapabilities = @(
/// $someCrossAccountCapability # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CrossAccountCapability]) for enum values.
/// )
Expand Down Expand Up @@ -567,6 +571,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// $query.Var.protectableClusters = @(
/// $someString
/// )
/// # OPTIONAL
/// $query.Var.isSynced = $someBoolean
///
/// # Execute the query
///
Expand Down Expand Up @@ -682,13 +688,19 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// name = $someString
/// # REQUIRED
/// isOrgAdmin = $someBoolean
/// # OPTIONAL
/// authDomainId = $someString
/// }
/// )
/// # OPTIONAL
/// isServiceAccountEnabled = $someBoolean
/// # OPTIONAL
/// isServiceAccountDisabled = $someBoolean
/// # OPTIONAL
/// isInheritIpAllowlistDisabled = $someBoolean
/// # OPTIONAL
/// shouldKeepGlobalIpAllowlist = $someBoolean
/// # OPTIONAL
/// crossAccountCapabilities = @(
/// $someCrossAccountCapability # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CrossAccountCapability]) for enum values.
/// )
Expand Down Expand Up @@ -1082,13 +1094,17 @@ internal void InitMutationCreateOrg()
name = $someString
# REQUIRED
isOrgAdmin = $someBoolean
# OPTIONAL
authDomainId = $someString
}
)
# OPTIONAL
isServiceAccountEnabled = $someBoolean
# OPTIONAL
isServiceAccountDisabled = $someBoolean
# OPTIONAL
isInheritIpAllowlistDisabled = $someBoolean
# OPTIONAL
crossAccountCapabilities = @(
$someCrossAccountCapability # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CrossAccountCapability]) for enum values.
)
Expand Down Expand Up @@ -1352,6 +1368,7 @@ internal void InitMutationGenerateTotpSecret()
// description: String!
// permissions: [PermissionInput!]!
// protectableClusters: [String!]!
// isSynced: Boolean
// ): UUID!
internal void InitMutationMutateRole()
{
Expand All @@ -1361,12 +1378,13 @@ internal void InitMutationMutateRole()
Tuple.Create("description", "String!"),
Tuple.Create("permissions", "[PermissionInput!]!"),
Tuple.Create("protectableClusters", "[String!]!"),
Tuple.Create("isSynced", "Boolean"),
};
Initialize(
argDefs,
"mutation",
"MutationMutateRole",
"($roleId: String,$name: String!,$description: String!,$permissions: [PermissionInput!]!,$protectableClusters: [String!]!)",
"($roleId: String,$name: String!,$description: String!,$permissions: [PermissionInput!]!,$protectableClusters: [String!]!,$isSynced: Boolean)",
"System.String",
Mutation.MutateRole,
Mutation.MutateRoleFieldSpec,
Expand Down Expand Up @@ -1397,7 +1415,9 @@ internal void InitMutationMutateRole()
# REQUIRED
$query.Var.protectableClusters = @(
$someString
)"
)
# OPTIONAL
$query.Var.isSynced = $someBoolean"
);
}

Expand Down Expand Up @@ -1505,13 +1525,19 @@ internal void InitMutationUpdateOrg()
name = $someString
# REQUIRED
isOrgAdmin = $someBoolean
# OPTIONAL
authDomainId = $someString
}
)
# OPTIONAL
isServiceAccountEnabled = $someBoolean
# OPTIONAL
isServiceAccountDisabled = $someBoolean
# OPTIONAL
isInheritIpAllowlistDisabled = $someBoolean
# OPTIONAL
shouldKeepGlobalIpAllowlist = $someBoolean
# OPTIONAL
crossAccountCapabilities = @(
$someCrossAccountCapability # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CrossAccountCapability]) for enum values.
)
Expand Down
Loading

0 comments on commit 8dded3d

Please sign in to comment.