api: docs: move Volume examples inline (v1.39-v1.41)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 5c0aae359f
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c60ff9b296
commit
c54362cd64
3 changed files with 42 additions and 87 deletions
|
@ -1776,18 +1776,22 @@ definitions:
|
|||
type: "string"
|
||||
description: "Name of the volume."
|
||||
x-nullable: false
|
||||
example: "tardis"
|
||||
Driver:
|
||||
type: "string"
|
||||
description: "Name of the volume driver used by the volume."
|
||||
x-nullable: false
|
||||
example: "custom"
|
||||
Mountpoint:
|
||||
type: "string"
|
||||
description: "Mount path of the volume on the host."
|
||||
x-nullable: false
|
||||
example: "/var/lib/docker/volumes/tardis"
|
||||
CreatedAt:
|
||||
type: "string"
|
||||
format: "dateTime"
|
||||
description: "Date/Time the volume was created."
|
||||
example: "2016-06-07T20:31:11.853781916Z"
|
||||
Status:
|
||||
type: "object"
|
||||
description: |
|
||||
|
@ -1799,12 +1803,17 @@ definitions:
|
|||
does not support this feature.
|
||||
additionalProperties:
|
||||
type: "object"
|
||||
example:
|
||||
hello: "world"
|
||||
Labels:
|
||||
type: "object"
|
||||
description: "User-defined key/value metadata."
|
||||
x-nullable: false
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
com.example.some-label: "some-value"
|
||||
com.example.some-other-label: "some-other-value"
|
||||
Scope:
|
||||
type: "string"
|
||||
description: |
|
||||
|
@ -1813,12 +1822,17 @@ definitions:
|
|||
default: "local"
|
||||
x-nullable: false
|
||||
enum: ["local", "global"]
|
||||
example: "local"
|
||||
Options:
|
||||
type: "object"
|
||||
description: |
|
||||
The driver specific options used when creating the volume.
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
device: "tmpfs"
|
||||
o: "size=100m,uid=1000"
|
||||
type: "tmpfs"
|
||||
UsageData:
|
||||
type: "object"
|
||||
x-nullable: true
|
||||
|
@ -1844,18 +1858,6 @@ definitions:
|
|||
is set to `-1` if the reference-count is not available.
|
||||
x-nullable: false
|
||||
|
||||
example:
|
||||
Name: "tardis"
|
||||
Driver: "custom"
|
||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
||||
Status:
|
||||
hello: "world"
|
||||
Labels:
|
||||
com.example.some-label: "some-value"
|
||||
com.example.some-other-label: "some-other-value"
|
||||
Scope: "local"
|
||||
CreatedAt: "2016-06-07T20:31:11.853781916Z"
|
||||
|
||||
Network:
|
||||
type: "object"
|
||||
properties:
|
||||
|
@ -8483,23 +8485,6 @@ paths:
|
|||
Warnings that occurred when fetching the list of volumes.
|
||||
items:
|
||||
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:
|
||||
description: "Server error"
|
||||
schema:
|
||||
|
|
|
@ -1837,18 +1837,22 @@ definitions:
|
|||
type: "string"
|
||||
description: "Name of the volume."
|
||||
x-nullable: false
|
||||
example: "tardis"
|
||||
Driver:
|
||||
type: "string"
|
||||
description: "Name of the volume driver used by the volume."
|
||||
x-nullable: false
|
||||
example: "custom"
|
||||
Mountpoint:
|
||||
type: "string"
|
||||
description: "Mount path of the volume on the host."
|
||||
x-nullable: false
|
||||
example: "/var/lib/docker/volumes/tardis"
|
||||
CreatedAt:
|
||||
type: "string"
|
||||
format: "dateTime"
|
||||
description: "Date/Time the volume was created."
|
||||
example: "2016-06-07T20:31:11.853781916Z"
|
||||
Status:
|
||||
type: "object"
|
||||
description: |
|
||||
|
@ -1860,12 +1864,17 @@ definitions:
|
|||
does not support this feature.
|
||||
additionalProperties:
|
||||
type: "object"
|
||||
example:
|
||||
hello: "world"
|
||||
Labels:
|
||||
type: "object"
|
||||
description: "User-defined key/value metadata."
|
||||
x-nullable: false
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
com.example.some-label: "some-value"
|
||||
com.example.some-other-label: "some-other-value"
|
||||
Scope:
|
||||
type: "string"
|
||||
description: |
|
||||
|
@ -1874,12 +1883,17 @@ definitions:
|
|||
default: "local"
|
||||
x-nullable: false
|
||||
enum: ["local", "global"]
|
||||
example: "local"
|
||||
Options:
|
||||
type: "object"
|
||||
description: |
|
||||
The driver specific options used when creating the volume.
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
device: "tmpfs"
|
||||
o: "size=100m,uid=1000"
|
||||
type: "tmpfs"
|
||||
UsageData:
|
||||
type: "object"
|
||||
x-nullable: true
|
||||
|
@ -1905,18 +1919,6 @@ definitions:
|
|||
is set to `-1` if the reference-count is not available.
|
||||
x-nullable: false
|
||||
|
||||
example:
|
||||
Name: "tardis"
|
||||
Driver: "custom"
|
||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
||||
Status:
|
||||
hello: "world"
|
||||
Labels:
|
||||
com.example.some-label: "some-value"
|
||||
com.example.some-other-label: "some-other-value"
|
||||
Scope: "local"
|
||||
CreatedAt: "2016-06-07T20:31:11.853781916Z"
|
||||
|
||||
Network:
|
||||
type: "object"
|
||||
properties:
|
||||
|
@ -8816,23 +8818,6 @@ paths:
|
|||
Warnings that occurred when fetching the list of volumes.
|
||||
items:
|
||||
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:
|
||||
description: "Server error"
|
||||
schema:
|
||||
|
|
|
@ -1869,18 +1869,22 @@ definitions:
|
|||
type: "string"
|
||||
description: "Name of the volume."
|
||||
x-nullable: false
|
||||
example: "tardis"
|
||||
Driver:
|
||||
type: "string"
|
||||
description: "Name of the volume driver used by the volume."
|
||||
x-nullable: false
|
||||
example: "custom"
|
||||
Mountpoint:
|
||||
type: "string"
|
||||
description: "Mount path of the volume on the host."
|
||||
x-nullable: false
|
||||
example: "/var/lib/docker/volumes/tardis"
|
||||
CreatedAt:
|
||||
type: "string"
|
||||
format: "dateTime"
|
||||
description: "Date/Time the volume was created."
|
||||
example: "2016-06-07T20:31:11.853781916Z"
|
||||
Status:
|
||||
type: "object"
|
||||
description: |
|
||||
|
@ -1892,12 +1896,17 @@ definitions:
|
|||
does not support this feature.
|
||||
additionalProperties:
|
||||
type: "object"
|
||||
example:
|
||||
hello: "world"
|
||||
Labels:
|
||||
type: "object"
|
||||
description: "User-defined key/value metadata."
|
||||
x-nullable: false
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
com.example.some-label: "some-value"
|
||||
com.example.some-other-label: "some-other-value"
|
||||
Scope:
|
||||
type: "string"
|
||||
description: |
|
||||
|
@ -1906,12 +1915,17 @@ definitions:
|
|||
default: "local"
|
||||
x-nullable: false
|
||||
enum: ["local", "global"]
|
||||
example: "local"
|
||||
Options:
|
||||
type: "object"
|
||||
description: |
|
||||
The driver specific options used when creating the volume.
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
device: "tmpfs"
|
||||
o: "size=100m,uid=1000"
|
||||
type: "tmpfs"
|
||||
UsageData:
|
||||
type: "object"
|
||||
x-nullable: true
|
||||
|
@ -1937,18 +1951,6 @@ definitions:
|
|||
is set to `-1` if the reference-count is not available.
|
||||
x-nullable: false
|
||||
|
||||
example:
|
||||
Name: "tardis"
|
||||
Driver: "custom"
|
||||
Mountpoint: "/var/lib/docker/volumes/tardis"
|
||||
Status:
|
||||
hello: "world"
|
||||
Labels:
|
||||
com.example.some-label: "some-value"
|
||||
com.example.some-other-label: "some-other-value"
|
||||
Scope: "local"
|
||||
CreatedAt: "2016-06-07T20:31:11.853781916Z"
|
||||
|
||||
Network:
|
||||
type: "object"
|
||||
properties:
|
||||
|
@ -8999,23 +9001,6 @@ paths:
|
|||
Warnings that occurred when fetching the list of volumes.
|
||||
items:
|
||||
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:
|
||||
description: "Server error"
|
||||
schema:
|
||||
|
|
Loading…
Add table
Reference in a new issue