From afa3e309e30e4d08a0b4a2cc39fbb5cd8c2993ad Mon Sep 17 00:00:00 2001 From: Stephen Varela Date: Mon, 16 Dec 2024 09:56:49 -0500 Subject: [PATCH] Address last couple of comments and add some recent dev changes --- specification/DigitalOcean-public.v2.yaml | 4 +--- .../resources/autoscale_pools/autoscale_pool_list.yml | 1 + .../models/autoscale_pool_droplet_template.yml | 4 ++-- .../models/autoscale_pool_dynamic_config.yml | 8 ++++---- specification/resources/autoscale_pools/parameters.yml | 7 +++++++ 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/specification/DigitalOcean-public.v2.yaml b/specification/DigitalOcean-public.v2.yaml index 3f739378..d29ec984 100644 --- a/specification/DigitalOcean-public.v2.yaml +++ b/specification/DigitalOcean-public.v2.yaml @@ -230,9 +230,7 @@ tags: - name: Droplet Autoscale Pools description: |- - Autoscaling for Droplets manages horizontal scaling for your applications based on resource usage or a static configuration. - When you use autoscaling, you create one or more autoscaling pools. An autoscaling pool has 2 components: scaling configuration, which determines how the pool scales up and down, - and a Droplet template, which defines the configuration of the Droplets in the pool. + Droplet autoscale pools manage automatic horizontal scaling for your applications based on resource usage (CPU, memory, or both) or a static configuration. - name: Firewalls description: |- diff --git a/specification/resources/autoscale_pools/autoscale_pool_list.yml b/specification/resources/autoscale_pools/autoscale_pool_list.yml index ec5a6267..3a40dc5e 100644 --- a/specification/resources/autoscale_pools/autoscale_pool_list.yml +++ b/specification/resources/autoscale_pools/autoscale_pool_list.yml @@ -13,6 +13,7 @@ tags: parameters: - $ref: '../../shared/parameters.yml#/per_page' - $ref: '../../shared/parameters.yml#/page' + - $ref: './parameters.yml#/autoscale_pool_name' responses: '200': diff --git a/specification/resources/autoscale_pools/models/autoscale_pool_droplet_template.yml b/specification/resources/autoscale_pools/models/autoscale_pool_droplet_template.yml index dbdb7768..990d132b 100644 --- a/specification/resources/autoscale_pools/models/autoscale_pool_droplet_template.yml +++ b/specification/resources/autoscale_pools/models/autoscale_pool_droplet_template.yml @@ -65,12 +65,12 @@ properties: project_id: type: string - description: The project that the Droplets in the autoscaling pool will belong to. + description: The project that the Droplets in the autoscale pool will belong to. example: 746c6152-2fa2-11ed-92d3-27aaa54e4988 ipv6: type: boolean - description: Assigns a unique IPv6 address to each of the Droplets in the autoscaling pool. + description: Assigns a unique IPv6 address to each of the Droplets in the autoscale pool. example: true user_data: diff --git a/specification/resources/autoscale_pools/models/autoscale_pool_dynamic_config.yml b/specification/resources/autoscale_pools/models/autoscale_pool_dynamic_config.yml index 01ac741c..2cf9b4fc 100644 --- a/specification/resources/autoscale_pools/models/autoscale_pool_dynamic_config.yml +++ b/specification/resources/autoscale_pools/models/autoscale_pool_dynamic_config.yml @@ -5,27 +5,27 @@ properties: type: integer example: 5 description: The minimum number of Droplets in an autoscale pool. - minimum: 0 + minimum: 1 maximum: 500 max_instances: type: integer example: 10 description: The maximum number of Droplets in an autoscale pool. - minimum: 0 + minimum: 1 maximum: 1000 target_cpu_utilization: type: number format: float example: 0.6 description: Target CPU utilization as a decimal. - minimum: 0 + minimum: 0.05 maximum: 1 target_memory_utilization: type: number format: float example: 0.6 description: Target memory utilization as a decimal. - minimum: 0 + minimum: 0.05 maximum: 1 cooldown_minutes: type: integer diff --git a/specification/resources/autoscale_pools/parameters.yml b/specification/resources/autoscale_pools/parameters.yml index 41fcaf65..503781ca 100644 --- a/specification/resources/autoscale_pools/parameters.yml +++ b/specification/resources/autoscale_pools/parameters.yml @@ -15,3 +15,10 @@ x_dangerous: type: boolean example: true required: true +autoscale_pool_name: + name: name + in: query + description: The name of the autoscale pool + schema: + type: string + example: my-autoscale-pool