Skip to content

Commit e7ba704

Browse files
APIBot: SDK update based on recent changes in Atlas API (#355)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wtrocki <981838+wtrocki@users.noreply.github.com>
1 parent 398f93a commit e7ba704

File tree

168 files changed

+4158
-2653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+4158
-2653
lines changed

.mockery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ filename: "{{ .InterfaceName | snakecase }}.go"
66
mockname: "{{.InterfaceName}}"
77

88
packages:
9-
go.mongodb.org/atlas-sdk/v20240530001/admin:
9+
go.mongodb.org/atlas-sdk/v20240530002/admin:
1010
config:
1111
include-regex: ".*Api"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Note that `atlas-sdk-go` only supports the two most recent major versions of Go.
1212
### Adding Dependency
1313

1414
```terminal
15-
go get go.mongodb.org/atlas-sdk/v20240530001
15+
go get go.mongodb.org/atlas-sdk/v20240530002
1616
```
1717

1818
### Using in the code
@@ -21,7 +21,7 @@ Construct a new Atlas SDK client, then use the various services on the client to
2121
access different parts of the Atlas API. For example:
2222

2323
```go
24-
import "go.mongodb.org/atlas-sdk/v20240530001/admin"
24+
import "go.mongodb.org/atlas-sdk/v20240530002/admin"
2525

2626
func example() {
2727
ctx := context.Background()

admin/api_cloud_backups.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ type CloudBackupsApi interface {
244244
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
245245
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
246246
@param clusterName Human-readable label that identifies the cluster.
247-
@param exportId Unique string that identifies the AWS S3 bucket to which you export your snapshots.
247+
@param exportId Unique string that identifies the export job to return.
248248
@return GetBackupExportJobApiRequest
249249
*/
250250
GetBackupExportJob(ctx context.Context, groupId string, clusterName string, exportId string) GetBackupExportJobApiRequest
@@ -1869,7 +1869,7 @@ Returns one Cloud Backup snapshot export job associated with the specified Atlas
18691869
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
18701870
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
18711871
@param clusterName Human-readable label that identifies the cluster.
1872-
@param exportId Unique string that identifies the AWS S3 bucket to which you export your snapshots.
1872+
@param exportId Unique string that identifies the export job to return.
18731873
@return GetBackupExportJobApiRequest
18741874
*/
18751875
func (a *CloudBackupsApiService) GetBackupExportJob(ctx context.Context, groupId string, clusterName string, exportId string) GetBackupExportJobApiRequest {

admin/api_cloud_migration_service.go

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ type CloudMigrationServiceApi interface {
4949
5050
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
5151
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
52-
@param liveMigrationRequest One migration to be created.
52+
@param liveMigrationRequest20240530 One migration to be created.
5353
@return CreatePushMigrationApiRequest
5454
*/
55-
CreatePushMigration(ctx context.Context, groupId string, liveMigrationRequest *LiveMigrationRequest) CreatePushMigrationApiRequest
55+
CreatePushMigration(ctx context.Context, groupId string, liveMigrationRequest20240530 *LiveMigrationRequest20240530) CreatePushMigrationApiRequest
5656
/*
5757
CreatePushMigration Migrate One Local Managed Cluster to MongoDB Atlas
5858
@@ -191,10 +191,10 @@ type CloudMigrationServiceApi interface {
191191
192192
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
193193
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
194-
@param liveMigrationRequest One migration to be validated.
194+
@param liveMigrationRequest20240530 One migration to be validated.
195195
@return ValidateMigrationApiRequest
196196
*/
197-
ValidateMigration(ctx context.Context, groupId string, liveMigrationRequest *LiveMigrationRequest) ValidateMigrationApiRequest
197+
ValidateMigration(ctx context.Context, groupId string, liveMigrationRequest20240530 *LiveMigrationRequest20240530) ValidateMigrationApiRequest
198198
/*
199199
ValidateMigration Validate One Migration Request
200200
@@ -333,23 +333,23 @@ func (a *CloudMigrationServiceApiService) CreateLinkTokenExecute(r CreateLinkTok
333333
}
334334

335335
type CreatePushMigrationApiRequest struct {
336-
ctx context.Context
337-
ApiService CloudMigrationServiceApi
338-
groupId string
339-
liveMigrationRequest *LiveMigrationRequest
336+
ctx context.Context
337+
ApiService CloudMigrationServiceApi
338+
groupId string
339+
liveMigrationRequest20240530 *LiveMigrationRequest20240530
340340
}
341341

342342
type CreatePushMigrationApiParams struct {
343-
GroupId string
344-
LiveMigrationRequest *LiveMigrationRequest
343+
GroupId string
344+
LiveMigrationRequest20240530 *LiveMigrationRequest20240530
345345
}
346346

347347
func (a *CloudMigrationServiceApiService) CreatePushMigrationWithParams(ctx context.Context, args *CreatePushMigrationApiParams) CreatePushMigrationApiRequest {
348348
return CreatePushMigrationApiRequest{
349-
ApiService: a,
350-
ctx: ctx,
351-
groupId: args.GroupId,
352-
liveMigrationRequest: args.LiveMigrationRequest,
349+
ApiService: a,
350+
ctx: ctx,
351+
groupId: args.GroupId,
352+
liveMigrationRequest20240530: args.LiveMigrationRequest20240530,
353353
}
354354
}
355355

@@ -372,12 +372,12 @@ Migrate one cluster that Cloud or Ops Manager manages to MongoDB Atlas.
372372
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
373373
@return CreatePushMigrationApiRequest
374374
*/
375-
func (a *CloudMigrationServiceApiService) CreatePushMigration(ctx context.Context, groupId string, liveMigrationRequest *LiveMigrationRequest) CreatePushMigrationApiRequest {
375+
func (a *CloudMigrationServiceApiService) CreatePushMigration(ctx context.Context, groupId string, liveMigrationRequest20240530 *LiveMigrationRequest20240530) CreatePushMigrationApiRequest {
376376
return CreatePushMigrationApiRequest{
377-
ApiService: a,
378-
ctx: ctx,
379-
groupId: groupId,
380-
liveMigrationRequest: liveMigrationRequest,
377+
ApiService: a,
378+
ctx: ctx,
379+
groupId: groupId,
380+
liveMigrationRequest20240530: liveMigrationRequest20240530,
381381
}
382382
}
383383

@@ -403,8 +403,8 @@ func (a *CloudMigrationServiceApiService) CreatePushMigrationExecute(r CreatePus
403403
localVarHeaderParams := make(map[string]string)
404404
localVarQueryParams := url.Values{}
405405
localVarFormParams := url.Values{}
406-
if r.liveMigrationRequest == nil {
407-
return localVarReturnValue, nil, reportError("liveMigrationRequest is required and must be specified")
406+
if r.liveMigrationRequest20240530 == nil {
407+
return localVarReturnValue, nil, reportError("liveMigrationRequest20240530 is required and must be specified")
408408
}
409409

410410
// to determine the Content-Type header
@@ -425,7 +425,7 @@ func (a *CloudMigrationServiceApiService) CreatePushMigrationExecute(r CreatePus
425425
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
426426
}
427427
// body params
428-
localVarPostBody = r.liveMigrationRequest
428+
localVarPostBody = r.liveMigrationRequest20240530
429429
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
430430
if err != nil {
431431
return localVarReturnValue, nil, err
@@ -1015,23 +1015,23 @@ func (a *CloudMigrationServiceApiService) ListSourceProjectsExecute(r ListSource
10151015
}
10161016

10171017
type ValidateMigrationApiRequest struct {
1018-
ctx context.Context
1019-
ApiService CloudMigrationServiceApi
1020-
groupId string
1021-
liveMigrationRequest *LiveMigrationRequest
1018+
ctx context.Context
1019+
ApiService CloudMigrationServiceApi
1020+
groupId string
1021+
liveMigrationRequest20240530 *LiveMigrationRequest20240530
10221022
}
10231023

10241024
type ValidateMigrationApiParams struct {
1025-
GroupId string
1026-
LiveMigrationRequest *LiveMigrationRequest
1025+
GroupId string
1026+
LiveMigrationRequest20240530 *LiveMigrationRequest20240530
10271027
}
10281028

10291029
func (a *CloudMigrationServiceApiService) ValidateMigrationWithParams(ctx context.Context, args *ValidateMigrationApiParams) ValidateMigrationApiRequest {
10301030
return ValidateMigrationApiRequest{
1031-
ApiService: a,
1032-
ctx: ctx,
1033-
groupId: args.GroupId,
1034-
liveMigrationRequest: args.LiveMigrationRequest,
1031+
ApiService: a,
1032+
ctx: ctx,
1033+
groupId: args.GroupId,
1034+
liveMigrationRequest20240530: args.LiveMigrationRequest20240530,
10351035
}
10361036
}
10371037

@@ -1048,12 +1048,12 @@ Verifies whether the provided credentials, available disk space, MongoDB version
10481048
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
10491049
@return ValidateMigrationApiRequest
10501050
*/
1051-
func (a *CloudMigrationServiceApiService) ValidateMigration(ctx context.Context, groupId string, liveMigrationRequest *LiveMigrationRequest) ValidateMigrationApiRequest {
1051+
func (a *CloudMigrationServiceApiService) ValidateMigration(ctx context.Context, groupId string, liveMigrationRequest20240530 *LiveMigrationRequest20240530) ValidateMigrationApiRequest {
10521052
return ValidateMigrationApiRequest{
1053-
ApiService: a,
1054-
ctx: ctx,
1055-
groupId: groupId,
1056-
liveMigrationRequest: liveMigrationRequest,
1053+
ApiService: a,
1054+
ctx: ctx,
1055+
groupId: groupId,
1056+
liveMigrationRequest20240530: liveMigrationRequest20240530,
10571057
}
10581058
}
10591059

@@ -1079,8 +1079,8 @@ func (a *CloudMigrationServiceApiService) ValidateMigrationExecute(r ValidateMig
10791079
localVarHeaderParams := make(map[string]string)
10801080
localVarQueryParams := url.Values{}
10811081
localVarFormParams := url.Values{}
1082-
if r.liveMigrationRequest == nil {
1083-
return localVarReturnValue, nil, reportError("liveMigrationRequest is required and must be specified")
1082+
if r.liveMigrationRequest20240530 == nil {
1083+
return localVarReturnValue, nil, reportError("liveMigrationRequest20240530 is required and must be specified")
10841084
}
10851085

10861086
// to determine the Content-Type header
@@ -1101,7 +1101,7 @@ func (a *CloudMigrationServiceApiService) ValidateMigrationExecute(r ValidateMig
11011101
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
11021102
}
11031103
// body params
1104-
localVarPostBody = r.liveMigrationRequest
1104+
localVarPostBody = r.liveMigrationRequest20240530
11051105
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
11061106
if err != nil {
11071107
return localVarReturnValue, nil, err

0 commit comments

Comments
 (0)