fix(swagger): added missing Permission type: dbrp (#18260)

pull/18273/head
Jakub Bednář 2020-05-28 19:50:48 +02:00 committed by GitHub
parent 876238d688
commit 96110ec5f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View File

@ -7393,6 +7393,7 @@ components:
- notificationRules
- notificationEndpoints
- checks
- dbrp
id:
type: string
nullable: true

View File

@ -58,6 +58,20 @@ const hvhs: Permission[] = [
type: 'dashboards',
},
},
{
action: 'read',
resource: {
orgID: 'bulldogs',
type: 'dbrp',
},
},
{
action: 'write',
resource: {
orgID: 'bulldogs',
type: 'dbrp',
},
},
{
action: 'read',
resource: {

View File

@ -11,6 +11,7 @@ const allPermissionTypes: PermissionTypes[] = [
'buckets',
'checks',
'dashboards',
'dbrp',
'documents',
'labels',
'notificationRules',
@ -36,6 +37,7 @@ const ensureT = (orgID: string) => (t: PermissionTypes): Permission[] => {
case 'buckets':
case 'checks':
case 'dashboards':
case 'dbrp':
case 'documents':
case 'labels':
case 'notificationRules':