mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Fix minor swagger spec type differences
no issue - add explicit types for SecretCreateResponse and ConfigCreateResponse in swagger - Add missing UpdateStatus enum values Signed-off-by: Austin Burdine <acburdine@gmail.com>
This commit is contained in:
committed by
Austin Burdine
parent
2ea5c1af57
commit
e654cab85a
@@ -4307,6 +4307,9 @@ definitions:
|
||||
- "updating"
|
||||
- "paused"
|
||||
- "completed"
|
||||
- "rollback_started"
|
||||
- "rollback_paused"
|
||||
- "rollback_completed"
|
||||
StartedAt:
|
||||
type: "string"
|
||||
format: "dateTime"
|
||||
@@ -4595,6 +4598,16 @@ definitions:
|
||||
Spec:
|
||||
$ref: "#/definitions/SecretSpec"
|
||||
|
||||
SecretCreateResponse:
|
||||
description: "Contains the information returned to a client on the creation of a new secret."
|
||||
type: "object"
|
||||
required: ["ID"]
|
||||
properties:
|
||||
ID:
|
||||
description: "The id of the newly created secret"
|
||||
type: "string"
|
||||
x-nullable: false
|
||||
|
||||
ConfigSpec:
|
||||
type: "object"
|
||||
properties:
|
||||
@@ -4635,6 +4648,16 @@ definitions:
|
||||
Spec:
|
||||
$ref: "#/definitions/ConfigSpec"
|
||||
|
||||
ConfigCreateResponse:
|
||||
description: "Contains the information returned to a client on the creation of a new config."
|
||||
type: "object"
|
||||
required: ["ID"]
|
||||
properties:
|
||||
ID:
|
||||
description: "The id of the newly created config"
|
||||
type: "string"
|
||||
x-nullable: false
|
||||
|
||||
ContainerState:
|
||||
description: |
|
||||
ContainerState stores container's running state. It's part of ContainerJSONBase
|
||||
@@ -11738,7 +11761,7 @@ paths:
|
||||
201:
|
||||
description: "no error"
|
||||
schema:
|
||||
$ref: "#/definitions/IdResponse"
|
||||
$ref: "#/definitions/SecretCreateResponse"
|
||||
409:
|
||||
description: "name conflicts with an existing object"
|
||||
schema:
|
||||
@@ -11945,7 +11968,7 @@ paths:
|
||||
201:
|
||||
description: "no error"
|
||||
schema:
|
||||
$ref: "#/definitions/IdResponse"
|
||||
$ref: "#/definitions/ConfigCreateResponse"
|
||||
409:
|
||||
description: "name conflicts with an existing object"
|
||||
schema:
|
||||
|
||||
@@ -737,7 +737,7 @@ type NetworksPruneReport struct {
|
||||
// on the creation of a new secret.
|
||||
type SecretCreateResponse struct {
|
||||
// ID is the id of the created secret.
|
||||
ID string
|
||||
ID string `json:"ID"`
|
||||
}
|
||||
|
||||
// SecretListOptions holds parameters to list secrets
|
||||
@@ -749,7 +749,7 @@ type SecretListOptions struct {
|
||||
// on the creation of a new config.
|
||||
type ConfigCreateResponse struct {
|
||||
// ID is the id of the created config.
|
||||
ID string
|
||||
ID string `json:"ID"`
|
||||
}
|
||||
|
||||
// ConfigListOptions holds parameters to list configs
|
||||
|
||||
Reference in New Issue
Block a user