Skip to content

Commit bed9fea

Browse files
Merge pull request #228 from RedisLabs/feat/active-active-privatelink
Active Active Privatelink support
2 parents d0d6bc9 + d2a0d9d commit bed9fea

File tree

6 files changed

+33
-17
lines changed

6 files changed

+33
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
uses: actions/[email protected]
1313

1414
- name: Install Go
15-
uses: actions/setup-go@v5.5.0
15+
uses: actions/setup-go@v6.0.0
1616
with:
1717
go-version-file: go.mod
1818

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22
All notable changes to this project will be documented in this file.
33
See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/).
44

5+
## 0.36.3
56

6-
## 0.36.0
7+
### Added:
8+
* The `regionId` property is now supported on `GET` ActiveActiveRegion requests.
9+
10+
### Changed:
11+
* Changing `regionId` back to an int.
12+
* Bumping dependency versions
713

8-
# Added:
14+
## v0.36.2
15+
16+
### Added:
917
* Adding model and service for new PrivateLink endpoints
1018

11-
# Changed:
19+
### Changed:
1220
* Modified `delete` in API client so that it takes a `requestBody` parameter.
1321
* Updating Testify to v1.11.1
1422

go.mod

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
module github.com/RedisLabs/rediscloud-go-api
22

3-
go 1.23.0
3+
go 1.24.0
4+
5+
toolchain go1.24.1
46

57
require (
68
github.com/avast/retry-go/v4 v4.6.0
79
github.com/stretchr/testify v1.11.1
8-
golang.org/x/tools v0.36.0
10+
golang.org/x/tools v0.37.0
911
)
1012

1113
require (
1214
github.com/davecgh/go-spew v1.1.1 // indirect
1315
github.com/pmezard/go-difflib v1.0.0 // indirect
1416
github.com/stretchr/objx v0.5.2 // indirect
15-
golang.org/x/mod v0.27.0 // indirect
16-
golang.org/x/sync v0.16.0 // indirect
17+
golang.org/x/mod v0.28.0 // indirect
18+
golang.org/x/sync v0.17.0 // indirect
19+
golang.org/x/sys v0.36.0 // indirect
20+
golang.org/x/telemetry v0.0.0-20250908211612-aef8a434d053 // indirect
1721
gopkg.in/yaml.v3 v3.0.1 // indirect
1822
)

go.sum

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
1010
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
1111
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
1212
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
13-
golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ=
14-
golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc=
15-
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
16-
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
17-
golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg=
18-
golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s=
13+
golang.org/x/mod v0.28.0 h1:gQBtGhjxykdjY9YhZpSlZIsbnaE2+PgjfLWUQTnoZ1U=
14+
golang.org/x/mod v0.28.0/go.mod h1:yfB/L0NOf/kmEbXjzCPOx1iK1fRutOydrCMsqRhEBxI=
15+
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=
16+
golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
17+
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
18+
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
19+
golang.org/x/telemetry v0.0.0-20250908211612-aef8a434d053 h1:dHQOQddU4YHS5gY33/6klKjq7Gp3WwMyOXGNp5nzRj8=
20+
golang.org/x/telemetry v0.0.0-20250908211612-aef8a434d053/go.mod h1:+nZKN+XVh4LCiA9DV3ywrzN4gumyCnKjau3NGb9SGoE=
21+
golang.org/x/tools v0.37.0 h1:DVSRzp7FwePZW356yEAChSdNcQo6Nsp+fex1SUW09lE=
22+
golang.org/x/tools v0.37.0/go.mod h1:MBN5QPQtLMHVdvsbtarmTNukZDdgwdwlO5qGacAzF0w=
1923
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
2024
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2125
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

service/privatelink/model.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ type CreatePrivateLinkActiveActive struct {
5858
}
5959

6060
type PrivateLinkActiveActive struct {
61-
SubscriptionId *int `json:"subscriptionId"`
62-
RegionId *string `json:"region_id"`
61+
SubscriptionId *int `json:"subscriptionId"`
62+
RegionId *int `json:"region_id"`
6363
}
6464

6565
type NotFound struct {

service/subscriptions/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ type ListAASubscriptionRegionsResponse struct {
307307

308308
// have to redeclare these here (copied from regions model) to avoid an import cycle
309309
type ActiveActiveRegion struct {
310-
//RegionId *int `json:"regionId,omitempty"` // not populated by the API
310+
RegionId *int `json:"regionId,omitempty"`
311311
Region *string `json:"region,omitempty"`
312312
DeploymentCIDR *string `json:"deploymentCidr,omitempty"`
313313
VpcId *string `json:"vpcId,omitempty"`

0 commit comments

Comments
 (0)