Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blewis/backups update #342

Merged
merged 3 commits into from
Mar 29, 2024
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: ContainerBackupIncludes
description: All includable resources linkable to the given Zone.
type: object
properties:
integrations:
"$ref": "../../includes/IntegrationsIncludes.yml"
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ title: ContainerBackupTarget
type: object
description: A target for the given Container Backup.
required:
- destination
- integration_id
- path
- size
- file_id
properties:
destination:
type: string
description: The target service to be used for a Container Backup.
enum:
- backblaze-b2
integration_id:
$ref: ../../HybridIdentifier.yml
path:
type: string
description: The target for where to store the Container Backup on the destination service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ properties:
- restore
- retention
properties:
destination:
type: string
description: The storage provider to use for backups.
enum:
- "backblaze-b2"
integration_id:
$ref: ../../HybridIdentifier.yml
backup:
type: object
description: Configuration settings for each backup.
Expand Down
2 changes: 0 additions & 2 deletions components/schemas/hubs/Hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ properties:
"$ref": "../DateTime.yml"
state:
"$ref": "./HubState.yml"
integrations:
"$ref": "./HubIntegrations.yml"
webhooks:
$ref: HubWebhooks.yml
billing:
Expand Down
38 changes: 0 additions & 38 deletions components/schemas/hubs/HubIntegrations.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ properties:
nullable: true
items:
type: string
extends:
type: array
description: A list of functionality that this integration extends. i.e. ["backups"]
nullable: true
items:
type: string
extended_configuration:
type: object
nullable: true
Expand Down
2 changes: 1 addition & 1 deletion components/schemas/images/sources/ImageSource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ properties:
integration_id:
nullable: true
description: The ID or Identifier of the Integration used to do the build.
$ref: ../../HybridIdentifer.yml
$ref: ../../HybridIdentifier.yml
creator:
"$ref": "../../creators/CreatorScope.yml"
state:
Expand Down
2 changes: 1 addition & 1 deletion components/schemas/stacks/spec/StackSpecContainerImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ properties:
- integration_id
properties:
integration_id:
$ref: ../../../../components/schemas/HybridIdentifer.yml
$ref: ../../../../components/schemas/HybridIdentifier.yml
16 changes: 16 additions & 0 deletions public/paths/containers/backups/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ get:
required: true
schema:
type: string
- name: include
in: query
required: false
description:
A comma separated list of include values. Included resources will show
up under the root document's `include` field, with the key being the id of the included
resource. In the case of applying an include to a collection of resources, if two
resources share the same include, it will only appear once in the return.
schema:
type: array
items:
type: string
enum:
- integrations
responses:
200:
description: Returns a Container Backup.
Expand All @@ -32,6 +46,8 @@ get:
properties:
data:
$ref: ../../../../components/schemas/containers/backups/ContainerBackup.yml
includes:
$ref: ../../../../components/schemas/containers/backups/ContainerBackupIncludes.yml
default:
$ref: ../../../../components/responses/errors/DefaultError.yml

Expand Down
16 changes: 16 additions & 0 deletions public/paths/containers/backups/backups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ get:
required: true
schema:
type: string
- name: include
in: query
required: false
description:
A comma separated list of include values. Included resources will show
up under the root document's `include` field, with the key being the id of the included
resource. In the case of applying an include to a collection of resources, if two
resources share the same include, it will only appear once in the return.
schema:
type: array
items:
type: string
enum:
- integrations
- $ref: ../../../../components/parameters/SortParam.yml
- $ref: ../../../../components/parameters/PageParam.yml
responses:
Expand All @@ -27,5 +41,7 @@ get:
type: array
items:
$ref: ../../../../components/schemas/containers/backups/ContainerBackup.yml
includes:
$ref: ../../../../components/schemas/containers/backups/ContainerBackupIncludes.yml
default:
$ref: ../../../../components/responses/errors/DefaultError.yml
2 changes: 0 additions & 2 deletions public/paths/hubs/hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ patch:
name:
type: string
description: A name for the hub.
integrations:
$ref: ../../../components/schemas/hubs/HubIntegrations.yml
webhooks:
$ref: ../../../components/schemas/hubs/HubWebhooks.yml
responses:
Expand Down
2 changes: 0 additions & 2 deletions public/paths/hubs/hubs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ post:
description: A name for the Hub.
identifier:
$ref: ../../../components/schemas/Identifier.yml
integrations:
$ref: ../../../components/schemas/hubs/HubIntegrations.yml
webhooks:
$ref: ../../../components/schemas/hubs/HubWebhooks.yml

Expand Down
2 changes: 1 addition & 1 deletion public/paths/images/sources/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ patch:
properties:
integration_id:
nullable: true
$ref: ../../../../components/schemas/HybridIdentifer.yml
$ref: ../../../../components/schemas/HybridIdentifier.yml
about:
type: object
description: User defined information about the image source.
Expand Down
2 changes: 1 addition & 1 deletion public/paths/images/sources/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ post:
- integration_id
properties:
integration_id:
$ref: ../../../../components/schemas/HybridIdentifer.yml
$ref: ../../../../components/schemas/HybridIdentifier.yml
type:
$ref: ../../../../components/schemas/images/sources/ImageSourceType.yml
origin:
Expand Down
Loading