Skip to content

Commit d853a24

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

File tree

177 files changed

+1927
-1001
lines changed

Some content is hidden

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

177 files changed

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

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

admin/api_teams.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ import (
1313
type TeamsApi interface {
1414

1515
/*
16-
AddGroupTeams Add One Team to One Project
16+
AddGroupTeams Add Multiple Teams to One Project
1717
18-
Adds one team to the specified project. All members of the team share the same project access. MongoDB Cloud limits the number of users to a maximum of 100 teams per project and a maximum of 250 teams per organization. To use this resource, the requesting Service Account or API Key must have the Project Owner role.
18+
Adds multiple teams to the specified project. All members of a team share the same project access. MongoDB Cloud limits the number of users to a maximum of 100 teams per project and a maximum of 250 teams per organization. To use this resource, the requesting Service Account or API Key must have the Project Owner role.
1919
2020
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
2121
@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.
22-
@param teamRole Team to add to the specified project.
22+
@param teamRole Teams and their roles to be added to the specified project.
2323
@return AddGroupTeamsApiRequest
2424
*/
2525
AddGroupTeams(ctx context.Context, groupId string, teamRole *[]TeamRole) AddGroupTeamsApiRequest
2626
/*
27-
AddGroupTeams Add One Team to One Project
27+
AddGroupTeams Add Multiple Teams to One Project
2828
2929
3030
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@@ -368,9 +368,9 @@ func (r AddGroupTeamsApiRequest) Execute() (*PaginatedTeamRole, *http.Response,
368368
}
369369

370370
/*
371-
AddGroupTeams Add One Team to One Project
371+
AddGroupTeams Add Multiple Teams to One Project
372372
373-
Adds one team to the specified project. All members of the team share the same project access. MongoDB Cloud limits the number of users to a maximum of 100 teams per project and a maximum of 250 teams per organization. To use this resource, the requesting Service Account or API Key must have the Project Owner role.
373+
Adds multiple teams to the specified project. All members of a team share the same project access. MongoDB Cloud limits the number of users to a maximum of 100 teams per project and a maximum of 250 teams per organization. To use this resource, the requesting Service Account or API Key must have the Project Owner role.
374374
375375
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
376376
@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.

admin/api_third_party_integrations.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type ThirdPartyIntegrationsApi interface {
6464
/*
6565
GetGroupIntegration Return One Third-Party Service Integration
6666
67-
Returns the settings for configuring integration with one third-party service. These settings apply to all databases managed in one MongoDB Cloud project. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role. Viewing log export to S3, Splunk, and Datadog is currently in preview. Please contact your Customer Success Manager (CSM) for access.
67+
Returns the settings for configuring integration with one third-party service. These settings apply to all databases managed in one MongoDB Cloud project. To use this resource, the requesting Service Account or API Key must have the Project Read Only role. Viewing log export to S3, Splunk, and Datadog is currently in preview. Please contact your Customer Success Manager (CSM) for access.
6868
6969
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
7070
@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.
@@ -88,7 +88,7 @@ type ThirdPartyIntegrationsApi interface {
8888
/*
8989
ListGroupIntegrations Return All Active Third-Party Service Integrations
9090
91-
Returns the settings that permit integrations with all configured third-party services. These settings apply to all databases managed in one MongoDB Cloud project. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
91+
Returns the settings that permit integrations with all configured third-party services. These settings apply to all databases managed in one MongoDB Cloud project. To use this resource, the requesting Service Account or API Key must have the Project Read Only role.
9292
9393
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
9494
@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.
@@ -451,7 +451,7 @@ func (r GetGroupIntegrationApiRequest) Execute() (*ThirdPartyIntegration, *http.
451451
/*
452452
GetGroupIntegration Return One Third-Party Service Integration
453453
454-
Returns the settings for configuring integration with one third-party service. These settings apply to all databases managed in one MongoDB Cloud project. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role. Viewing log export to S3, Splunk, and Datadog is currently in preview. Please contact your Customer Success Manager (CSM) for access.
454+
Returns the settings for configuring integration with one third-party service. These settings apply to all databases managed in one MongoDB Cloud project. To use this resource, the requesting Service Account or API Key must have the Project Read Only role. Viewing log export to S3, Splunk, and Datadog is currently in preview. Please contact your Customer Success Manager (CSM) for access.
455455
456456
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
457457
@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.
@@ -598,7 +598,7 @@ func (r ListGroupIntegrationsApiRequest) Execute() (*PaginatedIntegration, *http
598598
/*
599599
ListGroupIntegrations Return All Active Third-Party Service Integrations
600600
601-
Returns the settings that permit integrations with all configured third-party services. These settings apply to all databases managed in one MongoDB Cloud project. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
601+
Returns the settings that permit integrations with all configured third-party services. These settings apply to all databases managed in one MongoDB Cloud project. To use this resource, the requesting Service Account or API Key must have the Project Read Only role.
602602
603603
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
604604
@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.

admin/atlas_client.go

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

33
import (
44
"context"
@@ -7,9 +7,9 @@ import (
77
"strings"
88

99
"github.com/mongodb-forks/digest"
10-
"go.mongodb.org/atlas-sdk/v20250312009/auth"
11-
"go.mongodb.org/atlas-sdk/v20250312009/auth/clientcredentials"
12-
"go.mongodb.org/atlas-sdk/v20250312009/internal/core"
10+
"go.mongodb.org/atlas-sdk/v20250312010/auth"
11+
"go.mongodb.org/atlas-sdk/v20250312010/auth/clientcredentials"
12+
"go.mongodb.org/atlas-sdk/v20250312010/internal/core"
1313
)
1414

1515
const (

admin/model_api_atlas_cluster_advanced_configuration.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ package admin
66
type ApiAtlasClusterAdvancedConfiguration struct {
77
// The custom OpenSSL cipher suite list for TLS 1.2. This field is only valid when `tlsCipherConfigMode` is set to `CUSTOM`.
88
CustomOpensslCipherConfigTls12 *[]string `json:"customOpensslCipherConfigTls12,omitempty"`
9+
// The custom OpenSSL cipher suite list for TLS 1.3. This field is only valid when `tlsCipherConfigMode` is set to `CUSTOM`.
10+
CustomOpensslCipherConfigTls13 *[]string `json:"customOpensslCipherConfigTls13,omitempty"`
911
// Minimum Transport Layer Security (TLS) version that the cluster accepts for incoming connections. Clusters using TLS 1.0 or 1.1 should consider setting TLS 1.2 as the minimum TLS protocol version.
1012
MinimumEnabledTlsProtocol *string `json:"minimumEnabledTlsProtocol,omitempty"`
1113
// The TLS cipher suite configuration mode. The default mode uses the default cipher suites. The custom mode allows you to specify custom cipher suites for both TLS 1.2 and TLS 1.3.
@@ -62,6 +64,39 @@ func (o *ApiAtlasClusterAdvancedConfiguration) SetCustomOpensslCipherConfigTls12
6264
o.CustomOpensslCipherConfigTls12 = &v
6365
}
6466

67+
// GetCustomOpensslCipherConfigTls13 returns the CustomOpensslCipherConfigTls13 field value if set, zero value otherwise
68+
func (o *ApiAtlasClusterAdvancedConfiguration) GetCustomOpensslCipherConfigTls13() []string {
69+
if o == nil || IsNil(o.CustomOpensslCipherConfigTls13) {
70+
var ret []string
71+
return ret
72+
}
73+
return *o.CustomOpensslCipherConfigTls13
74+
}
75+
76+
// GetCustomOpensslCipherConfigTls13Ok returns a tuple with the CustomOpensslCipherConfigTls13 field value if set, nil otherwise
77+
// and a boolean to check if the value has been set.
78+
func (o *ApiAtlasClusterAdvancedConfiguration) GetCustomOpensslCipherConfigTls13Ok() (*[]string, bool) {
79+
if o == nil || IsNil(o.CustomOpensslCipherConfigTls13) {
80+
return nil, false
81+
}
82+
83+
return o.CustomOpensslCipherConfigTls13, true
84+
}
85+
86+
// HasCustomOpensslCipherConfigTls13 returns a boolean if a field has been set.
87+
func (o *ApiAtlasClusterAdvancedConfiguration) HasCustomOpensslCipherConfigTls13() bool {
88+
if o != nil && !IsNil(o.CustomOpensslCipherConfigTls13) {
89+
return true
90+
}
91+
92+
return false
93+
}
94+
95+
// SetCustomOpensslCipherConfigTls13 gets a reference to the given []string and assigns it to the CustomOpensslCipherConfigTls13 field.
96+
func (o *ApiAtlasClusterAdvancedConfiguration) SetCustomOpensslCipherConfigTls13(v []string) {
97+
o.CustomOpensslCipherConfigTls13 = &v
98+
}
99+
65100
// GetMinimumEnabledTlsProtocol returns the MinimumEnabledTlsProtocol field value if set, zero value otherwise
66101
func (o *ApiAtlasClusterAdvancedConfiguration) GetMinimumEnabledTlsProtocol() string {
67102
if o == nil || IsNil(o.MinimumEnabledTlsProtocol) {

admin/model_backup_restore_job.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ type BackupRestoreJob struct {
2424
// Read only field.
2525
Created *time.Time `json:"created,omitempty"`
2626
Delivery BackupRestoreJobDelivery `json:"delivery"`
27+
// Unique 24-hexadecimal digit string that identifies the an imported deployment job. This parameter exists when restoring from an imported snapshot/clustershot.
28+
// Read only field.
29+
DeploymentJobId *string `json:"deploymentJobId,omitempty"`
2730
// Flag that indicates whether someone encrypted the data in the restored snapshot.
2831
// Read only field.
2932
EncryptionEnabled *bool `json:"encryptionEnabled,omitempty"`
@@ -266,6 +269,39 @@ func (o *BackupRestoreJob) SetDelivery(v BackupRestoreJobDelivery) {
266269
o.Delivery = v
267270
}
268271

272+
// GetDeploymentJobId returns the DeploymentJobId field value if set, zero value otherwise
273+
func (o *BackupRestoreJob) GetDeploymentJobId() string {
274+
if o == nil || IsNil(o.DeploymentJobId) {
275+
var ret string
276+
return ret
277+
}
278+
return *o.DeploymentJobId
279+
}
280+
281+
// GetDeploymentJobIdOk returns a tuple with the DeploymentJobId field value if set, nil otherwise
282+
// and a boolean to check if the value has been set.
283+
func (o *BackupRestoreJob) GetDeploymentJobIdOk() (*string, bool) {
284+
if o == nil || IsNil(o.DeploymentJobId) {
285+
return nil, false
286+
}
287+
288+
return o.DeploymentJobId, true
289+
}
290+
291+
// HasDeploymentJobId returns a boolean if a field has been set.
292+
func (o *BackupRestoreJob) HasDeploymentJobId() bool {
293+
if o != nil && !IsNil(o.DeploymentJobId) {
294+
return true
295+
}
296+
297+
return false
298+
}
299+
300+
// SetDeploymentJobId gets a reference to the given string and assigns it to the DeploymentJobId field.
301+
func (o *BackupRestoreJob) SetDeploymentJobId(v string) {
302+
o.DeploymentJobId = &v
303+
}
304+
269305
// GetEncryptionEnabled returns the EncryptionEnabled field value if set, zero value otherwise
270306
func (o *BackupRestoreJob) GetEncryptionEnabled() bool {
271307
if o == nil || IsNil(o.EncryptionEnabled) {

admin/model_cluster_description_process_args20240805.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ type ClusterDescriptionProcessArgs20240805 struct {
1010
ChunkMigrationConcurrency *int `json:"chunkMigrationConcurrency,omitempty"`
1111
// The custom OpenSSL cipher suite list for TLS 1.2. This field is only valid when `tlsCipherConfigMode` is set to `CUSTOM`.
1212
CustomOpensslCipherConfigTls12 *[]string `json:"customOpensslCipherConfigTls12,omitempty"`
13+
// The custom OpenSSL cipher suite list for TLS 1.3. This field is only valid when `tlsCipherConfigMode` is set to `CUSTOM`.
14+
CustomOpensslCipherConfigTls13 *[]string `json:"customOpensslCipherConfigTls13,omitempty"`
1315
// Default time limit in milliseconds for individual read operations to complete.
1416
DefaultMaxTimeMS *int `json:"defaultMaxTimeMS,omitempty"`
1517
// Default level of acknowledgment requested from MongoDB for write operations when none is specified by the driver.
@@ -160,6 +162,39 @@ func (o *ClusterDescriptionProcessArgs20240805) SetCustomOpensslCipherConfigTls1
160162
o.CustomOpensslCipherConfigTls12 = &v
161163
}
162164

165+
// GetCustomOpensslCipherConfigTls13 returns the CustomOpensslCipherConfigTls13 field value if set, zero value otherwise
166+
func (o *ClusterDescriptionProcessArgs20240805) GetCustomOpensslCipherConfigTls13() []string {
167+
if o == nil || IsNil(o.CustomOpensslCipherConfigTls13) {
168+
var ret []string
169+
return ret
170+
}
171+
return *o.CustomOpensslCipherConfigTls13
172+
}
173+
174+
// GetCustomOpensslCipherConfigTls13Ok returns a tuple with the CustomOpensslCipherConfigTls13 field value if set, nil otherwise
175+
// and a boolean to check if the value has been set.
176+
func (o *ClusterDescriptionProcessArgs20240805) GetCustomOpensslCipherConfigTls13Ok() (*[]string, bool) {
177+
if o == nil || IsNil(o.CustomOpensslCipherConfigTls13) {
178+
return nil, false
179+
}
180+
181+
return o.CustomOpensslCipherConfigTls13, true
182+
}
183+
184+
// HasCustomOpensslCipherConfigTls13 returns a boolean if a field has been set.
185+
func (o *ClusterDescriptionProcessArgs20240805) HasCustomOpensslCipherConfigTls13() bool {
186+
if o != nil && !IsNil(o.CustomOpensslCipherConfigTls13) {
187+
return true
188+
}
189+
190+
return false
191+
}
192+
193+
// SetCustomOpensslCipherConfigTls13 gets a reference to the given []string and assigns it to the CustomOpensslCipherConfigTls13 field.
194+
func (o *ClusterDescriptionProcessArgs20240805) SetCustomOpensslCipherConfigTls13(v []string) {
195+
o.CustomOpensslCipherConfigTls13 = &v
196+
}
197+
163198
// GetDefaultMaxTimeMS returns the DefaultMaxTimeMS field value if set, zero value otherwise
164199
func (o *ClusterDescriptionProcessArgs20240805) GetDefaultMaxTimeMS() int {
165200
if o == nil || IsNil(o.DefaultMaxTimeMS) {

admin/model_cluster_outage_simulation.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ type ClusterOutageSimulation struct {
1111
// Human-readable label that identifies the cluster that undergoes outage simulation.
1212
// Read only field.
1313
ClusterName *string `json:"clusterName,omitempty"`
14+
// Date and time when MongoDB Cloud expires the outage simulation. This parameter expresses its value in the ISO 8601 timestamp format in UTC. If not provided, defaults to 3 days from the start date.
15+
// Read only field.
16+
ExpirationDate *time.Time `json:"expirationDate,omitempty"`
1417
// Unique 24-hexadecimal character string that identifies the project that contains the cluster to undergo outage simulation.
1518
// Read only field.
1619
GroupId *string `json:"groupId,omitempty"`
@@ -77,6 +80,39 @@ func (o *ClusterOutageSimulation) SetClusterName(v string) {
7780
o.ClusterName = &v
7881
}
7982

83+
// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise
84+
func (o *ClusterOutageSimulation) GetExpirationDate() time.Time {
85+
if o == nil || IsNil(o.ExpirationDate) {
86+
var ret time.Time
87+
return ret
88+
}
89+
return *o.ExpirationDate
90+
}
91+
92+
// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise
93+
// and a boolean to check if the value has been set.
94+
func (o *ClusterOutageSimulation) GetExpirationDateOk() (*time.Time, bool) {
95+
if o == nil || IsNil(o.ExpirationDate) {
96+
return nil, false
97+
}
98+
99+
return o.ExpirationDate, true
100+
}
101+
102+
// HasExpirationDate returns a boolean if a field has been set.
103+
func (o *ClusterOutageSimulation) HasExpirationDate() bool {
104+
if o != nil && !IsNil(o.ExpirationDate) {
105+
return true
106+
}
107+
108+
return false
109+
}
110+
111+
// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field.
112+
func (o *ClusterOutageSimulation) SetExpirationDate(v time.Time) {
113+
o.ExpirationDate = &v
114+
}
115+
80116
// GetGroupId returns the GroupId field value if set, zero value otherwise
81117
func (o *ClusterOutageSimulation) GetGroupId() string {
82118
if o == nil || IsNil(o.GroupId) {

0 commit comments

Comments
 (0)