Skip to content

Commit 8690f0e

Browse files
author
Cristina Sánchez Sánchez
committed
Updated SDK
1 parent ece229a commit 8690f0e

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

internal/service/clouduserprojectassignment/model.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import (
77
"github.com/hashicorp/terraform-plugin-framework/types"
88
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/conversion"
99

10-
// "go.mongodb.org/atlas-sdk/v20250312005/admin"
11-
"github.com/mongodb/atlas-sdk-go/admin"
10+
"go.mongodb.org/atlas-sdk/v20250312006/admin"
1211
)
1312

1413
func NewTFModel(ctx context.Context, projectID string, apiResp *admin.GroupUserResponse) (*TFModel, diag.Diagnostics) {

internal/service/clouduserprojectassignment/model_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import (
88
"github.com/mongodb/terraform-provider-mongodbatlas/internal/service/clouduserprojectassignment"
99
"github.com/stretchr/testify/assert"
1010

11-
// "go.mongodb.org/atlas-sdk/v20250312005/admin"
12-
"github.com/mongodb/atlas-sdk-go/admin"
11+
"go.mongodb.org/atlas-sdk/v20250312006/admin"
1312
)
1413

1514
const (

internal/service/clouduserprojectassignment/resource.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import (
66
"net/http"
77
"regexp"
88

9-
// "go.mongodb.org/atlas-sdk/v20250312005/admin"
10-
"github.com/mongodb/atlas-sdk-go/admin"
9+
"go.mongodb.org/atlas-sdk/v20250312006/admin"
1110

1211
"github.com/hashicorp/terraform-plugin-framework/path"
1312
"github.com/hashicorp/terraform-plugin-framework/resource"
@@ -46,7 +45,7 @@ func (r *rs) Create(ctx context.Context, req resource.CreateRequest, resp *resou
4645
return
4746
}
4847

49-
connV2 := r.Client.AtlasPreview
48+
connV2 := r.Client.AtlasV2
5049
projectID := plan.ProjectId.ValueString()
5150
projectUserRequest, diags := NewProjectUserReq(ctx, &plan)
5251
if diags.HasError() {
@@ -75,7 +74,7 @@ func (r *rs) Read(ctx context.Context, req resource.ReadRequest, resp *resource.
7574
return
7675
}
7776

78-
connV2 := r.Client.AtlasPreview
77+
connV2 := r.Client.AtlasV2
7978
projectID := state.ProjectId.ValueString()
8079
var userResp *admin.GroupUserResponse
8180
var httpResp *http.Response
@@ -126,7 +125,7 @@ func (r *rs) Update(ctx context.Context, req resource.UpdateRequest, resp *resou
126125
return
127126
}
128127

129-
connV2 := r.Client.AtlasPreview
128+
connV2 := r.Client.AtlasV2
130129
projectID := plan.ProjectId.ValueString()
131130
userID := plan.UserId.ValueString()
132131
username := plan.Username.ValueString()
@@ -185,7 +184,7 @@ func (r *rs) Delete(ctx context.Context, req resource.DeleteRequest, resp *resou
185184
return
186185
}
187186

188-
connV2 := r.Client.AtlasPreview
187+
connV2 := r.Client.AtlasV2
189188
projectID := state.ProjectId.ValueString()
190189
userID := state.UserId.ValueString()
191190
username := state.Username.ValueString()

0 commit comments

Comments
 (0)