Skip to content

Commit 09eecdd

Browse files
authored
Merge pull request #506 from Dorthu/x-linode-cli-allowed-defaults
x linode cli allowed defaults
2 parents 5401e90 + 3b764ec commit 09eecdd

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ Attribute | Location | Type | Supported By | Explanation
5353
`x-linode-cli-rows`| media type | array | linode-cli | A list of JSON paths where the CLI can find the value it should treat as table rows. Only needed for irregular endpoints.
5454
`x-linode-cli-use-schema` | media type | schema or $ref | linode-cli | The schema the CLI should use when showing a row for this response. Use with `x-linode-cli-rows`.
5555
`x-linode-cli-nested-list` | media type | string | linode-cli | The name of the property defined by this response body's schema that is a nested list. Items in the list will be broken out into rows in the CLI's output.
56+
`x-linode-cli-allowed-defaults` | requestBody | list of string | linode-cli | A list of defaults this action should accept from the CLI. Valid values are "region", "type", and "image"

openapi.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4153,6 +4153,10 @@ paths:
41534153
requestBody:
41544154
description: The requested initial state of a new Linode.
41554155
required: true
4156+
x-linode-cli-allowed-defaults:
4157+
- region
4158+
- image
4159+
- type
41564160
content:
41574161
application/json:
41584162
schema:
@@ -4870,6 +4874,9 @@ paths:
48704874
requestBody:
48714875
description: The requested state your Linode will be cloned into.
48724876
required: true
4877+
x-linode-cli-allowed-defaults:
4878+
- region
4879+
- type
48734880
content:
48744881
application/json:
48754882
schema:
@@ -7405,6 +7412,8 @@ paths:
74057412
are ready.
74067413
requestBody:
74077414
description: Configuration for the Kubernetes cluster
7415+
x-linode-cli-allowed-defaults:
7416+
- region
74087417
content:
74097418
application/json:
74107419
schema:
@@ -11192,6 +11201,8 @@ paths:
1119211201
requestBody:
1119311202
description: Information about the NodeBalancer to create.
1119411203
required: true
11204+
x-linode-cli-allowed-defaults:
11205+
- region
1119511206
content:
1119611207
application/json:
1119711208
schema:
@@ -15190,6 +15201,8 @@ paths:
1519015201
requestBody:
1519115202
description: The requested initial state of a new Volume.
1519215203
required: true
15204+
x-linode-cli-allowed-defaults:
15205+
- region
1519315206
content:
1519415207
application/json:
1519515208
schema:

0 commit comments

Comments
 (0)