Ver código fonte

Merge pull request #43372 from fussybeaver/43292-swagger-add-ipamconfig

api: swagger: add IPAMConfig on IPAM
Sebastiaan van Stijn 3 anos atrás
pai
commit
efde293231
2 arquivos alterados com 30 adições e 6 exclusões
  1. 15 3
      api/swagger.yaml
  2. 15 3
      docs/api/v1.41.yaml

+ 15 - 3
api/swagger.yaml

@@ -2035,15 +2035,27 @@ definitions:
           ```
         type: "array"
         items:
-          type: "object"
-          additionalProperties:
-            type: "string"
+          $ref: "#/definitions/IPAMConfig"
       Options:
         description: "Driver-specific options, specified as a map."
         type: "object"
         additionalProperties:
           type: "string"
 
+  IPAMConfig:
+    type: "object"
+    properties:
+      Subnet:
+        type: "string"
+      IPRange:
+        type: "string"
+      Gateway:
+        type: "string"
+      AuxiliaryAddresses:
+        type: "object"
+        additionalProperties:
+          type: "string"
+
   NetworkContainer:
     type: "object"
     properties:

+ 15 - 3
docs/api/v1.41.yaml

@@ -2035,15 +2035,27 @@ definitions:
           ```
         type: "array"
         items:
-          type: "object"
-          additionalProperties:
-            type: "string"
+          $ref: "#/definitions/IPAMConfig"
       Options:
         description: "Driver-specific options, specified as a map."
         type: "object"
         additionalProperties:
           type: "string"
 
+  IPAMConfig:
+    type: "object"
+    properties:
+      Subnet:
+        type: "string"
+      IPRange:
+        type: "string"
+      Gateway:
+        type: "string"
+      AuxiliaryAddresses:
+        type: "object"
+        additionalProperties:
+          type: "string"
+
   NetworkContainer:
     type: "object"
     properties: