Selaa lähdekoodia

Merge pull request #44784 from thaJeztah/api_sync_docs

docs: api: synchronise versioned API docs (v1.39 - v1.42)
Sebastiaan van Stijn 2 vuotta sitten
vanhempi
commit
d3dec8fae1
4 muutettua tiedostoa jossa 63 lisäystä ja 25 poistoa
  1. 23 10
      docs/api/v1.39.yaml
  2. 24 11
      docs/api/v1.40.yaml
  3. 11 4
      docs/api/v1.41.yaml
  4. 5 0
      docs/api/v1.42.yaml

+ 23 - 10
docs/api/v1.39.yaml

@@ -573,6 +573,7 @@ definitions:
           to not change.
           to not change.
         type: "integer"
         type: "integer"
         format: "int64"
         format: "int64"
+        x-nullable: true
       Ulimits:
       Ulimits:
         description: |
         description: |
           A list of resource limits to set in the container. For example:
           A list of resource limits to set in the container. For example:
@@ -694,11 +695,13 @@ definitions:
           The time to wait between checks in nanoseconds. It should be 0 or at
           The time to wait between checks in nanoseconds. It should be 0 or at
           least 1000000 (1 ms). 0 means inherit.
           least 1000000 (1 ms). 0 means inherit.
         type: "integer"
         type: "integer"
+        format: "int64"
       Timeout:
       Timeout:
         description: |
         description: |
           The time to wait before considering the check to have hung. It should
           The time to wait before considering the check to have hung. It should
           be 0 or at least 1000000 (1 ms). 0 means inherit.
           be 0 or at least 1000000 (1 ms). 0 means inherit.
         type: "integer"
         type: "integer"
+        format: "int64"
       Retries:
       Retries:
         description: |
         description: |
           The number of consecutive failures needed to consider a container as
           The number of consecutive failures needed to consider a container as
@@ -710,11 +713,13 @@ definitions:
           health-retries countdown in nanoseconds. It should be 0 or at least
           health-retries countdown in nanoseconds. It should be 0 or at least
           1000000 (1 ms). 0 means inherit.
           1000000 (1 ms). 0 means inherit.
         type: "integer"
         type: "integer"
+        format: "int64"
 
 
   Health:
   Health:
     description: |
     description: |
       Health stores information about the container's healthcheck results.
       Health stores information about the container's healthcheck results.
     type: "object"
     type: "object"
+    x-nullable: true
     properties:
     properties:
       Status:
       Status:
         description: |
         description: |
@@ -740,13 +745,13 @@ definitions:
         description: |
         description: |
           Log contains the last few results (oldest first)
           Log contains the last few results (oldest first)
         items:
         items:
-          x-nullable: true
           $ref: "#/definitions/HealthcheckResult"
           $ref: "#/definitions/HealthcheckResult"
 
 
   HealthcheckResult:
   HealthcheckResult:
     description: |
     description: |
       HealthcheckResult stores information about a single run of a healthcheck probe
       HealthcheckResult stores information about a single run of a healthcheck probe
     type: "object"
     type: "object"
+    x-nullable: true
     properties:
     properties:
       Start:
       Start:
         description: |
         description: |
@@ -1014,6 +1019,7 @@ definitions:
               remapping option is enabled.
               remapping option is enabled.
           ShmSize:
           ShmSize:
             type: "integer"
             type: "integer"
+            format: "int64"
             description: |
             description: |
               Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.
               Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.
             minimum: 0
             minimum: 0
@@ -1534,7 +1540,7 @@ definitions:
           List of image names/tags in the local image cache that reference this
           List of image names/tags in the local image cache that reference this
           image.
           image.
 
 
-          Multiple image tags can refer to the same imagem and this list may be
+          Multiple image tags can refer to the same image, and this list may be
           empty if no tags reference the image, in which case the image is
           empty if no tags reference the image, in which case the image is
           "untagged", in which case it can still be referenced by its ID.
           "untagged", in which case it can still be referenced by its ID.
         type: "array"
         type: "array"
@@ -1735,7 +1741,7 @@ definitions:
           List of image names/tags in the local image cache that reference this
           List of image names/tags in the local image cache that reference this
           image.
           image.
 
 
-          Multiple image tags can refer to the same imagem and this list may be
+          Multiple image tags can refer to the same image, and this list may be
           empty if no tags reference the image, in which case the image is
           empty if no tags reference the image, in which case the image is
           "untagged", in which case it can still be referenced by its ID.
           "untagged", in which case it can still be referenced by its ID.
         type: "array"
         type: "array"
@@ -1785,6 +1791,7 @@ definitions:
           This size is not calculated by default. `-1` indicates that the value
           This size is not calculated by default. `-1` indicates that the value
           has not been set / calculated.
           has not been set / calculated.
         type: "integer"
         type: "integer"
+        format: "int64"
         x-nullable: false
         x-nullable: false
         example: 1239828
         example: 1239828
       VirtualSize:
       VirtualSize:
@@ -1929,6 +1936,7 @@ definitions:
         properties:
         properties:
           Size:
           Size:
             type: "integer"
             type: "integer"
+            format: "int64"
             default: -1
             default: -1
             description: |
             description: |
               Amount of disk space used by the volume (in bytes). This information
               Amount of disk space used by the volume (in bytes). This information
@@ -1938,6 +1946,7 @@ definitions:
             x-nullable: false
             x-nullable: false
           RefCount:
           RefCount:
             type: "integer"
             type: "integer"
+            format: "int64"
             default: -1
             default: -1
             description: |
             description: |
               The number of containers referencing this volume. This field
               The number of containers referencing this volume. This field
@@ -2213,6 +2222,8 @@ definitions:
         type: "string"
         type: "string"
       error:
       error:
         type: "string"
         type: "string"
+      errorDetail:
+        $ref: "#/definitions/ErrorDetail"
       status:
       status:
         type: "string"
         type: "string"
       progress:
       progress:
@@ -4301,6 +4312,7 @@ definitions:
       ContainerState stores container's running state. It's part of ContainerJSONBase
       ContainerState stores container's running state. It's part of ContainerJSONBase
       and will be returned by the "inspect" command.
       and will be returned by the "inspect" command.
     type: "object"
     type: "object"
+    x-nullable: true
     properties:
     properties:
       Status:
       Status:
         description: |
         description: |
@@ -4358,7 +4370,6 @@ definitions:
         type: "string"
         type: "string"
         example: "2020-01-06T09:07:59.461876391Z"
         example: "2020-01-06T09:07:59.461876391Z"
       Health:
       Health:
-        x-nullable: true
         $ref: "#/definitions/Health"
         $ref: "#/definitions/Health"
 
 
   ContainerWaitResponse:
   ContainerWaitResponse:
@@ -4371,6 +4382,7 @@ definitions:
       StatusCode:
       StatusCode:
         description: "Exit code of the container"
         description: "Exit code of the container"
         type: "integer"
         type: "integer"
+        format: "int64"
         x-nullable: false
         x-nullable: false
       Error:
       Error:
         $ref: "#/definitions/ContainerWaitExitError"
         $ref: "#/definitions/ContainerWaitExitError"
@@ -4480,7 +4492,6 @@ definitions:
         type: "string"
         type: "string"
         example: "2020-06-22T15:49:27.000000000+00:00"
         example: "2020-06-22T15:49:27.000000000+00:00"
 
 
-
   SystemInfo:
   SystemInfo:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -5724,7 +5735,6 @@ paths:
                 items:
                 items:
                   type: "string"
                   type: "string"
               State:
               State:
-                x-nullable: true
                 $ref: "#/definitions/ContainerState"
                 $ref: "#/definitions/ContainerState"
               Image:
               Image:
                 description: "The container's image ID"
                 description: "The container's image ID"
@@ -5737,9 +5747,6 @@ paths:
                 type: "string"
                 type: "string"
               LogPath:
               LogPath:
                 type: "string"
                 type: "string"
-              Node:
-                description: "TODO"
-                type: "object"
               Name:
               Name:
                 type: "string"
                 type: "string"
               RestartCount:
               RestartCount:
@@ -6519,7 +6526,8 @@ paths:
           type: "string"
           type: "string"
         - name: "signal"
         - name: "signal"
           in: "query"
           in: "query"
-          description: "Signal to send to the container as an integer or string (e.g. `SIGINT`)"
+          description: |
+            Signal to send to the container as an integer or string (e.g. `SIGINT`).
           type: "string"
           type: "string"
           default: "SIGKILL"
           default: "SIGKILL"
       tags: ["Container"]
       tags: ["Container"]
@@ -7897,6 +7905,10 @@ paths:
               IdentityToken: "9cbaf023786cd7..."
               IdentityToken: "9cbaf023786cd7..."
         204:
         204:
           description: "No error"
           description: "No error"
+        401:
+          description: "Auth error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         500:
         500:
           description: "Server error"
           description: "Server error"
           schema:
           schema:
@@ -8732,6 +8744,7 @@ paths:
           type: "boolean"
           type: "boolean"
           default: false
           default: false
       tags: ["Volume"]
       tags: ["Volume"]
+
   /volumes/prune:
   /volumes/prune:
     post:
     post:
       summary: "Delete unused volumes"
       summary: "Delete unused volumes"

+ 24 - 11
docs/api/v1.40.yaml

@@ -746,11 +746,13 @@ definitions:
           The time to wait between checks in nanoseconds. It should be 0 or at
           The time to wait between checks in nanoseconds. It should be 0 or at
           least 1000000 (1 ms). 0 means inherit.
           least 1000000 (1 ms). 0 means inherit.
         type: "integer"
         type: "integer"
+        format: "int64"
       Timeout:
       Timeout:
         description: |
         description: |
           The time to wait before considering the check to have hung. It should
           The time to wait before considering the check to have hung. It should
           be 0 or at least 1000000 (1 ms). 0 means inherit.
           be 0 or at least 1000000 (1 ms). 0 means inherit.
         type: "integer"
         type: "integer"
+        format: "int64"
       Retries:
       Retries:
         description: |
         description: |
           The number of consecutive failures needed to consider a container as
           The number of consecutive failures needed to consider a container as
@@ -762,11 +764,13 @@ definitions:
           health-retries countdown in nanoseconds. It should be 0 or at least
           health-retries countdown in nanoseconds. It should be 0 or at least
           1000000 (1 ms). 0 means inherit.
           1000000 (1 ms). 0 means inherit.
         type: "integer"
         type: "integer"
+        format: "int64"
 
 
   Health:
   Health:
     description: |
     description: |
       Health stores information about the container's healthcheck results.
       Health stores information about the container's healthcheck results.
     type: "object"
     type: "object"
+    x-nullable: true
     properties:
     properties:
       Status:
       Status:
         description: |
         description: |
@@ -792,13 +796,13 @@ definitions:
         description: |
         description: |
           Log contains the last few results (oldest first)
           Log contains the last few results (oldest first)
         items:
         items:
-          x-nullable: true
           $ref: "#/definitions/HealthcheckResult"
           $ref: "#/definitions/HealthcheckResult"
 
 
   HealthcheckResult:
   HealthcheckResult:
     description: |
     description: |
       HealthcheckResult stores information about a single run of a healthcheck probe
       HealthcheckResult stores information about a single run of a healthcheck probe
     type: "object"
     type: "object"
+    x-nullable: true
     properties:
     properties:
       Start:
       Start:
         description: |
         description: |
@@ -1075,6 +1079,7 @@ definitions:
               remapping option is enabled.
               remapping option is enabled.
           ShmSize:
           ShmSize:
             type: "integer"
             type: "integer"
+            format: "int64"
             description: |
             description: |
               Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.
               Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.
             minimum: 0
             minimum: 0
@@ -1595,7 +1600,7 @@ definitions:
           List of image names/tags in the local image cache that reference this
           List of image names/tags in the local image cache that reference this
           image.
           image.
 
 
-          Multiple image tags can refer to the same imagem and this list may be
+          Multiple image tags can refer to the same image, and this list may be
           empty if no tags reference the image, in which case the image is
           empty if no tags reference the image, in which case the image is
           "untagged", in which case it can still be referenced by its ID.
           "untagged", in which case it can still be referenced by its ID.
         type: "array"
         type: "array"
@@ -1796,7 +1801,7 @@ definitions:
           List of image names/tags in the local image cache that reference this
           List of image names/tags in the local image cache that reference this
           image.
           image.
 
 
-          Multiple image tags can refer to the same imagem and this list may be
+          Multiple image tags can refer to the same image, and this list may be
           empty if no tags reference the image, in which case the image is
           empty if no tags reference the image, in which case the image is
           "untagged", in which case it can still be referenced by its ID.
           "untagged", in which case it can still be referenced by its ID.
         type: "array"
         type: "array"
@@ -1846,6 +1851,7 @@ definitions:
           This size is not calculated by default. `-1` indicates that the value
           This size is not calculated by default. `-1` indicates that the value
           has not been set / calculated.
           has not been set / calculated.
         type: "integer"
         type: "integer"
+        format: "int64"
         x-nullable: false
         x-nullable: false
         example: 1239828
         example: 1239828
       VirtualSize:
       VirtualSize:
@@ -1990,6 +1996,7 @@ definitions:
         properties:
         properties:
           Size:
           Size:
             type: "integer"
             type: "integer"
+            format: "int64"
             default: -1
             default: -1
             description: |
             description: |
               Amount of disk space used by the volume (in bytes). This information
               Amount of disk space used by the volume (in bytes). This information
@@ -1999,6 +2006,7 @@ definitions:
             x-nullable: false
             x-nullable: false
           RefCount:
           RefCount:
             type: "integer"
             type: "integer"
+            format: "int64"
             default: -1
             default: -1
             description: |
             description: |
               The number of containers referencing this volume. This field
               The number of containers referencing this volume. This field
@@ -2274,6 +2282,8 @@ definitions:
         type: "string"
         type: "string"
       error:
       error:
         type: "string"
         type: "string"
+      errorDetail:
+        $ref: "#/definitions/ErrorDetail"
       status:
       status:
         type: "string"
         type: "string"
       progress:
       progress:
@@ -4426,6 +4436,7 @@ definitions:
       ContainerState stores container's running state. It's part of ContainerJSONBase
       ContainerState stores container's running state. It's part of ContainerJSONBase
       and will be returned by the "inspect" command.
       and will be returned by the "inspect" command.
     type: "object"
     type: "object"
+    x-nullable: true
     properties:
     properties:
       Status:
       Status:
         description: |
         description: |
@@ -4483,7 +4494,6 @@ definitions:
         type: "string"
         type: "string"
         example: "2020-01-06T09:07:59.461876391Z"
         example: "2020-01-06T09:07:59.461876391Z"
       Health:
       Health:
-        x-nullable: true
         $ref: "#/definitions/Health"
         $ref: "#/definitions/Health"
 
 
   ContainerWaitResponse:
   ContainerWaitResponse:
@@ -4496,6 +4506,7 @@ definitions:
       StatusCode:
       StatusCode:
         description: "Exit code of the container"
         description: "Exit code of the container"
         type: "integer"
         type: "integer"
+        format: "int64"
         x-nullable: false
         x-nullable: false
       Error:
       Error:
         $ref: "#/definitions/ContainerWaitExitError"
         $ref: "#/definitions/ContainerWaitExitError"
@@ -6023,7 +6034,6 @@ paths:
                 items:
                 items:
                   type: "string"
                   type: "string"
               State:
               State:
-                x-nullable: true
                 $ref: "#/definitions/ContainerState"
                 $ref: "#/definitions/ContainerState"
               Image:
               Image:
                 description: "The container's image ID"
                 description: "The container's image ID"
@@ -6036,9 +6046,6 @@ paths:
                 type: "string"
                 type: "string"
               LogPath:
               LogPath:
                 type: "string"
                 type: "string"
-              Node:
-                description: "TODO"
-                type: "object"
               Name:
               Name:
                 type: "string"
                 type: "string"
               RestartCount:
               RestartCount:
@@ -6825,7 +6832,8 @@ paths:
           type: "string"
           type: "string"
         - name: "signal"
         - name: "signal"
           in: "query"
           in: "query"
-          description: "Signal to send to the container as an integer or string (e.g. `SIGINT`)"
+          description: |
+            Signal to send to the container as an integer or string (e.g. `SIGINT`).
           type: "string"
           type: "string"
           default: "SIGKILL"
           default: "SIGKILL"
       tags: ["Container"]
       tags: ["Container"]
@@ -8220,6 +8228,10 @@ paths:
               IdentityToken: "9cbaf023786cd7..."
               IdentityToken: "9cbaf023786cd7..."
         204:
         204:
           description: "No error"
           description: "No error"
+        401:
+          description: "Auth error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         500:
         500:
           description: "Server error"
           description: "Server error"
           schema:
           schema:
@@ -9065,6 +9077,7 @@ paths:
           type: "boolean"
           type: "boolean"
           default: false
           default: false
       tags: ["Volume"]
       tags: ["Volume"]
+
   /volumes/prune:
   /volumes/prune:
     post:
     post:
       summary: "Delete unused volumes"
       summary: "Delete unused volumes"
@@ -10083,7 +10096,7 @@ paths:
           required: true
           required: true
           schema:
           schema:
             type: "object"
             type: "object"
-            title: "SwarmJoinRequest"
+            title: "SwarmInitRequest"
             properties:
             properties:
               ListenAddr:
               ListenAddr:
                 description: |
                 description: |
@@ -10182,7 +10195,7 @@ paths:
           required: true
           required: true
           schema:
           schema:
             type: "object"
             type: "object"
-            title: "SwarmInitRequest"
+            title: "SwarmJoinRequest"
             properties:
             properties:
               ListenAddr:
               ListenAddr:
                 description: |
                 description: |

+ 11 - 4
docs/api/v1.41.yaml

@@ -823,13 +823,13 @@ definitions:
         description: |
         description: |
           Log contains the last few results (oldest first)
           Log contains the last few results (oldest first)
         items:
         items:
-          x-nullable: true
           $ref: "#/definitions/HealthcheckResult"
           $ref: "#/definitions/HealthcheckResult"
 
 
   HealthcheckResult:
   HealthcheckResult:
     description: |
     description: |
       HealthcheckResult stores information about a single run of a healthcheck probe
       HealthcheckResult stores information about a single run of a healthcheck probe
     type: "object"
     type: "object"
+    x-nullable: true
     properties:
     properties:
       Start:
       Start:
         description: |
         description: |
@@ -2325,6 +2325,8 @@ definitions:
         type: "string"
         type: "string"
       error:
       error:
         type: "string"
         type: "string"
+      errorDetail:
+        $ref: "#/definitions/ErrorDetail"
       status:
       status:
         type: "string"
         type: "string"
       progress:
       progress:
@@ -4599,6 +4601,7 @@ definitions:
       ContainerState stores container's running state. It's part of ContainerJSONBase
       ContainerState stores container's running state. It's part of ContainerJSONBase
       and will be returned by the "inspect" command.
       and will be returned by the "inspect" command.
     type: "object"
     type: "object"
+    x-nullable: true
     properties:
     properties:
       Status:
       Status:
         description: |
         description: |
@@ -4656,7 +4659,6 @@ definitions:
         type: "string"
         type: "string"
         example: "2020-01-06T09:07:59.461876391Z"
         example: "2020-01-06T09:07:59.461876391Z"
       Health:
       Health:
-        x-nullable: true
         $ref: "#/definitions/Health"
         $ref: "#/definitions/Health"
 
 
   ContainerWaitResponse:
   ContainerWaitResponse:
@@ -6224,7 +6226,6 @@ paths:
                 items:
                 items:
                   type: "string"
                   type: "string"
               State:
               State:
-                x-nullable: true
                 $ref: "#/definitions/ContainerState"
                 $ref: "#/definitions/ContainerState"
               Image:
               Image:
                 description: "The container's image ID"
                 description: "The container's image ID"
@@ -7036,7 +7037,8 @@ paths:
           type: "string"
           type: "string"
         - name: "signal"
         - name: "signal"
           in: "query"
           in: "query"
-          description: "Signal to send to the container as an integer or string (e.g. `SIGINT`)"
+          description: |
+            Signal to send to the container as an integer or string (e.g. `SIGINT`).
           type: "string"
           type: "string"
           default: "SIGKILL"
           default: "SIGKILL"
       tags: ["Container"]
       tags: ["Container"]
@@ -8431,6 +8433,10 @@ paths:
               IdentityToken: "9cbaf023786cd7..."
               IdentityToken: "9cbaf023786cd7..."
         204:
         204:
           description: "No error"
           description: "No error"
+        401:
+          description: "Auth error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         500:
         500:
           description: "Server error"
           description: "Server error"
           schema:
           schema:
@@ -9278,6 +9284,7 @@ paths:
           type: "boolean"
           type: "boolean"
           default: false
           default: false
       tags: ["Volume"]
       tags: ["Volume"]
+
   /volumes/prune:
   /volumes/prune:
     post:
     post:
       summary: "Delete unused volumes"
       summary: "Delete unused volumes"

+ 5 - 0
docs/api/v1.42.yaml

@@ -1122,6 +1122,7 @@ definitions:
               remapping option is enabled.
               remapping option is enabled.
           ShmSize:
           ShmSize:
             type: "integer"
             type: "integer"
+            format: "int64"
             description: |
             description: |
               Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.
               Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.
             minimum: 0
             minimum: 0
@@ -8727,6 +8728,10 @@ paths:
               IdentityToken: "9cbaf023786cd7..."
               IdentityToken: "9cbaf023786cd7..."
         204:
         204:
           description: "No error"
           description: "No error"
+        401:
+          description: "Auth error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         500:
         500:
           description: "Server error"
           description: "Server error"
           schema:
           schema: