From b6503e7849fee413d608389ff38ec4b6b3b671a2 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 17 May 2021 11:29:02 -0400 Subject: [PATCH 1/9] ipv4 filterable --- openapi.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 053467c0e..6e9e7c567 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -18123,6 +18123,7 @@ components: example: '2018-01-01T00:01:01' readOnly: true ipv4: + x-linode-filterable: true type: array format: ipv4 items: @@ -19571,6 +19572,7 @@ components: readOnly: true x-linode-cli-display: 4 ipv4: + x-linode-filterable: true type: string format: ip description: > From 57c6ad52aeefca3519e418ccefe59dcbe73df948 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 17 May 2021 11:37:19 -0400 Subject: [PATCH 2/9] Remove read_only property --- openapi.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 053467c0e..00fe05ab5 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -15998,11 +15998,6 @@ components: $ref: '#/components/schemas/Disk/properties/label' filesystem: $ref: '#/components/schemas/Disk/properties/filesystem' - read_only: - type: boolean - description: > - If true, this Disk is read-only. - example: false image: type: string description: > From 73b3323355d59224eb6bd124060407d0386feac8 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 17 May 2021 12:07:29 -0400 Subject: [PATCH 3/9] type filterable --- openapi.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 053467c0e..a1706fb20 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -17259,6 +17259,7 @@ components: x-linode-cli-display: 6 type: type: string + x-linode-filterable: true description: > How the Image was created. "Manual" Images can be created at any time. "Automatic" images are created automatically from a deleted Linode. @@ -17377,6 +17378,7 @@ components: x-linode-cli-display: 6 type: type: string + x-linode-filterable: true description: > How the Image was created. Manual Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. From 787c317a641153eea5d985f75e2f58ce477ffdf5 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 17 May 2021 12:27:26 -0400 Subject: [PATCH 4/9] Add mine property to StackScripts --- openapi.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 053467c0e..a77a6aa9a 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -20978,6 +20978,13 @@ components: label: Enter the DB password name: DB_PASSWORD example: hunter2 + mine: + type: boolean + x-linode-filterable: true + description: | + Whether this StackScript was created by the user making the request. + readOnly: true + example: true StatsDataAvailable: type: object description: > From 4ee52a4f95e2b9923fdf5e3afd29f9d30dab011b Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 17 May 2021 12:37:04 -0400 Subject: [PATCH 5/9] Edit description --- openapi.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index a77a6aa9a..e88a57198 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -20982,7 +20982,8 @@ components: type: boolean x-linode-filterable: true description: | - Whether this StackScript was created by the user making the request. + Returns `true` if this StackScript is owned by the account of the user making the request, and the user + making the request is unrestricted or has access to this StackScript. readOnly: true example: true StatsDataAvailable: From 9e85040263fd17ddb2d9a15bf7a1622a05a71392 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 17 May 2021 11:50:04 -0400 Subject: [PATCH 6/9] Add Domain Zone File View endpoint --- openapi.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 053467c0e..b8972e63b 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -2985,6 +2985,61 @@ paths: - lang: CLI source: > linode-cli domains delete 1234 + /domains/{domainId}/zone-file: + x-linode-cli-command: domains + parameters: + - name: domainId + in: path + description: ID of the Domain. + required: true + schema: + type: string + get: + x-linode-grant: read_only + tags: + - Domains + summary: Domain Zone File View + description: > + Returns the zone file for the last rendered zone for the specified domain. + operationId: getDomainZone + x-linode-cli-action: zone-file + security: + - personalAccessToken: [] + - oauth: + - domains:read_only + responses: + '200': + description: | + The domain zone file. + content: + application/json: + schema: + properties: + zone_file: + type: array + items: + type: string + example: + - "; example.com [123]" + - "$TTL 864000" + - "@ IN SOA ns1.linode.com. user.example.com. 2021000066 14400 14400 1209600 86400" + - "@ NS ns1.linode.com." + - "@ NS ns2.linode.com." + - "@ NS ns3.linode.com." + - "@ NS ns4.linode.com." + - "@ NS ns5.linode.com." + description: | + The lines of the zone file for the last rendered zone for this domain. + default: + $ref: '#/components/responses/ErrorResponse' + x-code-samples: + - lang: Shell + source: > + curl -H "Authorization: Bearer $TOKEN" \ + https://api.linode.com/v4/domains/123/zone-file + - lang: CLI + source: > + linode-cli domains zone-file 123 /domains/import: post: x-linode-grant: read_write From 7c136e9cd1405401c448000decda347127e6f025 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 17 May 2021 13:44:17 -0400 Subject: [PATCH 7/9] Update response description --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index b8972e63b..cdb764d57 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3010,7 +3010,7 @@ paths: responses: '200': description: | - The domain zone file. + An array containing the lines of the domain zone file. content: application/json: schema: From 6c74e29ec72e03e2a4793aa967514dcc23c6f5c5 Mon Sep 17 00:00:00 2001 From: Ben Bigger <25663044+bbiggerr@users.noreply.github.com> Date: Mon, 17 May 2021 13:46:49 -0400 Subject: [PATCH 8/9] Update description Co-authored-by: Josh Sager --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index a1706fb20..3c68be709 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -17380,7 +17380,7 @@ components: type: string x-linode-filterable: true description: > - How the Image was created. Manual Images can be created at any time. + How the Image was created. "Manual" Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. enum: - manual From 50e5c7710b324b81d8e6e7fed47dfab59f4edeb1 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 17 May 2021 14:00:23 -0400 Subject: [PATCH 9/9] Bump version to 4.93.0 --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 4dc061430..8692c0b33 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.1 info: - version: 4.92.0 + version: 4.93.0 title: Linode API description: |