Skip to content

Commit

Permalink
feat(webhosting): add "protected" field to hosting (#3701)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Mar 6, 2024
1 parent 79a1c0a commit fbd498e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ARGS:
[tags.{index}] New tags for the Web Hosting plan
[option-ids.{index}] IDs of the new options for the Web Hosting plan
[offer-id] ID of the new offer for the Web Hosting plan
[protected] Whether the hosting is protected or not
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
Expand Down
1 change: 1 addition & 0 deletions docs/commands/webhosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ scw webhosting hosting update [arg=value ...]
| tags.{index} | | New tags for the Web Hosting plan |
| option-ids.{index} | | IDs of the new options for the Web Hosting plan |
| offer-id | | ID of the new offer for the Web Hosting plan |
| protected | | Whether the hosting is protected or not |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams` | Region to target. If none is passed will use default region from the config |


Expand Down
7 changes: 7 additions & 0 deletions internal/namespaces/webhosting/v1alpha1/webhosting_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,13 @@ func webhostingHostingUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "protected",
Short: `Whether the hosting is protected or not`,
Required: false,
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
Expand Down

0 comments on commit fbd498e

Please sign in to comment.