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 49bb9da
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 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
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
15 changes: 15 additions & 0 deletions internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ func appleSiliconServerCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "commitment-type",
Short: `Activate commitment for this server`,
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"duration_24h", "renewed_monthly", "none"},
},
core.ZoneArgSpec(scw.ZoneFrPar3),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
Expand Down Expand Up @@ -394,6 +402,13 @@ func appleSiliconServerUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "commitment-type.commitment-type",
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"duration_24h", "renewed_monthly", "none"},
},
core.ZoneArgSpec(scw.ZoneFrPar3),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
Expand Down

0 comments on commit 49bb9da

Please sign in to comment.