From 3bfcc276f8ae7a0e849ad3a741e332389d23ece6 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Tue, 26 Apr 2022 11:47:41 -0400 Subject: [PATCH 1/3] Add engines to Database Types --- openapi.yaml | 55 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index cd4457b97..9203fe123 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -18174,30 +18174,16 @@ components: type: string description: A human-readable string that describes each plan type. For display purposes only. readOnly: true - example: DBaaS MySQL - Nanode 1GB + example: DBaaS Cluster - Nanode 1GB x-linode-cli-display: 2 - cluster_size: - type: array - description: A pricing list depending on the number of nodes. - items: - type: object - properties: - quantity: - type: integer - description: The number of nodes. - example: 1 - price: - type: object - description: Cost in US dollars, broken down into hourly and monthly charges. - properties: - hourly: - type: number - description: Cost (in US dollars) per hour. - example: 0.03 - monthly: - type: number - description: Cost (in US dollars) per month. - example: 20 + engines: + type: object + properties: + mysql: + type: array + description: Pricing details for MySQL Managed Databases. + items: + $ref: '#/components/schemas/DatabaseTypeEngine' memory: type: integer description: The amount of RAM allocated to Database created of this plan type. The value is represented in megabytes. @@ -18223,6 +18209,29 @@ components: type: string description: The compute class category. example: nanode + DatabaseTypeEngine: + type: object + properties: + quantity: + type: integer + enum: + - 1 + - 2 + - 3 + description: The number of nodes for the Managed Database cluster for this subscription tier. + example: 1 + price: + type: object + description: Cost in US dollars, broken down into hourly and monthly charges. + properties: + hourly: + type: number + description: Cost (in US dollars) per hour for this subscription tier. + example: 0.03 + monthly: + type: number + description: Maximum cost (in US dollars) per month for this subscription tier. + example: 20 Device: type: object description: > From bc336cd252ac1f8966b7d96c006e8bba85dfdb46 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 2 May 2022 10:42:09 -0400 Subject: [PATCH 2/3] Update example type label --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 9203fe123..0d5a81a89 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -18174,7 +18174,7 @@ components: type: string description: A human-readable string that describes each plan type. For display purposes only. readOnly: true - example: DBaaS Cluster - Nanode 1GB + example: DBaaS - Nanode 1GB x-linode-cli-display: 2 engines: type: object From c6a8d4821c820209d9be3b10cab8cdbb9b29ed09 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 2 May 2022 10:59:51 -0400 Subject: [PATCH 3/3] Add postgresql and mongodb engines to Database Types --- openapi.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 0d5a81a89..405e85037 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -18184,6 +18184,16 @@ components: description: Pricing details for MySQL Managed Databases. items: $ref: '#/components/schemas/DatabaseTypeEngine' + postgresql: + type: array + description: Pricing details for PostgreSQL Managed Databases. + items: + $ref: '#/components/schemas/DatabaseTypeEngine' + mongodb: + type: array + description: Pricing details for MongoDB Managed Databases. + items: + $ref: '#/components/schemas/DatabaseTypeEngine' memory: type: integer description: The amount of RAM allocated to Database created of this plan type. The value is represented in megabytes.