@@ -66,7 +66,7 @@ type MongoDBCloudUsersApi interface {
66
66
AddProjectRoleWithParams (ctx context.Context , args * AddProjectRoleApiParams ) AddProjectRoleApiRequest
67
67
68
68
// Method available only for mocking purposes
69
- AddProjectRoleExecute (r AddProjectRoleApiRequest ) (* OrgUserResponse , * http.Response , error )
69
+ AddProjectRoleExecute (r AddProjectRoleApiRequest ) (* GroupUserResponse , * http.Response , error )
70
70
71
71
/*
72
72
AddProjectUser Add One MongoDB Cloud User to One Project
@@ -454,7 +454,7 @@ type MongoDBCloudUsersApi interface {
454
454
RemoveProjectRoleWithParams (ctx context.Context , args * RemoveProjectRoleApiParams ) RemoveProjectRoleApiRequest
455
455
456
456
// Method available only for mocking purposes
457
- RemoveProjectRoleExecute (r RemoveProjectRoleApiRequest ) (* OrgUserResponse , * http.Response , error )
457
+ RemoveProjectRoleExecute (r RemoveProjectRoleApiRequest ) (* GroupUserResponse , * http.Response , error )
458
458
459
459
/*
460
460
RemoveProjectUser Remove One MongoDB Cloud User from One Project
@@ -704,7 +704,7 @@ func (a *MongoDBCloudUsersApiService) AddProjectRoleWithParams(ctx context.Conte
704
704
}
705
705
}
706
706
707
- func (r AddProjectRoleApiRequest ) Execute () (* OrgUserResponse , * http.Response , error ) {
707
+ func (r AddProjectRoleApiRequest ) Execute () (* GroupUserResponse , * http.Response , error ) {
708
708
return r .ApiService .AddProjectRoleExecute (r )
709
709
}
710
710
@@ -732,13 +732,13 @@ func (a *MongoDBCloudUsersApiService) AddProjectRole(ctx context.Context, groupI
732
732
733
733
// AddProjectRoleExecute executes the request
734
734
//
735
- // @return OrgUserResponse
736
- func (a * MongoDBCloudUsersApiService ) AddProjectRoleExecute (r AddProjectRoleApiRequest ) (* OrgUserResponse , * http.Response , error ) {
735
+ // @return GroupUserResponse
736
+ func (a * MongoDBCloudUsersApiService ) AddProjectRoleExecute (r AddProjectRoleApiRequest ) (* GroupUserResponse , * http.Response , error ) {
737
737
var (
738
738
localVarHTTPMethod = http .MethodPost
739
739
localVarPostBody any
740
740
formFiles []formFile
741
- localVarReturnValue * OrgUserResponse
741
+ localVarReturnValue * GroupUserResponse
742
742
)
743
743
744
744
localBasePath , err := a .client .cfg .ServerURLWithContext (r .ctx , "MongoDBCloudUsersApiService.AddProjectRole" )
@@ -2232,6 +2232,7 @@ type ListTeamUsersApiRequest struct {
2232
2232
pageNum * int
2233
2233
username * string
2234
2234
orgMembershipStatus * string
2235
+ userId * string
2235
2236
}
2236
2237
2237
2238
type ListTeamUsersApiParams struct {
@@ -2241,6 +2242,7 @@ type ListTeamUsersApiParams struct {
2241
2242
PageNum * int
2242
2243
Username * string
2243
2244
OrgMembershipStatus * string
2245
+ UserId * string
2244
2246
}
2245
2247
2246
2248
func (a * MongoDBCloudUsersApiService ) ListTeamUsersWithParams (ctx context.Context , args * ListTeamUsersApiParams ) ListTeamUsersApiRequest {
@@ -2253,6 +2255,7 @@ func (a *MongoDBCloudUsersApiService) ListTeamUsersWithParams(ctx context.Contex
2253
2255
pageNum : args .PageNum ,
2254
2256
username : args .Username ,
2255
2257
orgMembershipStatus : args .OrgMembershipStatus ,
2258
+ userId : args .UserId ,
2256
2259
}
2257
2260
}
2258
2261
@@ -2280,6 +2283,12 @@ func (r ListTeamUsersApiRequest) OrgMembershipStatus(orgMembershipStatus string)
2280
2283
return r
2281
2284
}
2282
2285
2286
+ // Unique 24-hexadecimal digit string to filter users by. Not supported in deprecated versions.
2287
+ func (r ListTeamUsersApiRequest ) UserId (userId string ) ListTeamUsersApiRequest {
2288
+ r .userId = & userId
2289
+ return r
2290
+ }
2291
+
2283
2292
func (r ListTeamUsersApiRequest ) Execute () (* PaginatedOrgUser , * http.Response , error ) {
2284
2293
return r .ApiService .ListTeamUsersExecute (r )
2285
2294
}
@@ -2357,6 +2366,9 @@ func (a *MongoDBCloudUsersApiService) ListTeamUsersExecute(r ListTeamUsersApiReq
2357
2366
if r .orgMembershipStatus != nil {
2358
2367
parameterAddToHeaderOrQuery (localVarQueryParams , "orgMembershipStatus" , r .orgMembershipStatus , "" )
2359
2368
}
2369
+ if r .userId != nil {
2370
+ parameterAddToHeaderOrQuery (localVarQueryParams , "userId" , r .userId , "" )
2371
+ }
2360
2372
// to determine the Content-Type header
2361
2373
localVarHTTPContentTypes := []string {}
2362
2374
@@ -2676,7 +2688,7 @@ func (a *MongoDBCloudUsersApiService) RemoveProjectRoleWithParams(ctx context.Co
2676
2688
}
2677
2689
}
2678
2690
2679
- func (r RemoveProjectRoleApiRequest ) Execute () (* OrgUserResponse , * http.Response , error ) {
2691
+ func (r RemoveProjectRoleApiRequest ) Execute () (* GroupUserResponse , * http.Response , error ) {
2680
2692
return r .ApiService .RemoveProjectRoleExecute (r )
2681
2693
}
2682
2694
@@ -2704,13 +2716,13 @@ func (a *MongoDBCloudUsersApiService) RemoveProjectRole(ctx context.Context, gro
2704
2716
2705
2717
// RemoveProjectRoleExecute executes the request
2706
2718
//
2707
- // @return OrgUserResponse
2708
- func (a * MongoDBCloudUsersApiService ) RemoveProjectRoleExecute (r RemoveProjectRoleApiRequest ) (* OrgUserResponse , * http.Response , error ) {
2719
+ // @return GroupUserResponse
2720
+ func (a * MongoDBCloudUsersApiService ) RemoveProjectRoleExecute (r RemoveProjectRoleApiRequest ) (* GroupUserResponse , * http.Response , error ) {
2709
2721
var (
2710
2722
localVarHTTPMethod = http .MethodPost
2711
2723
localVarPostBody any
2712
2724
formFiles []formFile
2713
- localVarReturnValue * OrgUserResponse
2725
+ localVarReturnValue * GroupUserResponse
2714
2726
)
2715
2727
2716
2728
localBasePath , err := a .client .cfg .ServerURLWithContext (r .ctx , "MongoDBCloudUsersApiService.RemoveProjectRole" )
0 commit comments