Browse code

Sync API changes from 1.25 -> 1.24

commit 79e1d3877a1b1697028399b8ce39c4ee27b60a96
updated the v1.25 API with changes in SwarmKit,
but these changes should apply to v1.24.

This updates the 1.24 API with the same changes.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2016/06/21 06:07:11
Showing 1 changed files
... ...
@@ -2275,14 +2275,14 @@ Show the docker version information
2275 2275
     Content-Type: application/json
2276 2276
 
2277 2277
     {
2278
-         "Version": "1.10.0-dev",
2278
+         "Version": "1.12.0",
2279 2279
          "Os": "linux",
2280 2280
          "KernelVersion": "3.19.0-23-generic",
2281
-         "GoVersion": "go1.4.3",
2282
-         "GitCommit": "e75da4b",
2281
+         "GoVersion": "go1.6.2",
2282
+         "GitCommit": "deadbee",
2283 2283
          "Arch": "amd64",
2284 2284
          "ApiVersion": "1.24",
2285
-         "BuildTime": "2015-12-01T07:09:13.444803460+00:00",
2285
+         "BuildTime": "2016-06-14T07:09:13.444803460+00:00",
2286 2286
          "Experimental": true
2287 2287
     }
2288 2288
 
... ...
@@ -3825,7 +3825,7 @@ List services
3825 3825
         "UpdatedAt": "2016-06-07T21:07:29.962229872Z",
3826 3826
         "Spec": {
3827 3827
           "Name": "hopeful_cori",
3828
-          "Task": {
3828
+          "TaskTemplate": {
3829 3829
             "ContainerSpec": {
3830 3830
               "Image": "redis"
3831 3831
             },
... ...
@@ -3840,7 +3840,7 @@ List services
3840 3840
           },
3841 3841
           "Mode": {
3842 3842
             "Replicated": {
3843
-              "Instances": 1
3843
+              "Replicas": 1
3844 3844
             }
3845 3845
           },
3846 3846
           "UpdateConfig": {
... ...
@@ -3908,7 +3908,7 @@ Create a service
3908 3908
 
3909 3909
     {
3910 3910
       "Name": "redis",
3911
-      "Task": {
3911
+      "TaskTemplate": {
3912 3912
         "ContainerSpec": {
3913 3913
           "Image": "redis"
3914 3914
         },
... ...
@@ -3921,7 +3921,7 @@ Create a service
3921 3921
       },
3922 3922
       "Mode": {
3923 3923
         "Replicated": {
3924
-          "Instances": 1
3924
+          "Replicas": 1
3925 3925
         }
3926 3926
       },
3927 3927
       "UpdateConfig": {
... ...
@@ -3957,7 +3957,7 @@ JSON Parameters:
3957 3957
     - **Name** – User-defined name for the service.
3958 3958
     - **Labels** – A map of labels to associate with the service (e.g.,
3959 3959
       `{"key":"value"[,"key2":"value2"]}`).
3960
-- **Task** – Specification of the tasks to start as part of the new service.
3960
+- **TaskTemplate** – Specification of the tasks to start as part of the new service.
3961 3961
     - **ContainerSpec** - Container settings for containers started as part of this task.
3962 3962
         - **Image** – A string specifying the image name to use for the container.
3963 3963
         - **Command** – The command to be run in the image.
... ...
@@ -3967,21 +3967,21 @@ JSON Parameters:
3967 3967
         - **User** – A string value specifying the user inside the container.
3968 3968
         - **Labels** – A map of labels to associate with the service (e.g.,
3969 3969
           `{"key":"value"[,"key2":"value2"]}`).
3970
-        - **Mounts** – Specification for mounts to be added to containers created as part of the new
3970
+        - **Mounts** – Specification for mounts to be added to containers created as part of the new.
3971 3971
           service.
3972 3972
             - **Target** – Container path.
3973
-            - **Source** – Optional host path to be mounted in the target.
3974
-            - **Type** – The mount type (`bind`, `epheremal`, or `volume`).
3975
-            - **VolumeName** – A name for the volume.
3976
-            - **Populate** – A boolean indicating if volume should be populated with the data form the
3977
-              target (defaults to false).
3978
-            - **Propagation** – A propagation mode with the value `[r]private`, `[r]shared`, or
3979
-              `[r]slave` (`bind` type mounts only).
3980
-            - **MCSAccessMode** – MCS label for sharing mode (`bind` type mounts only).
3973
+            - **Source** – Mount source (e.g. a volume name, a host path).
3974
+            - **Type** – The mount type (`bind`, or `volume`).
3981 3975
             - **Writable** – A boolean indicating whether the mount should be writable.
3982
-            - **VolumeTemplate** – Optional configuration for the volume.
3983
-                - **Annotations** – User-defined name and labels for the volume.
3984
-                - **Driver** – Name of the driver to be used and driver-specific options.
3976
+            - **BindOptions** - Optional configuration for the `bind` type.
3977
+              - **Propagation** – A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`.
3978
+            - **VolumeOptions** – Optional configuration for the `volume` type.
3979
+                - **Populate** – A boolean indicating if volume should be
3980
+                  populated with the data from the target. (Default false)
3981
+                - **Labels** – User-defined name and labels for the volume.
3982
+                - **DriverConfig** – Map of driver-specific options.
3983
+                  - **Name** - Name of the driver to use to create the volume.
3984
+                  - **Options** - key/value map of driver specific options.
3985 3985
         - **StopGracePeriod** – Amount of time to wait for the container to terminate before
3986 3986
           forcefully killing it.
3987 3987
     - **Resources** – Resource requirements which apply to each individual container created as part
... ...
@@ -4077,7 +4077,7 @@ Return information on the service `id`.
4077 4077
         },
4078 4078
         "Mode": {
4079 4079
           "Replicated": {
4080
-            "Instances": 1
4080
+            "Replicas": 1
4081 4081
           }
4082 4082
         },
4083 4083
         "UpdateConfig": {
... ...
@@ -4175,7 +4175,7 @@ Update the service `id`.
4175 4175
     - **Name** – User-defined name for the service.
4176 4176
     - **Labels** – A map of labels to associate with the service (e.g.,
4177 4177
       `{"key":"value"[,"key2":"value2"]}`).
4178
-- **Task** – Specification of the tasks to start as part of the new service.
4178
+- **TaskTemplate** – Specification of the tasks to start as part of the new service.
4179 4179
     - **ContainerSpec** - Container settings for containers started as part of this task.
4180 4180
         - **Image** – A string specifying the image name to use for the container.
4181 4181
         - **Command** – The command to be run in the image.
... ...
@@ -4188,18 +4188,17 @@ Update the service `id`.
4188 4188
         - **Mounts** – Specification for mounts to be added to containers created as part of the new
4189 4189
           service.
4190 4190
             - **Target** – Container path.
4191
-            - **Source** – Optional host path to be mounted in the target.
4192
-            - **Type** – The mount type (`bind`, `epheremal`, or `volume`).
4193
-            - **VolumeName** – A name for the volume.
4194
-            - **Populate** – A boolean indicating if volume should be populated with the data form the
4195
-              target (defaults to false).
4196
-            - **Propagation** – A propagation mode with the value `[r]private`, `[r]shared`, or
4197
-              `[r]slave` (`bind` type mounts only).
4198
-            - **MCSAccessMode** – MCS label for sharing mode (`bind` type mounts only).
4191
+            - **Source** – Mount source (e.g. a volume name, a host path).
4192
+            - **Type** – The mount type (`bind`, or `volume`).
4199 4193
             - **Writable** – A boolean indicating whether the mount should be writable.
4200
-            - **VolumeTemplate** – Optional configuration for the volume.
4201
-                - **Annotations** – User-defined name and labels for the volume.
4202
-                - **Driver** – Name of the driver to be used and driver-specific options.
4194
+            - **BindOptions** - Optional configuration for the `bind` type
4195
+              - **Propagation** – A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`.
4196
+            - **VolumeOptions** – Optional configuration for the `volume` type.
4197
+                - **Populate** – A boolean indicating if volume should be populated with the data from the target. (Default false)
4198
+                - **Labels** – User-defined name and labels for the volume.
4199
+                - **DriverConfig** – Map of driver-specific options.
4200
+                  - **Name** - Name of the driver to use to create the volume
4201
+                  - **Options** - key/value map of driver specific options
4203 4202
         - **StopGracePeriod** – Amount of time to wait for the container to terminate before
4204 4203
           forcefully killing it.
4205 4204
     - **Resources** – Resource requirements which apply to each individual container created as part