Skip to content

Commit 5cd553c

Browse files
committed
feat: update generated APIs
1 parent c0d1734 commit 5cd553c

File tree

8 files changed

+39
-21
lines changed

8 files changed

+39
-21
lines changed

cmd/scw/testdata/test-all-usage-cockpit-contact-point-create-usage.golden

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ USAGE:
88
scw cockpit contact-point create [arg=value ...]
99

1010
ARGS:
11-
[project-id] Project ID to use. If none is passed the default project ID will be used
12-
[email.to]
13-
[receive-resolved-notifications] Send an email notification when an alert is marked as resolved
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
11+
[project-id] Project ID to use. If none is passed the default project ID will be used
12+
[email.to]
13+
[send-resolved-notifications] Send an email notification when an alert is marked as resolved
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1515

1616
FLAGS:
1717
-h, --help help for create

cmd/scw/testdata/test-all-usage-webhosting-domain-sync-dns-records-usage.golden

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@ USAGE:
66
scw webhosting domain sync-dns-records [arg=value ...]
77

88
ARGS:
9-
domain Domain for which the DNS records will be synchronized.
10-
[update-web-records] Whether or not to synchronize the web records.
11-
[update-mail-records] Whether or not to synchronize the mail records.
12-
[update-all-records] Whether or not to synchronize all types of records. This one has priority.
13-
[update-nameservers] Whether or not to synchronize domain nameservers.
14-
[custom-records.{index}.name]
15-
[custom-records.{index}.type] (unknown_type | a | cname | mx | txt | ns | aaaa)
16-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
9+
domain Domain for which the DNS records will be synchronized.
10+
[custom-records.{index}.name]
11+
[custom-records.{index}.type] (unknown_type | a | cname | mx | txt | ns | aaaa)
12+
[auto-config-domain-dns.nameservers] Whether or not to synchronize domain nameservers.
13+
[auto-config-domain-dns.web-records] Whether or not to synchronize web records.
14+
[auto-config-domain-dns.mail-records] Whether or not to synchronize mail records.
15+
[auto-config-domain-dns.all-records] Whether or not to synchronize all types of records. Takes priority over the other fields.
16+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
17+
18+
DEPRECATED ARGS:
19+
[update-web-records] Whether or not to synchronize the web records (deprecated, use auto_config_domain_dns).
20+
[update-mail-records] Whether or not to synchronize the mail records (deprecated, use auto_config_domain_dns).
21+
[update-all-records] Whether or not to synchronize all types of records. This one has priority (deprecated, use auto_config_domain_dns).
22+
[update-nameservers] Whether or not to synchronize domain nameservers (deprecated, use auto_config_domain_dns).
1723

1824
FLAGS:
1925
-h, --help help for sync-dns-records

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ ARGS:
1919
[domain-configuration.update-mail-record]
2020
[domain-configuration.update-all-records]
2121
[skip-welcome-email] Indicates whether to skip a welcome email to the contact email containing hosting info.
22+
[auto-config-domain-dns.nameservers] Whether or not to synchronize domain nameservers.
23+
[auto-config-domain-dns.web-records] Whether or not to synchronize web records.
24+
[auto-config-domain-dns.mail-records] Whether or not to synchronize mail records.
25+
[auto-config-domain-dns.all-records] Whether or not to synchronize all types of records. Takes priority over the other fields.
2226
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2327

2428
FLAGS:

docs/commands/cockpit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ scw cockpit contact-point create [arg=value ...]
135135
|------|---|-------------|
136136
| project-id | | Project ID to use. If none is passed the default project ID will be used |
137137
| email.to | | |
138-
| receive-resolved-notifications | | Send an email notification when an alert is marked as resolved |
138+
| send-resolved-notifications | | Send an email notification when an alert is marked as resolved |
139139
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
140140

141141

docs/commands/webhosting.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,16 @@ scw webhosting domain sync-dns-records [arg=value ...]
393393
| Name | | Description |
394394
|------|---|-------------|
395395
| domain | Required | Domain for which the DNS records will be synchronized. |
396-
| update-web-records | | Whether or not to synchronize the web records. |
397-
| update-mail-records | | Whether or not to synchronize the mail records. |
398-
| update-all-records | | Whether or not to synchronize all types of records. This one has priority. |
399-
| update-nameservers | | Whether or not to synchronize domain nameservers. |
396+
| ~~update-web-records~~ | Deprecated | Whether or not to synchronize the web records (deprecated, use auto_config_domain_dns). |
397+
| ~~update-mail-records~~ | Deprecated | Whether or not to synchronize the mail records (deprecated, use auto_config_domain_dns). |
398+
| ~~update-all-records~~ | Deprecated | Whether or not to synchronize all types of records. This one has priority (deprecated, use auto_config_domain_dns). |
399+
| ~~update-nameservers~~ | Deprecated | Whether or not to synchronize domain nameservers (deprecated, use auto_config_domain_dns). |
400400
| custom-records.{index}.name | | |
401401
| custom-records.{index}.type | One of: `unknown_type`, `a`, `cname`, `mx`, `txt`, `ns`, `aaaa` | |
402+
| auto-config-domain-dns.nameservers | | Whether or not to synchronize domain nameservers. |
403+
| auto-config-domain-dns.web-records | | Whether or not to synchronize web records. |
404+
| auto-config-domain-dns.mail-records | | Whether or not to synchronize mail records. |
405+
| auto-config-domain-dns.all-records | | Whether or not to synchronize all types of records. Takes priority over the other fields. |
402406
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
403407

404408

@@ -507,6 +511,10 @@ scw webhosting hosting create [arg=value ...]
507511
| domain-configuration.update-mail-record | | |
508512
| domain-configuration.update-all-records | | |
509513
| skip-welcome-email | | Indicates whether to skip a welcome email to the contact email containing hosting info. |
514+
| auto-config-domain-dns.nameservers | | Whether or not to synchronize domain nameservers. |
515+
| auto-config-domain-dns.web-records | | Whether or not to synchronize web records. |
516+
| auto-config-domain-dns.mail-records | | Whether or not to synchronize mail records. |
517+
| auto-config-domain-dns.all-records | | Whether or not to synchronize all types of records. Takes priority over the other fields. |
510518
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
511519

512520

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/mattn/go-isatty v0.0.20
2626
github.com/moby/buildkit v0.13.2
2727
github.com/opencontainers/go-digest v1.0.0
28-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250312091247-697a13a38e06
28+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250312144558-0af04b4e364d
2929
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3030
github.com/spf13/cobra v1.9.1
3131
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
458458
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
459459
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
460460
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
461-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250312091247-697a13a38e06 h1:SHt9tWyql2MPgr9f2sCgcLNhiWsGHMjGwePXQBAas38=
462-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250312091247-697a13a38e06/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
461+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250312144558-0af04b4e364d h1:crcNANqcAyq7wm80ySMUew10by466BZP57FWCMo8KVw=
462+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250312144558-0af04b4e364d/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
463463
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
464464
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
465465
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/cockpit/v1/cockpit_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ If you need to receive alerts for other receivers, you can create additional con
10181018
Positional: false,
10191019
},
10201020
{
1021-
Name: "receive-resolved-notifications",
1021+
Name: "send-resolved-notifications",
10221022
Short: `Send an email notification when an alert is marked as resolved`,
10231023
Required: false,
10241024
Deprecated: false,

0 commit comments

Comments
 (0)