From c88de83774fad37d8e87f42ac2acf6442cf7e338 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 16 Oct 2023 08:25:40 -0400 Subject: [PATCH 1/3] Fixed errors in various shell examples --- openapi.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index e4e3c7c49..4f8a8c4fd 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -2787,7 +2787,7 @@ paths: curl -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -X PUT -d '{ - "network_helper": true, + "network_helper": true }' \ https://api.linode.com/v4/account/settings - lang: CLI @@ -3228,7 +3228,7 @@ paths: { "id": 345, "permissions": "read_only" - }, + } ], "longview": [ { @@ -3785,7 +3785,7 @@ paths: "duration": 3, "hour_of_day": 12, "day_of_week": 4, - "week_of_month": 3, + "week_of_month": 3 } }' \ https://api.linode.com/v4/databases/mysql/instances/123 @@ -4569,7 +4569,7 @@ paths: "duration": 3, "hour_of_day": 12, "day_of_week": 4, - "week_of_month": 3, + "week_of_month": 3 } }' \ https://api.linode.com/v4/databases/postgresql/instances/123 From bde5e662e5cb5af509bbe4479d2d61774e42dca4 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 16 Oct 2023 08:33:33 -0400 Subject: [PATCH 2/3] Fixed various shell command examples --- openapi.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 4f8a8c4fd..a9ad8024b 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -8849,7 +8849,7 @@ paths: "stackscript_id": 10079, "stackscript_data": { "gh_username": "linode" - } + }, "type": "g6-standard-2", "metadata": { "user_data": "I2Nsb3VkLWNvbmZpZw==" @@ -9953,12 +9953,12 @@ paths: curl -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -X PUT -d '{ - "label": "lkecluster54321" - "tags" : ["ecomm", "blog", "prod", "monitoring"] + "label": "lkecluster54321", + "tags" : ["ecomm", "blog", "prod", "monitoring"], "control_plane": { "high_availability": true }, - "k8s_version": "1.17" + "k8s_version": "1.27" }' \ https://api.linode.com/v4/lke/clusters/12345 - lang: CLI From 4b3866b7bf395bf9a63dca152d951cbc2eb43a08 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 16 Oct 2023 08:36:02 -0400 Subject: [PATCH 3/3] Updated Tag Label path parameter --- openapi.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index a9ad8024b..bc6aaabae 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -18383,13 +18383,14 @@ paths: --linodes 456 \ --volumes 9082 \ --volumes 10003 - /tags/{label}: + /tags/{tagLabel}: x-linode-cli-command: tags parameters: - - name: label + - name: tagLabel in: path schema: type: string + description: The `label` of the Tag to access. required: true get: summary: Tagged Objects List @@ -18451,7 +18452,7 @@ paths: - lang: Shell source: > curl -H "Authorization: Bearer $TOKEN" \ - "https://api.linode.com/v4/tags/example tag" + https://api.linode.com/v4/tags/$tagLabel delete: summary: Tag Delete description: >