Skip to content

Commit bfb406e

Browse files
wtrockifmenezes
andauthored
Release v20231115002 (#237)
Co-authored-by: Filipe Constantinov Menezes <[email protected]>
1 parent 91f7960 commit bfb406e

File tree

67 files changed

+381
-367
lines changed

Some content is hidden

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

67 files changed

+381
-367
lines changed

README.md

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

1313
```terminal
14-
go get go.mongodb.org/atlas-sdk/v20231115001
14+
go get go.mongodb.org/atlas-sdk/v20231115002
1515
```
1616

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

2222
```go
23-
import "go.mongodb.org/atlas-sdk/v20231115001/admin"
23+
import "go.mongodb.org/atlas-sdk/v20231115002/admin"
2424

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

admin/atlas_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package admin // import "go.mongodb.org/atlas-sdk/v20231115001/admin"
1+
package admin // import "go.mongodb.org/atlas-sdk/v20231115002/admin"
22

33
import (
44
"errors"
@@ -8,7 +8,7 @@ import (
88
"strings"
99

1010
"github.com/mongodb-forks/digest"
11-
"go.mongodb.org/atlas-sdk/v20231115001/internal/core"
11+
"go.mongodb.org/atlas-sdk/v20231115002/internal/core"
1212
)
1313

1414
const (

auth/device_flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strings"
2323
"time"
2424

25-
core "go.mongodb.org/atlas-sdk/v20231115001/internal/core"
25+
core "go.mongodb.org/atlas-sdk/v20231115002/internal/core"
2626
)
2727

2828
const authExpiredError = "DEVICE_AUTHORIZATION_EXPIRED"

auth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"runtime"
2727
"strings"
2828

29-
"go.mongodb.org/atlas-sdk/v20231115001/internal/core"
29+
"go.mongodb.org/atlas-sdk/v20231115002/internal/core"
3030
)
3131

3232
const defaultBaseURL = "https://cloud.mongodb.com/"

auth/oauth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"reflect"
2525
"testing"
2626

27-
core "go.mongodb.org/atlas-sdk/v20231115001/internal/core"
27+
core "go.mongodb.org/atlas-sdk/v20231115002/internal/core"
2828
)
2929

3030
const (

docs/doc_2_error_handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Errors are represented by [ApiErrorObject](https://github.com/mongodb/atlas-sdk-
1010
To fetch the error object, execute the following:
1111

1212
```go
13-
import "go.mongodb.org/atlas-sdk/v20231115001/admin"
13+
import "go.mongodb.org/atlas-sdk/v20231115002/admin"
1414

1515
projects, response, err := admin.ProjectsApi.ListProjects(ctx).Execute()
1616
apiError, ok := admin.AsError(err)
@@ -22,7 +22,7 @@ fmt.Println(apiError)
2222
To check for the existence of a specific error code, execute the following:
2323

2424
```go
25-
import admin "go.mongodb.org/atlas-sdk/v20231115001/admin"
25+
import admin "go.mongodb.org/atlas-sdk/v20231115002/admin"
2626

2727
projects, response, err := admin.ProjectsApi.ListProjects(ctx).Execute()
2828
if admin.IsErrorCode(err, "code"){

docs/doc_3_migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Atlas Go SDK doesn't rely on the deprecated [go-client-mongodb-atlas](https:
1818
The Atlas Go SDK has different methods for the initialization of the clients:
1919

2020
```go
21-
import admin "go.mongodb.org/atlas-sdk/v20231115001/admin"
21+
import admin "go.mongodb.org/atlas-sdk/v20231115002/admin"
2222
sdk, err := admin.NewClient(
2323
// Authentication using ApiKey and ApiSecret
2424
admin.UseDigestAuth(apiKey, apiSecret))

docs/doc_4_authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Construct a new Atlas SDK client, then use the services on the client to
1111
access different parts of the Atlas Admin API. For example:
1212

1313
```go
14-
import "go.mongodb.org/atlas-sdk/v20231115001/admin"
14+
import "go.mongodb.org/atlas-sdk/v20231115002/admin"
1515

1616
func example() {
1717
ctx := context.Background()

docs/docs/AWSClustersDNSApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"fmt"
2727
"os"
2828

29-
"go.mongodb.org/atlas-sdk/v20231115001/admin"
29+
"go.mongodb.org/atlas-sdk/v20231115002/admin"
3030
)
3131

3232
func main() {
@@ -99,7 +99,7 @@ import (
9999
"fmt"
100100
"os"
101101

102-
"go.mongodb.org/atlas-sdk/v20231115001/admin"
102+
"go.mongodb.org/atlas-sdk/v20231115002/admin"
103103
)
104104

105105
func main() {

docs/docs/AccessTrackingApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"fmt"
2727
"os"
2828

29-
"go.mongodb.org/atlas-sdk/v20231115001/admin"
29+
"go.mongodb.org/atlas-sdk/v20231115002/admin"
3030
)
3131

3232
func main() {
@@ -112,7 +112,7 @@ import (
112112
"fmt"
113113
"os"
114114

115-
"go.mongodb.org/atlas-sdk/v20231115001/admin"
115+
"go.mongodb.org/atlas-sdk/v20231115002/admin"
116116
)
117117

118118
func main() {

0 commit comments

Comments
 (0)