Skip to content

Commit b4d94c7

Browse files
authored
Merge pull request #147 from linode/release-4.7.0
Release 4.7.0
2 parents db59774 + 5e560d1 commit b4d94c7

File tree

2 files changed

+79
-8
lines changed

2 files changed

+79
-8
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ Attribute | Location | Type | Supported By | Explanation
4646
`x-linode-cli-action` | method | string | linode-cli | The action this method will be mapped to when generating commands in the `linode-cli <command> <action>` format.
4747
`x-linode-cli-skip` | method | boolean | linode-cli | If true, the CLI will not expose this action.
4848
`x-linode-redoc-load-ids`| operation | boolean | If true, ReDoc will load this path and print a bulleted list of IDs. This only works on public collections.
49+
`x-linode-ref-name`| keyword | string | [Linode Developer's Site](https://github.com/linode/developers) | Provides a mechanism by which the Developer's site can generate a dropdown menu with an Object's name when using the `oneOf` keyword with a `discriminator`. **Note**: This front end functionality is currently being developed.

openapi.yaml

Lines changed: 78 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.1
22
info:
3-
version: 4.6.0
3+
version: 4.7.0
44
title: Linode API
55
description: |
66
# Introduction
@@ -182,7 +182,10 @@ info:
182182

183183
```Shell
184184
curl "https://api.linode.com/v4/linode/types" \
185-
-H 'X-Filter: { "class": "standard" }'
185+
-H '
186+
X-Filter: {
187+
"class": "standard"
188+
}'
186189
```
187190

188191
The filter object's keys are the keys of the object you're filtering,
@@ -191,17 +194,27 @@ info:
191194
Types that offer one vcpu:
192195

193196
```Shell
194-
curl "https://api.linode.com/v4/linode/types" \
195-
-H 'X-Filter: { "class": "standard", "vcpus": 1 }'
197+
curl "https://api.linode.com/v4/linode/types" \
198+
-H '
199+
X-Filter: {
200+
"class": "standard",
201+
"vcpus": 1
202+
}'
196203
```
197204

198205
In the above example, both filters are combined with an "and" operation.
199206
However, if you wanted either Types with one vcpu or Types in our "standard"
200207
class, you can add an operator:
201208

202-
```Shell
209+
```Shell
203210
curl "https://api.linode.com/v4/linode/types" \
204-
-H 'X-Filter: { "+or": [ { "vcpus": 1 }, { "class": "standard" } ] }'
211+
-H '
212+
X-Filter: {
213+
"+or": [
214+
{ "vcpus": 1 },
215+
{ "class": "standard" }
216+
]
217+
}'
205218
```
206219

207220
Each filter in the `+or` array is its own filter object, and all conditions
@@ -229,7 +242,12 @@ info:
229242

230243
```Shell
231244
curl "https://api.linode.com/v4/linode/types" \
232-
-H 'X-Filter: { "memory": { "+gte": 61440 } }'
245+
-H '
246+
X-Filter: {
247+
"memory": {
248+
"+gte": 61440
249+
}
250+
}'
233251
```
234252

235253
You can combine and nest operators to construct arbitrarily-complex queries.
@@ -239,7 +257,35 @@ info:
239257

240258
```Shell
241259
curl "https://api.linode.com/v4/linode/types" \
242-
-H 'X-Filter: { "+or": [ { "+or": [ { "class": "standard" }, { "class": "highmem" } ] }, { "+and": [ { "vcpus": { "+gte": 12 } }, { "vcpus": { "+lte": 20 } } ] } ] }'
260+
-H '
261+
X-Filter: {
262+
"+or": [
263+
{
264+
"+or": [
265+
{
266+
"class": "standard"
267+
},
268+
{
269+
"class": "highmem"
270+
}
271+
]
272+
},
273+
{
274+
"+and": [
275+
{
276+
"vcpus": {
277+
"+gte": 12
278+
}
279+
},
280+
{
281+
"vcpus": {
282+
"+lte": 20
283+
}
284+
}
285+
]
286+
}
287+
]
288+
}'
243289
```
244290

245291
# CLI (Command Line Interface)
@@ -4982,6 +5028,23 @@ paths:
49825028

49835029
A cross data center migration will initiate a `linode_migrate_datacenter_create` event.
49845030
example: us-east
5031+
upgrade:
5032+
type: boolean
5033+
description: >
5034+
When initiating a cross DC migration, setting this value to
5035+
true will also ensure that the Linode is upgraded to the latest
5036+
generation of hardware that corresponds to your Linode's Type, if
5037+
any free upgrades are available for it.
5038+
5039+
If no free upgrades are available, and this value is set to true,
5040+
then the endpoint will return a 400 error code and the migration
5041+
will not be performed.
5042+
5043+
If the data center set in the `region` field does not allow upgrades,
5044+
then the endpoint will return a 400 error code and the migration
5045+
will not be performed.
5046+
example: false
5047+
default: false
49855048
responses:
49865049
'200':
49875050
description: Scheduled migration started
@@ -16846,6 +16909,13 @@ components:
1684616909
example:
1684716910
- home-pc
1684816911
- laptop
16912+
tfa_enabled:
16913+
type: boolean
16914+
readOnly: true
16915+
description: >
16916+
A boolean value indicating if the User has Two Factor Authentication (TFA)
16917+
enabled. See the Create Two Factor Secret ([/profile/tfa-enable](/api/v4/profile-tfa-enable/#post))
16918+
endpoint to enable TFA.
1684916919
UserDefinedField:
1685016920
type: object
1685116921
required:

0 commit comments

Comments
 (0)