Serviceaccounts: create serviceaccount api (#42150)

* WIP

* wip

* wip

* wip

* refactor: new return of the create service accoutn

* refactor: change to have correct role

* refactor: ability to create service accounts

* make public

* refactor: make ints instead

* refactor: remove location sprintf

* refactor: added back named constants
This commit is contained in:
Eric Leijonmarck
2021-12-14 14:39:25 +01:00
committed by GitHub
parent 19374fce39
commit 4a3961400a
6 changed files with 75 additions and 1 deletions

View File

@@ -13,3 +13,14 @@ const (
ActionCreate = "serviceaccounts:create"
ActionDelete = "serviceaccounts:delete"
)
type ServiceAccount struct {
Id int64
}
type CreateServiceaccountForm struct {
OrgID int64 `json:"-"`
Name string `json:"name" binding:"Required"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
}