Extract Platform to a separate definition

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2017-08-11 02:09:35 +02:00
parent 3f1ad79faf
commit a2de2681a6
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

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"