Skip to content

Commit 35cd4f2

Browse files
Merge pull request #226 from RedisLabs/feat/OPCR-20-resourcelink
OPCR-20: AWS PrivateLink
2 parents 0e52401 + 55f9e67 commit 35cd4f2

File tree

19 files changed

+815
-32
lines changed

19 files changed

+815
-32
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ 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

55

6+
## 0.36.0
7+
8+
# Added:
9+
* Adding model and service for new PrivateLink endpoints
10+
11+
# Changed:
12+
* Modified `delete` in API client so that it takes a `requestBody` parameter.
13+
* Updating Testify to v1.11.1
14+
615
## 0.35.0
716

817
### Added:

client.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ import (
1010
"regexp"
1111
"strings"
1212

13+
"github.com/RedisLabs/rediscloud-go-api/internal"
1314
"github.com/RedisLabs/rediscloud-go-api/service/access_control_lists/redis_rules"
1415
"github.com/RedisLabs/rediscloud-go-api/service/access_control_lists/roles"
1516
"github.com/RedisLabs/rediscloud-go-api/service/access_control_lists/users"
16-
"github.com/RedisLabs/rediscloud-go-api/service/psc"
17-
18-
"github.com/RedisLabs/rediscloud-go-api/internal"
1917
"github.com/RedisLabs/rediscloud-go-api/service/account"
2018
"github.com/RedisLabs/rediscloud-go-api/service/cloud_accounts"
2119
"github.com/RedisLabs/rediscloud-go-api/service/databases"
@@ -27,6 +25,8 @@ import (
2725
"github.com/RedisLabs/rediscloud-go-api/service/latest_imports"
2826
"github.com/RedisLabs/rediscloud-go-api/service/maintenance"
2927
"github.com/RedisLabs/rediscloud-go-api/service/pricing"
28+
"github.com/RedisLabs/rediscloud-go-api/service/privatelink"
29+
"github.com/RedisLabs/rediscloud-go-api/service/psc"
3030
"github.com/RedisLabs/rediscloud-go-api/service/regions"
3131
"github.com/RedisLabs/rediscloud-go-api/service/subscriptions"
3232
"github.com/RedisLabs/rediscloud-go-api/service/tags"
@@ -45,6 +45,7 @@ type Client struct {
4545
Pricing *pricing.API
4646
TransitGatewayAttachments *attachments.API
4747
PrivateServiceConnect *psc.API
48+
PrivateLink *privatelink.API
4849
Tags *tags.API
4950
// fixed
5051
FixedPlans *plans.API
@@ -94,6 +95,7 @@ func NewClient(configs ...Option) (*Client, error) {
9495
Pricing: pricing.NewAPI(client),
9596
TransitGatewayAttachments: attachments.NewAPI(client, t, config.logger),
9697
PrivateServiceConnect: psc.NewAPI(client, t, config.logger),
98+
PrivateLink: privatelink.NewAPI(client, t, config.logger),
9799
Tags: tags.NewAPI(client),
98100
// fixed
99101
FixedPlans: plans.NewAPI(client, config.logger),

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23.0
44

55
require (
66
github.com/avast/retry-go/v4 v4.6.0
7-
github.com/stretchr/testify v1.10.0
7+
github.com/stretchr/testify v1.11.1
88
golang.org/x/tools v0.36.0
99
)
1010

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
88
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
99
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=
11-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
12-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
11+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
12+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
1313
golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ=
1414
golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc=
1515
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=

internal/http_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ func (c *HttpClient) Post(ctx context.Context, name, path string, requestBody in
6767
return c.connectionWithRetries(ctx, http.MethodPost, name, path, nil, requestBody, responseBody)
6868
}
6969

70-
func (c *HttpClient) Delete(ctx context.Context, name, path string, responseBody interface{}) error {
71-
return c.connectionWithRetries(ctx, http.MethodDelete, name, path, nil, nil, responseBody)
70+
func (c *HttpClient) Delete(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error {
71+
return c.connectionWithRetries(ctx, http.MethodDelete, name, path, nil, requestBody, responseBody)
7272
}
7373

7474
func (c *HttpClient) DeleteWithQuery(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error {

0 commit comments

Comments
 (0)