Skip to content

Commit 15f5a99

Browse files
APIBot: SDK update based on recent changes in Atlas API (#362)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wtrocki <[email protected]>
1 parent 08193a8 commit 15f5a99

File tree

141 files changed

+2283
-683
lines changed

Some content is hidden

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

141 files changed

+2283
-683
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/v20240530003/admin:
9+
go.mongodb.org/atlas-sdk/v20240530004/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/v20240530003
15+
go get go.mongodb.org/atlas-sdk/v20240530004
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/v20240530003/admin"
24+
import "go.mongodb.org/atlas-sdk/v20240530004/admin"
2525

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

admin/api_events.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type EventsApi interface {
8686
ListEventTypesWithParams(ctx context.Context, args *ListEventTypesApiParams) ListEventTypesApiRequest
8787

8888
// Method available only for mocking purposes
89-
ListEventTypesExecute(r ListEventTypesApiRequest) ([]EventTypeDetails, *http.Response, error)
89+
ListEventTypesExecute(r ListEventTypesApiRequest) (*PaginatedEventTypeDetailsResponse, *http.Response, error)
9090

9191
/*
9292
ListOrganizationEvents Return All Events from One Organization
@@ -454,7 +454,7 @@ func (r ListEventTypesApiRequest) PageNum(pageNum int) ListEventTypesApiRequest
454454
return r
455455
}
456456

457-
func (r ListEventTypesApiRequest) Execute() ([]EventTypeDetails, *http.Response, error) {
457+
func (r ListEventTypesApiRequest) Execute() (*PaginatedEventTypeDetailsResponse, *http.Response, error) {
458458
return r.ApiService.ListEventTypesExecute(r)
459459
}
460460

@@ -475,13 +475,13 @@ func (a *EventsApiService) ListEventTypes(ctx context.Context) ListEventTypesApi
475475

476476
// Execute executes the request
477477
//
478-
// @return []EventTypeDetails
479-
func (a *EventsApiService) ListEventTypesExecute(r ListEventTypesApiRequest) ([]EventTypeDetails, *http.Response, error) {
478+
// @return PaginatedEventTypeDetailsResponse
479+
func (a *EventsApiService) ListEventTypesExecute(r ListEventTypesApiRequest) (*PaginatedEventTypeDetailsResponse, *http.Response, error) {
480480
var (
481481
localVarHTTPMethod = http.MethodGet
482482
localVarPostBody interface{}
483483
formFiles []formFile
484-
localVarReturnValue []EventTypeDetails
484+
localVarReturnValue *PaginatedEventTypeDetailsResponse
485485
)
486486

487487
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.ListEventTypes")

admin/api_root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type RootApi interface {
3636
/*
3737
ReturnAllControlPlaneIPAddresses Return All Control Plane IP Addresses
3838
39-
Returns all control plane IP addresses.
39+
Returns all control plane IP addresses. Currently, inbound Atlas control plane IP addresses are not yet available. The inbound IP address list in your API response is empty. To manually retrieve a list of inbound Atlas control plane IP addresses, see [Required Inbound Access](https://www.mongodb.com/docs/atlas/setup-cluster-security/#std-label-atlas-required-inbound-access).
4040
4141
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
4242
@return ReturnAllControlPlaneIPAddressesApiRequest
@@ -186,7 +186,7 @@ func (r ReturnAllControlPlaneIPAddressesApiRequest) Execute() (*ControlPlaneIPAd
186186
/*
187187
ReturnAllControlPlaneIPAddresses Return All Control Plane IP Addresses
188188
189-
Returns all control plane IP addresses.
189+
Returns all control plane IP addresses. Currently, inbound Atlas control plane IP addresses are not yet available. The inbound IP address list in your API response is empty. To manually retrieve a list of inbound Atlas control plane IP addresses, see [Required Inbound Access](https://www.mongodb.com/docs/atlas/setup-cluster-security/#std-label-atlas-required-inbound-access).
190190
191191
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
192192
@return ReturnAllControlPlaneIPAddressesApiRequest

0 commit comments

Comments
 (0)