Skip to content

Commit

Permalink
feat: update generated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored and Laure-di committed Feb 18, 2025
1 parent 78147bd commit a221865
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ARGS:
[type] Create a server of the given type
[os-id] Create a server with the given os_id
[enable-vpc] Activate the Private Network feature for this server
[commitment-type] Activate commitment for this server (duration_24h | renewed_monthly | none)
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)

FLAGS:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ USAGE:
scw apple-silicon server update <server-id ...> [arg=value ...]

ARGS:
server-id UUID of the server you want to update
[name] Updated name for your server
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
[enable-vpc] Activate or deactivate Private Network support for this server
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
server-id UUID of the server you want to update
[name] Updated name for your server
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
[enable-vpc] Activate or deactivate Private Network support for this server
[commitment-type.commitment-type] (duration_24h | renewed_monthly | none)
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)

FLAGS:
-h, --help help for update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARGS:
[vpc-id] VPC to filter for. Only routes within this VPC will be returned
[nexthop-resource-id] Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned
[nexthop-private-network-id] Next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned
[nexthop-resource-type] Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned (unknown_type | vpc_gateway_network | instance_private_nic | baremetal_private_nic)
[nexthop-resource-type] Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned (unknown_type | vpc_gateway_network | instance_private_nic | baremetal_private_nic | apple_silicon_private_nic)
[contains] Only routes whose destination is contained in this subnet will be returned
[tags.{index}] Tags to filter for, only routes with one or more matching tags will be returned
[is-ipv6] Only routes with an IPv6 destination will be returned
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/apple-silicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ scw apple-silicon server create [arg=value ...]
| type | | Create a server of the given type |
| os-id | | Create a server with the given os_id |
| enable-vpc | | Activate the Private Network feature for this server |
| commitment-type | One of: `duration_24h`, `renewed_monthly`, `none` | Activate commitment for this server |
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |


Expand Down Expand Up @@ -344,6 +345,7 @@ scw apple-silicon server update <server-id ...> [arg=value ...]
| name | | Updated name for your server |
| schedule-deletion | | Specify whether the server should be flagged for automatic deletion |
| enable-vpc | | Activate or deactivate Private Network support for this server |
| commitment-type.commitment-type | One of: `duration_24h`, `renewed_monthly`, `none` | |
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |


Expand Down
2 changes: 1 addition & 1 deletion docs/commands/vpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ scw vpc route list [arg=value ...]
| vpc-id | | VPC to filter for. Only routes within this VPC will be returned |
| nexthop-resource-id | | Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned |
| nexthop-private-network-id | | Next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned |
| nexthop-resource-type | One of: `unknown_type`, `vpc_gateway_network`, `instance_private_nic`, `baremetal_private_nic` | Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned |
| nexthop-resource-type | One of: `unknown_type`, `vpc_gateway_network`, `instance_private_nic`, `baremetal_private_nic`, `apple_silicon_private_nic` | Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned |
| contains | | Only routes whose destination is contained in this subnet will be returned |
| tags.{index} | | Tags to filter for, only routes with one or more matching tags will be returned |
| is-ipv6 | | Only routes with an IPv6 destination will be returned |
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/vpc/v2/vpc_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ func vpcRouteList() *core.Command {
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"unknown_type", "vpc_gateway_network", "instance_private_nic", "baremetal_private_nic"},
EnumValues: []string{"unknown_type", "vpc_gateway_network", "instance_private_nic", "baremetal_private_nic", "apple_silicon_private_nic"},
},
{
Name: "contains",
Expand Down

0 comments on commit a221865

Please sign in to comment.