Skip to content

Commit

Permalink
feat: new generator (#3450)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Oct 24, 2023
1 parent 401d077 commit ba99c1f
Show file tree
Hide file tree
Showing 78 changed files with 1,194 additions and 430 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
OS management commands
OS management commands.

USAGE:
scw apple-silicon os <command>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Server-Types management commands
Server-Types management commands.

USAGE:
scw apple-silicon server-type <command>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Apple silicon management commands
Apple silicon management commands.

USAGE:
scw apple-silicon server <command>
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-baremetal-os-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
An Operating System (OS) is the underlying software installed on your server
An Operating System (OS) is the underlying software installed on your server.

USAGE:
scw baremetal os <command>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
A server is a denomination of a type of instances provided by Scaleway
A server is a denomination of a type of instances provided by Scaleway.

USAGE:
scw baremetal server <command>
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-billing-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Billing API.
This API allows you to query your consumption.

USAGE:
scw billing <command>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ USAGE:
scw container trigger create [arg=value ...]

ARGS:
name Name of the trigger
container-id ID of the container to trigger
[description] Description of the trigger
scw-sqs-config.queue Name of the SQS queue the trigger should listen to
scw-sqs-config.mnq-project-id ID of the M&Q project
scw-sqs-config.mnq-region Region in which the M&Q project is activated
scw-nats-config.subject Name of the NATS subject the trigger should listen to
scw-nats-config.mnq-nats-account-id ID of the M&Q NATS account
[scw-nats-config.mnq-project-id] ID of the M&Q project
scw-nats-config.mnq-region Region of the M&Q project
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
name Name of the trigger
container-id ID of the container to trigger
[description] Description of the trigger
[scw-sqs-config.queue] Name of the SQS queue the trigger should listen to
[scw-sqs-config.mnq-project-id] ID of the M&Q project
[scw-sqs-config.mnq-region] Region in which the M&Q project is activated
[scw-nats-config.subject] Name of the NATS subject the trigger should listen to
[scw-nats-config.mnq-nats-account-id] ID of the M&Q NATS account
[scw-nats-config.mnq-project-id] ID of the M&Q project
[scw-nats-config.mnq-region] Region of the M&Q project
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

DEPRECATED ARGS:
[scw-sqs-config.mnq-namespace-id]
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-container-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Serverless Containers API.
Container as a Service API.

USAGE:
scw container <command>
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-document-db-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Managed Document Databases API.
Managed Document Databases API

USAGE:
scw document-db <command>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ USAGE:
scw function trigger create [arg=value ...]

ARGS:
name Name of the trigger
function-id ID of the function to trigger
[description] Description of the trigger
scw-sqs-config.queue Name of the SQS queue the trigger should listen to
scw-sqs-config.mnq-project-id ID of the M&Q project
scw-sqs-config.mnq-region Region in which the M&Q project is activated
scw-nats-config.subject Name of the NATS subject the trigger should listen to
scw-nats-config.mnq-nats-account-id ID of the M&Q NATS account
[scw-nats-config.mnq-project-id] ID of the M&Q project
scw-nats-config.mnq-region Region of the M&Q project
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
name Name of the trigger
function-id ID of the function to trigger
[description] Description of the trigger
[scw-sqs-config.queue] Name of the SQS queue the trigger should listen to
[scw-sqs-config.mnq-project-id] ID of the M&Q project
[scw-sqs-config.mnq-region] Region in which the M&Q project is activated
[scw-nats-config.subject] Name of the NATS subject the trigger should listen to
[scw-nats-config.mnq-nats-account-id] ID of the M&Q NATS account
[scw-nats-config.mnq-project-id] ID of the M&Q project
[scw-nats-config.mnq-region] Region of the M&Q project
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

DEPRECATED ARGS:
[scw-sqs-config.mnq-namespace-id]
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-function-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Serverless Functions API.
Function as a Service API.

USAGE:
scw function <command>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ USAGE:
scw iam application list [arg=value ...]

ARGS:
[order-by=created_at_asc] Criteria for sorting results (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | name_asc | name_desc)
[name] Name of the application to filter
[editable] Defines whether to filter out editable applications or not
[application-ids.{index}] Filter by list of IDs
organization-id=<retrieved from config> ID of the Organization to filter
[order-by=created_at_asc] Criteria for sorting results (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | name_asc | name_desc)
[name] Name of the application to filter
[editable] Defines whether to filter out editable applications or not
[application-ids.{index}] Filter by list of IDs
[organization-id=<retrieved from config>] Organization ID to use. If none is passed the default organization ID will be used

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARGS:
[application-ids.{index}] Filter by a list of application IDs
[user-ids.{index}] Filter by a list of user IDs
[group-ids.{index}] Filter by a list of group IDs
[organization-id=<retrieved from config>] Filter by Organization ID
[organization-id=<retrieved from config>] Organization ID to use. If none is passed the default organization ID will be used

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

ARGS:
[order-by=created_at_asc] Criteria for sorting results (policy_name_asc | policy_name_desc | created_at_asc | created_at_desc)
[editable] Defines whether or not filter out editable policies
[user-ids.{index}] Defines whether or not to filter by list of user IDs
[group-ids.{index}] Defines whether or not to filter by list of group IDs
[application-ids.{index}] Filter by a list of application IDs
[no-principal] Defines whether or not the policy is attributed to a principal
[policy-name] Name of the policy to fetch
organization-id=<retrieved from config> ID of the Organization to filter
[order-by=created_at_asc] Criteria for sorting results (policy_name_asc | policy_name_desc | created_at_asc | created_at_desc)
[editable] Defines whether or not filter out editable policies
[user-ids.{index}] Defines whether or not to filter by list of user IDs
[group-ids.{index}] Defines whether or not to filter by list of group IDs
[application-ids.{index}] Filter by a list of application IDs
[no-principal] Defines whether or not the policy is attributed to a principal
[policy-name] Name of the policy to fetch
[organization-id=<retrieved from config>] Organization ID to use. If none is passed the default organization ID will be used

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EXAMPLES:

ARGS:
[project-id] Project ID in which the IPs are reserved
[tags.{index}] Filter IPs with these exact tags (to filter with several tags, use commas to separate them)
[tags] Filter IPs with these exact tags (to filter with several tags, use commas to separate them)
[name] Filter on the IP address (Works as a LIKE operation on the IP address)
[type] Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6')
[organization-id] Organization ID in which the IPs are reserved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EXAMPLES:

ARGS:
[project-id] List only placement groups of this Project ID
[tags.{index}] List placement groups with these exact tags (to filter with several tags, use commas to separate them)
[tags] List placement groups with these exact tags (to filter with several tags, use commas to separate them)
[name] Filter placement groups by name (for eg. "cluster1" will return "cluster100" and "cluster1" but not "foo")
[organization-id] List only placement groups of this Organization 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 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EXAMPLES:

ARGS:
server-id Instance to which the private NIC is attached
[tags.{index}] Private NIC tags
[tags] Private NIC tags
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)

FLAGS:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ EXAMPLES:
ARGS:
[name] Name of the security group
[project-id] Security group Project ID
[tags.{index}] List security groups with these exact tags (to filter with several tags, use commas to separate them)
[tags] List security groups with these exact tags (to filter with several tags, use commas to separate them)
[project-default] Filter security groups with this value for project_default
[organization-id] Security group Organization 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 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
Expand Down
28 changes: 14 additions & 14 deletions cmd/scw/testdata/test-all-usage-instance-server-list-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ EXAMPLES:
scw instance server list name=server1

ARGS:
[project-id] List only Instances of this Project ID
[name] Filter Instances by name (eg. "server1" will return "server100" and "server1" but not "foo")
[private-ip] List Instances by private_ip
[without-ip] List Instances that are not attached to a public IP
[commercial-type] List Instances of this commercial type
[state] List Instances in this state (running | stopped | stopped in place | starting | stopping | locked)
[tags.{index}] List Instances with these exact tags (to filter with several tags, use commas to separate them)
[private-network] List Instances in this Private Network
[order] Define the order of the returned servers (creation_date_desc | creation_date_asc | modification_date_desc | modification_date_asc)
[private-networks.{index}] List Instances from the given Private Networks (use commas to separate them)
[private-nic-mac-address] List Instances associated with the given private NIC MAC address
[servers.{index}] List Instances from these server ids (use commas to separate them)
[organization-id] List only Instances of this Organization 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 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
[project-id] List only Instances of this Project ID
[name] Filter Instances by name (eg. "server1" will return "server100" and "server1" but not "foo")
[private-ip] List Instances by private_ip
[without-ip] List Instances that are not attached to a public IP
[commercial-type] List Instances of this commercial type
[state] List Instances in this state (running | stopped | stopped in place | starting | stopping | locked)
[tags] List Instances with these exact tags (to filter with several tags, use commas to separate them)
[private-network] List Instances in this Private Network
[order] Define the order of the returned servers (creation_date_desc | creation_date_asc | modification_date_desc | modification_date_asc)
[private-networks] List Instances from the given Private Networks (use commas to separate them)
[private-nic-mac-address] List Instances associated with the given private NIC MAC address
[servers] List Instances from these server ids (use commas to separate them)
[organization-id] List only Instances of this Organization 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 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ EXAMPLES:
ARGS:
[volume-type] Filter by volume type (l_ssd | b_ssd | unified | scratch | sbs_volume | sbs_snapshot)
[project-id] Filter volume by Project ID
[tags.{index}] Filter volumes with these exact tags (to filter with several tags, use commas to separate them)
[tags] Filter volumes with these exact tags (to filter with several tags, use commas to separate them)
[name] Filter volume by name (for eg. "vol" will return "myvolume" but not "data")
[organization-id] Filter volume by Organization 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 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-iot-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
IoT Hub API.
This API allows you to manage IoT hubs and devices.

USAGE:
scw iot <command>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ ARGS:
[tags.{index}] Tags associated with the cluster
version=latest Kubernetes version of the cluster
cni=cilium Container Network Interface (CNI) plugin running in the cluster (unknown_cni | cilium | calico | weave | flannel | kilo)
pools.{index}.name Name of the pool
pools.{index}.node-type Node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster
[pools.{index}.name] Name of the pool
[pools.{index}.node-type] Node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster
[pools.{index}.placement-group-id] Placement group ID in which all the nodes of the pool will be created
[pools.{index}.autoscaling] Defines whether the autoscaling feature is enabled for the pool
pools.{index}.size Size (number of nodes) of the pool
[pools.{index}.size] Size (number of nodes) of the pool
[pools.{index}.min-size] Defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool
[pools.{index}.max-size] Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool
[pools.{index}.container-runtime] Customization of the container runtime is available for each pool. Note that `docker` has been deprecated since version 1.20 and will be removed by version 1.24 (unknown_runtime | docker | containerd | crio)
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-lb-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Load Balancer API.
This API allows you to manage your Scaleway Load Balancer services.

USAGE:
scw lb <command>
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-marketplace-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Marketplace API.
Marketplace API

USAGE:
scw marketplace <command>
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-mnq-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Messaging and Queuing NATS API.
Messaging and Queuing APIs.

USAGE:
scw mnq <command>
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-rdb-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Managed Database for PostgreSQL and MySQL API.
Managed Database for PostgreSQL and MySQL API

USAGE:
scw rdb <command>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Manage endpoint access to your Redis™ Database Instance through Public or Private Networks
Manage endpoint access to your Redis™ Database Instance through Public or Private Networks.

USAGE:
scw redis endpoint <command>
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-redis-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Managed Database for Redis™ API.
Managed Database for Redis™ API

USAGE:
scw redis <command>
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-tem-usage.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Transactional Email API.
Transactional Email API

USAGE:
scw tem <command>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ARGS:
[dhcp-id] ID of an existing DHCP configuration object to use for this GatewayNetwork
[address] Static IP address in CIDR format to to use without DHCP
[ipam-config.push-default-route] Enabling the default route also enables masquerading
[ipam-config.ipam-ipid] Use this IPAM-booked IP ID as the Gateway's IP in this Private Network
[ipam-config.ipam-ip-id] Use this IPAM-booked IP ID as the Gateway's IP in this Private Network
[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 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2)

FLAGS:
Expand Down
Loading

0 comments on commit ba99c1f

Please sign in to comment.