Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dedibox): set default value project-id #3916

Merged
merged 5 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox billing list-invoice [arg=value ...]

ARGS:
[order-by] (created_at_asc | created_at_desc)
[project-id]
[order-by] (created_at_asc | created_at_desc)
[project-id=<retrieved from config>]

FLAGS:
-h, --help help for list-invoice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox billing list-refund [arg=value ...]

ARGS:
[order-by] (created_at_asc | created_at_desc)
[project-id]
[order-by] (created_at_asc | created_at_desc)
[project-id=<retrieved from config>]

FLAGS:
-h, --help help for list-refund
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox fip get-quota [arg=value ...]

ARGS:
[project-id] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)
[project-id=<retrieved from config>] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)

FLAGS:
-h, --help help for get-quota
Expand Down
10 changes: 5 additions & 5 deletions cmd/scw/testdata/test-all-usage-dedibox-fip-list-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ USAGE:
scw dedibox fip list [arg=value ...]

ARGS:
[order-by] Order of the failovers IP (ip_asc | ip_desc)
project-id Filter failovers IP by project ID
[search] Filter failovers IP which matching with this field
[only-available] True: return all failovers IP not attached on server
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)
[order-by] Order of the failovers IP (ip_asc | ip_desc)
project-id=<retrieved from config> Filter failovers IP by project ID
[search] Filter failovers IP which matching with this field
[only-available] True: return all failovers IP not attached on server
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ USAGE:
scw dedibox ipv6-block create [arg=value ...]

ARGS:
[project-id] ID of the project
[project-id=<retrieved from config>] ID of the project

FLAGS:
-h, --help help for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ USAGE:
scw dedibox ipv6-block get-quota [arg=value ...]

ARGS:
[project-id] ID of the project
[project-id=<retrieved from config>] ID of the project

FLAGS:
-h, --help help for get-quota
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ USAGE:
scw dedibox ipv6-block get [arg=value ...]

ARGS:
[project-id] ID of the project
[project-id=<retrieved from config>] ID of the project

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ USAGE:
scw dedibox offer get [arg=value ...]

ARGS:
offer-id ID of offer
[project-id] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)
offer-id ID of offer
[project-id=<retrieved from config>] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)

FLAGS:
-h, --help help for get
Expand Down
20 changes: 10 additions & 10 deletions cmd/scw/testdata/test-all-usage-dedibox-offer-list-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ USAGE:
scw dedibox offer list [arg=value ...]

ARGS:
[order-by] Order of the offers (created_at_asc | created_at_desc | name_asc | name_desc | price_asc | price_desc)
[commercial-range] Filter on commercial range
[catalog] Filter on catalog (all | default | beta | reseller | premium | volume | admin | inactive)
[project-id] Project ID
[is-failover-ip] Get the current failover IP offer
[is-failover-block] Get the current failover IP block offer
[sold-in] Filter offers depending on their datacenter
[available-only] Set this filter to true to only return available offers
[is-rpn-san] Get the RPN SAN offers
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)
[order-by] Order of the offers (created_at_asc | created_at_desc | name_asc | name_desc | price_asc | price_desc)
[commercial-range] Filter on commercial range
[catalog] Filter on catalog (all | default | beta | reseller | premium | volume | admin | inactive)
[project-id=<retrieved from config>] Project ID
[is-failover-ip] Get the current failover IP offer
[is-failover-block] Get the current failover IP block offer
[sold-in] Filter offers depending on their datacenter
[available-only] Set this filter to true to only return available offers
[is-rpn-san] Get the RPN SAN offers
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)

FLAGS:
-h, --help help for list
Expand Down
8 changes: 4 additions & 4 deletions cmd/scw/testdata/test-all-usage-dedibox-os-get-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ USAGE:
scw dedibox os get [arg=value ...]

ARGS:
os-id ID of the OS
[server-id] ID of the server
[project-id] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)
os-id ID of the OS
[server-id] ID of the server
[project-id=<retrieved from config>] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)

FLAGS:
-h, --help help for get
Expand Down
10 changes: 5 additions & 5 deletions cmd/scw/testdata/test-all-usage-dedibox-os-list-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ USAGE:
scw dedibox os list [arg=value ...]

ARGS:
[order-by] Order of the OS (created_at_asc | created_at_desc | released_at_asc | released_at_desc)
[type] Type of the OS (unknown_type | server | virtu | panel | desktop | custom | rescue)
[server-id] Filter OS by compatible server ID
[project-id] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)
[order-by] Order of the OS (created_at_asc | created_at_desc | released_at_asc | released_at_desc)
[type] Type of the OS (unknown_type | server | virtu | panel | desktop | custom | rescue)
[server-id] Filter OS by compatible server ID
[project-id=<retrieved from config>] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ USAGE:
scw dedibox rpn-info get [arg=value ...]

ARGS:
[project-id] A project ID
[rpnv1-group-id] An RPN v1 group ID
[rpnv2-group-id] An RPN v2 group ID
[project-id=<retrieved from config>] A project ID
[rpnv1-group-id] An RPN v1 group ID
[rpnv2-group-id] An RPN v2 group ID

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox rpn-info list [arg=value ...]

ARGS:
[order-by] Order of the servers (created_at_asc | created_at_desc)
[project-id] Filter servers by project ID
[order-by] Order of the servers (created_at_asc | created_at_desc)
[project-id=<retrieved from config>] Filter servers by project ID

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox rpn-v1 list-capable-san-server [arg=value ...]

ARGS:
[order-by] Order of the rpn capable resources (created_at_asc | created_at_desc)
[project-id] Filter rpn capable resources by project ID
[order-by] Order of the rpn capable resources (created_at_asc | created_at_desc)
[project-id=<retrieved from config>] Filter rpn capable resources by project ID

FLAGS:
-h, --help help for list-capable-san-server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox rpn-v1 list-capable-server [arg=value ...]

ARGS:
[order-by] Order of the rpn capable resources (created_at_asc | created_at_desc)
[project-id] Filter rpn capable resources by project ID
[order-by] Order of the rpn capable resources (created_at_asc | created_at_desc)
[project-id=<retrieved from config>] Filter rpn capable resources by project ID

FLAGS:
-h, --help help for list-capable-server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ USAGE:
scw dedibox rpn-v1 list-members [arg=value ...]

ARGS:
[order-by] Order of the rpn v1 group members (created_at_asc | created_at_desc)
group-id Filter rpn v1 group members by group ID
[project-id] A project ID
[order-by] Order of the rpn v1 group members (created_at_asc | created_at_desc)
group-id Filter rpn v1 group members by group ID
[project-id=<retrieved from config>] A project ID

FLAGS:
-h, --help help for list-members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox rpn-v1 list [arg=value ...]

ARGS:
[order-by] Order of the rpn v1 groups (created_at_asc | created_at_desc)
[project-id] Filter rpn v1 groups by project ID
[order-by] Order of the rpn v1 groups (created_at_asc | created_at_desc)
[project-id=<retrieved from config>] Filter rpn v1 groups by project ID

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox rpn-v2 list-capable-resources [arg=value ...]

ARGS:
[order-by] Order of the rpn v2 capable resources (created_at_asc | created_at_desc)
[project-id] Filter rpn v2 capable resources by project ID
[order-by] Order of the rpn v2 capable resources (created_at_asc | created_at_desc)
[project-id=<retrieved from config>] Filter rpn v2 capable resources by project ID

FLAGS:
-h, --help help for list-capable-resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox rpn-v2 list [arg=value ...]

ARGS:
[order-by] Order of the rpn v2 groups (created_at_asc | created_at_desc)
[project-id] Filter rpn v2 groups by project ID
[order-by] Order of the rpn v2 groups (created_at_asc | created_at_desc)
[project-id=<retrieved from config>] Filter rpn v2 groups by project ID

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw dedibox san list [arg=value ...]

ARGS:
[order-by] Order of the RPN SANs (created_at_asc | created_at_desc)
[project-id] Filter RPN SANs by project ID
[order-by] Order of the RPN SANs (created_at_asc | created_at_desc)
[project-id=<retrieved from config>] Filter RPN SANs by project ID

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ USAGE:
scw dedibox server list [arg=value ...]

ARGS:
[order-by] Order of the servers (created_at_asc | created_at_desc)
project-id Filter servers by project ID
[search] Filter servers by hostname
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)
[order-by] Order of the servers (created_at_asc | created_at_desc)
project-id=<retrieved from config> Filter servers by project ID
[search] Filter servers by hostname
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ USAGE:
scw dedibox service list [arg=value ...]

ARGS:
[order-by] Order of the services (created_at_asc | created_at_desc)
[project-id] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)
[order-by] Order of the services (created_at_asc | created_at_desc)
[project-id=<retrieved from config>] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)

FLAGS:
-h, --help help for list
Expand Down
Loading
Loading