Skip to content

Commit 64d1d36

Browse files
svc-apix-Botgithub-actions[bot]wtrocki
authored
APIBot: SDK update based on recent changes in Atlas API (#703)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wtrocki <[email protected]>
1 parent e7ec796 commit 64d1d36

File tree

201 files changed

+10017
-1647
lines changed

Some content is hidden

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

201 files changed

+10017
-1647
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/v20250312010/admin:
9+
go.mongodb.org/atlas-sdk/v20250312011/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/v20250312010
15+
go get go.mongodb.org/atlas-sdk/v20250312011
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/v20250312010/admin"
24+
import "go.mongodb.org/atlas-sdk/v20250312011/admin"
2525

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

admin/api_cloud_backups.go

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ type CloudBackupsApi interface {
125125
@param clusterName Human-readable label that identifies the serverless instance whose snapshot you want to restore.
126126
@param serverlessBackupRestoreJob Restores one snapshot of one serverless instance from the specified project.
127127
@return CreateServerlessRestoreJobApiRequest
128+
129+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
128130
*/
129131
CreateServerlessRestoreJob(ctx context.Context, groupId string, clusterName string, serverlessBackupRestoreJob *ServerlessBackupRestoreJob) CreateServerlessRestoreJobApiRequest
130132
/*
@@ -134,6 +136,8 @@ type CloudBackupsApi interface {
134136
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
135137
@param CreateServerlessRestoreJobApiParams - Parameters for the request
136138
@return CreateServerlessRestoreJobApiRequest
139+
140+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
137141
*/
138142
CreateServerlessRestoreJobWithParams(ctx context.Context, args *CreateServerlessRestoreJobApiParams) CreateServerlessRestoreJobApiRequest
139143

@@ -444,6 +448,8 @@ type CloudBackupsApi interface {
444448
@param clusterName Human-readable label that identifies the serverless instance.
445449
@param snapshotId Unique 24-hexadecimal digit string that identifies the desired snapshot.
446450
@return GetServerlessBackupSnapshotApiRequest
451+
452+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
447453
*/
448454
GetServerlessBackupSnapshot(ctx context.Context, groupId string, clusterName string, snapshotId string) GetServerlessBackupSnapshotApiRequest
449455
/*
@@ -453,6 +459,8 @@ type CloudBackupsApi interface {
453459
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
454460
@param GetServerlessBackupSnapshotApiParams - Parameters for the request
455461
@return GetServerlessBackupSnapshotApiRequest
462+
463+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
456464
*/
457465
GetServerlessBackupSnapshotWithParams(ctx context.Context, args *GetServerlessBackupSnapshotApiParams) GetServerlessBackupSnapshotApiRequest
458466

@@ -471,6 +479,8 @@ type CloudBackupsApi interface {
471479
@param clusterName Human-readable label that identifies the serverless instance.
472480
@param restoreJobId Unique 24-hexadecimal digit string that identifies the restore job to return.
473481
@return GetServerlessRestoreJobApiRequest
482+
483+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
474484
*/
475485
GetServerlessRestoreJob(ctx context.Context, groupId string, clusterName string, restoreJobId string) GetServerlessRestoreJobApiRequest
476486
/*
@@ -480,6 +490,8 @@ type CloudBackupsApi interface {
480490
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
481491
@param GetServerlessRestoreJobApiParams - Parameters for the request
482492
@return GetServerlessRestoreJobApiRequest
493+
494+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
483495
*/
484496
GetServerlessRestoreJobWithParams(ctx context.Context, args *GetServerlessRestoreJobApiParams) GetServerlessRestoreJobApiRequest
485497

@@ -616,6 +628,8 @@ type CloudBackupsApi interface {
616628
@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.
617629
@param clusterName Human-readable label that identifies the serverless instance.
618630
@return ListServerlessBackupSnapshotsApiRequest
631+
632+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
619633
*/
620634
ListServerlessBackupSnapshots(ctx context.Context, groupId string, clusterName string) ListServerlessBackupSnapshotsApiRequest
621635
/*
@@ -625,6 +639,8 @@ type CloudBackupsApi interface {
625639
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
626640
@param ListServerlessBackupSnapshotsApiParams - Parameters for the request
627641
@return ListServerlessBackupSnapshotsApiRequest
642+
643+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
628644
*/
629645
ListServerlessBackupSnapshotsWithParams(ctx context.Context, args *ListServerlessBackupSnapshotsApiParams) ListServerlessBackupSnapshotsApiRequest
630646

@@ -642,6 +658,8 @@ type CloudBackupsApi interface {
642658
@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.
643659
@param clusterName Human-readable label that identifies the serverless instance.
644660
@return ListServerlessRestoreJobsApiRequest
661+
662+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
645663
*/
646664
ListServerlessRestoreJobs(ctx context.Context, groupId string, clusterName string) ListServerlessRestoreJobsApiRequest
647665
/*
@@ -651,6 +669,8 @@ type CloudBackupsApi interface {
651669
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
652670
@param ListServerlessRestoreJobsApiParams - Parameters for the request
653671
@return ListServerlessRestoreJobsApiRequest
672+
673+
Deprecated: this method has been deprecated. Please check the latest resource version for CloudBackupsApi
654674
*/
655675
ListServerlessRestoreJobsWithParams(ctx context.Context, args *ListServerlessRestoreJobsApiParams) ListServerlessRestoreJobsApiRequest
656676

@@ -1306,6 +1326,8 @@ This API can also be used on Flex clusters that were created with the [createSer
13061326
@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.
13071327
@param clusterName Human-readable label that identifies the serverless instance whose snapshot you want to restore.
13081328
@return CreateServerlessRestoreJobApiRequest
1329+
1330+
Deprecated
13091331
*/
13101332
func (a *CloudBackupsApiService) CreateServerlessRestoreJob(ctx context.Context, groupId string, clusterName string, serverlessBackupRestoreJob *ServerlessBackupRestoreJob) CreateServerlessRestoreJobApiRequest {
13111333
return CreateServerlessRestoreJobApiRequest{
@@ -1320,6 +1342,8 @@ func (a *CloudBackupsApiService) CreateServerlessRestoreJob(ctx context.Context,
13201342
// CreateServerlessRestoreJobExecute executes the request
13211343
//
13221344
// @return ServerlessBackupRestoreJob
1345+
//
1346+
// Deprecated
13231347
func (a *CloudBackupsApiService) CreateServerlessRestoreJobExecute(r CreateServerlessRestoreJobApiRequest) (*ServerlessBackupRestoreJob, *http.Response, error) {
13241348
var (
13251349
localVarHTTPMethod = http.MethodPost
@@ -2885,6 +2909,8 @@ This endpoint can also be used on Flex clusters that were created with the [crea
28852909
@param clusterName Human-readable label that identifies the serverless instance.
28862910
@param snapshotId Unique 24-hexadecimal digit string that identifies the desired snapshot.
28872911
@return GetServerlessBackupSnapshotApiRequest
2912+
2913+
Deprecated
28882914
*/
28892915
func (a *CloudBackupsApiService) GetServerlessBackupSnapshot(ctx context.Context, groupId string, clusterName string, snapshotId string) GetServerlessBackupSnapshotApiRequest {
28902916
return GetServerlessBackupSnapshotApiRequest{
@@ -2899,6 +2925,8 @@ func (a *CloudBackupsApiService) GetServerlessBackupSnapshot(ctx context.Context
28992925
// GetServerlessBackupSnapshotExecute executes the request
29002926
//
29012927
// @return ServerlessBackupSnapshot
2928+
//
2929+
// Deprecated
29022930
func (a *CloudBackupsApiService) GetServerlessBackupSnapshotExecute(r GetServerlessBackupSnapshotApiRequest) (*ServerlessBackupSnapshot, *http.Response, error) {
29032931
var (
29042932
localVarHTTPMethod = http.MethodGet
@@ -3019,6 +3047,8 @@ This API can also be used on Flex clusters that were created with the [createSer
30193047
@param clusterName Human-readable label that identifies the serverless instance.
30203048
@param restoreJobId Unique 24-hexadecimal digit string that identifies the restore job to return.
30213049
@return GetServerlessRestoreJobApiRequest
3050+
3051+
Deprecated
30223052
*/
30233053
func (a *CloudBackupsApiService) GetServerlessRestoreJob(ctx context.Context, groupId string, clusterName string, restoreJobId string) GetServerlessRestoreJobApiRequest {
30243054
return GetServerlessRestoreJobApiRequest{
@@ -3033,6 +3063,8 @@ func (a *CloudBackupsApiService) GetServerlessRestoreJob(ctx context.Context, gr
30333063
// GetServerlessRestoreJobExecute executes the request
30343064
//
30353065
// @return ServerlessBackupRestoreJob
3066+
//
3067+
// Deprecated
30363068
func (a *CloudBackupsApiService) GetServerlessRestoreJobExecute(r GetServerlessRestoreJobApiRequest) (*ServerlessBackupRestoreJob, *http.Response, error) {
30373069
var (
30383070
localVarHTTPMethod = http.MethodGet
@@ -3974,6 +4006,8 @@ This API can also be used on Flex clusters that were created with the [createSer
39744006
@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.
39754007
@param clusterName Human-readable label that identifies the serverless instance.
39764008
@return ListServerlessBackupSnapshotsApiRequest
4009+
4010+
Deprecated
39774011
*/
39784012
func (a *CloudBackupsApiService) ListServerlessBackupSnapshots(ctx context.Context, groupId string, clusterName string) ListServerlessBackupSnapshotsApiRequest {
39794013
return ListServerlessBackupSnapshotsApiRequest{
@@ -3987,6 +4021,8 @@ func (a *CloudBackupsApiService) ListServerlessBackupSnapshots(ctx context.Conte
39874021
// ListServerlessBackupSnapshotsExecute executes the request
39884022
//
39894023
// @return PaginatedApiAtlasServerlessBackupSnapshot
4024+
//
4025+
// Deprecated
39904026
func (a *CloudBackupsApiService) ListServerlessBackupSnapshotsExecute(r ListServerlessBackupSnapshotsApiRequest) (*PaginatedApiAtlasServerlessBackupSnapshot, *http.Response, error) {
39914027
var (
39924028
localVarHTTPMethod = http.MethodGet
@@ -4147,6 +4183,8 @@ This API can also be used on Flex clusters that were created with the [createSer
41474183
@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.
41484184
@param clusterName Human-readable label that identifies the serverless instance.
41494185
@return ListServerlessRestoreJobsApiRequest
4186+
4187+
Deprecated
41504188
*/
41514189
func (a *CloudBackupsApiService) ListServerlessRestoreJobs(ctx context.Context, groupId string, clusterName string) ListServerlessRestoreJobsApiRequest {
41524190
return ListServerlessRestoreJobsApiRequest{
@@ -4160,6 +4198,8 @@ func (a *CloudBackupsApiService) ListServerlessRestoreJobs(ctx context.Context,
41604198
// ListServerlessRestoreJobsExecute executes the request
41614199
//
41624200
// @return PaginatedApiAtlasServerlessBackupRestoreJob
4201+
//
4202+
// Deprecated
41634203
func (a *CloudBackupsApiService) ListServerlessRestoreJobsExecute(r ListServerlessRestoreJobsApiRequest) (*PaginatedApiAtlasServerlessBackupRestoreJob, *http.Response, error) {
41644204
var (
41654205
localVarHTTPMethod = http.MethodGet

admin/api_performance_advisor.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ type PerformanceAdvisorApi interface {
9191
@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.
9292
@param clusterName Human-readable label that identifies the cluster.
9393
@return GetServerlessAutoIndexingApiRequest
94+
95+
Deprecated: this method has been deprecated. Please check the latest resource version for PerformanceAdvisorApi
9496
*/
9597
GetServerlessAutoIndexing(ctx context.Context, groupId string, clusterName string) GetServerlessAutoIndexingApiRequest
9698
/*
@@ -100,6 +102,8 @@ type PerformanceAdvisorApi interface {
100102
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
101103
@param GetServerlessAutoIndexingApiParams - Parameters for the request
102104
@return GetServerlessAutoIndexingApiRequest
105+
106+
Deprecated: this method has been deprecated. Please check the latest resource version for PerformanceAdvisorApi
103107
*/
104108
GetServerlessAutoIndexingWithParams(ctx context.Context, args *GetServerlessAutoIndexingApiParams) GetServerlessAutoIndexingApiRequest
105109

@@ -259,6 +263,8 @@ type PerformanceAdvisorApi interface {
259263
@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.
260264
@param clusterName Human-readable label that identifies the cluster.
261265
@return SetServerlessAutoIndexingApiRequest
266+
267+
Deprecated: this method has been deprecated. Please check the latest resource version for PerformanceAdvisorApi
262268
*/
263269
SetServerlessAutoIndexing(ctx context.Context, groupId string, clusterName string) SetServerlessAutoIndexingApiRequest
264270
/*
@@ -268,6 +274,8 @@ type PerformanceAdvisorApi interface {
268274
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
269275
@param SetServerlessAutoIndexingApiParams - Parameters for the request
270276
@return SetServerlessAutoIndexingApiRequest
277+
278+
Deprecated: this method has been deprecated. Please check the latest resource version for PerformanceAdvisorApi
271279
*/
272280
SetServerlessAutoIndexingWithParams(ctx context.Context, args *SetServerlessAutoIndexingApiParams) SetServerlessAutoIndexingApiRequest
273281

@@ -620,6 +628,8 @@ Get whether the Serverless Auto Indexing feature is enabled. This endpoint retur
620628
@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.
621629
@param clusterName Human-readable label that identifies the cluster.
622630
@return GetServerlessAutoIndexingApiRequest
631+
632+
Deprecated
623633
*/
624634
func (a *PerformanceAdvisorApiService) GetServerlessAutoIndexing(ctx context.Context, groupId string, clusterName string) GetServerlessAutoIndexingApiRequest {
625635
return GetServerlessAutoIndexingApiRequest{
@@ -633,6 +643,8 @@ func (a *PerformanceAdvisorApiService) GetServerlessAutoIndexing(ctx context.Con
633643
// GetServerlessAutoIndexingExecute executes the request
634644
//
635645
// @return bool
646+
//
647+
// Deprecated
636648
func (a *PerformanceAdvisorApiService) GetServerlessAutoIndexingExecute(r GetServerlessAutoIndexingApiRequest) (bool, *http.Response, error) {
637649
var (
638650
localVarHTTPMethod = http.MethodGet
@@ -1790,6 +1802,8 @@ Set whether the Serverless Auto Indexing feature is enabled. This endpoint sets
17901802
@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.
17911803
@param clusterName Human-readable label that identifies the cluster.
17921804
@return SetServerlessAutoIndexingApiRequest
1805+
1806+
Deprecated
17931807
*/
17941808
func (a *PerformanceAdvisorApiService) SetServerlessAutoIndexing(ctx context.Context, groupId string, clusterName string) SetServerlessAutoIndexingApiRequest {
17951809
return SetServerlessAutoIndexingApiRequest{
@@ -1801,6 +1815,7 @@ func (a *PerformanceAdvisorApiService) SetServerlessAutoIndexing(ctx context.Con
18011815
}
18021816

18031817
// SetServerlessAutoIndexingExecute executes the request
1818+
// Deprecated
18041819
func (a *PerformanceAdvisorApiService) SetServerlessAutoIndexingExecute(r SetServerlessAutoIndexingApiRequest) (*http.Response, error) {
18051820
var (
18061821
localVarHTTPMethod = http.MethodPost

0 commit comments

Comments
 (0)