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

add identifier includes to all resources that have them #314

Merged
merged 2 commits into from
Feb 28, 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
5 changes: 5 additions & 0 deletions components/schemas/containers/ContainerIncludes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@ properties:
"$ref": "../includes/StackBuildIncludes.yml"
stacks:
"$ref": "../includes/StackIncludes.yml"
"stacks:identifiers":
$ref: ../includes/IdentifierIncludes.yml
environments:
"$ref": "../includes/EnvironmentIncludes.yml"
"environments:identifiers":
$ref: ../includes/IdentifierIncludes.yml

8 changes: 7 additions & 1 deletion components/schemas/containers/instances/InstanceIncludes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ properties:
locations:
"$ref": "../../includes/LocationsIncludes.yml"
providers:
"$ref": "../../includes/ProvidersIncludes.yml"
"$ref": "../../includes/IntegrationsIncludes.yml"
"providers:identifiers":
$ref: ../../includes/IdentifierIncludes.yml
containers:
"$ref": "../../includes/ContainersIncludes.yml"
"containers:identifiers":
$ref: ../../includes/IdentifierIncludes.yml
environments:
"$ref": "../../includes/EnvironmentIncludes.yml"
"environments:identifiers":
$ref: ../../includes/IdentifierIncludes.yml
4 changes: 3 additions & 1 deletion components/schemas/dns/records/RecordIncludes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ properties:
creators:
"$ref": "../../includes/CreatorInclude.yml"
containers:
"$ref": "../../includes/ContainersIncludes.yml"
"$ref": "../../includes/ContainersIncludes.yml"
"containers:identifiers":
$ref: ../../includes/IdentifierIncludes.yml
2 changes: 1 addition & 1 deletion components/schemas/images/Image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ properties:
properties:
integration_id:
description: The ID of the Integration used to do the build.
$ref: ../HybridIdentifer.yml
$ref: ../ID.yml
config:
type: object
description: Configuration settings for the image.
Expand Down
10 changes: 9 additions & 1 deletion components/schemas/images/ImageIncludes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@ properties:
"$ref": "../includes/StackBuildIncludes.yml"
stacks:
"$ref": "../includes/StackIncludes.yml"
"stacks:identifiers":
$ref: ../includes/IdentifierIncludes.yml
sources:
"$ref": "../includes/ImageSourceIncludes.yml"
"$ref": "../includes/ImageSourceIncludes.yml"
"sources:identifiers":
$ref: ../includes/IdentifierIncludes.yml
integrations:
"$ref": "../includes/IntegrationsIncludes.yml"
"integrations:identifiers":
$ref: ../includes/IdentifierIncludes.yml
6 changes: 5 additions & 1 deletion components/schemas/images/sources/SourceIncludes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ description: A resource associate with an image source.
type: object
properties:
creators:
"$ref": "../../includes/CreatorInclude.yml"
"$ref": "../../includes/CreatorInclude.yml"
integrations:
"$ref": "../../includes/IntegrationsIncludes.yml"
"integrations:identifiers":
$ref: ../../includes/IdentifierIncludes.yml
7 changes: 7 additions & 0 deletions components/schemas/includes/IdentifierIncludes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: IdentifierIncludes
type: object
description: A map of identifiers to an array of resource IDs that are associated with it. All IDs point to the same type of resource.
additionalProperties:
type: array
items:
$ref: "../ID.yml"
5 changes: 5 additions & 0 deletions components/schemas/includes/IntegrationsIncludes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: IntegrationsIncludes
description: A resource thats associated with an integration.
type: object
additionalProperties:
$ref: ../hubs/integrations/Integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: All includable resource linkable to the given auto-scale group.
type: object
properties:
providers:
"$ref": "../../../includes/ProvidersIncludes.yml"
"$ref": "../../../includes/IntegrationsIncludes.yml"
models:
"$ref": "../../../includes/ServerModelsIncludes.yml"
locations:
Expand Down
2 changes: 1 addition & 1 deletion components/schemas/infrastructure/ips/PoolIncludes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ properties:
servers:
"$ref": "../../includes/ServersIncludes.yml"
providers:
"$ref": "../../includes/ProvidersIncludes.yml"
"$ref": "../../includes/IntegrationsIncludes.yml"
locations:
"$ref": "../../includes/LocationsIncludes.yml"
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ properties:
models:
"$ref": "../../includes/ServerModelIncludes.yml"
providers:
"$ref": "../../includes/ProvidersIncludes.yml"
"$ref": "../../includes/IntegrationsIncludes.yml"
3 changes: 2 additions & 1 deletion components/schemas/pipelines/PipelineIncludes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ properties:
name:
type: string
description: A name value.
# TODO - what is this name value
components:
type: object
description: A record of resources that can be associated with the pipeline.
Expand All @@ -19,3 +18,5 @@ properties:
- "$ref": "../stacks/builds/StackBuild.yml"
- "$ref": "../images/Image.yml"
- "$ref": "../images/sources/ImageSource.yml"
"components:identifiers":
$ref: ../includes/IdentifierIncludes.yml
Loading