Skip to content

Add missing EventType, ObjectType, and EventStatus values to Get-RubrikEvent#864

Open
dewbrik wants to merge 1 commit intorubrikinc:develfrom
dewbrik:add-missing-event-types
Open

Add missing EventType, ObjectType, and EventStatus values to Get-RubrikEvent#864
dewbrik wants to merge 1 commit intorubrikinc:develfrom
dewbrik:add-missing-event-types

Conversation

@dewbrik
Copy link
Copy Markdown

@dewbrik dewbrik commented Mar 26, 2026

Summary

  • Added 11 missing EventType values to -EventType and -ExcludeEventType ValidateSet: BulkRecovery, Index, LocalRecovery, LogBackup, ProtectedObjectDeletion, ResourceOperations, ThreatFeed, ThreatHunt, ThreatMonitoring, Tpr, UserIntelligence
  • Added 37 missing ObjectType values to -ObjectType and -ExcludeObjectType ValidateSet (e.g., ActiveDirectoryDomain, Db2Database, K8sCluster, MongoSource, PostgresDbCluster, SapHanaDb, and more)
  • Added 2 missing EventStatus values to -Status ValidateSet: Info, TaskSuccess

All new values are sourced from the current API schema (events_v1_enums.yml) and inserted in alphabetical order.

Test plan

  • Import updated module with Import-Module ./Rubrik/Rubrik.psd1 -Force
  • Verify new EventType values are accepted: Get-RubrikEvent -EventType ThreatHunt
  • Verify tab-completion includes new values
  • Run existing unit tests with Invoke-Pester

This contribution is my original work and I license it to the project under the project's open source license.

…ikEvent

Update ValidateSet attributes to match the current sdmain API schema
(events_v1_enums.yml), adding 11 new EventTypes, 37 new ObjectTypes,
and 2 new EventStatus values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@guirava guirava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good — clean, focused, purely additive ValidateSet expansion. No existing values removed, paired parameters (EventType/ExcludeEventType, ObjectType/ExcludeObjectType) stay in sync, alphabetical ordering maintained.

Minor nit (non-blocking): the inline help comments for -Status (line 98) and -ObjectType (line 133) were already stale and could be updated in a follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants