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/eng 1583 autoscaling infrastructure public api #171

Merged
merged 7 commits into from
Sep 28, 2023
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/includes/ServerModelsIncludes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: ServerModelsIncludes
description: A resource associated with a server models.
type: object
additionalProperties:
$ref: ../infrastructure/providers/ProviderServer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: AutoScaleGroupIncludes
description: All includable resource linkable to the given auto-scale group.
type: object
properties:
providers:
"$ref": "../../../includes/ProvidersIncludes.yml"
models:
"$ref": "../../../includes/ServerModelsIncludes.yml"
locations:
"$ref": "../../../includes/LocationsIncludes.yml"
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ properties:
type: object
required:
- provider
- id
- model_id
- priority
- locations
properties:
provider:
type: string
id:
model_id:
type: string
priority:
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ properties:
code:
type: string
description: A location code returned from the provider.
availability_zones:
type: array
items:
type: string
18 changes: 18 additions & 0 deletions public/paths/infrastructure/auto-scale/groups/group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ 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:
- providers
- models
- locations
summary: Fetch Auto-Scale Group
description: Requires the `autoscale-groups-view` capability.
responses:
Expand All @@ -22,6 +38,8 @@ get:
properties:
data:
$ref: ../../../../../components/schemas/infrastructure/auto-scale/groups/AutoScaleGroup.yml
includes:
$ref: ../../../../../components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupIncludes.yml
default:
$ref: ../../../../../components/responses/errors/DefaultError.yml
patch:
Expand Down
18 changes: 18 additions & 0 deletions public/paths/infrastructure/auto-scale/groups/groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ get:
- InfrastructureAutoScaleGroup
parameters:
- $ref: ../../../../../components/parameters/PageParam.yml
- 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:
- providers
- models
- locations
summary: Get Auto-Scale Groups list
description: Requires the `autoscale-groups-manage` capability.
responses:
Expand All @@ -19,6 +35,8 @@ get:
type: array
items:
$ref: ../../../../../components/schemas/infrastructure/auto-scale/groups/AutoScaleGroup.yml
includes:
$ref: ../../../../../components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupIncludes.yml
default:
$ref: ../../../../../components/responses/errors/DefaultError.yml
post:
Expand Down
1 change: 0 additions & 1 deletion public/paths/sdn/networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ get:
enum:
- creators
- environments

- name: filter
in: query
# Deep nested arrays are undefined https://github.com/OAI/OpenAPI-Specification/issues/1706
Expand Down