Class: Repositories::ProtectedBranchCreatedEvent
- Inherits:
-
Gitlab::EventStore::Event
- Object
- Gitlab::EventStore::Event
- Repositories::ProtectedBranchCreatedEvent
- Defined in:
- app/events/repositories/protected_branch_created_event.rb
Constant Summary collapse
- PARENT_TYPES =
{ group: 'group', project: 'project' }.freeze
Instance Attribute Summary
Attributes inherited from Gitlab::EventStore::Event
Instance Method Summary collapse
Methods inherited from Gitlab::EventStore::Event
Constructor Details
This class inherits a constructor from Gitlab::EventStore::Event
Instance Method Details
#schema ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/events/repositories/protected_branch_created_event.rb', line 10 def schema { 'type' => 'object', 'properties' => { 'protected_branch_id' => { 'type' => 'integer' }, 'parent_id' => { 'type' => 'integer' }, 'parent_type' => { 'type' => 'string', 'enum' => PARENT_TYPES.values } }, 'required' => %w[protected_branch_id parent_id parent_type] } end |