Add user service account (#966)

* add user service account

* changing API

Co-authored-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Co-authored-by: Adam Stafford <adamstafford@Adams-MacBook-Pro.local>
Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com>
This commit is contained in:
adfost
2021-08-23 21:36:55 -07:00
committed by GitHub
parent 8c82124a57
commit 7ec391b6e0
16 changed files with 889 additions and 55 deletions

View File

@@ -3180,7 +3180,7 @@ func init() {
}
}
},
"/user/service-accounts": {
"/user/{name}/service-accounts": {
"get": {
"tags": [
"AdminAPI"
@@ -3191,7 +3191,7 @@ func init() {
{
"type": "string",
"name": "name",
"in": "query",
"in": "path",
"required": true
}
],
@@ -3209,6 +3209,43 @@ func init() {
}
}
}
},
"post": {
"tags": [
"AdminAPI"
],
"summary": "Create Service Account for User",
"operationId": "CreateAUserServiceAccount",
"parameters": [
{
"type": "string",
"name": "name",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/serviceAccountRequest"
}
}
],
"responses": {
"201": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/serviceAccountCreds"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/users": {
@@ -8507,7 +8544,7 @@ func init() {
}
}
},
"/user/service-accounts": {
"/user/{name}/service-accounts": {
"get": {
"tags": [
"AdminAPI"
@@ -8518,7 +8555,7 @@ func init() {
{
"type": "string",
"name": "name",
"in": "query",
"in": "path",
"required": true
}
],
@@ -8536,6 +8573,43 @@ func init() {
}
}
}
},
"post": {
"tags": [
"AdminAPI"
],
"summary": "Create Service Account for User",
"operationId": "CreateAUserServiceAccount",
"parameters": [
{
"type": "string",
"name": "name",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/serviceAccountRequest"
}
}
],
"responses": {
"201": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/serviceAccountCreds"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/users": {