Extract Platform to a separate definition

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: a2de2681a65d034ffb231b15b630b5a053608331
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2017-08-16 11:10:58 +02:00
parent d0c8aa84bd
commit 4645cfda21
+19 -24
View File
@@ -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"