From ccd01a3cdbf8705fa0f3888883dde1f9c016ae48 Mon Sep 17 00:00:00 2001 From: Dan Brian Date: Fri, 6 Sep 2024 13:39:10 -0400 Subject: [PATCH] removes App tier endpoints from spec (#893) Co-authored-by: danaelhe <42972711+danaelhe@users.noreply.github.com> Co-authored-by: Andrew Starr-Bochicchio --- specification/DigitalOcean-public.v2.yaml | 8 ---- .../resources/apps/apps_get_tier.yml | 44 ------------------- .../resources/apps/apps_list_tiers.yml | 38 ---------------- .../apps/examples/curl/apps_get_tier.yml | 6 --- .../apps/examples/curl/apps_list_tiers.yml | 6 --- .../apps/examples/python/apps_get_tier.yml | 8 ---- .../apps/examples/python/apps_list_tiers.yml | 8 ---- .../resources/apps/models/apps_tier.yml | 25 ----------- .../resources/apps/responses/all_tiers.yml | 18 -------- .../resources/apps/responses/get_tier.yml | 17 ------- 10 files changed, 178 deletions(-) delete mode 100755 specification/resources/apps/apps_get_tier.yml delete mode 100755 specification/resources/apps/apps_list_tiers.yml delete mode 100644 specification/resources/apps/examples/curl/apps_get_tier.yml delete mode 100644 specification/resources/apps/examples/curl/apps_list_tiers.yml delete mode 100644 specification/resources/apps/examples/python/apps_get_tier.yml delete mode 100644 specification/resources/apps/examples/python/apps_list_tiers.yml delete mode 100755 specification/resources/apps/models/apps_tier.yml delete mode 100644 specification/resources/apps/responses/all_tiers.yml delete mode 100644 specification/resources/apps/responses/get_tier.yml diff --git a/specification/DigitalOcean-public.v2.yaml b/specification/DigitalOcean-public.v2.yaml index d886e4d0..5232a5b5 100644 --- a/specification/DigitalOcean-public.v2.yaml +++ b/specification/DigitalOcean-public.v2.yaml @@ -570,14 +570,6 @@ paths: get: $ref: 'resources/apps/apps_get_logs_active_deployment_aggregate.yml' - /v2/apps/tiers: - get: - $ref: 'resources/apps/apps_list_tiers.yml' - - /v2/apps/tiers/{slug}: - get: - $ref: 'resources/apps/apps_get_tier.yml' - /v2/apps/tiers/instance_sizes: get: $ref: 'resources/apps/apps_list_instanceSizes.yml' diff --git a/specification/resources/apps/apps_get_tier.yml b/specification/resources/apps/apps_get_tier.yml deleted file mode 100755 index 587121cc..00000000 --- a/specification/resources/apps/apps_get_tier.yml +++ /dev/null @@ -1,44 +0,0 @@ -operationId: apps_get_tier - -deprecated: true - -summary: Retrieve an App Tier - -description: | - Retrieve information about a specific app tier. - This endpoint has been deprecated because app tiers are not tied to instance sizes anymore. - The concept of tiers will be retired in the future. - -tags: -- Apps - -parameters: - - $ref: parameters.yml#/slug_tier - -responses: - "200": - $ref: responses/get_tier.yml - - "401": - $ref: ../../shared/responses/unauthorized.yml - - '404': - $ref: '../../shared/responses/not_found.yml' - - "429": - $ref: "../../shared/responses/too_many_requests.yml" - - "500": - $ref: ../../shared/responses/server_error.yml - - default: - $ref: ../../shared/responses/unexpected_error.yml - -x-codeSamples: - - $ref: 'examples/curl/apps_get_tier.yml' - - $ref: 'examples/python/apps_get_tier.yml' - -security: - - bearer_auth: - - 'app:read' - diff --git a/specification/resources/apps/apps_list_tiers.yml b/specification/resources/apps/apps_list_tiers.yml deleted file mode 100755 index bb1a60a0..00000000 --- a/specification/resources/apps/apps_list_tiers.yml +++ /dev/null @@ -1,38 +0,0 @@ -operationId: apps_list_tiers - -deprecated: true - -summary: List App Tiers - -description: | - List all app tiers. - This endpoint has been deprecated because app tiers are not tied to instance sizes anymore. - The concept of tiers will be retired in the future. - -tags: -- Apps - -responses: - "200": - $ref: responses/all_tiers.yml - - "401": - $ref: ../../shared/responses/unauthorized.yml - - "429": - $ref: "../../shared/responses/too_many_requests.yml" - - "500": - $ref: ../../shared/responses/server_error.yml - - default: - $ref: ../../shared/responses/unexpected_error.yml - -x-codeSamples: - - $ref: 'examples/curl/apps_list_tiers.yml' - - $ref: 'examples/python/apps_list_tiers.yml' - -security: - - bearer_auth: - - 'app:read' - diff --git a/specification/resources/apps/examples/curl/apps_get_tier.yml b/specification/resources/apps/examples/curl/apps_get_tier.yml deleted file mode 100644 index 876a80fd..00000000 --- a/specification/resources/apps/examples/curl/apps_get_tier.yml +++ /dev/null @@ -1,6 +0,0 @@ -lang: cURL -source: |- - curl -X GET \ - -H "Content-Type: application/json" \ - -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ - "https://api.digitalocean.com/v2/apps/tiers/{slug}" diff --git a/specification/resources/apps/examples/curl/apps_list_tiers.yml b/specification/resources/apps/examples/curl/apps_list_tiers.yml deleted file mode 100644 index 3fdc57d9..00000000 --- a/specification/resources/apps/examples/curl/apps_list_tiers.yml +++ /dev/null @@ -1,6 +0,0 @@ -lang: cURL -source: |- - curl -X GET \ - -H "Content-Type: application/json" \ - -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ - "https://api.digitalocean.com/v2/apps/tiers" diff --git a/specification/resources/apps/examples/python/apps_get_tier.yml b/specification/resources/apps/examples/python/apps_get_tier.yml deleted file mode 100644 index b7e3dfde..00000000 --- a/specification/resources/apps/examples/python/apps_get_tier.yml +++ /dev/null @@ -1,8 +0,0 @@ -lang: Python -source: |- - import os - from pydo import Client - - client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) - - create_resp = client.apps.get_tier(slug="basic") \ No newline at end of file diff --git a/specification/resources/apps/examples/python/apps_list_tiers.yml b/specification/resources/apps/examples/python/apps_list_tiers.yml deleted file mode 100644 index 997b3136..00000000 --- a/specification/resources/apps/examples/python/apps_list_tiers.yml +++ /dev/null @@ -1,8 +0,0 @@ -lang: Python -source: |- - import os - from pydo import Client - - client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) - - get_resp = client.apps.list_tiers() diff --git a/specification/resources/apps/models/apps_tier.yml b/specification/resources/apps/models/apps_tier.yml deleted file mode 100755 index ff711e1e..00000000 --- a/specification/resources/apps/models/apps_tier.yml +++ /dev/null @@ -1,25 +0,0 @@ -properties: - build_seconds: - format: int64 - title: The amount of included build time in seconds - type: string - example: "233" - egress_bandwidth_bytes: - format: int64 - title: The amount of included outbound bandwidth in bytes - type: string - example: "123" - name: - title: A human-readable name of the tier - type: string - example: test - slug: - title: The slug of the tier - type: string - example: test - storage_bytes: - format: int64 - title: The allotted disk space in bytes - type: string - example: "10000000" -type: object diff --git a/specification/resources/apps/responses/all_tiers.yml b/specification/resources/apps/responses/all_tiers.yml deleted file mode 100644 index 84f3a7a8..00000000 --- a/specification/resources/apps/responses/all_tiers.yml +++ /dev/null @@ -1,18 +0,0 @@ -description: A JSON object with a `tiers` key. This will be a list - of all app tiers - -content: - application/json: - schema: - $ref: ../models/apps_list_tiers_response.yml - examples: - tiers: - $ref: examples.yml#/tiers -headers: - ratelimit-limit: - $ref: ../../../shared/headers.yml#/ratelimit-limit - ratelimit-remaining: - $ref: ../../../shared/headers.yml#/ratelimit-remaining - ratelimit-reset: - $ref: ../../../shared/headers.yml#/ratelimit-reset - diff --git a/specification/resources/apps/responses/get_tier.yml b/specification/resources/apps/responses/get_tier.yml deleted file mode 100644 index caf51bc4..00000000 --- a/specification/resources/apps/responses/get_tier.yml +++ /dev/null @@ -1,17 +0,0 @@ -description: A JSON with the key `tier` - -content: - application/json: - schema: - $ref: ../models/apps_get_tier_response.yml - examples: - tier: - $ref: examples.yml#/tier - -headers: - ratelimit-limit: - $ref: ../../../shared/headers.yml#/ratelimit-limit - ratelimit-remaining: - $ref: ../../../shared/headers.yml#/ratelimit-remaining - ratelimit-reset: - $ref: ../../../shared/headers.yml#/ratelimit-reset