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

feat(webhosting): add "protected" field to hosting #3701

Merged
merged 1 commit into from
Mar 6, 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 @@ -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
Loading