Skip to content

Commit 7ae1fb2

Browse files
authored
Merge pull request #500 from linode/release-4.100.1
Release 4.100.1
2 parents ca4614d + 9f38584 commit 7ae1fb2

File tree

1 file changed

+47
-6
lines changed

1 file changed

+47
-6
lines changed

openapi.yaml

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.1
22
info:
3-
version: 4.99.0
3+
version: 4.100.1
44

55
title: Linode API
66
description: |
@@ -154,6 +154,7 @@ info:
154154
| STATUS | DESCRIPTION |
155155
|---------|-------------|
156156
| 200 OK | The request was successful. |
157+
| 202 Accepted | The request was successful, but processing has not been completed. The response body includes a "warnings" array containing the details of incomplete processes. |
157158
| 204 No Content | The server successfully fulfilled the request and there is no additional content to send. |
158159
| 400 Bad Request | You submitted an invalid request (missing parameters, etc.). |
159160
| 401 Unauthorized | You failed to authenticate for this resource. |
@@ -534,9 +535,8 @@ paths:
534535
source: >
535536
curl -H "Content-Type: application/json" \
536537
-H "Authorization: Bearer $TOKEN" \
537-
-X PUT -d '{
538-
"comments": "I'm consolidating my accounts."
539-
}
538+
-X POST -d '{
539+
"comments": "I am consolidating my accounts."
540540
}' \
541541
https://api.linode.com/v4/account/cancel
542542
- lang: CLI
@@ -1916,6 +1916,8 @@ paths:
19161916
application/json:
19171917
schema:
19181918
$ref: '#/components/schemas/Payment'
1919+
'202':
1920+
$ref: '#/components/responses/WarningResponse'
19191921
default:
19201922
$ref: '#/components/responses/ErrorResponse'
19211923
x-code-samples:
@@ -2070,6 +2072,8 @@ paths:
20702072
application/json:
20712073
schema:
20722074
type: object
2075+
'202':
2076+
$ref: '#/components/responses/WarningResponse'
20732077
default:
20742078
$ref: '#/components/responses/ErrorResponse'
20752079
x-code-samples:
@@ -2940,6 +2944,7 @@ paths:
29402944
"longview_subscription": true,
29412945
"add_images": true,
29422946
"add_volumes": true,
2947+
"add_firewalls": true,
29432948
"account_access": "read_only",
29442949
"cancel_account": false
29452950
},
@@ -10494,8 +10499,8 @@ paths:
1049410499
source: >
1049510500
linode-cli firewalls create \
1049610501
--label example-firewall \
10497-
--outbound_policy ACCEPT \
10498-
--inbound_policy DROP \
10502+
--rules.outbound_policy ACCEPT \
10503+
--rules.inbound_policy DROP \
1049910504
--rules.inbound '[{"protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.1", "192.0.2.0/24"], "ipv6": ["2001:DB8::/32"]}, "action": "ACCEPT"}]' \
1050010505
--rules.outbound '[{"protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.0/24"],"ipv6": ["2001:DB8::/32"]}, "action": "DROP", "label": "outbound-rule123", "description": "An example outbound rule description."}]'
1050110506
/networking/firewalls/{firewallId}:
@@ -15141,6 +15146,8 @@ paths:
1514115146
application/json:
1514215147
schema:
1514315148
type: object
15149+
required:
15150+
- label
1514415151
properties:
1514515152
region:
1514615153
type: string
@@ -15662,6 +15669,20 @@ components:
1566215669
type: array
1566315670
items:
1566415671
$ref: '#/components/schemas/ErrorObject'
15672+
WarningResponse:
15673+
description: |
15674+
Accepted with warning.
15675+
15676+
A warning object is included with the standard 200 response.
15677+
content:
15678+
application/json:
15679+
schema:
15680+
type: object
15681+
properties:
15682+
warnings:
15683+
type: array
15684+
items:
15685+
$ref: '#/components/schemas/WarningObject'
1566515686
parameters:
1566615687
pageOffset:
1566715688
name: page
@@ -17426,6 +17447,10 @@ components:
1742617447
type: boolean
1742717448
description: If true, this User may add Volumes.
1742817449
example: true
17450+
add_firewalls:
17451+
type: boolean
17452+
description: If true, this User may add Firewalls.
17453+
example: true
1742917454
linode:
1743017455
type: array
1743117456
items:
@@ -20825,6 +20850,7 @@ components:
2082520850
type: string
2082620851
enum:
2082720852
- credit_card
20853+
- google_pay
2082820854
description: The type of Payment Method.
2082920855
example: 'credit_card'
2083020856
x-linode-cli-display: 2
@@ -22230,6 +22256,21 @@ components:
2223022256
example:
2223122257
- example tag
2223222258
- another example
22259+
WarningObject:
22260+
type: object
22261+
description: >
22262+
An object for describing a single warning for incomplete processing associated with an accepted request.
22263+
properties:
22264+
title:
22265+
type: string
22266+
description: >
22267+
The general warning message.
22268+
example: Unable to reboot Linode.
22269+
details:
22270+
type: string
22271+
description: >
22272+
Specific information related to the warning.
22273+
example: Linode 123 could not be rebooted.
2223322274
tags:
2223422275
- name: Account
2223522276
description: Use the Account endpoints to manage user settings, billing, and payments. You can also initiate and maintain OAuth client application authentication, enable the Linode Managed service, and create new users on your account.

0 commit comments

Comments
 (0)