Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions components/schemas/containers/ContainerSummary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: ContainerSummary
type: object
description: Lightweight summary of a container for environment pages and lists.
required:
- id
- name
- state
- image
- environment
- volumes
properties:
id:
$ref: "../ID.yml"
name:
type: string
description: A user defined name for the container.
state:
$ref: "./ContainerState.yml"
image:
$ref: "./summaries/ImageSummary.yml"
environment:
$ref: "./summaries/ContainerEnvironmentSummary.yml"
volumes:
type: array
items:
$ref: "./summaries/VolumeSummary.yml"
5 changes: 0 additions & 5 deletions components/schemas/containers/config/ContainerVolume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ properties:
anyOf:
- type: object
properties:
identifier:
oneOf:
- $ref: ../../Identifier.yml
- type: "null"
description: The identifier of the external volume.
id:
oneOf:
- $ref: ../../ID.yml
Expand Down
5 changes: 4 additions & 1 deletion components/schemas/containers/summaries/VolumeSummary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ properties:
external:
description: The ID of external volume, if applicable.
oneOf:
- $ref: ../../ID.yml
- type: object
properties:
id:
$ref: ../../ID.yml
- type: "null"
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ title: ExternalVolumeMeta
type: object
description: A list of meta fields that can be applied to an attached volume.
properties:
container:
$ref: ../../containers/Container.yml
containers:
type: array
items:
$ref: ../../containers/ContainerSummary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ required:
- create
properties:
create:
type: boolean
description: >
If the volume doesn't exist, attempt to create it on container start.
If the volume doesn't exist, attempt to create it on container start if create struct defined.
oneOf:
- type: object
required: [size]
properties:
size:
description: Indicates the size of volume to create.
$ref: ../../DataSize.yml
- type: "null"
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ properties:
anyOf:
- type: object
properties:
identifier:
oneOf:
- $ref: ../../../Identifier.yml
- type: "null"
description: The identifier of the external volume.
id:
oneOf:
- $ref: ../../../ID.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ get:
items:
type: string
enum:
- container
- containers
responses:
200:
description: Returns the requested virtual machine.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ get:
items:
type: string
enum:
- container
- containers
- name: filter
in: query
# Deep nested arrays are undefined https://github.com/OAI/OpenAPI-Specification/issues/1706
Expand Down
6 changes: 3 additions & 3 deletions stackspec/schema/StackSpecContainerVolume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ properties:
required:
- mode
properties:
identifier:
id:
oneOf:
- $ref: ../../components/schemas/Identifier.yml
- $ref: ../../components/schemas/ID.yml
- $ref: StackVariable.yml
- type: "null"
description: The identifier of the external volume.
description: The ID of the external volume.
mode:
oneOf:
- type: string
Expand Down