Merge pull request #41248 from thaJeztah/19.03_backport_swagger_updates
This commit is contained in:
commit
a7e309944b
7 changed files with 3107 additions and 1097 deletions
1300
api/swagger.yaml
1300
api/swagger.yaml
File diff suppressed because it is too large
Load diff
|
@ -11,7 +11,9 @@ package container // import "github.com/docker/docker/api/types/container"
|
||||||
// swagger:model ContainerTopOKBody
|
// swagger:model ContainerTopOKBody
|
||||||
type ContainerTopOKBody struct {
|
type ContainerTopOKBody struct {
|
||||||
|
|
||||||
// Each process running in the container, where each is process is an array of values corresponding to the titles
|
// Each process running in the container, where each is process
|
||||||
|
// is an array of values corresponding to the titles.
|
||||||
|
//
|
||||||
// Required: true
|
// Required: true
|
||||||
Processes [][]string `json:"Processes"`
|
Processes [][]string `json:"Processes"`
|
||||||
|
|
||||||
|
|
|
@ -27,10 +27,13 @@ type Volume struct {
|
||||||
Name string `json:"Name"`
|
Name string `json:"Name"`
|
||||||
|
|
||||||
// The driver specific options used when creating the volume.
|
// The driver specific options used when creating the volume.
|
||||||
|
//
|
||||||
// Required: true
|
// Required: true
|
||||||
Options map[string]string `json:"Options"`
|
Options map[string]string `json:"Options"`
|
||||||
|
|
||||||
// The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level.
|
// The level at which the volume exists. Either `global` for cluster-wide,
|
||||||
|
// or `local` for machine level.
|
||||||
|
//
|
||||||
// Required: true
|
// Required: true
|
||||||
Scope string `json:"Scope"`
|
Scope string `json:"Scope"`
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,9 @@ type VolumeCreateBody struct {
|
||||||
// Required: true
|
// Required: true
|
||||||
Driver string `json:"Driver"`
|
Driver string `json:"Driver"`
|
||||||
|
|
||||||
// A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
|
// A mapping of driver options and values. These options are
|
||||||
|
// passed directly to the driver and are driver specific.
|
||||||
|
//
|
||||||
// Required: true
|
// Required: true
|
||||||
DriverOpts map[string]string `json:"DriverOpts"`
|
DriverOpts map[string]string `json:"DriverOpts"`
|
||||||
|
|
||||||
|
@ -24,6 +26,7 @@ type VolumeCreateBody struct {
|
||||||
Labels map[string]string `json:"Labels"`
|
Labels map[string]string `json:"Labels"`
|
||||||
|
|
||||||
// The new volume's name. If not specified, Docker generates a name.
|
// The new volume's name. If not specified, Docker generates a name.
|
||||||
|
//
|
||||||
// Required: true
|
// Required: true
|
||||||
Name string `json:"Name"`
|
Name string `json:"Name"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,8 @@ type VolumeListOKBody struct {
|
||||||
// Required: true
|
// Required: true
|
||||||
Volumes []*types.Volume `json:"Volumes"`
|
Volumes []*types.Volume `json:"Volumes"`
|
||||||
|
|
||||||
// Warnings that occurred when fetching the list of volumes
|
// Warnings that occurred when fetching the list of volumes.
|
||||||
|
//
|
||||||
// Required: true
|
// Required: true
|
||||||
Warnings []string `json:"Warnings"`
|
Warnings []string `json:"Warnings"`
|
||||||
}
|
}
|
||||||
|
|
1583
docs/api/v1.39.yaml
1583
docs/api/v1.39.yaml
File diff suppressed because it is too large
Load diff
1304
docs/api/v1.40.yaml
1304
docs/api/v1.40.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue