Accesscontrol: Remove service account creation code from addapikey (#43900)

* Remove service account creation code from addapikey
Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
This commit is contained in:
Jeremy Price
2022-01-12 15:18:57 +01:00
committed by GitHub
co-authored by J Guerreiro
parent 6409e761b5
commit e894837b7e
2 changed files with 9 additions and 41 deletions
+7 -9
View File
@@ -27,15 +27,13 @@ type ApiKey struct {
// ---------------------
// COMMANDS
type AddApiKeyCommand struct {
Name string `json:"name" binding:"Required"`
Role RoleType `json:"role" binding:"Required"`
OrgId int64 `json:"-"`
Key string `json:"-"`
SecondsToLive int64 `json:"secondsToLive"`
ServiceAccountId int64 `json:"serviceAccount"`
CreateNewServiceAccount bool `json:"createServiceAccount"`
Result *ApiKey `json:"-"`
Name string `json:"name" binding:"Required"`
Role RoleType `json:"role" binding:"Required"`
OrgId int64 `json:"-"`
Key string `json:"-"`
SecondsToLive int64 `json:"secondsToLive"`
ServiceAccountId int64 `json:"-"`
Result *ApiKey `json:"-"`
}
type DeleteApiKeyCommand struct {