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
7 changes: 7 additions & 0 deletions components/schemas/containers/functions/task/FunctionTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: FunctionTask
discriminator:
propertyName: action
mapping:
trigger: FunctionTriggerAction.yml
oneOf:
- $ref: FunctionTriggerAction.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: TriggerAction
title: FunctionTriggerAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: ExtendVolumeAction
title: InstanceExtendVolumeAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: MigrateAction
title: InstanceMigrateAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: RevertMigrationAction
title: InstanceRevertMigrationAction
type: object
required:
- action
Expand Down
11 changes: 11 additions & 0 deletions components/schemas/containers/instances/task/InstanceTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: InstanceTask
discriminator:
propertyName: action
mapping:
migration.start: InstanceMigrateAction.yml
migration.revert: InstanceRevertMigrationAction.yml
volume.extend: InstanceExtendVolumeAction.yml
oneOf:
- $ref: InstanceMigrateAction.yml
- $ref: InstanceRevertMigrationAction.yml
- $ref: InstanceExtendVolumeAction.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: ReconfigureContainer
title: ContainerReconfigureAction
type: object
required:
- action
Expand All @@ -10,4 +10,4 @@ properties:
- reconfigure
description: The action to take.
contents:
"$ref": "../config/Config.yml"
"$ref": "../config/Config.yml"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: ReconfigureVolumeTask
title: ContainerReconfigureVolumesAction
type: object
required:
- action
Expand Down
26 changes: 26 additions & 0 deletions components/schemas/containers/task/ContainerReimageAction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: ContainerReimageAction
type: object
required:
- action
- contents
properties:
action:
type: string
enum:
- reimage
description: The action to take.
contents:
type: object
description: Additional information needed to complete the job.
required:
- image_id
properties:
image_id:
type: string
description: The ID of the image to use when reimaging.
allow_incompatible:
type: boolean
description: A boolean where true signifies the image being used to reimage does not have to have compatibility with the image being replaced.
overwrite_runtime_config:
type: boolean
description: A boolean where true signifies the user wishes to overwrite the current runtime configuration for the given container during the reimage process.
20 changes: 20 additions & 0 deletions components/schemas/containers/task/ContainerScaleAction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
title: ContainerScaleAction
type: object
required:
- action
- contents
properties:
action:
type: string
description: The action to take.
enum:
- scale
contents:
type: object
description: Additional information needed to complete the job.
required:
- instances
properties:
instances:
type: integer
description: The number of desired instances to scale to.
17 changes: 17 additions & 0 deletions components/schemas/containers/task/ContainerTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
title: ContainerTask
discriminator:
propertyName: action
mapping:
start: ContainerStartAction.yml
stop: ContainerStopAction.yml
reconfigure: ContainerReconfigureAction.yml
volumes.reconfigure: ContainerReconfigureVolumesAction.yml
reimage: ContainerReimageAction.yml
scale: ContainerScaleAction.yml
oneOf:
- $ref: ContainerStartAction.yml
- $ref: ContainerStopAction.yml
- $ref: ContainerReconfigureAction.yml
- $ref: ContainerReconfigureVolumesAction.yml
- $ref: ContainerReimageAction.yml
- $ref: ContainerScaleAction.yml
27 changes: 0 additions & 27 deletions components/schemas/containers/taskActions/Reimage.yml

This file was deleted.

20 changes: 0 additions & 20 deletions components/schemas/containers/taskActions/Scale.yml

This file was deleted.

7 changes: 1 addition & 6 deletions components/schemas/environments/EnvironmentFeatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ properties:
- tier
properties:
tier:
type: string
enum:
- limited
- basic
- premium
- enterprise
$ref: monitoring/MonitoringTier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ properties:
enum:
- "v1"
details:
anyOf:
- $ref: V1LbConfig.yml
- type: "null"
$ref: V1LbConfig.yml
bind_host:
description: |
Binds the load balancer to the host server IP address.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: VpnReconfigureTask
title: VpnReconfigureAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: VpnResetTask
title: VpnResetAction
description: This will reset the VPN certificates and restart the container. Should be done when the certificates expire, every 1000 days. Then, you will need to redownload the VPN config in order to connect.
type: object
required:
Expand Down
8 changes: 8 additions & 0 deletions components/schemas/environments/services/vpn/task/VpnTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
discriminator:
propertyName: action
mapping:
reset: VpnResetAction.yml
reconfigure: VpnReconfigureAction.yml
oneOf:
- $ref: VpnResetAction.yml
- $ref: VpnReconfigureAction.yml
13 changes: 13 additions & 0 deletions components/schemas/environments/task/EnvironmentTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
title: EnvironmentTask
discriminator:
propertyName: action
mapping:
start: EnvironmentStartAction.yml
stop: EnvironmentStopAction.yml
initialize: EnvironmentInitializeAction.yml
deployments.reconfigure: EnvironmentReconfigureDeploymentsAction.yml
oneOf:
- $ref: EnvironmentStartAction.yml
- $ref: EnvironmentStopAction.yml
- $ref: EnvironmentInitializeAction.yml
- $ref: EnvironmentReconfigureDeploymentsAction.yml
11 changes: 0 additions & 11 deletions components/schemas/environments/taskActions/EnvironmentTasks.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: EvacuateServerTask
title: ServerEvacuateAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: EvacuateServerResetTask
title: ServerEvacuateResetAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: ReconfigureServerFeaturesTask
title: ServerReconfigureFeaturesAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: ReconfigureSharedFsTask
title: ServerReconfigureSharedFsAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: ServerRestartAction
type: object
description: A job that restarts the server.
required:
- action
properties:
action:
type: string
description: The action to take.
enum:
- restart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: RestartComputeServiceTask
title: ServerRestartComputeAction
type: object
description: A job that restarts compute service on a given server.
required:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: RestartComputeSpawnerTask
title: ServerRestartComputeSpawnerAction
type: object
description: A job that restarts compute service on a given server.
required:
Expand Down
19 changes: 19 additions & 0 deletions components/schemas/infrastructure/servers/task/ServerTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
title: ServerTask
discriminator:
propertyName: action
mapping:
sharedfs.reconfigure: ServerReconfigureSharedFsAction.yml
features.reconfigure: ServerReconfigureFeaturesAction.yml
restart: ServerRestartAction.yml
compute.restart: ServerRestartComputeAction.yml
compute.spawner.restart: ServerRestartComputeSpawnerAction.yml
evacuation.start: ServerEvacuateAction.yml
evacuation.reset: ServerEvacuateResetAction.yml
oneOf:
- $ref: ServerReconfigureSharedFsAction.yml
- $ref: ServerReconfigureFeaturesAction.yml
- $ref: ServerRestartAction.yml
- $ref: ServerRestartComputeAction.yml
- $ref: ServerRestartComputeSpawnerAction.yml
- $ref: ServerEvacuateAction.yml
- $ref: ServerEvacuateResetAction.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: RerunPipelineAction
title: PipelineTriggerAction
type: object
required:
- action
Expand Down
9 changes: 9 additions & 0 deletions components/schemas/pipelines/task/PipelineTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: PipelineTask
discriminator:
propertyName: action
mapping:
trigger: PipelineTriggerAction.yml
rerun: PipelineRerunAction.yml
oneOf:
- $ref: PipelineTriggerAction.yml
- $ref: PipelineRerunAction.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: DeployStackBuild
title: StackBuildDeployAction
type: object
required:
- action
Expand Down
10 changes: 10 additions & 0 deletions components/schemas/stacks/builds/task/StackBuildGenerateAction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: StackBuildGenerateAction
type: object
required:
- action
properties:
action:
type: string
description: The job to do.
enum:
- generate
9 changes: 9 additions & 0 deletions components/schemas/stacks/builds/task/StackBuildTask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: StackBuildTask
discriminator:
propertyName: action
mapping:
generate: StackBuildGenerateAction.yml
deploy: StackBuildDeployAction.yml
oneOf:
- $ref: StackBuildGenerateAction.yml
- $ref: StackBuildDeployAction.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: VirtualMachineIpAllocateTask
title: VirtualMachineIpAllocateAction
type: object
required:
- action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: VirtualMachineIpUnallocateTask
title: VirtualMachineIpUnallocateAction
type: object
required:
- action
Expand Down
Loading