mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #43334 from thaJeztah/api_swagger_inline_examples
api: swagger: use explicit definitions, use inline examples, and fix indentation.
This commit is contained in:
commit
4a26fdda76
10 changed files with 378 additions and 369 deletions
155
api/swagger.yaml
155
api/swagger.yaml
|
@ -1069,8 +1069,9 @@ definitions:
|
||||||
description: "Mount the container's root filesystem as read only."
|
description: "Mount the container's root filesystem as read only."
|
||||||
SecurityOpt:
|
SecurityOpt:
|
||||||
type: "array"
|
type: "array"
|
||||||
description: "A list of string values to customize labels for MLS
|
description: |
|
||||||
systems, such as SELinux."
|
A list of string values to customize labels for MLS systems, such
|
||||||
|
as SELinux.
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
StorageOpt:
|
StorageOpt:
|
||||||
|
@ -1863,18 +1864,22 @@ definitions:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Name of the volume."
|
description: "Name of the volume."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "tardis"
|
||||||
Driver:
|
Driver:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Name of the volume driver used by the volume."
|
description: "Name of the volume driver used by the volume."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "custom"
|
||||||
Mountpoint:
|
Mountpoint:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Mount path of the volume on the host."
|
description: "Mount path of the volume on the host."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "/var/lib/docker/volumes/tardis"
|
||||||
CreatedAt:
|
CreatedAt:
|
||||||
type: "string"
|
type: "string"
|
||||||
format: "dateTime"
|
format: "dateTime"
|
||||||
description: "Date/Time the volume was created."
|
description: "Date/Time the volume was created."
|
||||||
|
example: "2016-06-07T20:31:11.853781916Z"
|
||||||
Status:
|
Status:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -1886,12 +1891,17 @@ definitions:
|
||||||
does not support this feature.
|
does not support this feature.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
example:
|
||||||
|
hello: "world"
|
||||||
Labels:
|
Labels:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "User-defined key/value metadata."
|
description: "User-defined key/value metadata."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example:
|
||||||
|
com.example.some-label: "some-value"
|
||||||
|
com.example.some-other-label: "some-other-value"
|
||||||
Scope:
|
Scope:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: |
|
description: |
|
||||||
|
@ -1900,12 +1910,17 @@ definitions:
|
||||||
default: "local"
|
default: "local"
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
enum: ["local", "global"]
|
enum: ["local", "global"]
|
||||||
|
example: "local"
|
||||||
Options:
|
Options:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
The driver specific options used when creating the volume.
|
The driver specific options used when creating the volume.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example:
|
||||||
|
device: "tmpfs"
|
||||||
|
o: "size=100m,uid=1000"
|
||||||
|
type: "tmpfs"
|
||||||
UsageData:
|
UsageData:
|
||||||
type: "object"
|
type: "object"
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
|
@ -1931,17 +1946,43 @@ definitions:
|
||||||
is set to `-1` if the reference-count is not available.
|
is set to `-1` if the reference-count is not available.
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
|
||||||
example:
|
VolumeCreateOptions:
|
||||||
Name: "tardis"
|
description: "Volume configuration"
|
||||||
Driver: "custom"
|
type: "object"
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
title: "VolumeConfig"
|
||||||
Status:
|
x-go-name: "VolumeCreateBody"
|
||||||
hello: "world"
|
properties:
|
||||||
|
Name:
|
||||||
|
description: |
|
||||||
|
The new volume's name. If not specified, Docker generates a name.
|
||||||
|
type: "string"
|
||||||
|
x-nullable: false
|
||||||
|
example: "tardis"
|
||||||
|
Driver:
|
||||||
|
description: "Name of the volume driver to use."
|
||||||
|
type: "string"
|
||||||
|
default: "local"
|
||||||
|
x-nullable: false
|
||||||
|
example: "custom"
|
||||||
|
DriverOpts:
|
||||||
|
description: |
|
||||||
|
A mapping of driver options and values. These options are
|
||||||
|
passed directly to the driver and are driver specific.
|
||||||
|
type: "object"
|
||||||
|
additionalProperties:
|
||||||
|
type: "string"
|
||||||
|
example:
|
||||||
|
device: "tmpfs"
|
||||||
|
o: "size=100m,uid=1000"
|
||||||
|
type: "tmpfs"
|
||||||
Labels:
|
Labels:
|
||||||
com.example.some-label: "some-value"
|
description: "User-defined key/value metadata."
|
||||||
com.example.some-other-label: "some-other-value"
|
type: "object"
|
||||||
Scope: "local"
|
additionalProperties:
|
||||||
CreatedAt: "2016-06-07T20:31:11.853781916Z"
|
type: "string"
|
||||||
|
example:
|
||||||
|
com.example.some-label: "some-value"
|
||||||
|
com.example.some-other-label: "some-other-value"
|
||||||
|
|
||||||
Network:
|
Network:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
@ -4471,6 +4512,29 @@ definitions:
|
||||||
Health:
|
Health:
|
||||||
$ref: "#/definitions/Health"
|
$ref: "#/definitions/Health"
|
||||||
|
|
||||||
|
ContainerWaitResponse:
|
||||||
|
description: "OK response to ContainerWait operation"
|
||||||
|
type: "object"
|
||||||
|
x-go-name: "ContainerWaitOKBody"
|
||||||
|
title: "ContainerWaitResponse"
|
||||||
|
required: [StatusCode, Error]
|
||||||
|
properties:
|
||||||
|
StatusCode:
|
||||||
|
description: "Exit code of the container"
|
||||||
|
type: "integer"
|
||||||
|
x-nullable: false
|
||||||
|
Error:
|
||||||
|
$ref: "#/definitions/ContainerWaitExitError"
|
||||||
|
|
||||||
|
ContainerWaitExitError:
|
||||||
|
description: "container waiting error, if any"
|
||||||
|
type: "object"
|
||||||
|
x-go-name: "ContainerWaitOKBodyError"
|
||||||
|
properties:
|
||||||
|
Message:
|
||||||
|
description: "Details of an error"
|
||||||
|
type: "string"
|
||||||
|
|
||||||
SystemVersion:
|
SystemVersion:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -7192,22 +7256,7 @@ paths:
|
||||||
200:
|
200:
|
||||||
description: "The container has exit."
|
description: "The container has exit."
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: "#/definitions/ContainerWaitResponse"
|
||||||
title: "ContainerWaitResponse"
|
|
||||||
description: "OK response to ContainerWait operation"
|
|
||||||
required: [StatusCode]
|
|
||||||
properties:
|
|
||||||
StatusCode:
|
|
||||||
description: "Exit code of the container"
|
|
||||||
type: "integer"
|
|
||||||
x-nullable: false
|
|
||||||
Error:
|
|
||||||
description: "container waiting error, if any"
|
|
||||||
type: "object"
|
|
||||||
properties:
|
|
||||||
Message:
|
|
||||||
description: "Details of an error"
|
|
||||||
type: "string"
|
|
||||||
400:
|
400:
|
||||||
description: "bad parameter"
|
description: "bad parameter"
|
||||||
schema:
|
schema:
|
||||||
|
@ -9033,23 +9082,6 @@ paths:
|
||||||
Warnings that occurred when fetching the list of volumes.
|
Warnings that occurred when fetching the list of volumes.
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
|
||||||
examples:
|
|
||||||
application/json:
|
|
||||||
Volumes:
|
|
||||||
- CreatedAt: "2017-07-19T12:00:26Z"
|
|
||||||
Name: "tardis"
|
|
||||||
Driver: "local"
|
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
|
||||||
Labels:
|
|
||||||
com.example.some-label: "some-value"
|
|
||||||
com.example.some-other-label: "some-other-value"
|
|
||||||
Scope: "local"
|
|
||||||
Options:
|
|
||||||
device: "tmpfs"
|
|
||||||
o: "size=100m,uid=1000"
|
|
||||||
type: "tmpfs"
|
|
||||||
Warnings: []
|
|
||||||
500:
|
500:
|
||||||
description: "Server error"
|
description: "Server error"
|
||||||
schema:
|
schema:
|
||||||
|
@ -9094,38 +9126,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: "Volume configuration"
|
description: "Volume configuration"
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: "#/definitions/VolumeCreateOptions"
|
||||||
description: "Volume configuration"
|
|
||||||
title: "VolumeConfig"
|
|
||||||
properties:
|
|
||||||
Name:
|
|
||||||
description: |
|
|
||||||
The new volume's name. If not specified, Docker generates a name.
|
|
||||||
type: "string"
|
|
||||||
x-nullable: false
|
|
||||||
Driver:
|
|
||||||
description: "Name of the volume driver to use."
|
|
||||||
type: "string"
|
|
||||||
default: "local"
|
|
||||||
x-nullable: false
|
|
||||||
DriverOpts:
|
|
||||||
description: |
|
|
||||||
A mapping of driver options and values. These options are
|
|
||||||
passed directly to the driver and are driver specific.
|
|
||||||
type: "object"
|
|
||||||
additionalProperties:
|
|
||||||
type: "string"
|
|
||||||
Labels:
|
|
||||||
description: "User-defined key/value metadata."
|
|
||||||
type: "object"
|
|
||||||
additionalProperties:
|
|
||||||
type: "string"
|
|
||||||
example:
|
|
||||||
Name: "tardis"
|
|
||||||
Labels:
|
|
||||||
com.example.some-label: "some-value"
|
|
||||||
com.example.some-other-label: "some-other-value"
|
|
||||||
Driver: "custom"
|
|
||||||
tags: ["Volume"]
|
tags: ["Volume"]
|
||||||
|
|
||||||
/volumes/{name}:
|
/volumes/{name}:
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
package container // import "github.com/docker/docker/api/types/container"
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// Code generated by `swagger generate operation`. DO NOT EDIT.
|
|
||||||
//
|
|
||||||
// See hack/generate-swagger-api.sh
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// ContainerWaitOKBodyError container waiting error, if any
|
|
||||||
// swagger:model ContainerWaitOKBodyError
|
|
||||||
type ContainerWaitOKBodyError struct {
|
|
||||||
|
|
||||||
// Details of an error
|
|
||||||
Message string `json:"Message,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// ContainerWaitOKBody OK response to ContainerWait operation
|
|
||||||
// swagger:model ContainerWaitOKBody
|
|
||||||
type ContainerWaitOKBody struct {
|
|
||||||
|
|
||||||
// error
|
|
||||||
// Required: true
|
|
||||||
Error *ContainerWaitOKBodyError `json:"Error"`
|
|
||||||
|
|
||||||
// Exit code of the container
|
|
||||||
// Required: true
|
|
||||||
StatusCode int64 `json:"StatusCode"`
|
|
||||||
}
|
|
19
api/types/container/container_wait_o_k_body.go
Normal file
19
api/types/container/container_wait_o_k_body.go
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
package container
|
||||||
|
|
||||||
|
// This file was generated by the swagger tool.
|
||||||
|
// Editing this file might prove futile when you re-run the swagger generate command
|
||||||
|
|
||||||
|
// ContainerWaitOKBody ContainerWaitResponse
|
||||||
|
//
|
||||||
|
// OK response to ContainerWait operation
|
||||||
|
// swagger:model ContainerWaitOKBody
|
||||||
|
type ContainerWaitOKBody struct {
|
||||||
|
|
||||||
|
// error
|
||||||
|
// Required: true
|
||||||
|
Error *ContainerWaitOKBodyError `json:"Error"`
|
||||||
|
|
||||||
|
// Exit code of the container
|
||||||
|
// Required: true
|
||||||
|
StatusCode int64 `json:"StatusCode"`
|
||||||
|
}
|
12
api/types/container/container_wait_o_k_body_error.go
Normal file
12
api/types/container/container_wait_o_k_body_error.go
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
package container
|
||||||
|
|
||||||
|
// This file was generated by the swagger tool.
|
||||||
|
// Editing this file might prove futile when you re-run the swagger generate command
|
||||||
|
|
||||||
|
// ContainerWaitOKBodyError container waiting error, if any
|
||||||
|
// swagger:model ContainerWaitOKBodyError
|
||||||
|
type ContainerWaitOKBodyError struct {
|
||||||
|
|
||||||
|
// Details of an error
|
||||||
|
Message string `json:"Message,omitempty"`
|
||||||
|
}
|
|
@ -1,31 +0,0 @@
|
||||||
package volume // import "github.com/docker/docker/api/types/volume"
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// Code generated by `swagger generate operation`. DO NOT EDIT.
|
|
||||||
//
|
|
||||||
// See hack/generate-swagger-api.sh
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// VolumeCreateBody Volume configuration
|
|
||||||
// swagger:model VolumeCreateBody
|
|
||||||
type VolumeCreateBody struct {
|
|
||||||
|
|
||||||
// Name of the volume driver to use.
|
|
||||||
// Required: true
|
|
||||||
Driver string `json:"Driver"`
|
|
||||||
|
|
||||||
// A mapping of driver options and values. These options are
|
|
||||||
// passed directly to the driver and are driver specific.
|
|
||||||
//
|
|
||||||
// Required: true
|
|
||||||
DriverOpts map[string]string `json:"DriverOpts"`
|
|
||||||
|
|
||||||
// User-defined key/value metadata.
|
|
||||||
// Required: true
|
|
||||||
Labels map[string]string `json:"Labels"`
|
|
||||||
|
|
||||||
// The new volume's name. If not specified, Docker generates a name.
|
|
||||||
//
|
|
||||||
// Required: true
|
|
||||||
Name string `json:"Name"`
|
|
||||||
}
|
|
26
api/types/volume/volume_create_body.go
Normal file
26
api/types/volume/volume_create_body.go
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
package volume
|
||||||
|
|
||||||
|
// This file was generated by the swagger tool.
|
||||||
|
// Editing this file might prove futile when you re-run the swagger generate command
|
||||||
|
|
||||||
|
// VolumeCreateBody VolumeConfig
|
||||||
|
//
|
||||||
|
// Volume configuration
|
||||||
|
// swagger:model VolumeCreateBody
|
||||||
|
type VolumeCreateBody struct {
|
||||||
|
|
||||||
|
// Name of the volume driver to use.
|
||||||
|
Driver string `json:"Driver,omitempty"`
|
||||||
|
|
||||||
|
// A mapping of driver options and values. These options are
|
||||||
|
// passed directly to the driver and are driver specific.
|
||||||
|
//
|
||||||
|
DriverOpts map[string]string `json:"DriverOpts,omitempty"`
|
||||||
|
|
||||||
|
// User-defined key/value metadata.
|
||||||
|
Labels map[string]string `json:"Labels,omitempty"`
|
||||||
|
|
||||||
|
// The new volume's name. If not specified, Docker generates a name.
|
||||||
|
//
|
||||||
|
Name string `json:"Name,omitempty"`
|
||||||
|
}
|
|
@ -982,8 +982,9 @@ definitions:
|
||||||
description: "Mount the container's root filesystem as read only."
|
description: "Mount the container's root filesystem as read only."
|
||||||
SecurityOpt:
|
SecurityOpt:
|
||||||
type: "array"
|
type: "array"
|
||||||
description: "A list of string values to customize labels for MLS
|
description: |
|
||||||
systems, such as SELinux."
|
A list of string values to customize labels for MLS systems, such
|
||||||
|
as SELinux.
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
StorageOpt:
|
StorageOpt:
|
||||||
|
@ -1776,18 +1777,22 @@ definitions:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Name of the volume."
|
description: "Name of the volume."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "tardis"
|
||||||
Driver:
|
Driver:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Name of the volume driver used by the volume."
|
description: "Name of the volume driver used by the volume."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "custom"
|
||||||
Mountpoint:
|
Mountpoint:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Mount path of the volume on the host."
|
description: "Mount path of the volume on the host."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "/var/lib/docker/volumes/tardis"
|
||||||
CreatedAt:
|
CreatedAt:
|
||||||
type: "string"
|
type: "string"
|
||||||
format: "dateTime"
|
format: "dateTime"
|
||||||
description: "Date/Time the volume was created."
|
description: "Date/Time the volume was created."
|
||||||
|
example: "2016-06-07T20:31:11.853781916Z"
|
||||||
Status:
|
Status:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -1799,12 +1804,17 @@ definitions:
|
||||||
does not support this feature.
|
does not support this feature.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
example:
|
||||||
|
hello: "world"
|
||||||
Labels:
|
Labels:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "User-defined key/value metadata."
|
description: "User-defined key/value metadata."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example:
|
||||||
|
com.example.some-label: "some-value"
|
||||||
|
com.example.some-other-label: "some-other-value"
|
||||||
Scope:
|
Scope:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: |
|
description: |
|
||||||
|
@ -1813,12 +1823,17 @@ definitions:
|
||||||
default: "local"
|
default: "local"
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
enum: ["local", "global"]
|
enum: ["local", "global"]
|
||||||
|
example: "local"
|
||||||
Options:
|
Options:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
The driver specific options used when creating the volume.
|
The driver specific options used when creating the volume.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example:
|
||||||
|
device: "tmpfs"
|
||||||
|
o: "size=100m,uid=1000"
|
||||||
|
type: "tmpfs"
|
||||||
UsageData:
|
UsageData:
|
||||||
type: "object"
|
type: "object"
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
|
@ -1844,17 +1859,43 @@ definitions:
|
||||||
is set to `-1` if the reference-count is not available.
|
is set to `-1` if the reference-count is not available.
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
|
||||||
example:
|
VolumeCreateOptions:
|
||||||
Name: "tardis"
|
description: "Volume configuration"
|
||||||
Driver: "custom"
|
type: "object"
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
title: "VolumeConfig"
|
||||||
Status:
|
x-go-name: "VolumeCreateBody"
|
||||||
hello: "world"
|
properties:
|
||||||
|
Name:
|
||||||
|
description: |
|
||||||
|
The new volume's name. If not specified, Docker generates a name.
|
||||||
|
type: "string"
|
||||||
|
x-nullable: false
|
||||||
|
example: "tardis"
|
||||||
|
Driver:
|
||||||
|
description: "Name of the volume driver to use."
|
||||||
|
type: "string"
|
||||||
|
default: "local"
|
||||||
|
x-nullable: false
|
||||||
|
example: "custom"
|
||||||
|
DriverOpts:
|
||||||
|
description: |
|
||||||
|
A mapping of driver options and values. These options are
|
||||||
|
passed directly to the driver and are driver specific.
|
||||||
|
type: "object"
|
||||||
|
additionalProperties:
|
||||||
|
type: "string"
|
||||||
|
example:
|
||||||
|
device: "tmpfs"
|
||||||
|
o: "size=100m,uid=1000"
|
||||||
|
type: "tmpfs"
|
||||||
Labels:
|
Labels:
|
||||||
com.example.some-label: "some-value"
|
description: "User-defined key/value metadata."
|
||||||
com.example.some-other-label: "some-other-value"
|
type: "object"
|
||||||
Scope: "local"
|
additionalProperties:
|
||||||
CreatedAt: "2016-06-07T20:31:11.853781916Z"
|
type: "string"
|
||||||
|
example:
|
||||||
|
com.example.some-label: "some-value"
|
||||||
|
com.example.some-other-label: "some-other-value"
|
||||||
|
|
||||||
Network:
|
Network:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
@ -4186,6 +4227,29 @@ definitions:
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
$ref: "#/definitions/Health"
|
$ref: "#/definitions/Health"
|
||||||
|
|
||||||
|
ContainerWaitResponse:
|
||||||
|
description: "OK response to ContainerWait operation"
|
||||||
|
type: "object"
|
||||||
|
x-go-name: "ContainerWaitOKBody"
|
||||||
|
title: "ContainerWaitResponse"
|
||||||
|
required: [StatusCode, Error]
|
||||||
|
properties:
|
||||||
|
StatusCode:
|
||||||
|
description: "Exit code of the container"
|
||||||
|
type: "integer"
|
||||||
|
x-nullable: false
|
||||||
|
Error:
|
||||||
|
$ref: "#/definitions/ContainerWaitExitError"
|
||||||
|
|
||||||
|
ContainerWaitExitError:
|
||||||
|
description: "container waiting error, if any"
|
||||||
|
type: "object"
|
||||||
|
x-go-name: "ContainerWaitOKBodyError"
|
||||||
|
properties:
|
||||||
|
Message:
|
||||||
|
description: "Details of an error"
|
||||||
|
type: "string"
|
||||||
|
|
||||||
SystemVersion:
|
SystemVersion:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -6724,22 +6788,7 @@ paths:
|
||||||
200:
|
200:
|
||||||
description: "The container has exit."
|
description: "The container has exit."
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: "#/definitions/ContainerWaitResponse"
|
||||||
title: "ContainerWaitResponse"
|
|
||||||
description: "OK response to ContainerWait operation"
|
|
||||||
required: [StatusCode]
|
|
||||||
properties:
|
|
||||||
StatusCode:
|
|
||||||
description: "Exit code of the container"
|
|
||||||
type: "integer"
|
|
||||||
x-nullable: false
|
|
||||||
Error:
|
|
||||||
description: "container waiting error, if any"
|
|
||||||
type: "object"
|
|
||||||
properties:
|
|
||||||
Message:
|
|
||||||
description: "Details of an error"
|
|
||||||
type: "string"
|
|
||||||
400:
|
400:
|
||||||
description: "bad parameter"
|
description: "bad parameter"
|
||||||
schema:
|
schema:
|
||||||
|
@ -8483,23 +8532,6 @@ paths:
|
||||||
Warnings that occurred when fetching the list of volumes.
|
Warnings that occurred when fetching the list of volumes.
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
|
||||||
examples:
|
|
||||||
application/json:
|
|
||||||
Volumes:
|
|
||||||
- CreatedAt: "2017-07-19T12:00:26Z"
|
|
||||||
Name: "tardis"
|
|
||||||
Driver: "local"
|
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
|
||||||
Labels:
|
|
||||||
com.example.some-label: "some-value"
|
|
||||||
com.example.some-other-label: "some-other-value"
|
|
||||||
Scope: "local"
|
|
||||||
Options:
|
|
||||||
device: "tmpfs"
|
|
||||||
o: "size=100m,uid=1000"
|
|
||||||
type: "tmpfs"
|
|
||||||
Warnings: []
|
|
||||||
500:
|
500:
|
||||||
description: "Server error"
|
description: "Server error"
|
||||||
schema:
|
schema:
|
||||||
|
@ -8544,38 +8576,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: "Volume configuration"
|
description: "Volume configuration"
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: "#/definitions/VolumeCreateOptions"
|
||||||
description: "Volume configuration"
|
|
||||||
title: "VolumeConfig"
|
|
||||||
properties:
|
|
||||||
Name:
|
|
||||||
description: |
|
|
||||||
The new volume's name. If not specified, Docker generates a name.
|
|
||||||
type: "string"
|
|
||||||
x-nullable: false
|
|
||||||
Driver:
|
|
||||||
description: "Name of the volume driver to use."
|
|
||||||
type: "string"
|
|
||||||
default: "local"
|
|
||||||
x-nullable: false
|
|
||||||
DriverOpts:
|
|
||||||
description: |
|
|
||||||
A mapping of driver options and values. These options are
|
|
||||||
passed directly to the driver and are driver specific.
|
|
||||||
type: "object"
|
|
||||||
additionalProperties:
|
|
||||||
type: "string"
|
|
||||||
Labels:
|
|
||||||
description: "User-defined key/value metadata."
|
|
||||||
type: "object"
|
|
||||||
additionalProperties:
|
|
||||||
type: "string"
|
|
||||||
example:
|
|
||||||
Name: "tardis"
|
|
||||||
Labels:
|
|
||||||
com.example.some-label: "some-value"
|
|
||||||
com.example.some-other-label: "some-other-value"
|
|
||||||
Driver: "custom"
|
|
||||||
tags: ["Volume"]
|
tags: ["Volume"]
|
||||||
|
|
||||||
/volumes/{name}:
|
/volumes/{name}:
|
||||||
|
|
|
@ -1043,8 +1043,9 @@ definitions:
|
||||||
description: "Mount the container's root filesystem as read only."
|
description: "Mount the container's root filesystem as read only."
|
||||||
SecurityOpt:
|
SecurityOpt:
|
||||||
type: "array"
|
type: "array"
|
||||||
description: "A list of string values to customize labels for MLS
|
description: |
|
||||||
systems, such as SELinux."
|
A list of string values to customize labels for MLS systems, such
|
||||||
|
as SELinux.
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
StorageOpt:
|
StorageOpt:
|
||||||
|
@ -1837,18 +1838,22 @@ definitions:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Name of the volume."
|
description: "Name of the volume."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "tardis"
|
||||||
Driver:
|
Driver:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Name of the volume driver used by the volume."
|
description: "Name of the volume driver used by the volume."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "custom"
|
||||||
Mountpoint:
|
Mountpoint:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Mount path of the volume on the host."
|
description: "Mount path of the volume on the host."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "/var/lib/docker/volumes/tardis"
|
||||||
CreatedAt:
|
CreatedAt:
|
||||||
type: "string"
|
type: "string"
|
||||||
format: "dateTime"
|
format: "dateTime"
|
||||||
description: "Date/Time the volume was created."
|
description: "Date/Time the volume was created."
|
||||||
|
example: "2016-06-07T20:31:11.853781916Z"
|
||||||
Status:
|
Status:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -1860,12 +1865,17 @@ definitions:
|
||||||
does not support this feature.
|
does not support this feature.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
example:
|
||||||
|
hello: "world"
|
||||||
Labels:
|
Labels:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "User-defined key/value metadata."
|
description: "User-defined key/value metadata."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example:
|
||||||
|
com.example.some-label: "some-value"
|
||||||
|
com.example.some-other-label: "some-other-value"
|
||||||
Scope:
|
Scope:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: |
|
description: |
|
||||||
|
@ -1874,12 +1884,17 @@ definitions:
|
||||||
default: "local"
|
default: "local"
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
enum: ["local", "global"]
|
enum: ["local", "global"]
|
||||||
|
example: "local"
|
||||||
Options:
|
Options:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
The driver specific options used when creating the volume.
|
The driver specific options used when creating the volume.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example:
|
||||||
|
device: "tmpfs"
|
||||||
|
o: "size=100m,uid=1000"
|
||||||
|
type: "tmpfs"
|
||||||
UsageData:
|
UsageData:
|
||||||
type: "object"
|
type: "object"
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
|
@ -1905,17 +1920,43 @@ definitions:
|
||||||
is set to `-1` if the reference-count is not available.
|
is set to `-1` if the reference-count is not available.
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
|
||||||
example:
|
VolumeCreateOptions:
|
||||||
Name: "tardis"
|
description: "Volume configuration"
|
||||||
Driver: "custom"
|
type: "object"
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
title: "VolumeConfig"
|
||||||
Status:
|
x-go-name: "VolumeCreateBody"
|
||||||
hello: "world"
|
properties:
|
||||||
|
Name:
|
||||||
|
description: |
|
||||||
|
The new volume's name. If not specified, Docker generates a name.
|
||||||
|
type: "string"
|
||||||
|
x-nullable: false
|
||||||
|
example: "tardis"
|
||||||
|
Driver:
|
||||||
|
description: "Name of the volume driver to use."
|
||||||
|
type: "string"
|
||||||
|
default: "local"
|
||||||
|
x-nullable: false
|
||||||
|
example: "custom"
|
||||||
|
DriverOpts:
|
||||||
|
description: |
|
||||||
|
A mapping of driver options and values. These options are
|
||||||
|
passed directly to the driver and are driver specific.
|
||||||
|
type: "object"
|
||||||
|
additionalProperties:
|
||||||
|
type: "string"
|
||||||
|
example:
|
||||||
|
device: "tmpfs"
|
||||||
|
o: "size=100m,uid=1000"
|
||||||
|
type: "tmpfs"
|
||||||
Labels:
|
Labels:
|
||||||
com.example.some-label: "some-value"
|
description: "User-defined key/value metadata."
|
||||||
com.example.some-other-label: "some-other-value"
|
type: "object"
|
||||||
Scope: "local"
|
additionalProperties:
|
||||||
CreatedAt: "2016-06-07T20:31:11.853781916Z"
|
type: "string"
|
||||||
|
example:
|
||||||
|
com.example.some-label: "some-value"
|
||||||
|
com.example.some-other-label: "some-other-value"
|
||||||
|
|
||||||
Network:
|
Network:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
@ -4311,6 +4352,29 @@ definitions:
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
$ref: "#/definitions/Health"
|
$ref: "#/definitions/Health"
|
||||||
|
|
||||||
|
ContainerWaitResponse:
|
||||||
|
description: "OK response to ContainerWait operation"
|
||||||
|
type: "object"
|
||||||
|
x-go-name: "ContainerWaitOKBody"
|
||||||
|
title: "ContainerWaitResponse"
|
||||||
|
required: [StatusCode, Error]
|
||||||
|
properties:
|
||||||
|
StatusCode:
|
||||||
|
description: "Exit code of the container"
|
||||||
|
type: "integer"
|
||||||
|
x-nullable: false
|
||||||
|
Error:
|
||||||
|
$ref: "#/definitions/ContainerWaitExitError"
|
||||||
|
|
||||||
|
ContainerWaitExitError:
|
||||||
|
description: "container waiting error, if any"
|
||||||
|
type: "object"
|
||||||
|
x-go-name: "ContainerWaitOKBodyError"
|
||||||
|
properties:
|
||||||
|
Message:
|
||||||
|
description: "Details of an error"
|
||||||
|
type: "string"
|
||||||
|
|
||||||
SystemVersion:
|
SystemVersion:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -7030,22 +7094,7 @@ paths:
|
||||||
200:
|
200:
|
||||||
description: "The container has exit."
|
description: "The container has exit."
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: "#/definitions/ContainerWaitResponse"
|
||||||
title: "ContainerWaitResponse"
|
|
||||||
description: "OK response to ContainerWait operation"
|
|
||||||
required: [StatusCode]
|
|
||||||
properties:
|
|
||||||
StatusCode:
|
|
||||||
description: "Exit code of the container"
|
|
||||||
type: "integer"
|
|
||||||
x-nullable: false
|
|
||||||
Error:
|
|
||||||
description: "container waiting error, if any"
|
|
||||||
type: "object"
|
|
||||||
properties:
|
|
||||||
Message:
|
|
||||||
description: "Details of an error"
|
|
||||||
type: "string"
|
|
||||||
400:
|
400:
|
||||||
description: "bad parameter"
|
description: "bad parameter"
|
||||||
schema:
|
schema:
|
||||||
|
@ -8816,23 +8865,6 @@ paths:
|
||||||
Warnings that occurred when fetching the list of volumes.
|
Warnings that occurred when fetching the list of volumes.
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
|
||||||
examples:
|
|
||||||
application/json:
|
|
||||||
Volumes:
|
|
||||||
- CreatedAt: "2017-07-19T12:00:26Z"
|
|
||||||
Name: "tardis"
|
|
||||||
Driver: "local"
|
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
|
||||||
Labels:
|
|
||||||
com.example.some-label: "some-value"
|
|
||||||
com.example.some-other-label: "some-other-value"
|
|
||||||
Scope: "local"
|
|
||||||
Options:
|
|
||||||
device: "tmpfs"
|
|
||||||
o: "size=100m,uid=1000"
|
|
||||||
type: "tmpfs"
|
|
||||||
Warnings: []
|
|
||||||
500:
|
500:
|
||||||
description: "Server error"
|
description: "Server error"
|
||||||
schema:
|
schema:
|
||||||
|
@ -8877,38 +8909,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: "Volume configuration"
|
description: "Volume configuration"
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: "#/definitions/VolumeCreateOptions"
|
||||||
description: "Volume configuration"
|
|
||||||
title: "VolumeConfig"
|
|
||||||
properties:
|
|
||||||
Name:
|
|
||||||
description: |
|
|
||||||
The new volume's name. If not specified, Docker generates a name.
|
|
||||||
type: "string"
|
|
||||||
x-nullable: false
|
|
||||||
Driver:
|
|
||||||
description: "Name of the volume driver to use."
|
|
||||||
type: "string"
|
|
||||||
default: "local"
|
|
||||||
x-nullable: false
|
|
||||||
DriverOpts:
|
|
||||||
description: |
|
|
||||||
A mapping of driver options and values. These options are
|
|
||||||
passed directly to the driver and are driver specific.
|
|
||||||
type: "object"
|
|
||||||
additionalProperties:
|
|
||||||
type: "string"
|
|
||||||
Labels:
|
|
||||||
description: "User-defined key/value metadata."
|
|
||||||
type: "object"
|
|
||||||
additionalProperties:
|
|
||||||
type: "string"
|
|
||||||
example:
|
|
||||||
Name: "tardis"
|
|
||||||
Labels:
|
|
||||||
com.example.some-label: "some-value"
|
|
||||||
com.example.some-other-label: "some-other-value"
|
|
||||||
Driver: "custom"
|
|
||||||
tags: ["Volume"]
|
tags: ["Volume"]
|
||||||
|
|
||||||
/volumes/{name}:
|
/volumes/{name}:
|
||||||
|
|
|
@ -1075,8 +1075,9 @@ definitions:
|
||||||
description: "Mount the container's root filesystem as read only."
|
description: "Mount the container's root filesystem as read only."
|
||||||
SecurityOpt:
|
SecurityOpt:
|
||||||
type: "array"
|
type: "array"
|
||||||
description: "A list of string values to customize labels for MLS
|
description: |
|
||||||
systems, such as SELinux."
|
A list of string values to customize labels for MLS systems, such
|
||||||
|
as SELinux.
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
StorageOpt:
|
StorageOpt:
|
||||||
|
@ -1869,18 +1870,22 @@ definitions:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Name of the volume."
|
description: "Name of the volume."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "tardis"
|
||||||
Driver:
|
Driver:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Name of the volume driver used by the volume."
|
description: "Name of the volume driver used by the volume."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "custom"
|
||||||
Mountpoint:
|
Mountpoint:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: "Mount path of the volume on the host."
|
description: "Mount path of the volume on the host."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
example: "/var/lib/docker/volumes/tardis"
|
||||||
CreatedAt:
|
CreatedAt:
|
||||||
type: "string"
|
type: "string"
|
||||||
format: "dateTime"
|
format: "dateTime"
|
||||||
description: "Date/Time the volume was created."
|
description: "Date/Time the volume was created."
|
||||||
|
example: "2016-06-07T20:31:11.853781916Z"
|
||||||
Status:
|
Status:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -1892,12 +1897,17 @@ definitions:
|
||||||
does not support this feature.
|
does not support this feature.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
example:
|
||||||
|
hello: "world"
|
||||||
Labels:
|
Labels:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "User-defined key/value metadata."
|
description: "User-defined key/value metadata."
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example:
|
||||||
|
com.example.some-label: "some-value"
|
||||||
|
com.example.some-other-label: "some-other-value"
|
||||||
Scope:
|
Scope:
|
||||||
type: "string"
|
type: "string"
|
||||||
description: |
|
description: |
|
||||||
|
@ -1906,12 +1916,17 @@ definitions:
|
||||||
default: "local"
|
default: "local"
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
enum: ["local", "global"]
|
enum: ["local", "global"]
|
||||||
|
example: "local"
|
||||||
Options:
|
Options:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
The driver specific options used when creating the volume.
|
The driver specific options used when creating the volume.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example:
|
||||||
|
device: "tmpfs"
|
||||||
|
o: "size=100m,uid=1000"
|
||||||
|
type: "tmpfs"
|
||||||
UsageData:
|
UsageData:
|
||||||
type: "object"
|
type: "object"
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
|
@ -1937,17 +1952,43 @@ definitions:
|
||||||
is set to `-1` if the reference-count is not available.
|
is set to `-1` if the reference-count is not available.
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
|
|
||||||
example:
|
VolumeCreateOptions:
|
||||||
Name: "tardis"
|
description: "Volume configuration"
|
||||||
Driver: "custom"
|
type: "object"
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
title: "VolumeConfig"
|
||||||
Status:
|
x-go-name: "VolumeCreateBody"
|
||||||
hello: "world"
|
properties:
|
||||||
|
Name:
|
||||||
|
description: |
|
||||||
|
The new volume's name. If not specified, Docker generates a name.
|
||||||
|
type: "string"
|
||||||
|
x-nullable: false
|
||||||
|
example: "tardis"
|
||||||
|
Driver:
|
||||||
|
description: "Name of the volume driver to use."
|
||||||
|
type: "string"
|
||||||
|
default: "local"
|
||||||
|
x-nullable: false
|
||||||
|
example: "custom"
|
||||||
|
DriverOpts:
|
||||||
|
description: |
|
||||||
|
A mapping of driver options and values. These options are
|
||||||
|
passed directly to the driver and are driver specific.
|
||||||
|
type: "object"
|
||||||
|
additionalProperties:
|
||||||
|
type: "string"
|
||||||
|
example:
|
||||||
|
device: "tmpfs"
|
||||||
|
o: "size=100m,uid=1000"
|
||||||
|
type: "tmpfs"
|
||||||
Labels:
|
Labels:
|
||||||
com.example.some-label: "some-value"
|
description: "User-defined key/value metadata."
|
||||||
com.example.some-other-label: "some-other-value"
|
type: "object"
|
||||||
Scope: "local"
|
additionalProperties:
|
||||||
CreatedAt: "2016-06-07T20:31:11.853781916Z"
|
type: "string"
|
||||||
|
example:
|
||||||
|
com.example.some-label: "some-value"
|
||||||
|
com.example.some-other-label: "some-other-value"
|
||||||
|
|
||||||
Network:
|
Network:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
@ -4477,6 +4518,29 @@ definitions:
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
$ref: "#/definitions/Health"
|
$ref: "#/definitions/Health"
|
||||||
|
|
||||||
|
ContainerWaitResponse:
|
||||||
|
description: "OK response to ContainerWait operation"
|
||||||
|
type: "object"
|
||||||
|
x-go-name: "ContainerWaitOKBody"
|
||||||
|
title: "ContainerWaitResponse"
|
||||||
|
required: [StatusCode, Error]
|
||||||
|
properties:
|
||||||
|
StatusCode:
|
||||||
|
description: "Exit code of the container"
|
||||||
|
type: "integer"
|
||||||
|
x-nullable: false
|
||||||
|
Error:
|
||||||
|
$ref: "#/definitions/ContainerWaitExitError"
|
||||||
|
|
||||||
|
ContainerWaitExitError:
|
||||||
|
description: "container waiting error, if any"
|
||||||
|
type: "object"
|
||||||
|
x-go-name: "ContainerWaitOKBodyError"
|
||||||
|
properties:
|
||||||
|
Message:
|
||||||
|
description: "Details of an error"
|
||||||
|
type: "string"
|
||||||
|
|
||||||
SystemVersion:
|
SystemVersion:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: |
|
description: |
|
||||||
|
@ -7211,22 +7275,7 @@ paths:
|
||||||
200:
|
200:
|
||||||
description: "The container has exit."
|
description: "The container has exit."
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: "#/definitions/ContainerWaitResponse"
|
||||||
title: "ContainerWaitResponse"
|
|
||||||
description: "OK response to ContainerWait operation"
|
|
||||||
required: [StatusCode]
|
|
||||||
properties:
|
|
||||||
StatusCode:
|
|
||||||
description: "Exit code of the container"
|
|
||||||
type: "integer"
|
|
||||||
x-nullable: false
|
|
||||||
Error:
|
|
||||||
description: "container waiting error, if any"
|
|
||||||
type: "object"
|
|
||||||
properties:
|
|
||||||
Message:
|
|
||||||
description: "Details of an error"
|
|
||||||
type: "string"
|
|
||||||
400:
|
400:
|
||||||
description: "bad parameter"
|
description: "bad parameter"
|
||||||
schema:
|
schema:
|
||||||
|
@ -8999,23 +9048,6 @@ paths:
|
||||||
Warnings that occurred when fetching the list of volumes.
|
Warnings that occurred when fetching the list of volumes.
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
|
||||||
examples:
|
|
||||||
application/json:
|
|
||||||
Volumes:
|
|
||||||
- CreatedAt: "2017-07-19T12:00:26Z"
|
|
||||||
Name: "tardis"
|
|
||||||
Driver: "local"
|
|
||||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
|
||||||
Labels:
|
|
||||||
com.example.some-label: "some-value"
|
|
||||||
com.example.some-other-label: "some-other-value"
|
|
||||||
Scope: "local"
|
|
||||||
Options:
|
|
||||||
device: "tmpfs"
|
|
||||||
o: "size=100m,uid=1000"
|
|
||||||
type: "tmpfs"
|
|
||||||
Warnings: []
|
|
||||||
500:
|
500:
|
||||||
description: "Server error"
|
description: "Server error"
|
||||||
schema:
|
schema:
|
||||||
|
@ -9060,38 +9092,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: "Volume configuration"
|
description: "Volume configuration"
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: "#/definitions/VolumeCreateOptions"
|
||||||
description: "Volume configuration"
|
|
||||||
title: "VolumeConfig"
|
|
||||||
properties:
|
|
||||||
Name:
|
|
||||||
description: |
|
|
||||||
The new volume's name. If not specified, Docker generates a name.
|
|
||||||
type: "string"
|
|
||||||
x-nullable: false
|
|
||||||
Driver:
|
|
||||||
description: "Name of the volume driver to use."
|
|
||||||
type: "string"
|
|
||||||
default: "local"
|
|
||||||
x-nullable: false
|
|
||||||
DriverOpts:
|
|
||||||
description: |
|
|
||||||
A mapping of driver options and values. These options are
|
|
||||||
passed directly to the driver and are driver specific.
|
|
||||||
type: "object"
|
|
||||||
additionalProperties:
|
|
||||||
type: "string"
|
|
||||||
Labels:
|
|
||||||
description: "User-defined key/value metadata."
|
|
||||||
type: "object"
|
|
||||||
additionalProperties:
|
|
||||||
type: "string"
|
|
||||||
example:
|
|
||||||
Name: "tardis"
|
|
||||||
Labels:
|
|
||||||
com.example.some-label: "some-value"
|
|
||||||
com.example.some-other-label: "some-other-value"
|
|
||||||
Driver: "custom"
|
|
||||||
tags: ["Volume"]
|
tags: ["Volume"]
|
||||||
|
|
||||||
/volumes/{name}:
|
/volumes/{name}:
|
||||||
|
|
|
@ -13,6 +13,15 @@ swagger generate model -f api/swagger.yaml \
|
||||||
-n ServiceUpdateResponse \
|
-n ServiceUpdateResponse \
|
||||||
-n Volume
|
-n Volume
|
||||||
|
|
||||||
|
swagger generate model -f api/swagger.yaml \
|
||||||
|
-t api -m types/container --skip-validator -C api/swagger-gen.yaml \
|
||||||
|
-n ContainerWaitResponse \
|
||||||
|
-n ContainerWaitExitError
|
||||||
|
|
||||||
|
swagger generate model -f api/swagger.yaml \
|
||||||
|
-t api -m types/volume --skip-validator -C api/swagger-gen.yaml \
|
||||||
|
-n VolumeCreateOptions
|
||||||
|
|
||||||
swagger generate operation -f api/swagger.yaml \
|
swagger generate operation -f api/swagger.yaml \
|
||||||
-t api -a types -m types -C api/swagger-gen.yaml \
|
-t api -a types -m types -C api/swagger-gen.yaml \
|
||||||
-T api/templates --skip-responses --skip-parameters --skip-validator \
|
-T api/templates --skip-responses --skip-parameters --skip-validator \
|
||||||
|
@ -21,7 +30,5 @@ swagger generate operation -f api/swagger.yaml \
|
||||||
-n ContainerCreate \
|
-n ContainerCreate \
|
||||||
-n ContainerTop \
|
-n ContainerTop \
|
||||||
-n ContainerUpdate \
|
-n ContainerUpdate \
|
||||||
-n ContainerWait \
|
|
||||||
-n ImageHistory \
|
-n ImageHistory \
|
||||||
-n VolumeCreate \
|
|
||||||
-n VolumeList
|
-n VolumeList
|
||||||
|
|
Loading…
Reference in a new issue