From a2de2681a65d034ffb231b15b630b5a053608331 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 11 Aug 2017 02:09:35 +0200 Subject: [PATCH] Extract Platform to a separate definition Signed-off-by: Sebastiaan van Stijn --- api/swagger.yaml | 43 +++++++++++++++++++------------------------ 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index b91319b7e9..d7085f7e3d 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -2046,22 +2046,7 @@ definitions: type: "string" example: "bf3067039e47" Platform: - description: | - Platform represents the platform (Arch/OS). - type: "object" - properties: - Architecture: - description: | - Architecture represents the hardware architecture (for example, - `x86_64`). - type: "string" - example: "x86_64" - OS: - description: | - OS represents the Operating System (for example, `linux` or - `windows`). - type: "string" - example: "linux" + $ref: "#/definitions/Platform" Resources: $ref: "#/definitions/ResourceObject" Engine: @@ -2184,6 +2169,23 @@ definitions: Reachability: "reachable" Addr: "172.17.0.2:2377" + Platform: + description: | + Platform represents the platform (Arch/OS). + type: "object" + properties: + Architecture: + description: | + Architecture represents the hardware architecture (for example, + `x86_64`). + type: "string" + example: "x86_64" + OS: + description: | + OS represents the Operating System (for example, `linux` or `windows`). + type: "string" + example: "linux" + TLSInfo: description: "Information about the issuer of leaf TLS certificates and the trusted root CA certificate" type: "object" @@ -2784,14 +2786,7 @@ definitions: scheduling restrictions. type: "array" items: - type: "object" - properties: - Architecture: - type: "string" - example: "amd64" - OS: - type: "string" - example: "linux" + $ref: "#/definitions/Platform" ForceUpdate: description: "A counter that triggers an update even if no relevant parameters have been changed." type: "integer"