Skip to content

Commit 028d70d

Browse files
authored
feat(redis): migrate to v1 (#2536)
1 parent 3bb5975 commit 028d70d

10 files changed

+15
-1133
lines changed

cmd/scw/testdata/test-all-usage-redis-acl-add-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
cluster-id UUID of the cluster you want to add acl rules to
10-
[acl-rules.{index}.ip] IPv4 network address of the rule
10+
[acl-rules.{index}.ip-cidr] IPv4 network address of the rule
1111
[acl-rules.{index}.description] Description of the rule
1212
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
1313

cmd/scw/testdata/test-all-usage-redis-acl-set-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
cluster-id UUID of the cluster where the ACL rules has to be set
10-
[acl-rules.{index}.ip] IPv4 network address of the rule
10+
[acl-rules.{index}.ip-cidr] IPv4 network address of the rule
1111
[acl-rules.{index}.description] Description of the rule
1212
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
1313

cmd/scw/testdata/test-all-usage-redis-cluster-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARGS:
1414
user-name Name of the user created when the cluster is created
1515
password Password of the user
1616
[cluster-size] Number of nodes for the cluster
17-
[acl-rules.{index}.ip] IPv4 network address of the rule
17+
[acl-rules.{index}.ip-cidr] IPv4 network address of the rule
1818
[acl-rules.{index}.description] Description of the rule
1919
[endpoints.{index}.private-network.id] UUID of the private network to be connected to the cluster
2020
[endpoints.{index}.private-network.service-ips.{index}] Endpoint IPv4 adress with a CIDR notation. You must provide at least one IPv4 per node. Check documentation about IP and subnet limitation.

cmd/scw/testdata/test-all-usage-redis-cluster-metrics-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ USAGE:
77

88
ARGS:
99
cluster-id UUID of the cluster
10-
[start-date] Start date to gather metrics from
11-
[end-date] End date to gather metrics from
10+
[start-at] Start date to gather metrics from
11+
[end-at] End date to gather metrics from
1212
[metric-name] Name of the metric to gather
1313
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
1414

cmd/scw/testdata/test-all-usage-redis-setting-delete-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
cluster-id UUID of the cluster where the settings has to be set
10-
[settings-name] Setting name to delete
10+
setting-name Setting name to delete
1111
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
1212

1313
FLAGS:

cmd/scw/testdata/test-all-usage-redis-version-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARGS:
99
[include-disabled] Whether or not to include disabled Redis™ engine versions
1010
[include-beta] Whether or not to include beta Redis™ engine versions
1111
[include-deprecated] Whether or not to include deprecated Redis™ engine versions
12-
[version-name] List Redis™ engine versions that match a given name pattern
12+
[version] List Redis™ engine versions that match a given name pattern
1313
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
1414

1515
FLAGS:

docs/commands/redis.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ scw redis acl add [arg=value ...]
5454
| Name | | Description |
5555
|------|---|-------------|
5656
| cluster-id | Required | UUID of the cluster you want to add acl rules to |
57-
| acl-rules.{index}.ip | | IPv4 network address of the rule |
57+
| acl-rules.{index}.ip-cidr | | IPv4 network address of the rule |
5858
| acl-rules.{index}.description | | Description of the rule |
5959
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |
6060

@@ -116,7 +116,7 @@ scw redis acl set [arg=value ...]
116116
| Name | | Description |
117117
|------|---|-------------|
118118
| cluster-id | Required | UUID of the cluster where the ACL rules has to be set |
119-
| acl-rules.{index}.ip | | IPv4 network address of the rule |
119+
| acl-rules.{index}.ip-cidr | | IPv4 network address of the rule |
120120
| acl-rules.{index}.description | | Description of the rule |
121121
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |
122122

@@ -151,7 +151,7 @@ scw redis cluster create [arg=value ...]
151151
| user-name | Required | Name of the user created when the cluster is created |
152152
| password | Required | Password of the user |
153153
| cluster-size | | Number of nodes for the cluster |
154-
| acl-rules.{index}.ip | | IPv4 network address of the rule |
154+
| acl-rules.{index}.ip-cidr | | IPv4 network address of the rule |
155155
| acl-rules.{index}.description | | Description of the rule |
156156
| endpoints.{index}.private-network.id | | UUID of the private network to be connected to the cluster |
157157
| endpoints.{index}.private-network.service-ips.{index} | | Endpoint IPv4 adress with a CIDR notation. You must provide at least one IPv4 per node. Check documentation about IP and subnet limitation. |
@@ -262,8 +262,8 @@ scw redis cluster metrics <cluster-id ...> [arg=value ...]
262262
| Name | | Description |
263263
|------|---|-------------|
264264
| cluster-id | Required | UUID of the cluster |
265-
| start-date | | Start date to gather metrics from |
266-
| end-date | | End date to gather metrics from |
265+
| start-at | | Start date to gather metrics from |
266+
| end-at | | End date to gather metrics from |
267267
| metric-name | | Name of the metric to gather |
268268
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |
269269

@@ -496,7 +496,7 @@ scw redis setting delete [arg=value ...]
496496
| Name | | Description |
497497
|------|---|-------------|
498498
| cluster-id | Required | UUID of the cluster where the settings has to be set |
499-
| settings-name | | Setting name to delete |
499+
| setting-name | Required | Setting name to delete |
500500
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |
501501

502502

@@ -546,7 +546,7 @@ scw redis version list [arg=value ...]
546546
| include-disabled | | Whether or not to include disabled Redis™ engine versions |
547547
| include-beta | | Whether or not to include beta Redis™ engine versions |
548548
| include-deprecated | | Whether or not to include deprecated Redis™ engine versions |
549-
| version-name | | List Redis™ engine versions that match a given name pattern |
549+
| version | | List Redis™ engine versions that match a given name pattern |
550550
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |
551551

552552

internal/namespaces/get_commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/marketplace/v1"
2525
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/object/v1"
2626
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/rdb/v1"
27-
redis "github.com/scaleway/scaleway-cli/v2/internal/namespaces/redis/v1alpha1"
27+
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/redis/v1"
2828
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/registry/v1"
2929
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/shell"
3030
versionNamespace "github.com/scaleway/scaleway-cli/v2/internal/namespaces/version"
File renamed without changes.

0 commit comments

Comments
 (0)