瀏覽代碼

Reformat definitions - add some whitespace

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 8 年之前
父節點
當前提交
f720f9cc33
共有 1 個文件被更改,包括 21 次插入0 次删除
  1. 21 0
      api/swagger.yaml

+ 21 - 0
api/swagger.yaml

@@ -301,6 +301,7 @@ definitions:
           Mode:
           Mode:
             description: "The permission mode for the tmpfs mount in an integer."
             description: "The permission mode for the tmpfs mount in an integer."
             type: "integer"
             type: "integer"
+
   RestartPolicy:
   RestartPolicy:
     description: |
     description: |
       The behavior to apply when the container exits. The default is not to restart.
       The behavior to apply when the container exits. The default is not to restart.
@@ -1457,6 +1458,7 @@ definitions:
           type: "object"
           type: "object"
           additionalProperties:
           additionalProperties:
             type: "string"
             type: "string"
+
   NetworkContainer:
   NetworkContainer:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -1512,6 +1514,7 @@ definitions:
         type: "string"
         type: "string"
       progressDetail:
       progressDetail:
         $ref: "#/definitions/ProgressDetail"
         $ref: "#/definitions/ProgressDetail"
+
   ErrorDetail:
   ErrorDetail:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -1519,6 +1522,7 @@ definitions:
         type: "integer"
         type: "integer"
       message:
       message:
         type: "string"
         type: "string"
+
   ProgressDetail:
   ProgressDetail:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -1685,6 +1689,7 @@ definitions:
         example:
         example:
           - "rbind"
           - "rbind"
           - "rw"
           - "rw"
+
   PluginDevice:
   PluginDevice:
     type: "object"
     type: "object"
     required: [Name, Description, Settable, Path]
     required: [Name, Description, Settable, Path]
@@ -1988,6 +1993,7 @@ definitions:
       Role: "manager"
       Role: "manager"
       Labels:
       Labels:
         foo: "bar"
         foo: "bar"
+
   Node:
   Node:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -2101,6 +2107,7 @@ definitions:
           -----END CERTIFICATE-----
           -----END CERTIFICATE-----
         CertIssuerSubject: "MBMxETAPBgNVBAMTCHN3YXJtLWNh"
         CertIssuerSubject: "MBMxETAPBgNVBAMTCHN3YXJtLWNh"
         CertIssuerPublicKey: "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEmT9XIw9h1qoNclv9VeHmf/Vi6/uI2vFXdBveXTpcPjqx6i9wNazchk1XWV/dKTKvSh9xyGKmiIeRcE4OiMnJ1A=="
         CertIssuerPublicKey: "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEmT9XIw9h1qoNclv9VeHmf/Vi6/uI2vFXdBveXTpcPjqx6i9wNazchk1XWV/dKTKvSh9xyGKmiIeRcE4OiMnJ1A=="
+
   TLSInfo:
   TLSInfo:
     description: "Information about the issuer of leaf TLS certificates and the trusted root CA certificate"
     description: "Information about the issuer of leaf TLS certificates and the trusted root CA certificate"
     type: "object"
     type: "object"
@@ -2128,6 +2135,7 @@ definitions:
         -----END CERTIFICATE-----
         -----END CERTIFICATE-----
       CertIssuerSubject: "MBMxETAPBgNVBAMTCHN3YXJtLWNh"
       CertIssuerSubject: "MBMxETAPBgNVBAMTCHN3YXJtLWNh"
       CertIssuerPublicKey: "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEmT9XIw9h1qoNclv9VeHmf/Vi6/uI2vFXdBveXTpcPjqx6i9wNazchk1XWV/dKTKvSh9xyGKmiIeRcE4OiMnJ1A=="
       CertIssuerPublicKey: "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEmT9XIw9h1qoNclv9VeHmf/Vi6/uI2vFXdBveXTpcPjqx6i9wNazchk1XWV/dKTKvSh9xyGKmiIeRcE4OiMnJ1A=="
+
   SwarmSpec:
   SwarmSpec:
     description: "User modifiable swarm configuration."
     description: "User modifiable swarm configuration."
     type: "object"
     type: "object"
@@ -2265,6 +2273,7 @@ definitions:
         Manager: "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-7p73s1dx5in4tatdymyhg9hu2"
         Manager: "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-7p73s1dx5in4tatdymyhg9hu2"
       EncryptionConfig:
       EncryptionConfig:
         AutoLockManagers: false
         AutoLockManagers: false
+
   # The Swarm information for `GET /info`. It is the same as `GET /swarm`, but
   # The Swarm information for `GET /info`. It is the same as `GET /swarm`, but
   # without `JoinTokens`.
   # without `JoinTokens`.
   ClusterInfo:
   ClusterInfo:
@@ -2288,6 +2297,7 @@ definitions:
       RootRotationInProgress:
       RootRotationInProgress:
         description: "Whether there is currently a root CA rotation in progress for the swarm"
         description: "Whether there is currently a root CA rotation in progress for the swarm"
         type: "boolean"
         type: "boolean"
+
   TaskSpec:
   TaskSpec:
     description: "User modifiable task configuration."
     description: "User modifiable task configuration."
     type: "object"
     type: "object"
@@ -2617,6 +2627,7 @@ definitions:
             type: "object"
             type: "object"
             additionalProperties:
             additionalProperties:
               type: "string"
               type: "string"
+
   TaskState:
   TaskState:
     type: "string"
     type: "string"
     enum:
     enum:
@@ -2633,6 +2644,7 @@ definitions:
       - "shutdown"
       - "shutdown"
       - "failed"
       - "failed"
       - "rejected"
       - "rejected"
+
   Task:
   Task:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -2756,6 +2768,7 @@ definitions:
         - NamedResourceSpec:
         - NamedResourceSpec:
             Kind: "GPU"
             Kind: "GPU"
             Value: "UUID2"
             Value: "UUID2"
+
   ServiceSpec:
   ServiceSpec:
     description: "User modifiable configuration for a service."
     description: "User modifiable configuration for a service."
     properties:
     properties:
@@ -2860,6 +2873,7 @@ definitions:
                 type: "string"
                 type: "string"
       EndpointSpec:
       EndpointSpec:
         $ref: "#/definitions/EndpointSpec"
         $ref: "#/definitions/EndpointSpec"
+
   EndpointPortConfig:
   EndpointPortConfig:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -2876,6 +2890,7 @@ definitions:
       PublishedPort:
       PublishedPort:
         description: "The port on the swarm hosts."
         description: "The port on the swarm hosts."
         type: "integer"
         type: "integer"
+
   EndpointSpec:
   EndpointSpec:
     description: "Properties that can be configured to access and load balance a service."
     description: "Properties that can be configured to access and load balance a service."
     type: "object"
     type: "object"
@@ -2893,6 +2908,7 @@ definitions:
         type: "array"
         type: "array"
         items:
         items:
           $ref: "#/definitions/EndpointPortConfig"
           $ref: "#/definitions/EndpointPortConfig"
+
   Service:
   Service:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -3005,6 +3021,7 @@ definitions:
           -
           -
             NetworkID: "4qvuz4ko70xaltuqbt8956gd1"
             NetworkID: "4qvuz4ko70xaltuqbt8956gd1"
             Addr: "10.255.0.3/16"
             Addr: "10.255.0.3/16"
+
   ImageDeleteResponseItem:
   ImageDeleteResponseItem:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -3014,6 +3031,7 @@ definitions:
       Deleted:
       Deleted:
         description: "The image ID of an image that was deleted"
         description: "The image ID of an image that was deleted"
         type: "string"
         type: "string"
+
   ServiceUpdateResponse:
   ServiceUpdateResponse:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -3024,6 +3042,7 @@ definitions:
           type: "string"
           type: "string"
     example:
     example:
       Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
       Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
+
   ContainerSummary:
   ContainerSummary:
     type: "array"
     type: "array"
     items:
     items:
@@ -3158,6 +3177,7 @@ definitions:
         example: "2017-07-20T13:55:28.678958722Z"
         example: "2017-07-20T13:55:28.678958722Z"
       Spec:
       Spec:
         $ref: "#/definitions/SecretSpec"
         $ref: "#/definitions/SecretSpec"
+
   ConfigSpec:
   ConfigSpec:
     type: "object"
     type: "object"
     properties:
     properties:
@@ -3174,6 +3194,7 @@ definitions:
           Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-3.2))
           Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-3.2))
           config data.
           config data.
         type: "string"
         type: "string"
+
   Config:
   Config:
     type: "object"
     type: "object"
     properties:
     properties: