Skip to content

Commit beb7bb1

Browse files
committed
Update CLI settings and commands
1 parent b0121d8 commit beb7bb1

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

openapi.yaml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ paths:
16321632
--data-binary "/path/to/image"
16331633
https://api.linode.com/v4/account/oauth-clients/edc6790ea9db4d224c5c/thumbnail
16341634
/account/payment-methods:
1635-
x-linode-cli-command: account
1635+
x-linode-cli-command: payment-methods
16361636
get:
16371637
servers:
16381638
- url: https://api.linode.com/v4
@@ -1647,7 +1647,7 @@ paths:
16471647
description: |
16481648
Returns a paginated list of Payment Methods for this Account.
16491649
operationId: getPaymentMethods
1650-
x-linode-cli-action: payment-methods-list
1650+
x-linode-cli-action: list
16511651
security:
16521652
- personalAccessToken: []
16531653
- oauth:
@@ -1679,7 +1679,7 @@ paths:
16791679
https://api.linode.com/v4/account/payment-methods
16801680
- lang: CLI
16811681
source: >
1682-
linode-cli account payment-methods-list
1682+
linode-cli payment-methods list
16831683
post:
16841684
servers:
16851685
- url: https://api.linode.com/v4
@@ -1696,8 +1696,7 @@ paths:
16961696
Prior to adding a Payment Method, ensure that your billing address information is up-to-date
16971697
with a valid `zip` by using the Account Update ([PUT /account](/docs/api/account/#account-update)) endpoint.
16981698
operationId: createPaymentMethod
1699-
x-linode-cli-action: payment-method-add
1700-
x-linode-cli-skip: true
1699+
x-linode-cli-action: add
17011700
security:
17021701
- personalAccessToken: []
17031702
- oauth:
@@ -1768,8 +1767,17 @@ paths:
17681767
}
17691768
}' \
17701769
https://api.linode.com/v4/account/payment-methods
1770+
- lang: CLI
1771+
source: >
1772+
linode-cli payment-methods add \
1773+
--type credit_card \
1774+
--is_default true \
1775+
--data.card_number 4111111111111111 \
1776+
--data.expiry_month 11 \
1777+
--data.expiry_year 2020 \
1778+
--data.cvv 111
17711779
/account/payment-methods/{paymentMethodId}:
1772-
x-linode-cli-command: account
1780+
x-linode-cli-command: payment-methods
17731781
parameters:
17741782
- name: paymentMethodId
17751783
in: path
@@ -1787,7 +1795,7 @@ paths:
17871795
description: |
17881796
View the details of the specified Payment Method.
17891797
operationId: getPaymentMethod
1790-
x-linode-cli-action: payment-method-view
1798+
x-linode-cli-action: view
17911799
security:
17921800
- personalAccessToken: []
17931801
- oauth:
@@ -1808,7 +1816,7 @@ paths:
18081816
https://api.linode.com/v4/account/payment-methods/123
18091817
- lang: CLI
18101818
source: >
1811-
linode-cli account payment-method-view 123
1819+
linode-cli payment-methods view 123
18121820
delete:
18131821
x-linode-grant: read_write
18141822
tags:
@@ -1823,7 +1831,7 @@ paths:
18231831
([POST /account/payment-methods/{paymentMethodId}/make-default](/docs/api/account/#payment-method-make-default))
18241832
endpoint.
18251833
operationId: deletePaymentMethod
1826-
x-linode-cli-action: payment-method-delete
1834+
x-linode-cli-action: delete
18271835
security:
18281836
- personalAccessToken: []
18291837
- oauth:
@@ -1845,9 +1853,9 @@ paths:
18451853
https://api.linode.com/v4/account/payment-methods/123
18461854
- lang: CLI
18471855
source: >
1848-
linode-cli account payment-method-delete 123
1856+
linode-cli payment-methods delete 123
18491857
/account/payment-methods/{paymentMethodId}/make-default:
1850-
x-linode-cli-command: account
1858+
x-linode-cli-command: payment-methods
18511859
parameters:
18521860
- name: paymentMethodId
18531861
in: path
@@ -1867,7 +1875,7 @@ paths:
18671875

18681876
Removes the default status from any other Payment Method.
18691877
operationId: makePaymentMethodDefault
1870-
x-linode-cli-action: payment-method-make-default
1878+
x-linode-cli-action: default
18711879
security:
18721880
- personalAccessToken: []
18731881
- oauth:
@@ -1889,7 +1897,7 @@ paths:
18891897
https://api.linode.com/v4/account/payment-methods/123/make-default
18901898
- lang: CLI
18911899
source: >
1892-
linode-cli account payment-method-make-default 123
1900+
linode-cli payment-methods default 123
18931901
/account/payments:
18941902
x-linode-cli-command: account
18951903
get:

0 commit comments

Comments
 (0)