mirror of
https://github.com/grafana/grafana.git
synced 2026-02-03 20:49:50 -05:00
grafana-iam: Remove Version from Role Spec (#117219)
* `grafana-iam`: Remove Version from Role Spec * Fix openapi
This commit is contained in:
parent
b980c80d0b
commit
3d4cffaeab
6 changed files with 3 additions and 47 deletions
|
|
@ -11,8 +11,6 @@ RoleSpec: {
|
|||
// Display name of the role
|
||||
title: string
|
||||
description: string
|
||||
|
||||
version: int
|
||||
group: string
|
||||
permissions: [...#Permission]
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ type CoreRoleSpec struct {
|
|||
// Display name of the role
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Version int64 `json:"version"`
|
||||
Group string `json:"group"`
|
||||
// TODO:
|
||||
// delegatable?: bool
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ type GlobalRoleSpec struct {
|
|||
// Display name of the role
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Version int64 `json:"version"`
|
||||
Group string `json:"group"`
|
||||
// TODO:
|
||||
// delegatable?: bool
|
||||
|
|
|
|||
1
apps/iam/pkg/apis/iam/v0alpha1/role_spec_gen.go
generated
1
apps/iam/pkg/apis/iam/v0alpha1/role_spec_gen.go
generated
|
|
@ -20,7 +20,6 @@ type RoleSpec struct {
|
|||
// Display name of the role
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Version int64 `json:"version"`
|
||||
Group string `json:"group"`
|
||||
// TODO:
|
||||
// delegatable?: bool
|
||||
|
|
|
|||
27
apps/iam/pkg/apis/iam/v0alpha1/zz_openapi_gen.go
generated
27
apps/iam/pkg/apis/iam/v0alpha1/zz_openapi_gen.go
generated
|
|
@ -202,13 +202,6 @@ func schema_pkg_apis_iam_v0alpha1_CoreRoleSpec(ref common.ReferenceCallback) com
|
|||
Format: "",
|
||||
},
|
||||
},
|
||||
"version": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: 0,
|
||||
Type: []string{"integer"},
|
||||
Format: "int64",
|
||||
},
|
||||
},
|
||||
"group": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: "",
|
||||
|
|
@ -231,7 +224,7 @@ func schema_pkg_apis_iam_v0alpha1_CoreRoleSpec(ref common.ReferenceCallback) com
|
|||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"title", "description", "version", "group", "permissions"},
|
||||
Required: []string{"title", "description", "group", "permissions"},
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
|
|
@ -1282,13 +1275,6 @@ func schema_pkg_apis_iam_v0alpha1_GlobalRoleSpec(ref common.ReferenceCallback) c
|
|||
Format: "",
|
||||
},
|
||||
},
|
||||
"version": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: 0,
|
||||
Type: []string{"integer"},
|
||||
Format: "int64",
|
||||
},
|
||||
},
|
||||
"group": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: "",
|
||||
|
|
@ -1311,7 +1297,7 @@ func schema_pkg_apis_iam_v0alpha1_GlobalRoleSpec(ref common.ReferenceCallback) c
|
|||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"title", "description", "version", "group", "permissions"},
|
||||
Required: []string{"title", "description", "group", "permissions"},
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
|
|
@ -2124,13 +2110,6 @@ func schema_pkg_apis_iam_v0alpha1_RoleSpec(ref common.ReferenceCallback) common.
|
|||
Format: "",
|
||||
},
|
||||
},
|
||||
"version": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: 0,
|
||||
Type: []string{"integer"},
|
||||
Format: "int64",
|
||||
},
|
||||
},
|
||||
"group": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: "",
|
||||
|
|
@ -2153,7 +2132,7 @@ func schema_pkg_apis_iam_v0alpha1_RoleSpec(ref common.ReferenceCallback) common.
|
|||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"title", "description", "version", "group", "permissions"},
|
||||
Required: []string{"title", "description", "group", "permissions"},
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
|
|
|
|||
|
|
@ -6137,7 +6137,6 @@
|
|||
"required": [
|
||||
"title",
|
||||
"description",
|
||||
"version",
|
||||
"group",
|
||||
"permissions"
|
||||
],
|
||||
|
|
@ -6161,11 +6160,6 @@
|
|||
"description": "Display name of the role",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"default": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -6756,7 +6750,6 @@
|
|||
"required": [
|
||||
"title",
|
||||
"description",
|
||||
"version",
|
||||
"group",
|
||||
"permissions"
|
||||
],
|
||||
|
|
@ -6780,11 +6773,6 @@
|
|||
"description": "Display name of the role",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"default": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -7233,7 +7221,6 @@
|
|||
"required": [
|
||||
"title",
|
||||
"description",
|
||||
"version",
|
||||
"group",
|
||||
"permissions"
|
||||
],
|
||||
|
|
@ -7257,11 +7244,6 @@
|
|||
"description": "Display name of the role",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"default": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue