diff --git a/api/swagger.yaml b/api/swagger.yaml index 418251377a..7d83067b7c 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -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: diff --git a/api/types/types.go b/api/types/types.go index d6aa3d6385..495a852d92 100644 --- a/api/types/types.go +++ b/api/types/types.go @@ -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