Skip to content

Commit 963ca41

Browse files
svc-apix-Botgithub-merge-queue[bot]maastha
authored
chore: Updates Atlas Go SDK (#1289)
Co-authored-by: github-merge-queue <[email protected]> Co-authored-by: Aastha Mahendru <[email protected]>
1 parent 2331d08 commit 963ca41

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

cfn-resources/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
github.com/tidwall/pretty v1.2.1
2121
go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0
2222
go.mongodb.org/atlas-sdk/v20231115014 v20231115014.0.0
23-
go.mongodb.org/atlas-sdk/v20241113004 v20241113004.1.0
23+
go.mongodb.org/atlas-sdk/v20250312002 v20250312002.0.0
2424
)
2525

2626
require (
@@ -50,7 +50,7 @@ require (
5050
github.com/segmentio/ksuid v1.0.4 // indirect
5151
github.com/stretchr/objx v0.5.2 // indirect
5252
go.mongodb.org/atlas v0.37.0 // indirect
53-
golang.org/x/oauth2 v0.24.0 // indirect
53+
golang.org/x/oauth2 v0.28.0 // indirect
5454
gopkg.in/validator.v2 v2.0.1 // indirect
5555
gopkg.in/yaml.v2 v2.4.0 // indirect
5656
gopkg.in/yaml.v3 v3.0.1 // indirect

cfn-resources/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0 h1:x6nnq2pUIP9mN4WLD4/Ese
105105
go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0/go.mod h1:el7cm23kEiiw72HAYimhNweKqp/ubHsNJk+Mk30yJhM=
106106
go.mongodb.org/atlas-sdk/v20231115014 v20231115014.0.0 h1:hN7x3m6THf03q/tE48up1j0U/26lJmx+s1LXB/qvHHc=
107107
go.mongodb.org/atlas-sdk/v20231115014 v20231115014.0.0/go.mod h1:pCl46YnWOIde8lq27whXDwUseNeUvtAy3vy5ZDeTcBA=
108-
go.mongodb.org/atlas-sdk/v20241113004 v20241113004.1.0 h1:AvrgNUpVMFnqZZJo4m/Bynr0wlDWM4xjhugCSdX/7mM=
109-
go.mongodb.org/atlas-sdk/v20241113004 v20241113004.1.0/go.mod h1:CABkQ0sbsqRBXR55UwS+0rX91Dx7et0xxq4QBB6qRog=
110-
golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE=
111-
golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
108+
go.mongodb.org/atlas-sdk/v20250312002 v20250312002.0.0 h1:KX8PrYp3/PCSxG4NbGLcc3+EsNcfyhcvylGbe/oRlx8=
109+
go.mongodb.org/atlas-sdk/v20250312002 v20250312002.0.0/go.mod h1:HHCmHxHPdJRr1bUXlvRIZbm7M4gRujjur1GnjE44YgA=
110+
golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc=
111+
golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
112112
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
113113
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
114114
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=

cfn-resources/organization/cmd/resource/resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"net/http"
2222
"time"
2323

24-
"go.mongodb.org/atlas-sdk/v20241113004/admin"
24+
"go.mongodb.org/atlas-sdk/v20250312002/admin"
2525

2626
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
2727
"github.com/aws/aws-sdk-go/service/cloudformation"
@@ -230,7 +230,7 @@ func Delete(req handler.Request, prevModel *Model, currentModel *Model) (handler
230230

231231
responseChan := make(chan DeleteResponse, 1)
232232
go func() {
233-
_, response, err := deleteRequest.Execute()
233+
response, err := deleteRequest.Execute()
234234
responseChan <- DeleteResponse{Error: err, Response: response}
235235
}()
236236

cfn-resources/resource-policy/cmd/resource/mappings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ package resource
1616

1717
import (
1818
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
19-
"go.mongodb.org/atlas-sdk/v20241113004/admin"
19+
"go.mongodb.org/atlas-sdk/v20250312002/admin"
2020
)
2121

2222
func NewResourcePolicyCreateReq(model *Model) *admin.ApiAtlasResourcePolicyCreate {

cfn-resources/resource-policy/cmd/resource/mappings_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package resource_test
1717
import (
1818
"testing"
1919

20-
"go.mongodb.org/atlas-sdk/v20241113004/admin"
20+
"go.mongodb.org/atlas-sdk/v20250312002/admin"
2121

2222
"github.com/aws/smithy-go/ptr"
2323
"github.com/mongodb/mongodbatlas-cloudformation-resources/resource-policy/cmd/resource"

cfn-resources/resource-policy/cmd/resource/resource.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ import (
1919
"fmt"
2020
"net/http"
2121

22+
"go.mongodb.org/atlas-sdk/v20250312002/admin"
23+
2224
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
2325
"github.com/aws/aws-sdk-go/service/cloudformation"
26+
2427
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
2528
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
2629
progress_events "github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
2730
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
28-
"go.mongodb.org/atlas-sdk/v20241113004/admin"
2931
)
3032

3133
var CreateRequiredFields = []string{"OrgId", "Name", "Policies"}
@@ -139,7 +141,7 @@ func Delete(req handler.Request, prevModel *Model, currentModel *Model) (handler
139141

140142
orgID := currentModel.OrgId
141143
resourcePolicyID := currentModel.Id
142-
_, apiResp, err := conn.ResourcePoliciesApi.DeleteAtlasResourcePolicy(ctx, *orgID, *resourcePolicyID).Execute()
144+
apiResp, err := conn.ResourcePoliciesApi.DeleteAtlasResourcePolicy(ctx, *orgID, *resourcePolicyID).Execute()
143145
if err != nil {
144146
return handleError(apiResp, constants.DELETE, err)
145147
}

cfn-resources/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
admin20231115002 "go.mongodb.org/atlas-sdk/v20231115002/admin"
3030
admin20231115014 "go.mongodb.org/atlas-sdk/v20231115014/admin"
31-
"go.mongodb.org/atlas-sdk/v20241113004/admin"
31+
"go.mongodb.org/atlas-sdk/v20250312002/admin"
3232

3333
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
3434
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/logging"

0 commit comments

Comments
 (0)