Skip to content

Commit fbd498e

Browse files
authored
feat(webhosting): add "protected" field to hosting (#3701)
1 parent 79a1c0a commit fbd498e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-webhosting-hosting-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARGS:
2121
[tags.{index}] New tags for the Web Hosting plan
2222
[option-ids.{index}] IDs of the new options for the Web Hosting plan
2323
[offer-id] ID of the new offer for the Web Hosting plan
24+
[protected] Whether the hosting is protected or not
2425
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
2526

2627
FLAGS:

docs/commands/webhosting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ scw webhosting hosting update [arg=value ...]
251251
| tags.{index} | | New tags for the Web Hosting plan |
252252
| option-ids.{index} | | IDs of the new options for the Web Hosting plan |
253253
| offer-id | | ID of the new offer for the Web Hosting plan |
254+
| protected | | Whether the hosting is protected or not |
254255
| 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 |
255256

256257

internal/namespaces/webhosting/v1alpha1/webhosting_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,13 @@ func webhostingHostingUpdate() *core.Command {
330330
Deprecated: false,
331331
Positional: false,
332332
},
333+
{
334+
Name: "protected",
335+
Short: `Whether the hosting is protected or not`,
336+
Required: false,
337+
Deprecated: false,
338+
Positional: false,
339+
},
333340
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
334341
},
335342
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)