mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
Swagger: Rename API Key AddCommand
(#78491)
As a global definition, `AddAPIKeyCommand` is clearer
This commit is contained in:
parent
5b9097e7ff
commit
5acb981680
@ -32,7 +32,7 @@ type APIKey struct {
|
||||
|
||||
func (k APIKey) TableName() string { return "api_key" }
|
||||
|
||||
// swagger:model
|
||||
// swagger:model AddAPIKeyCommand
|
||||
type AddCommand struct {
|
||||
Name string `json:"name" binding:"Required"`
|
||||
Role org.RoleType `json:"role" binding:"Required"`
|
||||
|
@ -1891,7 +1891,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"AddCommand": {
|
||||
"AddAPIKeyCommand": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
@ -3528,6 +3528,7 @@
|
||||
"format": "int64"
|
||||
},
|
||||
"folderId": {
|
||||
"description": "Deprecated: use FolderUID instead",
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
@ -4340,6 +4341,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"description": "Deprecated: use Uid instead",
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
|
@ -3420,7 +3420,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/AddCommand"
|
||||
"$ref": "#/definitions/AddAPIKeyCommand"
|
||||
}
|
||||
}
|
||||
],
|
||||
@ -10938,7 +10938,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"AddCommand": {
|
||||
"AddAPIKeyCommand": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
|
@ -1977,7 +1977,7 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AddCommand": {
|
||||
"AddAPIKeyCommand": {
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
@ -15818,7 +15818,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AddCommand"
|
||||
"$ref": "#/components/schemas/AddAPIKeyCommand"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user