From 3a37403bb91e4e5a2a4d4aa40c3fb0b628eca154 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 11 Aug 2017 02:30:16 +0200 Subject: [PATCH] Extract NodeDescription to a separate definition Signed-off-by: Sebastiaan van Stijn Upstream-commit: 33e2c994015cbc8f7e86bc1b764e17a7470a17ac Component: engine --- components/engine/api/swagger.yaml | 35 ++++++++++++++++-------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/components/engine/api/swagger.yaml b/components/engine/api/swagger.yaml index 3b86ed59dd..ffe07a3d25 100644 --- a/components/engine/api/swagger.yaml +++ b/components/engine/api/swagger.yaml @@ -2037,22 +2037,7 @@ definitions: Spec: $ref: "#/definitions/NodeSpec" Description: - description: | - Description encapsulates the properties of the Node as reported by the - agent. - type: "object" - properties: - Hostname: - type: "string" - example: "bf3067039e47" - Platform: - $ref: "#/definitions/Platform" - Resources: - $ref: "#/definitions/ResourceObject" - Engine: - $ref: "#/definitions/EngineDescription" - TLSInfo: - $ref: "#/definitions/TLSInfo" + $ref: "#/definitions/NodeDescription" Status: $ref: "#/definitions/NodeStatus" ManagerStatus: @@ -2150,6 +2135,24 @@ definitions: Reachability: "reachable" Addr: "172.17.0.2:2377" + NodeDescription: + description: | + NodeDescription encapsulates the properties of the Node as reported by the + agent. + type: "object" + properties: + Hostname: + type: "string" + example: "bf3067039e47" + Platform: + $ref: "#/definitions/Platform" + Resources: + $ref: "#/definitions/ResourceObject" + Engine: + $ref: "#/definitions/EngineDescription" + TLSInfo: + $ref: "#/definitions/TLSInfo" + Platform: description: | Platform represents the platform (Arch/OS).