diff --git a/openapi.yaml b/openapi.yaml index 86b419060..c3eb728e3 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -6241,13 +6241,19 @@ paths: - region - k8s_version - node_pools - allOf: - - $ref: '#/components/schemas/LKEClusterRequestBody' - - properties: - node_pools: - type: array - items: - $ref: '#/components/schemas/LKENodePoolRequestBody' + properties: + label: + $ref: '#/components/schemas/LKECluster/properties/label' + region: + $ref: '#/components/schemas/LKECluster/properties/region' + k8s_version: + $ref: '#/components/schemas/LKECluster/properties/k8s_version' + tags: + $ref: '#/components/schemas/LKECluster/properties/tags' + node_pools: + type: array + items: + $ref: '#/components/schemas/LKENodePoolRequestBody' responses: '200': description: Kubernetes cluster creation has started. @@ -6339,7 +6345,7 @@ paths: schema: properties: label: - $ref: '#/components/schemas/LKEClusterRequestBody/properties/label' + $ref: '#/components/schemas/LKECluster/properties/label' tags: type: array items: @@ -6362,7 +6368,6 @@ paths: label: $ref: '#/components/schemas/LKECluster/properties/label' tags: - x-linode-filterable: true type: array items: type: string @@ -15922,10 +15927,28 @@ components: The number of GPUs this Linode Type offers. example: 0 x-linode-cli-display: 11 - LKEClusterRequestBody: + LKECluster: type: object description: A Kubernetes cluster. properties: + id: + type: integer + description: This Kubernetes cluster's unique ID. + readOnly: true + x-linode-cli-display: 1 + example: 1234 + created: + type: string + format: date-time + description: When this Kubernetes cluster was created. + example: "2019-09-12T21:25:30Z" + readOnly: true + updated: + type: string + format: date-time + description: When this Kubernetes cluster was updated. + example: "2019-09-13T21:24:16Z" + readOnly: true label: type: string description: > @@ -15941,10 +15964,12 @@ components: # Kubernetes does NOT allow underscores in resource names and we are # passing this name to Kubernetes. Thus the following pattern: pattern: '[a-zA-Z0-9-]{3, 32}' + x-linode-cli-display: 2 example: lkecluster12345 region: type: string description: This Kubernetes cluster's location. + x-linode-cli-display: 3 example: us-central k8s_version: type: string @@ -15953,59 +15978,16 @@ components: and the latest supported patch version will be deployed. example: "1.16" tags: + x-linode-filterable: true type: array description: > - An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only. + An array of tags applied to the Kubernetes cluster. + Tags are for organizational purposes only. items: type: string example: - ecomm - blogs - required: - - label - - region - - k8s_version - LKECluster: - type: object - # Note that LKECluster inherits all properties of - # LKEClusterRequestBody and then overrides some of the sub-properties - allOf: - - $ref: '#/components/schemas/LKEClusterRequestBody' - properties: - id: - type: integer - description: This Kubernetes cluster's unique ID. - readOnly: true - x-linode-cli-display: 1 - example: 1234 - created: - type: string - format: date-time - description: When this Kubernetes cluster was created. - example: "2019-09-12T21:25:30Z" - readOnly: true - updated: - type: string - format: date-time - description: When this Kubernetes cluster was updated. - example: "2019-09-13T21:24:16Z" - readOnly: true - # Note that these properties override some of the sub-properties from - # LKEClusterRequestBody but otherwise inherit all of the original - # sub-properties. - label: - x-linode-cli-display: 2 - example: lkecluster12345 - region: - readOnly: true - x-linode-cli-display: 3 - example: us-central - k8s_version: - example: "1.16" - tags: - example: - - ecomm - - blogs LKENodePoolRequestBody: type: object description: >