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

OpenAPI Documentation Fixes in Ocean GKE #563

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions api/services/ocean/gke/paths/cluster-roll.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ put:
application/json:
schema:
type: object
required:
- roll
properties:
roll:
type: object
required:
- status
description: >
Object that specifies the parameters of a roll (also called a deployment).
properties:
Expand Down
2 changes: 1 addition & 1 deletion api/services/ocean/gke/paths/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ put:
application/json:
schema:
allOf:
- $ref: "../schemas/oceanClusterWrapper.yaml"
- $ref: "../schemas/oceanCluster-update.yaml"
responses:
200:
$ref: "../responses/oceanGkeUpdateResponse.yaml"
Expand Down
2 changes: 1 addition & 1 deletion api/services/ocean/gke/paths/clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ post:
application/json:
schema:
allOf:
- $ref: "../schemas/oceanClusterWrapper.yaml"
- $ref: "../schemas/oceanCluster-create.yaml"
- type: "object"
properties:
cluster:
Expand Down
2 changes: 1 addition & 1 deletion api/services/ocean/gke/responses/ocean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ content:
items:
type: array
items:
$ref: "../schemas/oceanCluster.yaml"
$ref: "../schemas/oceanCluster-create.yaml"
kind:
example: "spotinst:ocean:gcp:k8s"
2 changes: 1 addition & 1 deletion api/services/ocean/gke/responses/oceanGkeGet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ content:
items:
type: array
items:
$ref: "../schemas/oceanCluster.yaml"
$ref: "../schemas/oceanCluster-create.yaml"
kind:
example: "spotinst:ocean:gcp:k8s"
2 changes: 1 addition & 1 deletion api/services/ocean/gke/responses/oceanGkeList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ content:
items:
type: array
items:
$ref: "../schemas/oceanCluster.yaml"
$ref: "../schemas/oceanCluster-create.yaml"
kind:
example: "spotinst:ocean:gcp:k8s"
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ content:
items:
type: array
items:
$ref: "../schemas/oceanCluster.yaml"
$ref: "../schemas/oceanCluster-update.yaml"
kind:
example: "spotinst:ocean:gcp:k8s"
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
type: object
title: manualHeadroomUpdate
required:
- headrooms
properties:
headrooms:
description: >
Set custom headroom per VNG. Provide a list of launchSpec.autoscale.headroom objects.
type: array
items:
type: object
required:
- numOfUnits
properties:
cpuPerUnit:
description: >
Expand Down
72 changes: 72 additions & 0 deletions api/services/ocean/gke/schemas/oceanCluster-create.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
type: object
required:
- cluster
properties:
cluster:
type: object
description: The specification of the Ocean cluster.
required:
- name
- controllerClusterId
- compute
properties:
id:
type: string
readOnly: true
example: o-abcd1234
description: |
Ocean cluster identifier.
name:
type: string
example: "test"
description: >
Add a name for the Ocean cluster.
controllerClusterId:
type: string
example: "test-123124"
description: >
Enter the Ocean cluster identifier.
gke:
type: object
required:
- clusterName
- masterLocation
description: >
Use existing GKE cluster.
properties:
clusterName:
type: string
description: >
Required for the cluster.gke object.
example: test-cluster
masterLocation:
type: string
description: >
Required for the cluster.gke object.
example: us-central1-a
autoScaler:
$ref: "../schemas/ocean-autoScaler.yaml"
capacity:
$ref: "../schemas/ocean-capacity.yaml"
strategy:
$ref: "../schemas/ocean-strategy.yaml"
scheduling:
$ref: "../schemas/ocean-scheduling.yaml"
security:
$ref: "../schemas/ocean-security.yaml"
compute:
$ref: "../schemas/ocean-compute.yaml"
createdAt:
type: string
readOnly: true
format: date-time
example: "2021-03-17T08:13:08.000Z"
description: |
A timestamp of the Ocean creation.
updatedAt:
type: string
readOnly: true
format: date-time
example: "2021-03-17T15:06:13.000Z"
description: |
A timestamp of the latest Ocean update.
65 changes: 65 additions & 0 deletions api/services/ocean/gke/schemas/oceanCluster-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
type: object
required:
- cluster
properties:
cluster:
type: object
description: The specification of the Ocean cluster.
required:
- compute
properties:
id:
type: string
readOnly: true
example: o-abcd1234
description: |
Ocean cluster identifier.
name:
type: string
example: "test"
description: >
Add a name for the Ocean cluster.
gke:
type: object
required:
- clusterName
- masterLocation
description: >
Use existing GKE cluster.
properties:
clusterName:
type: string
description: >
Required for the cluster.gke object.
example: test-cluster
masterLocation:
type: string
description: >
Required for the cluster.gke object.
example: us-central1-a
autoScaler:
$ref: "../schemas/ocean-autoScaler.yaml"
capacity:
$ref: "../schemas/ocean-capacity.yaml"
strategy:
$ref: "../schemas/ocean-strategy.yaml"
scheduling:
$ref: "../schemas/ocean-scheduling.yaml"
security:
$ref: "../schemas/ocean-security.yaml"
compute:
$ref: "../schemas/ocean-compute.yaml"
createdAt:
type: string
readOnly: true
format: date-time
example: "2021-03-17T08:13:08.000Z"
description: |
A timestamp of the Ocean creation.
updatedAt:
type: string
readOnly: true
format: date-time
example: "2021-03-17T15:06:13.000Z"
description: |
A timestamp of the latest Ocean update.
67 changes: 0 additions & 67 deletions api/services/ocean/gke/schemas/oceanCluster.yaml

This file was deleted.

Loading
Loading