Skip to content

Commit 9b4a386

Browse files
APIBot: SDK update based on recent changes in Atlas API (#295)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wtrocki <[email protected]>
1 parent 87e8aac commit 9b4a386

27 files changed

+1113
-114
lines changed

admin/api_atlas_search.go

+14-14
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ type AtlasSearchApi interface {
1616
/*
1717
CreateAtlasSearchDeployment Create Search Nodes
1818
19-
[experimental] Creates search nodes for the specified cluster.
19+
[experimental] Creates Search Nodes for the specified cluster.
2020
2121
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
2222
@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.
23-
@param clusterName Label that identifies the cluster to create search nodes for.
23+
@param clusterName Label that identifies the cluster to create Search Nodes for.
2424
@return CreateAtlasSearchDeploymentApiRequest
2525
*/
2626
CreateAtlasSearchDeployment(ctx context.Context, groupId string, clusterName string, apiSearchDeploymentRequest *ApiSearchDeploymentRequest) CreateAtlasSearchDeploymentApiRequest
@@ -64,7 +64,7 @@ type AtlasSearchApi interface {
6464
/*
6565
DeleteAtlasSearchDeployment Delete Search Nodes
6666
67-
[experimental] Deletes the search nodes for the specified cluster.
67+
[experimental] Deletes the Search Nodes for the specified cluster.
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.
@@ -113,11 +113,11 @@ type AtlasSearchApi interface {
113113
/*
114114
GetAtlasSearchDeployment Return Search Nodes
115115
116-
[experimental] Return the search nodes for the specified cluster.
116+
[experimental] Return the Search Nodes for the specified cluster.
117117
118118
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
119119
@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.
120-
@param clusterName Label that identifies the cluster to return the search nodes for.
120+
@param clusterName Label that identifies the cluster to return the Search Nodes for.
121121
@return GetAtlasSearchDeploymentApiRequest
122122
*/
123123
GetAtlasSearchDeployment(ctx context.Context, groupId string, clusterName string) GetAtlasSearchDeploymentApiRequest
@@ -188,11 +188,11 @@ type AtlasSearchApi interface {
188188
/*
189189
UpdateAtlasSearchDeployment Update Search Nodes
190190
191-
[experimental] Updates the search nodes for the specified cluster.
191+
[experimental] Updates the Search Nodes for the specified cluster.
192192
193193
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
194194
@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.
195-
@param clusterName Label that identifies the cluster to update the search nodes for.
195+
@param clusterName Label that identifies the cluster to update the Search Nodes for.
196196
@return UpdateAtlasSearchDeploymentApiRequest
197197
*/
198198
UpdateAtlasSearchDeployment(ctx context.Context, groupId string, clusterName string, apiSearchDeploymentRequest *ApiSearchDeploymentRequest) UpdateAtlasSearchDeploymentApiRequest
@@ -269,11 +269,11 @@ func (r CreateAtlasSearchDeploymentApiRequest) Execute() (*ApiSearchDeploymentRe
269269
/*
270270
CreateAtlasSearchDeployment Create Search Nodes
271271
272-
[experimental] Creates search nodes for the specified cluster.
272+
[experimental] Creates Search Nodes for the specified cluster.
273273
274274
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
275275
@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.
276-
@param clusterName Label that identifies the cluster to create search nodes for.
276+
@param clusterName Label that identifies the cluster to create Search Nodes for.
277277
@return CreateAtlasSearchDeploymentApiRequest
278278
*/
279279
func (a *AtlasSearchApiService) CreateAtlasSearchDeployment(ctx context.Context, groupId string, clusterName string, apiSearchDeploymentRequest *ApiSearchDeploymentRequest) CreateAtlasSearchDeploymentApiRequest {
@@ -544,7 +544,7 @@ func (r DeleteAtlasSearchDeploymentApiRequest) Execute() (*http.Response, error)
544544
/*
545545
DeleteAtlasSearchDeployment Delete Search Nodes
546546
547-
[experimental] Deletes the search nodes for the specified cluster.
547+
[experimental] Deletes the Search Nodes for the specified cluster.
548548
549549
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
550550
@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.
@@ -798,11 +798,11 @@ func (r GetAtlasSearchDeploymentApiRequest) Execute() (*ApiSearchDeploymentRespo
798798
/*
799799
GetAtlasSearchDeployment Return Search Nodes
800800
801-
[experimental] Return the search nodes for the specified cluster.
801+
[experimental] Return the Search Nodes for the specified cluster.
802802
803803
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
804804
@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.
805-
@param clusterName Label that identifies the cluster to return the search nodes for.
805+
@param clusterName Label that identifies the cluster to return the Search Nodes for.
806806
@return GetAtlasSearchDeploymentApiRequest
807807
*/
808808
func (a *AtlasSearchApiService) GetAtlasSearchDeployment(ctx context.Context, groupId string, clusterName string) GetAtlasSearchDeploymentApiRequest {
@@ -1209,11 +1209,11 @@ func (r UpdateAtlasSearchDeploymentApiRequest) Execute() (*ApiSearchDeploymentRe
12091209
/*
12101210
UpdateAtlasSearchDeployment Update Search Nodes
12111211
1212-
[experimental] Updates the search nodes for the specified cluster.
1212+
[experimental] Updates the Search Nodes for the specified cluster.
12131213
12141214
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
12151215
@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.
1216-
@param clusterName Label that identifies the cluster to update the search nodes for.
1216+
@param clusterName Label that identifies the cluster to update the Search Nodes for.
12171217
@return UpdateAtlasSearchDeploymentApiRequest
12181218
*/
12191219
func (a *AtlasSearchApiService) UpdateAtlasSearchDeployment(ctx context.Context, groupId string, clusterName string, apiSearchDeploymentRequest *ApiSearchDeploymentRequest) UpdateAtlasSearchDeploymentApiRequest {

admin/api_private_endpoint_services.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type PrivateEndpointServicesApi interface {
4141
/*
4242
CreatePrivateEndpointService Create One Private Endpoint Service for One Provider
4343
44-
Creates one private endpoint service for the specified cloud service provider. This cloud service provider manages the private endpoint service for the project. When you create a private endpoint service, MongoDB Cloud creates a network container in the project for the cloud provider for which you create the private endpoint service if one doesn't already exist. To use this resource, the requesting API Key must have the Project Owner role.
44+
Creates one private endpoint service for the specified cloud service provider. This cloud service provider manages the private endpoint service for the project. When you create a private endpoint service, MongoDB Cloud creates a network container in the project for the cloud provider for which you create the private endpoint service if one doesn't already exist. To learn more about private endpoint terminology in MongoDB Cloud, see Private Endpoint Concepts. To use this resource, the requesting API Key must have the Project Owner role.
4545
4646
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
4747
@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.
@@ -410,7 +410,7 @@ func (r CreatePrivateEndpointServiceApiRequest) Execute() (*EndpointService, *ht
410410
/*
411411
CreatePrivateEndpointService Create One Private Endpoint Service for One Provider
412412
413-
Creates one private endpoint service for the specified cloud service provider. This cloud service provider manages the private endpoint service for the project. When you create a private endpoint service, MongoDB Cloud creates a network container in the project for the cloud provider for which you create the private endpoint service if one doesn't already exist. To use this resource, the requesting API Key must have the Project Owner role.
413+
Creates one private endpoint service for the specified cloud service provider. This cloud service provider manages the private endpoint service for the project. When you create a private endpoint service, MongoDB Cloud creates a network container in the project for the cloud provider for which you create the private endpoint service if one doesn't already exist. To learn more about private endpoint terminology in MongoDB Cloud, see Private Endpoint Concepts. To use this resource, the requesting API Key must have the Project Owner role.
414414
415415
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
416416
@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/model_api_search_deployment_request.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
// ApiSearchDeploymentRequest struct for ApiSearchDeploymentRequest
1010
type ApiSearchDeploymentRequest struct {
11-
// List of settings that configure the search nodes for your cluster.
11+
// List of settings that configure the Search Nodes for your cluster.
1212
Specs []ApiSearchDeploymentSpec `json:"specs"`
1313
}
1414

admin/model_api_search_deployment_response.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type ApiSearchDeploymentResponse struct {
1414
// Unique 24-hexadecimal digit string that identifies the search deployment.
1515
// Read only field.
1616
Id *string `json:"id,omitempty"`
17-
// List of settings that configure the search nodes for your cluster.
17+
// List of settings that configure the Search Nodes for your cluster.
1818
// Read only field.
1919
Specs *[]ApiSearchDeploymentSpec `json:"specs,omitempty"`
2020
// Human-readable label that indicates the current operating condition of this search deployment.

admin/model_api_search_deployment_spec.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88

99
// ApiSearchDeploymentSpec struct for ApiSearchDeploymentSpec
1010
type ApiSearchDeploymentSpec struct {
11-
// Hardware specification for the search node instance sizes.
11+
// Hardware specification for the Search Node instance sizes.
1212
InstanceSize string `json:"instanceSize"`
13-
// Number of search nodes in the cluster.
13+
// Number of Search Nodes in the cluster.
1414
NodeCount int `json:"nodeCount"`
1515
}
1616

admin/model_available_cloud_provider_region.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"encoding/json"
77
)
88

9-
// AvailableCloudProviderRegion List of regions that this cloud provider supports for this instance size.
9+
// AvailableCloudProviderRegion struct for AvailableCloudProviderRegion
1010
type AvailableCloudProviderRegion struct {
1111
// Flag that indicates whether the cloud provider sets this region as its default. AWS defaults to US_EAST_1, GCP defaults to CENTRAL_US, and AZURE defaults to US_WEST_2.
1212
// Read only field.

admin/model_cluster_cloud_provider_instance_size.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"encoding/json"
77
)
88

9-
// ClusterCloudProviderInstanceSize List of instances sizes that this cloud provider supports.
9+
// ClusterCloudProviderInstanceSize struct for ClusterCloudProviderInstanceSize
1010
type ClusterCloudProviderInstanceSize struct {
1111
// List of regions that this cloud provider supports for this instance size.
1212
// Read only field.

admin/model_federation_identity_provider.go

+42
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ type FederationIdentityProvider struct {
5050
// String enum that indicates whether the identity provider is active.
5151
Status *string `json:"status,omitempty"`
5252
// Identifier of the intended recipient of the token.
53+
Audience *string `json:"audience,omitempty"`
54+
// Identifier of the intended recipient of the token. The audienceClaim field is deprecated and will be removed in the 04/17/2024 release, use the audience field instead.
55+
// Deprecated
5356
AudienceClaim *[]string `json:"audienceClaim,omitempty"`
5457
// Client identifier that is assigned to an application by the Identity Provider.
5558
ClientId *string `json:"clientId,omitempty"`
@@ -689,7 +692,41 @@ func (o *FederationIdentityProvider) SetStatus(v string) {
689692
o.Status = &v
690693
}
691694

695+
// GetAudience returns the Audience field value if set, zero value otherwise
696+
func (o *FederationIdentityProvider) GetAudience() string {
697+
if o == nil || IsNil(o.Audience) {
698+
var ret string
699+
return ret
700+
}
701+
return *o.Audience
702+
}
703+
704+
// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise
705+
// and a boolean to check if the value has been set.
706+
func (o *FederationIdentityProvider) GetAudienceOk() (*string, bool) {
707+
if o == nil || IsNil(o.Audience) {
708+
return nil, false
709+
}
710+
711+
return o.Audience, true
712+
}
713+
714+
// HasAudience returns a boolean if a field has been set.
715+
func (o *FederationIdentityProvider) HasAudience() bool {
716+
if o != nil && !IsNil(o.Audience) {
717+
return true
718+
}
719+
720+
return false
721+
}
722+
723+
// SetAudience gets a reference to the given string and assigns it to the Audience field.
724+
func (o *FederationIdentityProvider) SetAudience(v string) {
725+
o.Audience = &v
726+
}
727+
692728
// GetAudienceClaim returns the AudienceClaim field value if set, zero value otherwise
729+
// Deprecated
693730
func (o *FederationIdentityProvider) GetAudienceClaim() []string {
694731
if o == nil || IsNil(o.AudienceClaim) {
695732
var ret []string
@@ -700,6 +737,7 @@ func (o *FederationIdentityProvider) GetAudienceClaim() []string {
700737

701738
// GetAudienceClaimOk returns a tuple with the AudienceClaim field value if set, nil otherwise
702739
// and a boolean to check if the value has been set.
740+
// Deprecated
703741
func (o *FederationIdentityProvider) GetAudienceClaimOk() (*[]string, bool) {
704742
if o == nil || IsNil(o.AudienceClaim) {
705743
return nil, false
@@ -718,6 +756,7 @@ func (o *FederationIdentityProvider) HasAudienceClaim() bool {
718756
}
719757

720758
// SetAudienceClaim gets a reference to the given []string and assigns it to the AudienceClaim field.
759+
// Deprecated
721760
func (o *FederationIdentityProvider) SetAudienceClaim(v []string) {
722761
o.AudienceClaim = &v
723762
}
@@ -909,6 +948,9 @@ func (o FederationIdentityProvider) ToMap() (map[string]interface{}, error) {
909948
if !IsNil(o.Status) {
910949
toSerialize["status"] = o.Status
911950
}
951+
if !IsNil(o.Audience) {
952+
toSerialize["audience"] = o.Audience
953+
}
912954
if !IsNil(o.AudienceClaim) {
913955
toSerialize["audienceClaim"] = o.AudienceClaim
914956
}

0 commit comments

Comments
 (0)