瀏覽代碼

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

api: swagger: add IPAMConfig on IPAM
Sebastiaan van Stijn 3 年之前
父節點
當前提交
efde293231
共有 2 個文件被更改,包括 30 次插入6 次删除
  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"
         type: "array"
         items:
         items:
-          type: "object"
-          additionalProperties:
-            type: "string"
+          $ref: "#/definitions/IPAMConfig"
       Options:
       Options:
         description: "Driver-specific options, specified as a map."
         description: "Driver-specific options, specified as a map."
         type: "object"
         type: "object"
         additionalProperties:
         additionalProperties:
           type: "string"
           type: "string"
 
 
+  IPAMConfig:
+    type: "object"
+    properties:
+      Subnet:
+        type: "string"
+      IPRange:
+        type: "string"
+      Gateway:
+        type: "string"
+      AuxiliaryAddresses:
+        type: "object"
+        additionalProperties:
+          type: "string"
+
   NetworkContainer:
   NetworkContainer:
     type: "object"
     type: "object"
     properties:
     properties:

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

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