From 103e85c63a7218e985cd43c25d22ffa24c6b0aac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:25:39 +0000 Subject: [PATCH] APIBot: SDK update based on recent changes in Atlas API (#284) Co-authored-by: github-actions[bot] Co-authored-by: wtrocki <981838+wtrocki@users.noreply.github.com> --- README.md | 4 +- admin/api_cloud_backups.go | 16 + admin/api_clusters.go | 38 +- admin/api_federated_authentication.go | 29 +- admin/api_global_clusters.go | 44 +- admin/api_invoices.go | 4 +- admin/api_performance_advisor.go | 6 +- admin/api_programmatic_api_keys.go | 94 +-- admin/api_projects.go | 52 +- admin/api_streams.go | 178 ++++ admin/atlas_client.go | 4 +- admin/model_api_error.go | 2 +- admin/model_api_search_deployment_request.go | 36 +- admin/model_cloud_database_user.go | 2 +- admin/model_criteria.go | 2 +- admin/model_group_name.go | 78 -- admin/model_group_paginated_event.go | 2 +- admin/model_group_update.go | 116 +++ admin/model_org_paginated_event.go | 2 +- admin/model_organization_invitation.go | 4 +- ..._paginated_advanced_cluster_description.go | 2 +- admin/model_paginated_alert.go | 2 +- admin/model_paginated_alert_config.go | 2 +- admin/model_paginated_api_api_user.go | 2 +- admin/model_paginated_api_app_user.go | 2 +- admin/model_paginated_api_atlas_checkpoint.go | 2 +- ...model_paginated_api_atlas_database_user.go | 2 +- ...inated_api_atlas_disk_backup_export_job.go | 2 +- ...el_paginated_api_atlas_provider_regions.go | 2 +- ...api_atlas_serverless_backup_restore_job.go | 2 +- ...ed_api_atlas_serverless_backup_snapshot.go | 2 +- admin/model_paginated_api_invoice.go | 2 +- .../model_paginated_api_streams_connection.go | 2 +- admin/model_paginated_api_streams_tenant.go | 2 +- ...aginated_api_user_access_list_response.go} | 52 +- admin/model_paginated_app_user.go | 2 +- admin/model_paginated_atlas_group.go | 2 +- admin/model_paginated_backup_snapshot.go | 2 +- ...paginated_backup_snapshot_export_bucket.go | 2 +- ...odel_paginated_cloud_backup_replica_set.go | 2 +- ...odel_paginated_cloud_backup_restore_job.go | 2 +- ...d_cloud_backup_sharded_cluster_snapshot.go | 2 +- ...odel_paginated_cloud_provider_container.go | 2 +- admin/model_paginated_container_peer.go | 2 +- admin/model_paginated_database.go | 2 +- admin/model_paginated_disk_partition.go | 2 +- ..._paginated_federation_identity_provider.go | 2 +- admin/model_paginated_host_view_atlas.go | 2 +- admin/model_paginated_integration.go | 2 +- admin/model_paginated_network_access.go | 2 +- admin/model_paginated_online_archive.go | 2 +- admin/model_paginated_org_group.go | 2 +- admin/model_paginated_organization.go | 2 +- admin/model_paginated_pipeline_run.go | 2 +- ...nated_private_network_endpoint_id_entry.go | 2 +- admin/model_paginated_restore_job.go | 2 +- admin/model_paginated_role_mapping.go | 2 +- ...ginated_serverless_instance_description.go | 2 +- admin/model_paginated_snapshot.go | 2 +- admin/model_paginated_team.go | 2 +- admin/model_paginated_team_role.go | 2 +- admin/model_paginated_tenant_restore.go | 2 +- admin/model_paginated_tenant_snapshot.go | 2 +- admin/model_paginated_user_cert.go | 2 +- admin/model_push_based_log_export_project.go | 4 +- admin/model_resource_tag.go | 70 +- admin/model_streams_connection.go | 2 +- admin/model_user_access_list_request.go | 116 +++ ....go => model_user_access_list_response.go} | 80 +- auth/device_flow.go | 2 +- auth/oauth.go | 2 +- auth/oauth_test.go | 2 +- docs/README.md | 55 +- docs/doc_2_error_handling.md | 6 +- docs/doc_3_migration.md | 2 +- docs/doc_4_authentication.md | 2 +- docs/doc_last_reference.md | 28 +- docs/docs/AWSClustersDNSApi.md | 4 +- docs/docs/AccessTrackingApi.md | 4 +- docs/docs/AlertConfigurationsApi.md | 16 +- docs/docs/AlertsApi.md | 8 +- docs/docs/ApiError.md | 2 +- docs/docs/ApiSearchDeploymentRequest.md | 9 +- docs/docs/AtlasSearchApi.md | 22 +- docs/docs/AuditingApi.md | 4 +- docs/docs/CloudBackupsApi.md | 64 +- docs/docs/CloudDatabaseUser.md | 2 +- docs/docs/CloudMigrationServiceApi.md | 16 +- docs/docs/CloudProviderAccessApi.md | 10 +- docs/docs/ClusterOutageSimulationApi.md | 6 +- docs/docs/ClustersApi.md | 52 +- docs/docs/CustomDatabaseRolesApi.md | 10 +- docs/docs/DataFederationApi.md | 28 +- docs/docs/DataLakePipelinesApi.md | 26 +- docs/docs/DatabaseUsersApi.md | 10 +- ...tionAtRestUsingCustomerKeyManagementApi.md | 4 +- docs/docs/EventsApi.md | 8 +- docs/docs/FederatedAuthenticationApi.md | 44 +- docs/docs/GlobalClustersApi.md | 36 +- docs/docs/GroupName.md | 55 -- docs/docs/GroupPaginatedEvent.md | 2 +- docs/docs/GroupUpdate.md | 80 ++ docs/docs/InvoicesApi.md | 12 +- docs/docs/LDAPConfigurationApi.md | 10 +- docs/docs/LegacyBackupApi.md | 20 +- docs/docs/LegacyBackupRestoreJobsApi.md | 2 +- docs/docs/MaintenanceWindowsApi.md | 10 +- docs/docs/MongoDBCloudUsersApi.md | 6 +- docs/docs/MonitoringAndLogsApi.md | 28 +- docs/docs/NetworkPeeringApi.md | 26 +- docs/docs/OnlineArchiveApi.md | 12 +- docs/docs/OrgPaginatedEvent.md | 2 +- docs/docs/OrganizationInvitation.md | 4 +- docs/docs/OrganizationsApi.md | 34 +- .../PaginatedAdvancedClusterDescription.md | 2 +- docs/docs/PaginatedAlert.md | 2 +- docs/docs/PaginatedAlertConfig.md | 2 +- docs/docs/PaginatedApiApiUser.md | 2 +- docs/docs/PaginatedApiAppUser.md | 2 +- docs/docs/PaginatedApiAtlasCheckpoint.md | 2 +- docs/docs/PaginatedApiAtlasDatabaseUser.md | 2 +- .../PaginatedApiAtlasDiskBackupExportJob.md | 2 +- docs/docs/PaginatedApiAtlasProviderRegions.md | 2 +- ...natedApiAtlasServerlessBackupRestoreJob.md | 2 +- ...ginatedApiAtlasServerlessBackupSnapshot.md | 2 +- docs/docs/PaginatedApiInvoice.md | 2 +- docs/docs/PaginatedApiStreamsConnection.md | 2 +- docs/docs/PaginatedApiStreamsTenant.md | 2 +- ... => PaginatedApiUserAccessListResponse.md} | 42 +- docs/docs/PaginatedAppUser.md | 2 +- docs/docs/PaginatedAtlasGroup.md | 2 +- docs/docs/PaginatedBackupSnapshot.md | 2 +- .../PaginatedBackupSnapshotExportBucket.md | 2 +- docs/docs/PaginatedCloudBackupReplicaSet.md | 2 +- docs/docs/PaginatedCloudBackupRestoreJob.md | 2 +- ...inatedCloudBackupShardedClusterSnapshot.md | 2 +- docs/docs/PaginatedCloudProviderContainer.md | 2 +- docs/docs/PaginatedContainerPeer.md | 2 +- docs/docs/PaginatedDatabase.md | 2 +- docs/docs/PaginatedDiskPartition.md | 2 +- .../PaginatedFederationIdentityProvider.md | 2 +- docs/docs/PaginatedHostViewAtlas.md | 2 +- docs/docs/PaginatedIntegration.md | 2 +- docs/docs/PaginatedNetworkAccess.md | 2 +- docs/docs/PaginatedOnlineArchive.md | 2 +- docs/docs/PaginatedOrgGroup.md | 2 +- docs/docs/PaginatedOrganization.md | 2 +- docs/docs/PaginatedPipelineRun.md | 2 +- .../PaginatedPrivateNetworkEndpointIdEntry.md | 2 +- docs/docs/PaginatedRestoreJob.md | 2 +- docs/docs/PaginatedRoleMapping.md | 2 +- .../PaginatedServerlessInstanceDescription.md | 2 +- docs/docs/PaginatedSnapshot.md | 2 +- docs/docs/PaginatedTeam.md | 2 +- docs/docs/PaginatedTeamRole.md | 2 +- docs/docs/PaginatedTenantRestore.md | 2 +- docs/docs/PaginatedTenantSnapshot.md | 2 +- docs/docs/PaginatedUserCert.md | 2 +- docs/docs/PerformanceAdvisorApi.md | 20 +- docs/docs/PrivateEndpointServicesApi.md | 18 +- docs/docs/ProgrammaticAPIKeysApi.md | 52 +- docs/docs/ProjectIPAccessListApi.md | 10 +- docs/docs/ProjectsApi.md | 58 +- docs/docs/PushBasedLogExportApi.md | 8 +- docs/docs/PushBasedLogExportProject.md | 2 +- docs/docs/ResourceTag.md | 16 +- docs/docs/RollingIndexApi.md | 2 +- docs/docs/RootApi.md | 4 +- docs/docs/ServerlessInstancesApi.md | 10 +- docs/docs/ServerlessPrivateEndpointsApi.md | 10 +- docs/docs/SharedTierRestoreJobsApi.md | 6 +- docs/docs/SharedTierSnapshotsApi.md | 6 +- docs/docs/StreamsApi.md | 106 ++- docs/docs/StreamsConnection.md | 2 +- docs/docs/TeamsApi.md | 26 +- docs/docs/ThirdPartyIntegrationsApi.md | 10 +- docs/docs/UserAccessListRequest.md | 80 ++ ...ccessList.md => UserAccessListResponse.md} | 74 +- docs/docs/X509AuthenticationApi.md | 6 +- examples/aws_cluster/aws.go | 4 +- examples/basic/basic.go | 4 +- examples/db_users/db_users.go | 4 +- examples/download/downloadLogs.go | 4 +- examples/errors.go | 2 +- examples/regions/regions.go | 4 +- go.mod | 2 +- internal/core/version.go | 2 +- openapi/atlas-api-transformed.yaml | 444 ++++++---- openapi/atlas-api.yaml | 781 ++++++++++++++---- test/example_client_test.go | 2 +- test/utils_test.go | 2 +- tools/config/go-templates/api_doc.mustache | 2 +- .../config/go-templates/atlas_client.mustache | 4 +- .../releaser/breaking_changes/v20231115003.md | 2 +- .../releaser/breaking_changes/v20231115004.md | 2 +- .../releaser/breaking_changes/v20231115005.md | 2 +- .../releaser/breaking_changes/v20231115006.md | 2 +- .../releaser/breaking_changes/v20231115007.md | 2 +- .../releaser/breaking_changes/v20231115008.md | 40 + 199 files changed, 2496 insertions(+), 1379 deletions(-) delete mode 100644 admin/model_group_name.go create mode 100644 admin/model_group_update.go rename admin/{model_paginated_api_user_access_list.go => model_paginated_api_user_access_list_response.go} (59%) create mode 100644 admin/model_user_access_list_request.go rename admin/{model_user_access_list.go => model_user_access_list_response.go} (73%) delete mode 100644 docs/docs/GroupName.md create mode 100644 docs/docs/GroupUpdate.md rename docs/docs/{PaginatedApiUserAccessList.md => PaginatedApiUserAccessListResponse.md} (53%) create mode 100644 docs/docs/UserAccessListRequest.md rename docs/docs/{UserAccessList.md => UserAccessListResponse.md} (66%) create mode 100644 tools/releaser/breaking_changes/v20231115008.md diff --git a/README.md b/README.md index 15405766..7373d689 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Note that `atlas-sdk-go` only supports the two most recent major versions of Go. ### Adding Dependency ```terminal -go get go.mongodb.org/atlas-sdk/v20231115007 +go get go.mongodb.org/atlas-sdk/v20231115008 ``` ### Using in the code @@ -20,7 +20,7 @@ Construct a new Atlas SDK client, then use the various services on the client to access different parts of the Atlas API. For example: ```go -import "go.mongodb.org/atlas-sdk/v20231115007/admin" +import "go.mongodb.org/atlas-sdk/v20231115008/admin" func example() { ctx := context.Background() diff --git a/admin/api_cloud_backups.go b/admin/api_cloud_backups.go index a1ba8e82..7d94de4f 100644 --- a/admin/api_cloud_backups.go +++ b/admin/api_cloud_backups.go @@ -4620,11 +4620,13 @@ type UpdateDataProtectionSettingsApiRequest struct { ApiService CloudBackupsApi groupId string dataProtectionSettings20231001 *DataProtectionSettings20231001 + overwriteBackupPolicies *bool } type UpdateDataProtectionSettingsApiParams struct { GroupId string DataProtectionSettings20231001 *DataProtectionSettings20231001 + OverwriteBackupPolicies *bool } func (a *CloudBackupsApiService) UpdateDataProtectionSettingsWithParams(ctx context.Context, args *UpdateDataProtectionSettingsApiParams) UpdateDataProtectionSettingsApiRequest { @@ -4633,9 +4635,16 @@ func (a *CloudBackupsApiService) UpdateDataProtectionSettingsWithParams(ctx cont ctx: ctx, groupId: args.GroupId, dataProtectionSettings20231001: args.DataProtectionSettings20231001, + overwriteBackupPolicies: args.OverwriteBackupPolicies, } } +// Flag that indicates whether to overwrite non complying backup policies with the new data protection settings or not. +func (r UpdateDataProtectionSettingsApiRequest) OverwriteBackupPolicies(overwriteBackupPolicies bool) UpdateDataProtectionSettingsApiRequest { + r.overwriteBackupPolicies = &overwriteBackupPolicies + return r +} + func (r UpdateDataProtectionSettingsApiRequest) Execute() (*DataProtectionSettings20231001, *http.Response, error) { return r.ApiService.UpdateDataProtectionSettingsExecute(r) } @@ -4684,6 +4693,13 @@ func (a *CloudBackupsApiService) UpdateDataProtectionSettingsExecute(r UpdateDat return localVarReturnValue, nil, reportError("dataProtectionSettings20231001 is required and must be specified") } + if r.overwriteBackupPolicies != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "overwriteBackupPolicies", r.overwriteBackupPolicies, "") + } else { + var defaultValue bool = true + r.overwriteBackupPolicies = &defaultValue + parameterAddToHeaderOrQuery(localVarQueryParams, "overwriteBackupPolicies", r.overwriteBackupPolicies, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/vnd.atlas.2023-10-01+json"} diff --git a/admin/api_clusters.go b/admin/api_clusters.go index 16bc7934..bf42f94e 100644 --- a/admin/api_clusters.go +++ b/admin/api_clusters.go @@ -15,7 +15,7 @@ import ( type ClustersApi interface { /* - CreateCluster Create One Multi-Cloud Cluster from One Project + CreateCluster Create One Cluster from One Project Creates one cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. This resource can create multi-cloud clusters. Each project supports up to 25 database deployments. To use this resource, the requesting API Key must have the Project Owner role. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} @@ -25,7 +25,7 @@ type ClustersApi interface { */ CreateCluster(ctx context.Context, groupId string, advancedClusterDescription *AdvancedClusterDescription) CreateClusterApiRequest /* - CreateCluster Create One Multi-Cloud Cluster from One Project + CreateCluster Create One Cluster from One Project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -38,9 +38,9 @@ type ClustersApi interface { CreateClusterExecute(r CreateClusterApiRequest) (*AdvancedClusterDescription, *http.Response, error) /* - DeleteCluster Remove One Multi-Cloud Cluster from One Project + DeleteCluster Remove One Cluster from One Project - Removes one cluster with advanced features from the specified project. The cluster must have termination protection disabled in order to be deleted. To use this resource, the requesting API Key must have the Project Owner role. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} + Removes one cluster from the specified project. The cluster must have termination protection disabled in order to be deleted. To use this resource, the requesting API Key must have the Project Owner role. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. @@ -49,7 +49,7 @@ type ClustersApi interface { */ DeleteCluster(ctx context.Context, groupId string, clusterName string) DeleteClusterApiRequest /* - DeleteCluster Remove One Multi-Cloud Cluster from One Project + DeleteCluster Remove One Cluster from One Project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -62,18 +62,18 @@ type ClustersApi interface { DeleteClusterExecute(r DeleteClusterApiRequest) (*http.Response, error) /* - GetCluster Return One Multi-Cloud Cluster from One Project + GetCluster Return One Cluster from One Project Returns the details for one cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. The response includes multi-cloud clusters. To use this resource, the requesting API Key must have the Project Read Only role. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return GetClusterApiRequest */ GetCluster(ctx context.Context, groupId string, clusterName string) GetClusterApiRequest /* - GetCluster Return One Multi-Cloud Cluster from One Project + GetCluster Return One Cluster from One Project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -250,7 +250,7 @@ type ClustersApi interface { LoadSampleDatasetExecute(r LoadSampleDatasetApiRequest) (*SampleDatasetStatus, *http.Response, error) /* - TestFailover Test Failover for One Multi-Cloud Cluster + TestFailover Test Failover for One Cluster Starts a failover test for the specified cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. A failover test checks how MongoDB Cloud handles the failure of the cluster's primary node. During the test, MongoDB Cloud shuts down the primary node and elects a new primary. To use this resource, the requesting API Key must have the Project Cluster Manager role. Deprecated versions: v2-{2023-01-01} @@ -261,7 +261,7 @@ type ClustersApi interface { */ TestFailover(ctx context.Context, groupId string, clusterName string) TestFailoverApiRequest /* - TestFailover Test Failover for One Multi-Cloud Cluster + TestFailover Test Failover for One Cluster @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -274,7 +274,7 @@ type ClustersApi interface { TestFailoverExecute(r TestFailoverApiRequest) (*http.Response, error) /* - UpdateCluster Modify One Multi-Cloud Cluster from One Project + UpdateCluster Modify One Cluster from One Project Updates the details for one cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. This resource can update multi-cloud clusters. To update a cluster's termination protection, the requesting API Key must have the Project Owner role. For all other updates, the requesting API Key must have the Project Cluster Manager role. You can't modify a paused cluster (`paused : true`). You must call this endpoint to set `paused : false`. After this endpoint responds with `paused : false`, you can call it again with the changes you want to make to the cluster. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} @@ -285,7 +285,7 @@ type ClustersApi interface { */ UpdateCluster(ctx context.Context, groupId string, clusterName string, advancedClusterDescription *AdvancedClusterDescription) UpdateClusterApiRequest /* - UpdateCluster Modify One Multi-Cloud Cluster from One Project + UpdateCluster Modify One Cluster from One Project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -397,7 +397,7 @@ func (r CreateClusterApiRequest) Execute() (*AdvancedClusterDescription, *http.R } /* -CreateCluster Create One Multi-Cloud Cluster from One Project +CreateCluster Create One Cluster from One Project Creates one cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. This resource can create multi-cloud clusters. Each project supports up to 25 database deployments. To use this resource, the requesting API Key must have the Project Owner role. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} @@ -539,9 +539,9 @@ func (r DeleteClusterApiRequest) Execute() (*http.Response, error) { } /* -DeleteCluster Remove One Multi-Cloud Cluster from One Project +DeleteCluster Remove One Cluster from One Project -Removes one cluster with advanced features from the specified project. The cluster must have termination protection disabled in order to be deleted. To use this resource, the requesting API Key must have the Project Owner role. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} +Removes one cluster from the specified project. The cluster must have termination protection disabled in order to be deleted. To use this resource, the requesting API Key must have the Project Owner role. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. @@ -660,13 +660,13 @@ func (r GetClusterApiRequest) Execute() (*AdvancedClusterDescription, *http.Resp } /* -GetCluster Return One Multi-Cloud Cluster from One Project +GetCluster Return One Cluster from One Project Returns the details for one cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. The response includes multi-cloud clusters. To use this resource, the requesting API Key must have the Project Read Only role. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return GetClusterApiRequest */ func (a *ClustersApiService) GetCluster(ctx context.Context, groupId string, clusterName string) GetClusterApiRequest { @@ -1864,7 +1864,7 @@ func (r TestFailoverApiRequest) Execute() (*http.Response, error) { } /* -TestFailover Test Failover for One Multi-Cloud Cluster +TestFailover Test Failover for One Cluster Starts a failover test for the specified cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. A failover test checks how MongoDB Cloud handles the failure of the cluster's primary node. During the test, MongoDB Cloud shuts down the primary node and elects a new primary. To use this resource, the requesting API Key must have the Project Cluster Manager role. Deprecated versions: v2-{2023-01-01} @@ -1985,7 +1985,7 @@ func (r UpdateClusterApiRequest) Execute() (*AdvancedClusterDescription, *http.R } /* -UpdateCluster Modify One Multi-Cloud Cluster from One Project +UpdateCluster Modify One Cluster from One Project Updates the details for one cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. This resource can update multi-cloud clusters. To update a cluster's termination protection, the requesting API Key must have the Project Owner role. For all other updates, the requesting API Key must have the Project Cluster Manager role. You can't modify a paused cluster (`paused : true`). You must call this endpoint to set `paused : false`. After this endpoint responds with `paused : false`, you can call it again with the changes you want to make to the cluster. This feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01} diff --git a/admin/api_federated_authentication.go b/admin/api_federated_authentication.go index cb559319..96f6c7fc 100644 --- a/admin/api_federated_authentication.go +++ b/admin/api_federated_authentication.go @@ -8,6 +8,7 @@ import ( "io" "net/http" "net/url" + "reflect" "strings" ) @@ -1871,14 +1872,14 @@ type ListIdentityProvidersApiRequest struct { ctx context.Context ApiService FederatedAuthenticationApi federationSettingsId string - protocol *string - idpType *string + protocol *[]string + idpType *[]string } type ListIdentityProvidersApiParams struct { FederationSettingsId string - Protocol *string - IdpType *string + Protocol *[]string + IdpType *[]string } func (a *FederatedAuthenticationApiService) ListIdentityProvidersWithParams(ctx context.Context, args *ListIdentityProvidersApiParams) ListIdentityProvidersApiRequest { @@ -1891,14 +1892,14 @@ func (a *FederatedAuthenticationApiService) ListIdentityProvidersWithParams(ctx } } -// The protocols of the target identity providers. Defaults to SAML. -func (r ListIdentityProvidersApiRequest) Protocol(protocol string) ListIdentityProvidersApiRequest { +// The protocols of the target identity providers. +func (r ListIdentityProvidersApiRequest) Protocol(protocol []string) ListIdentityProvidersApiRequest { r.protocol = &protocol return r } -// The types of the target identity providers. Defaults to WORKFORCE. -func (r ListIdentityProvidersApiRequest) IdpType(idpType string) ListIdentityProvidersApiRequest { +// The types of the target identity providers. +func (r ListIdentityProvidersApiRequest) IdpType(idpType []string) ListIdentityProvidersApiRequest { r.idpType = &idpType return r } @@ -1948,10 +1949,18 @@ func (a *FederatedAuthenticationApiService) ListIdentityProvidersExecute(r ListI localVarFormParams := url.Values{} if r.protocol != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", r.protocol, "") + t := *r.protocol + // Workaround for unused import + _ = reflect.Append + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", t, "multi") + } if r.idpType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "idpType", r.idpType, "") + t := *r.idpType + // Workaround for unused import + _ = reflect.Append + parameterAddToHeaderOrQuery(localVarQueryParams, "idpType", t, "multi") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/admin/api_global_clusters.go b/admin/api_global_clusters.go index b0472629..b7c03be0 100644 --- a/admin/api_global_clusters.go +++ b/admin/api_global_clusters.go @@ -20,7 +20,7 @@ type GlobalClustersApi interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return CreateCustomZoneMappingApiRequest */ CreateCustomZoneMapping(ctx context.Context, groupId string, clusterName string, customZoneMappings *CustomZoneMappings) CreateCustomZoneMappingApiRequest @@ -38,18 +38,18 @@ type GlobalClustersApi interface { CreateCustomZoneMappingExecute(r CreateCustomZoneMappingApiRequest) (*GeoSharding, *http.Response, error) /* - CreateManagedNamespace Create One Managed Namespace in One Global Multi-Cloud Cluster + CreateManagedNamespace Create One Managed Namespace in One Global Cluster [experimental] Creates one managed namespace within the specified global cluster. A managed namespace identifies a collection using the database name, the dot separator, and the collection name. To use this resource, the requesting API Key must have the Project Data Access Admin role. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return CreateManagedNamespaceApiRequest */ CreateManagedNamespace(ctx context.Context, groupId string, clusterName string, managedNamespace *ManagedNamespace) CreateManagedNamespaceApiRequest /* - CreateManagedNamespace Create One Managed Namespace in One Global Multi-Cloud Cluster + CreateManagedNamespace Create One Managed Namespace in One Global Cluster @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -62,18 +62,18 @@ type GlobalClustersApi interface { CreateManagedNamespaceExecute(r CreateManagedNamespaceApiRequest) (*GeoSharding, *http.Response, error) /* - DeleteAllCustomZoneMappings Remove All Custom Zone Mappings from One Global Multi-Cloud Cluster + DeleteAllCustomZoneMappings Remove All Custom Zone Mappings from One Global Cluster [experimental] Removes all custom zone mappings for the specified global cluster. A custom zone mapping matches one ISO 3166-2 location code to a zone in your global cluster. Removing the custom zone mappings restores the default mapping. By default, MongoDB Cloud maps each location code to the closest geographical zone. To use this resource, the requesting API Key must have the Project Owner role. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return DeleteAllCustomZoneMappingsApiRequest */ DeleteAllCustomZoneMappings(ctx context.Context, groupId string, clusterName string) DeleteAllCustomZoneMappingsApiRequest /* - DeleteAllCustomZoneMappings Remove All Custom Zone Mappings from One Global Multi-Cloud Cluster + DeleteAllCustomZoneMappings Remove All Custom Zone Mappings from One Global Cluster @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -86,18 +86,18 @@ type GlobalClustersApi interface { DeleteAllCustomZoneMappingsExecute(r DeleteAllCustomZoneMappingsApiRequest) (*GeoSharding, *http.Response, error) /* - DeleteManagedNamespace Remove One Managed Namespace from One Global Multi-Cloud Cluster + DeleteManagedNamespace Remove One Managed Namespace from One Global Cluster [experimental] Removes one managed namespace within the specified global cluster. A managed namespace identifies a collection using the database name, the dot separator, and the collection name. Deleting a managed namespace does not remove the associated collection or data. To use this resource, the requesting API Key must have the Project Data Access Admin role. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @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. @return DeleteManagedNamespaceApiRequest */ DeleteManagedNamespace(ctx context.Context, clusterName string, groupId string) DeleteManagedNamespaceApiRequest /* - DeleteManagedNamespace Remove One Managed Namespace from One Global Multi-Cloud Cluster + DeleteManagedNamespace Remove One Managed Namespace from One Global Cluster @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -110,18 +110,18 @@ type GlobalClustersApi interface { DeleteManagedNamespaceExecute(r DeleteManagedNamespaceApiRequest) (*GeoSharding, *http.Response, error) /* - GetManagedNamespace Return One Managed Namespace in One Global Multi-Cloud Cluster + GetManagedNamespace Return One Managed Namespace in One Global Cluster Returns one managed namespace within the specified global cluster. A managed namespace identifies a collection using the database name, the dot separator, and the collection name. To use this resource, the requesting API Key must have the Project Read Only role. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return GetManagedNamespaceApiRequest */ GetManagedNamespace(ctx context.Context, groupId string, clusterName string) GetManagedNamespaceApiRequest /* - GetManagedNamespace Return One Managed Namespace in One Global Multi-Cloud Cluster + GetManagedNamespace Return One Managed Namespace in One Global Cluster @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -172,7 +172,7 @@ CreateCustomZoneMapping Add One Entry to One Custom Zone Mapping @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return CreateCustomZoneMappingApiRequest */ func (a *GlobalClustersApiService) CreateCustomZoneMapping(ctx context.Context, groupId string, clusterName string, customZoneMappings *CustomZoneMappings) CreateCustomZoneMappingApiRequest { @@ -305,13 +305,13 @@ func (r CreateManagedNamespaceApiRequest) Execute() (*GeoSharding, *http.Respons } /* -CreateManagedNamespace Create One Managed Namespace in One Global Multi-Cloud Cluster +CreateManagedNamespace Create One Managed Namespace in One Global Cluster [experimental] Creates one managed namespace within the specified global cluster. A managed namespace identifies a collection using the database name, the dot separator, and the collection name. To use this resource, the requesting API Key must have the Project Data Access Admin role. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return CreateManagedNamespaceApiRequest */ func (a *GlobalClustersApiService) CreateManagedNamespace(ctx context.Context, groupId string, clusterName string, managedNamespace *ManagedNamespace) CreateManagedNamespaceApiRequest { @@ -441,13 +441,13 @@ func (r DeleteAllCustomZoneMappingsApiRequest) Execute() (*GeoSharding, *http.Re } /* -DeleteAllCustomZoneMappings Remove All Custom Zone Mappings from One Global Multi-Cloud Cluster +DeleteAllCustomZoneMappings Remove All Custom Zone Mappings from One Global Cluster [experimental] Removes all custom zone mappings for the specified global cluster. A custom zone mapping matches one ISO 3166-2 location code to a zone in your global cluster. Removing the custom zone mappings restores the default mapping. By default, MongoDB Cloud maps each location code to the closest geographical zone. To use this resource, the requesting API Key must have the Project Owner role. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return DeleteAllCustomZoneMappingsApiRequest */ func (a *GlobalClustersApiService) DeleteAllCustomZoneMappings(ctx context.Context, groupId string, clusterName string) DeleteAllCustomZoneMappingsApiRequest { @@ -589,12 +589,12 @@ func (r DeleteManagedNamespaceApiRequest) Execute() (*GeoSharding, *http.Respons } /* -DeleteManagedNamespace Remove One Managed Namespace from One Global Multi-Cloud Cluster +DeleteManagedNamespace Remove One Managed Namespace from One Global Cluster [experimental] Removes one managed namespace within the specified global cluster. A managed namespace identifies a collection using the database name, the dot separator, and the collection name. Deleting a managed namespace does not remove the associated collection or data. To use this resource, the requesting API Key must have the Project Data Access Admin role. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @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. @return DeleteManagedNamespaceApiRequest */ @@ -725,13 +725,13 @@ func (r GetManagedNamespaceApiRequest) Execute() (*GeoSharding, *http.Response, } /* -GetManagedNamespace Return One Managed Namespace in One Global Multi-Cloud Cluster +GetManagedNamespace Return One Managed Namespace in One Global Cluster Returns one managed namespace within the specified global cluster. A managed namespace identifies a collection using the database name, the dot separator, and the collection name. To use this resource, the requesting API Key must have the Project Read Only role. Deprecated versions: v2-{2023-01-01} @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. - @param clusterName Human-readable label that identifies this advanced cluster. + @param clusterName Human-readable label that identifies this cluster. @return GetManagedNamespaceApiRequest */ func (a *GlobalClustersApiService) GetManagedNamespace(ctx context.Context, groupId string, clusterName string) GetManagedNamespaceApiRequest { diff --git a/admin/api_invoices.go b/admin/api_invoices.go index e29b901e..4475697a 100644 --- a/admin/api_invoices.go +++ b/admin/api_invoices.go @@ -16,7 +16,7 @@ type InvoicesApi interface { /* CreateCostExplorerQueryProcess Create Cost Explorer query process - [experimental] Creates a query process within the Cost Explorer for the given parameters. A token is returned that can be used to poll the status of the query and eventually retrievethe results. + [experimental] Creates a query process within the Cost Explorer for the given parameters. A token is returned that can be used to poll the status of the query and eventually retrieve the results. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param orgId Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the [/orgs](#tag/Organizations/operation/listOrganizations) endpoint to retrieve all organizations to which the authenticated user has access. @@ -186,7 +186,7 @@ func (r CreateCostExplorerQueryProcessApiRequest) Execute() (*CostExplorerFilter /* CreateCostExplorerQueryProcess Create Cost Explorer query process -[experimental] Creates a query process within the Cost Explorer for the given parameters. A token is returned that can be used to poll the status of the query and eventually retrievethe results. +[experimental] Creates a query process within the Cost Explorer for the given parameters. A token is returned that can be used to poll the status of the query and eventually retrieve the results. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param orgId Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the [/orgs](#tag/Organizations/operation/listOrganizations) endpoint to retrieve all organizations to which the authenticated user has access. diff --git a/admin/api_performance_advisor.go b/admin/api_performance_advisor.go index 28507dfe..bfbac7e9 100644 --- a/admin/api_performance_advisor.go +++ b/admin/api_performance_advisor.go @@ -589,7 +589,7 @@ func (r ListSlowQueriesApiRequest) NLogs(nLogs int64) ListSlowQueriesApiRequest return r } -// Date and time from which the query retrieves the slow queries. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. +// Date and time from which the query retrieves the slow queries. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. func (r ListSlowQueriesApiRequest) Since(since int64) ListSlowQueriesApiRequest { r.since = &since return r @@ -757,7 +757,7 @@ func (r ListSlowQueryNamespacesApiRequest) Duration(duration int64) ListSlowQuer return r } -// Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. +// Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. func (r ListSlowQueryNamespacesApiRequest) Since(since int64) ListSlowQueryNamespacesApiRequest { r.since = &since return r @@ -965,7 +965,7 @@ func (r ListSuggestedIndexesApiRequest) NIndexes(nIndexes int64) ListSuggestedIn return r } -// Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. +// Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. func (r ListSuggestedIndexesApiRequest) Since(since int64) ListSuggestedIndexesApiRequest { r.since = &since return r diff --git a/admin/api_programmatic_api_keys.go b/admin/api_programmatic_api_keys.go index 00691a76..90dc566b 100644 --- a/admin/api_programmatic_api_keys.go +++ b/admin/api_programmatic_api_keys.go @@ -70,7 +70,7 @@ type ProgrammaticAPIKeysApi interface { @param apiUserId Unique 24-hexadecimal digit string that identifies this organization API key for which you want to create a new access list entry. @return CreateApiKeyAccessListApiRequest */ - CreateApiKeyAccessList(ctx context.Context, orgId string, apiUserId string, userAccessList *[]UserAccessList) CreateApiKeyAccessListApiRequest + CreateApiKeyAccessList(ctx context.Context, orgId string, apiUserId string, userAccessListRequest *[]UserAccessListRequest) CreateApiKeyAccessListApiRequest /* CreateApiKeyAccessList Create Access List Entries for One Organization API Key @@ -82,7 +82,7 @@ type ProgrammaticAPIKeysApi interface { CreateApiKeyAccessListWithParams(ctx context.Context, args *CreateApiKeyAccessListApiParams) CreateApiKeyAccessListApiRequest // Method available only for mocking purposes - CreateApiKeyAccessListExecute(r CreateApiKeyAccessListApiRequest) (*PaginatedApiUserAccessList, *http.Response, error) + CreateApiKeyAccessListExecute(r CreateApiKeyAccessListApiRequest) (*PaginatedApiUserAccessListResponse, *http.Response, error) /* CreateProjectApiKey Create and Assign One Organization API Key to One Project @@ -203,7 +203,7 @@ type ProgrammaticAPIKeysApi interface { GetApiKeyAccessListWithParams(ctx context.Context, args *GetApiKeyAccessListApiParams) GetApiKeyAccessListApiRequest // Method available only for mocking purposes - GetApiKeyAccessListExecute(r GetApiKeyAccessListApiRequest) (*UserAccessList, *http.Response, error) + GetApiKeyAccessListExecute(r GetApiKeyAccessListApiRequest) (*UserAccessListResponse, *http.Response, error) /* ListApiKeyAccessListsEntries Return All Access List Entries for One Organization API Key @@ -227,7 +227,7 @@ type ProgrammaticAPIKeysApi interface { ListApiKeyAccessListsEntriesWithParams(ctx context.Context, args *ListApiKeyAccessListsEntriesApiParams) ListApiKeyAccessListsEntriesApiRequest // Method available only for mocking purposes - ListApiKeyAccessListsEntriesExecute(r ListApiKeyAccessListsEntriesApiRequest) (*PaginatedApiUserAccessList, *http.Response, error) + ListApiKeyAccessListsEntriesExecute(r ListApiKeyAccessListsEntriesApiRequest) (*PaginatedApiUserAccessListResponse, *http.Response, error) /* ListApiKeys Return All Organization API Keys @@ -624,35 +624,35 @@ func (a *ProgrammaticAPIKeysApiService) CreateApiKeyExecute(r CreateApiKeyApiReq } type CreateApiKeyAccessListApiRequest struct { - ctx context.Context - ApiService ProgrammaticAPIKeysApi - orgId string - apiUserId string - userAccessList *[]UserAccessList - includeCount *bool - itemsPerPage *int - pageNum *int + ctx context.Context + ApiService ProgrammaticAPIKeysApi + orgId string + apiUserId string + userAccessListRequest *[]UserAccessListRequest + includeCount *bool + itemsPerPage *int + pageNum *int } type CreateApiKeyAccessListApiParams struct { - OrgId string - ApiUserId string - UserAccessList *[]UserAccessList - IncludeCount *bool - ItemsPerPage *int - PageNum *int + OrgId string + ApiUserId string + UserAccessListRequest *[]UserAccessListRequest + IncludeCount *bool + ItemsPerPage *int + PageNum *int } func (a *ProgrammaticAPIKeysApiService) CreateApiKeyAccessListWithParams(ctx context.Context, args *CreateApiKeyAccessListApiParams) CreateApiKeyAccessListApiRequest { return CreateApiKeyAccessListApiRequest{ - ApiService: a, - ctx: ctx, - orgId: args.OrgId, - apiUserId: args.ApiUserId, - userAccessList: args.UserAccessList, - includeCount: args.IncludeCount, - itemsPerPage: args.ItemsPerPage, - pageNum: args.PageNum, + ApiService: a, + ctx: ctx, + orgId: args.OrgId, + apiUserId: args.ApiUserId, + userAccessListRequest: args.UserAccessListRequest, + includeCount: args.IncludeCount, + itemsPerPage: args.ItemsPerPage, + pageNum: args.PageNum, } } @@ -674,7 +674,7 @@ func (r CreateApiKeyAccessListApiRequest) PageNum(pageNum int) CreateApiKeyAcces return r } -func (r CreateApiKeyAccessListApiRequest) Execute() (*PaginatedApiUserAccessList, *http.Response, error) { +func (r CreateApiKeyAccessListApiRequest) Execute() (*PaginatedApiUserAccessListResponse, *http.Response, error) { return r.ApiService.CreateApiKeyAccessListExecute(r) } @@ -688,25 +688,25 @@ Creates the access list entries for the specified organization API key. Resource @param apiUserId Unique 24-hexadecimal digit string that identifies this organization API key for which you want to create a new access list entry. @return CreateApiKeyAccessListApiRequest */ -func (a *ProgrammaticAPIKeysApiService) CreateApiKeyAccessList(ctx context.Context, orgId string, apiUserId string, userAccessList *[]UserAccessList) CreateApiKeyAccessListApiRequest { +func (a *ProgrammaticAPIKeysApiService) CreateApiKeyAccessList(ctx context.Context, orgId string, apiUserId string, userAccessListRequest *[]UserAccessListRequest) CreateApiKeyAccessListApiRequest { return CreateApiKeyAccessListApiRequest{ - ApiService: a, - ctx: ctx, - orgId: orgId, - apiUserId: apiUserId, - userAccessList: userAccessList, + ApiService: a, + ctx: ctx, + orgId: orgId, + apiUserId: apiUserId, + userAccessListRequest: userAccessListRequest, } } // Execute executes the request // -// @return PaginatedApiUserAccessList -func (a *ProgrammaticAPIKeysApiService) CreateApiKeyAccessListExecute(r CreateApiKeyAccessListApiRequest) (*PaginatedApiUserAccessList, *http.Response, error) { +// @return PaginatedApiUserAccessListResponse +func (a *ProgrammaticAPIKeysApiService) CreateApiKeyAccessListExecute(r CreateApiKeyAccessListApiRequest) (*PaginatedApiUserAccessListResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedApiUserAccessList + localVarReturnValue *PaginatedApiUserAccessListResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProgrammaticAPIKeysApiService.CreateApiKeyAccessList") @@ -721,8 +721,8 @@ func (a *ProgrammaticAPIKeysApiService) CreateApiKeyAccessListExecute(r CreateAp localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.userAccessList == nil { - return localVarReturnValue, nil, reportError("userAccessList is required and must be specified") + if r.userAccessListRequest == nil { + return localVarReturnValue, nil, reportError("userAccessListRequest is required and must be specified") } if r.includeCount != nil { @@ -764,7 +764,7 @@ func (a *ProgrammaticAPIKeysApiService) CreateApiKeyAccessListExecute(r CreateAp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.userAccessList + localVarPostBody = r.userAccessListRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1363,7 +1363,7 @@ func (a *ProgrammaticAPIKeysApiService) GetApiKeyAccessListWithParams(ctx contex } } -func (r GetApiKeyAccessListApiRequest) Execute() (*UserAccessList, *http.Response, error) { +func (r GetApiKeyAccessListApiRequest) Execute() (*UserAccessListResponse, *http.Response, error) { return r.ApiService.GetApiKeyAccessListExecute(r) } @@ -1390,13 +1390,13 @@ func (a *ProgrammaticAPIKeysApiService) GetApiKeyAccessList(ctx context.Context, // Execute executes the request // -// @return UserAccessList -func (a *ProgrammaticAPIKeysApiService) GetApiKeyAccessListExecute(r GetApiKeyAccessListApiRequest) (*UserAccessList, *http.Response, error) { +// @return UserAccessListResponse +func (a *ProgrammaticAPIKeysApiService) GetApiKeyAccessListExecute(r GetApiKeyAccessListApiRequest) (*UserAccessListResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UserAccessList + localVarReturnValue *UserAccessListResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProgrammaticAPIKeysApiService.GetApiKeyAccessList") @@ -1523,7 +1523,7 @@ func (r ListApiKeyAccessListsEntriesApiRequest) PageNum(pageNum int) ListApiKeyA return r } -func (r ListApiKeyAccessListsEntriesApiRequest) Execute() (*PaginatedApiUserAccessList, *http.Response, error) { +func (r ListApiKeyAccessListsEntriesApiRequest) Execute() (*PaginatedApiUserAccessListResponse, *http.Response, error) { return r.ApiService.ListApiKeyAccessListsEntriesExecute(r) } @@ -1548,13 +1548,13 @@ func (a *ProgrammaticAPIKeysApiService) ListApiKeyAccessListsEntries(ctx context // Execute executes the request // -// @return PaginatedApiUserAccessList -func (a *ProgrammaticAPIKeysApiService) ListApiKeyAccessListsEntriesExecute(r ListApiKeyAccessListsEntriesApiRequest) (*PaginatedApiUserAccessList, *http.Response, error) { +// @return PaginatedApiUserAccessListResponse +func (a *ProgrammaticAPIKeysApiService) ListApiKeyAccessListsEntriesExecute(r ListApiKeyAccessListsEntriesApiRequest) (*PaginatedApiUserAccessListResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedApiUserAccessList + localVarReturnValue *PaginatedApiUserAccessListResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProgrammaticAPIKeysApiService.ListApiKeyAccessListsEntries") diff --git a/admin/api_projects.go b/admin/api_projects.go index 7eff4ec7..d4712cfb 100644 --- a/admin/api_projects.go +++ b/admin/api_projects.go @@ -16,7 +16,7 @@ type ProjectsApi interface { /* AddUserToProject Add One MongoDB Cloud User to One Project - [experimental] Adds one MongoDB Cloud user to the specified project. If the MongoDB Cloud user is not a member of the project's organization, then the user must accept their invitation to the organization to access information within the specified project. To use this resource, the requesting API Key must have the Group User Admin role. + [experimental] Adds one MongoDB Cloud user to the specified project. If the MongoDB Cloud user is not a member of the project's organization, then the user must accept their invitation to the organization to access information within the specified project. If the MongoDB Cloud User is already a member of the project's organization, then they will be added to the project immediately and an invitation will not be returned by this resource. To use this resource, the requesting API Key must have the Group User Admin role. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. @@ -450,17 +450,17 @@ type ProjectsApi interface { SetProjectLimitExecute(r SetProjectLimitApiRequest) (*DataFederationLimit, *http.Response, error) /* - UpdateProject Update One Project Name + UpdateProject Update One Project - [experimental] Updates the human-readable label that identifies the specified project. To use this resource, the requesting API Key must have the Project Owner role. + [experimental] Updates the human-readable label that identifies the specified project, or the tags associated with the project. To use this resource, the requesting API Key must have the Project Owner role. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. @return UpdateProjectApiRequest */ - UpdateProject(ctx context.Context, groupId string, groupName *GroupName) UpdateProjectApiRequest + UpdateProject(ctx context.Context, groupId string, groupUpdate *GroupUpdate) UpdateProjectApiRequest /* - UpdateProject Update One Project Name + UpdateProject Update One Project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -606,7 +606,7 @@ func (r AddUserToProjectApiRequest) Execute() (*OrganizationInvitation, *http.Re /* AddUserToProject Add One MongoDB Cloud User to One Project -[experimental] Adds one MongoDB Cloud user to the specified project. If the MongoDB Cloud user is not a member of the project's organization, then the user must accept their invitation to the organization to access information within the specified project. To use this resource, the requesting API Key must have the Group User Admin role. +[experimental] Adds one MongoDB Cloud user to the specified project. If the MongoDB Cloud user is not a member of the project's organization, then the user must accept their invitation to the organization to access information within the specified project. If the MongoDB Cloud User is already a member of the project's organization, then they will be added to the project immediately and an invitation will not be returned by this resource. To use this resource, the requesting API Key must have the Group User Admin role. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. @@ -3029,23 +3029,23 @@ func (a *ProjectsApiService) SetProjectLimitExecute(r SetProjectLimitApiRequest) } type UpdateProjectApiRequest struct { - ctx context.Context - ApiService ProjectsApi - groupId string - groupName *GroupName + ctx context.Context + ApiService ProjectsApi + groupId string + groupUpdate *GroupUpdate } type UpdateProjectApiParams struct { - GroupId string - GroupName *GroupName + GroupId string + GroupUpdate *GroupUpdate } func (a *ProjectsApiService) UpdateProjectWithParams(ctx context.Context, args *UpdateProjectApiParams) UpdateProjectApiRequest { return UpdateProjectApiRequest{ - ApiService: a, - ctx: ctx, - groupId: args.GroupId, - groupName: args.GroupName, + ApiService: a, + ctx: ctx, + groupId: args.GroupId, + groupUpdate: args.GroupUpdate, } } @@ -3054,20 +3054,20 @@ func (r UpdateProjectApiRequest) Execute() (*Group, *http.Response, error) { } /* -UpdateProject Update One Project Name +UpdateProject Update One Project -[experimental] Updates the human-readable label that identifies the specified project. To use this resource, the requesting API Key must have the Project Owner role. +[experimental] Updates the human-readable label that identifies the specified project, or the tags associated with the project. To use this resource, the requesting API Key must have the Project Owner role. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @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. @return UpdateProjectApiRequest */ -func (a *ProjectsApiService) UpdateProject(ctx context.Context, groupId string, groupName *GroupName) UpdateProjectApiRequest { +func (a *ProjectsApiService) UpdateProject(ctx context.Context, groupId string, groupUpdate *GroupUpdate) UpdateProjectApiRequest { return UpdateProjectApiRequest{ - ApiService: a, - ctx: ctx, - groupId: groupId, - groupName: groupName, + ApiService: a, + ctx: ctx, + groupId: groupId, + groupUpdate: groupUpdate, } } @@ -3093,8 +3093,8 @@ func (a *ProjectsApiService) UpdateProjectExecute(r UpdateProjectApiRequest) (*G localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.groupName == nil { - return localVarReturnValue, nil, reportError("groupName is required and must be specified") + if r.groupUpdate == nil { + return localVarReturnValue, nil, reportError("groupUpdate is required and must be specified") } // to determine the Content-Type header @@ -3115,7 +3115,7 @@ func (a *ProjectsApiService) UpdateProjectExecute(r UpdateProjectApiRequest) (*G localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.groupName + localVarPostBody = r.groupUpdate req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/admin/api_streams.go b/admin/api_streams.go index fb5e1012..fdcac707 100644 --- a/admin/api_streams.go +++ b/admin/api_streams.go @@ -109,6 +109,30 @@ type StreamsApi interface { // Method available only for mocking purposes DeleteStreamInstanceExecute(r DeleteStreamInstanceApiRequest) (map[string]interface{}, *http.Response, error) + /* + DownloadStreamTenantAuditLogs Download Audit Logs for One Atlas Stream Processing Instance + + [experimental] Downloads the audit logs for the specified Atlas Streams Processing instance. By default, logs cover periods of 30 days. To use this resource, the requesting API Key must have the Project Owner roles or Project Data Access Read Write roles. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @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. + @param tenantName Human-readable label that identifies the stream instance. + @return DownloadStreamTenantAuditLogsApiRequest + */ + DownloadStreamTenantAuditLogs(ctx context.Context, groupId string, tenantName string) DownloadStreamTenantAuditLogsApiRequest + /* + DownloadStreamTenantAuditLogs Download Audit Logs for One Atlas Stream Processing Instance + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param DownloadStreamTenantAuditLogsApiParams - Parameters for the request + @return DownloadStreamTenantAuditLogsApiRequest + */ + DownloadStreamTenantAuditLogsWithParams(ctx context.Context, args *DownloadStreamTenantAuditLogsApiParams) DownloadStreamTenantAuditLogsApiRequest + + // Method available only for mocking purposes + DownloadStreamTenantAuditLogsExecute(r DownloadStreamTenantAuditLogsApiRequest) (io.ReadCloser, *http.Response, error) + /* GetStreamConnection Return One Stream Connection @@ -796,6 +820,160 @@ func (a *StreamsApiService) DeleteStreamInstanceExecute(r DeleteStreamInstanceAp return localVarReturnValue, localVarHTTPResponse, nil } +type DownloadStreamTenantAuditLogsApiRequest struct { + ctx context.Context + ApiService StreamsApi + groupId string + tenantName string + endDate *int64 + startDate *int64 +} + +type DownloadStreamTenantAuditLogsApiParams struct { + GroupId string + TenantName string + EndDate *int64 + StartDate *int64 +} + +func (a *StreamsApiService) DownloadStreamTenantAuditLogsWithParams(ctx context.Context, args *DownloadStreamTenantAuditLogsApiParams) DownloadStreamTenantAuditLogsApiRequest { + return DownloadStreamTenantAuditLogsApiRequest{ + ApiService: a, + ctx: ctx, + groupId: args.GroupId, + tenantName: args.TenantName, + endDate: args.EndDate, + startDate: args.StartDate, + } +} + +// Timestamp that specifies the end point for the range of log messages to download. MongoDB Cloud expresses this timestamp in the number of seconds that have elapsed since the UNIX epoch. +func (r DownloadStreamTenantAuditLogsApiRequest) EndDate(endDate int64) DownloadStreamTenantAuditLogsApiRequest { + r.endDate = &endDate + return r +} + +// Timestamp that specifies the starting point for the range of log messages to download. MongoDB Cloud expresses this timestamp in the number of seconds that have elapsed since the UNIX epoch. +func (r DownloadStreamTenantAuditLogsApiRequest) StartDate(startDate int64) DownloadStreamTenantAuditLogsApiRequest { + r.startDate = &startDate + return r +} + +func (r DownloadStreamTenantAuditLogsApiRequest) Execute() (io.ReadCloser, *http.Response, error) { + return r.ApiService.DownloadStreamTenantAuditLogsExecute(r) +} + +/* +DownloadStreamTenantAuditLogs Download Audit Logs for One Atlas Stream Processing Instance + +[experimental] Downloads the audit logs for the specified Atlas Streams Processing instance. By default, logs cover periods of 30 days. To use this resource, the requesting API Key must have the Project Owner roles or Project Data Access Read Write roles. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @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. + @param tenantName Human-readable label that identifies the stream instance. + @return DownloadStreamTenantAuditLogsApiRequest +*/ +func (a *StreamsApiService) DownloadStreamTenantAuditLogs(ctx context.Context, groupId string, tenantName string) DownloadStreamTenantAuditLogsApiRequest { + return DownloadStreamTenantAuditLogsApiRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + tenantName: tenantName, + } +} + +// Execute executes the request +// +// @return io.ReadCloser +func (a *StreamsApiService) DownloadStreamTenantAuditLogsExecute(r DownloadStreamTenantAuditLogsApiRequest) (io.ReadCloser, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue io.ReadCloser + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.DownloadStreamTenantAuditLogs") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/streams/{tenantName}/auditLogs" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"tenantName"+"}", url.PathEscape(parameterValueToString(r.tenantName, "tenantName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.endDate != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "endDate", r.endDate, "") + } + if r.startDate != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "startDate", r.startDate, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-02-01+gzip", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, localVarHTTPMethod, localVarPath, v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type GetStreamConnectionApiRequest struct { ctx context.Context ApiService StreamsApi diff --git a/admin/atlas_client.go b/admin/atlas_client.go index c4b9ac6e..9d1e7ff1 100644 --- a/admin/atlas_client.go +++ b/admin/atlas_client.go @@ -1,4 +1,4 @@ -package admin // import "go.mongodb.org/atlas-sdk/v20231115007/admin" +package admin // import "go.mongodb.org/atlas-sdk/v20231115008/admin" import ( "errors" @@ -8,7 +8,7 @@ import ( "strings" "github.com/mongodb-forks/digest" - "go.mongodb.org/atlas-sdk/v20231115007/internal/core" + "go.mongodb.org/atlas-sdk/v20231115008/internal/core" ) const ( diff --git a/admin/model_api_error.go b/admin/model_api_error.go index 8b60129d..583781f3 100644 --- a/admin/model_api_error.go +++ b/admin/model_api_error.go @@ -14,7 +14,7 @@ type ApiError struct { Error *int `json:"error,omitempty"` // Application error code returned with this error. ErrorCode *string `json:"errorCode,omitempty"` - // Parameter uses to give more information about the error. + // Parameters used to give more information about the error. Parameters *[]interface{} `json:"parameters,omitempty"` // Application error message returned with this error. Reason *string `json:"reason,omitempty"` diff --git a/admin/model_api_search_deployment_request.go b/admin/model_api_search_deployment_request.go index d828bf56..a77755d0 100644 --- a/admin/model_api_search_deployment_request.go +++ b/admin/model_api_search_deployment_request.go @@ -9,15 +9,16 @@ import ( // ApiSearchDeploymentRequest struct for ApiSearchDeploymentRequest type ApiSearchDeploymentRequest struct { // List of settings that configure the search nodes for your cluster. - Specs *[]ApiSearchDeploymentSpec `json:"specs,omitempty"` + Specs []ApiSearchDeploymentSpec `json:"specs"` } // NewApiSearchDeploymentRequest instantiates a new ApiSearchDeploymentRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewApiSearchDeploymentRequest() *ApiSearchDeploymentRequest { +func NewApiSearchDeploymentRequest(specs []ApiSearchDeploymentSpec) *ApiSearchDeploymentRequest { this := ApiSearchDeploymentRequest{} + this.Specs = specs return &this } @@ -29,37 +30,28 @@ func NewApiSearchDeploymentRequestWithDefaults() *ApiSearchDeploymentRequest { return &this } -// GetSpecs returns the Specs field value if set, zero value otherwise +// GetSpecs returns the Specs field value func (o *ApiSearchDeploymentRequest) GetSpecs() []ApiSearchDeploymentSpec { - if o == nil || IsNil(o.Specs) { + if o == nil { var ret []ApiSearchDeploymentSpec return ret } - return *o.Specs + + return o.Specs } -// GetSpecsOk returns a tuple with the Specs field value if set, nil otherwise +// GetSpecsOk returns a tuple with the Specs field value // and a boolean to check if the value has been set. func (o *ApiSearchDeploymentRequest) GetSpecsOk() (*[]ApiSearchDeploymentSpec, bool) { - if o == nil || IsNil(o.Specs) { + if o == nil { return nil, false } - - return o.Specs, true + return &o.Specs, true } -// HasSpecs returns a boolean if a field has been set. -func (o *ApiSearchDeploymentRequest) HasSpecs() bool { - if o != nil && !IsNil(o.Specs) { - return true - } - - return false -} - -// SetSpecs gets a reference to the given []ApiSearchDeploymentSpec and assigns it to the Specs field. +// SetSpecs sets field value func (o *ApiSearchDeploymentRequest) SetSpecs(v []ApiSearchDeploymentSpec) { - o.Specs = &v + o.Specs = v } func (o ApiSearchDeploymentRequest) MarshalJSONWithoutReadOnly() ([]byte, error) { @@ -71,8 +63,6 @@ func (o ApiSearchDeploymentRequest) MarshalJSONWithoutReadOnly() ([]byte, error) } func (o ApiSearchDeploymentRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Specs) { - toSerialize["specs"] = o.Specs - } + toSerialize["specs"] = o.Specs return toSerialize, nil } diff --git a/admin/model_cloud_database_user.go b/admin/model_cloud_database_user.go index 89cfc6e8..1cdeee19 100644 --- a/admin/model_cloud_database_user.go +++ b/admin/model_cloud_database_user.go @@ -32,7 +32,7 @@ type CloudDatabaseUser struct { Password *string `json:"password,omitempty"` // List that provides the pairings of one role with one applicable database. Roles *[]DatabaseUserRole `json:"roles,omitempty"` - // List that contains clusters and MongoDB Atlas Data Lakes that this database user can access. If omitted, MongoDB Cloud grants the database user access to all the clusters and MongoDB Atlas Data Lakes in the project. + // List that contains clusters, MongoDB Atlas Data Lakes, and MongoDB Atlas Streams Instances that this database user can access. If omitted, MongoDB Cloud grants the database user access to all the clusters, MongoDB Atlas Data Lakes, and MongoDB Atlas Streams Instances in the project. Scopes *[]UserScope `json:"scopes,omitempty"` // Human-readable label that represents the user that authenticates to MongoDB. The format of this label depends on the method of authentication: | Authentication Method | Parameter Needed | Parameter Value | username Format | |---|---|---|---| | AWS IAM | awsType | ROLE | ARN | | AWS IAM | awsType | USER | ARN | | x.509 | x509Type | CUSTOMER | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name | | x.509 | x509Type | MANAGED | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name | | LDAP | ldapAuthType | USER | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name | | LDAP | ldapAuthType | GROUP | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name | | OIDC | oidcAuthType | IDP_GROUP | Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP group name | | SCRAM-SHA | awsType, x509Type, ldapAuthType, oidcAuthType | NONE | Alphanumeric string | Username string `json:"username"` diff --git a/admin/model_criteria.go b/admin/model_criteria.go index 11ae37af..7fbab04f 100644 --- a/admin/model_criteria.go +++ b/admin/model_criteria.go @@ -6,7 +6,7 @@ import ( "encoding/json" ) -// Criteria Rules by which MongoDB MongoDB Cloud archives data. Use the **criteria.type** field to choose how MongoDB Cloud selects data to archive. Choose data using the age of the data or a MongoDB query. **\"criteria.type\": \"DATE\"** selects documents to archive based on a date. **\"criteria.type\": \"CUSTOM\"** selects documents to archive based on a custom JSON query. MongoDB Cloud doesn't support **\"criteria.type\": \"CUSTOM\"** when **\"collectionType\": \"TIMESERIES\"**. +// Criteria Rules by which MongoDB Cloud archives data. Use the **criteria.type** field to choose how MongoDB Cloud selects data to archive. Choose data using the age of the data or a MongoDB query. **\"criteria.type\": \"DATE\"** selects documents to archive based on a date. **\"criteria.type\": \"CUSTOM\"** selects documents to archive based on a custom JSON query. MongoDB Cloud doesn't support **\"criteria.type\": \"CUSTOM\"** when **\"collectionType\": \"TIMESERIES\"**. type Criteria struct { // Means by which MongoDB Cloud selects data to archive. Data can be chosen using the age of the data or a MongoDB query. **DATE** selects documents to archive based on a date. **CUSTOM** selects documents to archive based on a custom JSON query. MongoDB Cloud doesn't support **CUSTOM** when `\"collectionType\": \"TIMESERIES\"`. Type *string `json:"type,omitempty"` diff --git a/admin/model_group_name.go b/admin/model_group_name.go deleted file mode 100644 index 49cdd38a..00000000 --- a/admin/model_group_name.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code based on the AtlasAPI V2 OpenAPI file - -package admin - -import ( - "encoding/json" -) - -// GroupName Request view to update the group name. -type GroupName struct { - // Human-readable label that identifies the project included in the MongoDB Cloud organization. - Name *string `json:"name,omitempty"` -} - -// NewGroupName instantiates a new GroupName object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGroupName() *GroupName { - this := GroupName{} - return &this -} - -// NewGroupNameWithDefaults instantiates a new GroupName object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGroupNameWithDefaults() *GroupName { - this := GroupName{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise -func (o *GroupName) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GroupName) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *GroupName) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *GroupName) SetName(v string) { - o.Name = &v -} - -func (o GroupName) MarshalJSONWithoutReadOnly() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} -func (o GroupName) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - return toSerialize, nil -} diff --git a/admin/model_group_paginated_event.go b/admin/model_group_paginated_event.go index 6d096158..87fdee05 100644 --- a/admin/model_group_paginated_event.go +++ b/admin/model_group_paginated_event.go @@ -14,7 +14,7 @@ type GroupPaginatedEvent struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]EventViewForNdsGroup `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_group_update.go b/admin/model_group_update.go new file mode 100644 index 00000000..eb17f9ba --- /dev/null +++ b/admin/model_group_update.go @@ -0,0 +1,116 @@ +// Code based on the AtlasAPI V2 OpenAPI file + +package admin + +import ( + "encoding/json" +) + +// GroupUpdate Request view to update the group. +type GroupUpdate struct { + // Human-readable label that identifies the project included in the MongoDB Cloud organization. + Name *string `json:"name,omitempty"` + // List that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. + Tags *[]ResourceTag `json:"tags,omitempty"` +} + +// NewGroupUpdate instantiates a new GroupUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGroupUpdate() *GroupUpdate { + this := GroupUpdate{} + return &this +} + +// NewGroupUpdateWithDefaults instantiates a new GroupUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGroupUpdateWithDefaults() *GroupUpdate { + this := GroupUpdate{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise +func (o *GroupUpdate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupUpdate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GroupUpdate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *GroupUpdate) SetName(v string) { + o.Name = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise +func (o *GroupUpdate) GetTags() []ResourceTag { + if o == nil || IsNil(o.Tags) { + var ret []ResourceTag + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupUpdate) GetTagsOk() (*[]ResourceTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *GroupUpdate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []ResourceTag and assigns it to the Tags field. +func (o *GroupUpdate) SetTags(v []ResourceTag) { + o.Tags = &v +} + +func (o GroupUpdate) MarshalJSONWithoutReadOnly() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} +func (o GroupUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} diff --git a/admin/model_org_paginated_event.go b/admin/model_org_paginated_event.go index 0545be89..42c053bb 100644 --- a/admin/model_org_paginated_event.go +++ b/admin/model_org_paginated_event.go @@ -14,7 +14,7 @@ type OrgPaginatedEvent struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]EventViewForOrg `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_organization_invitation.go b/admin/model_organization_invitation.go index d7c6af38..0066a18e 100644 --- a/admin/model_organization_invitation.go +++ b/admin/model_organization_invitation.go @@ -17,7 +17,7 @@ type OrganizationInvitation struct { ExpiresAt *time.Time `json:"expiresAt,omitempty"` // List of projects that the user will be added to when they accept their invitation to the organization. GroupRoleAssignments *[]GroupRole `json:"groupRoleAssignments,omitempty"` - // Unique 24-hexadecimal digit string that identifies this organization. + // Unique 24-hexadecimal digit string that identifies this invitation. // Read only field. Id *string `json:"id,omitempty"` // Email address of the MongoDB Cloud user who sent the invitation to join the organization. @@ -31,7 +31,7 @@ type OrganizationInvitation struct { OrgId *string `json:"orgId,omitempty"` // Human-readable label that identifies this organization. OrgName string `json:"orgName"` - // One or more organization or project level roles to assign to the MongoDB Cloud user. + // One or more organization level roles to assign to the MongoDB Cloud user. Roles *[]string `json:"roles,omitempty"` // List of unique 24-hexadecimal digit strings that identifies each team. // Read only field. diff --git a/admin/model_paginated_advanced_cluster_description.go b/admin/model_paginated_advanced_cluster_description.go index da662b63..0627d5a0 100644 --- a/admin/model_paginated_advanced_cluster_description.go +++ b/admin/model_paginated_advanced_cluster_description.go @@ -14,7 +14,7 @@ type PaginatedAdvancedClusterDescription struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]AdvancedClusterDescription `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_alert.go b/admin/model_paginated_alert.go index f5e3a095..2249dd02 100644 --- a/admin/model_paginated_alert.go +++ b/admin/model_paginated_alert.go @@ -14,7 +14,7 @@ type PaginatedAlert struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]AlertViewForNdsGroup `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_alert_config.go b/admin/model_paginated_alert_config.go index 0aa0fab9..5a9bdc8f 100644 --- a/admin/model_paginated_alert_config.go +++ b/admin/model_paginated_alert_config.go @@ -14,7 +14,7 @@ type PaginatedAlertConfig struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]GroupAlertsConfig `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_api_user.go b/admin/model_paginated_api_api_user.go index b25e403a..57178e28 100644 --- a/admin/model_paginated_api_api_user.go +++ b/admin/model_paginated_api_api_user.go @@ -14,7 +14,7 @@ type PaginatedApiApiUser struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]ApiKeyUserDetails `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_app_user.go b/admin/model_paginated_api_app_user.go index 8efa6aa9..ef16fab7 100644 --- a/admin/model_paginated_api_app_user.go +++ b/admin/model_paginated_api_app_user.go @@ -14,7 +14,7 @@ type PaginatedApiAppUser struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]CloudAppUser `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_atlas_checkpoint.go b/admin/model_paginated_api_atlas_checkpoint.go index caaf5045..41bdaab2 100644 --- a/admin/model_paginated_api_atlas_checkpoint.go +++ b/admin/model_paginated_api_atlas_checkpoint.go @@ -14,7 +14,7 @@ type PaginatedApiAtlasCheckpoint struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]ApiAtlasCheckpoint `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_atlas_database_user.go b/admin/model_paginated_api_atlas_database_user.go index e70039c0..d5c85ad4 100644 --- a/admin/model_paginated_api_atlas_database_user.go +++ b/admin/model_paginated_api_atlas_database_user.go @@ -14,7 +14,7 @@ type PaginatedApiAtlasDatabaseUser struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]CloudDatabaseUser `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_atlas_disk_backup_export_job.go b/admin/model_paginated_api_atlas_disk_backup_export_job.go index c30e1309..e7e65223 100644 --- a/admin/model_paginated_api_atlas_disk_backup_export_job.go +++ b/admin/model_paginated_api_atlas_disk_backup_export_job.go @@ -14,7 +14,7 @@ type PaginatedApiAtlasDiskBackupExportJob struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]DiskBackupExportJob `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_atlas_provider_regions.go b/admin/model_paginated_api_atlas_provider_regions.go index 435e31c9..fb26284e 100644 --- a/admin/model_paginated_api_atlas_provider_regions.go +++ b/admin/model_paginated_api_atlas_provider_regions.go @@ -14,7 +14,7 @@ type PaginatedApiAtlasProviderRegions struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]CloudProviderRegions `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_atlas_serverless_backup_restore_job.go b/admin/model_paginated_api_atlas_serverless_backup_restore_job.go index 06c1a3e7..1ac61399 100644 --- a/admin/model_paginated_api_atlas_serverless_backup_restore_job.go +++ b/admin/model_paginated_api_atlas_serverless_backup_restore_job.go @@ -14,7 +14,7 @@ type PaginatedApiAtlasServerlessBackupRestoreJob struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]ServerlessBackupRestoreJob `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_atlas_serverless_backup_snapshot.go b/admin/model_paginated_api_atlas_serverless_backup_snapshot.go index 2b5c3ea9..12e6fb92 100644 --- a/admin/model_paginated_api_atlas_serverless_backup_snapshot.go +++ b/admin/model_paginated_api_atlas_serverless_backup_snapshot.go @@ -14,7 +14,7 @@ type PaginatedApiAtlasServerlessBackupSnapshot struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]ServerlessBackupSnapshot `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_invoice.go b/admin/model_paginated_api_invoice.go index 580bfdec..86d7fd53 100644 --- a/admin/model_paginated_api_invoice.go +++ b/admin/model_paginated_api_invoice.go @@ -14,7 +14,7 @@ type PaginatedApiInvoice struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]BillingInvoice `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_streams_connection.go b/admin/model_paginated_api_streams_connection.go index 112541cc..510d889f 100644 --- a/admin/model_paginated_api_streams_connection.go +++ b/admin/model_paginated_api_streams_connection.go @@ -14,7 +14,7 @@ type PaginatedApiStreamsConnection struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]StreamsConnection `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_streams_tenant.go b/admin/model_paginated_api_streams_tenant.go index 2849c326..ca1f7580 100644 --- a/admin/model_paginated_api_streams_tenant.go +++ b/admin/model_paginated_api_streams_tenant.go @@ -14,7 +14,7 @@ type PaginatedApiStreamsTenant struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]StreamsTenant `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_api_user_access_list.go b/admin/model_paginated_api_user_access_list_response.go similarity index 59% rename from admin/model_paginated_api_user_access_list.go rename to admin/model_paginated_api_user_access_list_response.go index 73a99de4..78475285 100644 --- a/admin/model_paginated_api_user_access_list.go +++ b/admin/model_paginated_api_user_access_list_response.go @@ -6,38 +6,38 @@ import ( "encoding/json" ) -// PaginatedApiUserAccessList struct for PaginatedApiUserAccessList -type PaginatedApiUserAccessList struct { +// PaginatedApiUserAccessListResponse struct for PaginatedApiUserAccessListResponse +type PaginatedApiUserAccessListResponse struct { // List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. // Read only field. Links *[]Link `json:"links,omitempty"` // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. - Results *[]UserAccessList `json:"results,omitempty"` - // Number of documents returned in this response. + Results *[]UserAccessListResponse `json:"results,omitempty"` + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } -// NewPaginatedApiUserAccessList instantiates a new PaginatedApiUserAccessList object +// NewPaginatedApiUserAccessListResponse instantiates a new PaginatedApiUserAccessListResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPaginatedApiUserAccessList() *PaginatedApiUserAccessList { - this := PaginatedApiUserAccessList{} +func NewPaginatedApiUserAccessListResponse() *PaginatedApiUserAccessListResponse { + this := PaginatedApiUserAccessListResponse{} return &this } -// NewPaginatedApiUserAccessListWithDefaults instantiates a new PaginatedApiUserAccessList object +// NewPaginatedApiUserAccessListResponseWithDefaults instantiates a new PaginatedApiUserAccessListResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPaginatedApiUserAccessListWithDefaults() *PaginatedApiUserAccessList { - this := PaginatedApiUserAccessList{} +func NewPaginatedApiUserAccessListResponseWithDefaults() *PaginatedApiUserAccessListResponse { + this := PaginatedApiUserAccessListResponse{} return &this } // GetLinks returns the Links field value if set, zero value otherwise -func (o *PaginatedApiUserAccessList) GetLinks() []Link { +func (o *PaginatedApiUserAccessListResponse) GetLinks() []Link { if o == nil || IsNil(o.Links) { var ret []Link return ret @@ -47,7 +47,7 @@ func (o *PaginatedApiUserAccessList) GetLinks() []Link { // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaginatedApiUserAccessList) GetLinksOk() (*[]Link, bool) { +func (o *PaginatedApiUserAccessListResponse) GetLinksOk() (*[]Link, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -56,7 +56,7 @@ func (o *PaginatedApiUserAccessList) GetLinksOk() (*[]Link, bool) { } // HasLinks returns a boolean if a field has been set. -func (o *PaginatedApiUserAccessList) HasLinks() bool { +func (o *PaginatedApiUserAccessListResponse) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -65,14 +65,14 @@ func (o *PaginatedApiUserAccessList) HasLinks() bool { } // SetLinks gets a reference to the given []Link and assigns it to the Links field. -func (o *PaginatedApiUserAccessList) SetLinks(v []Link) { +func (o *PaginatedApiUserAccessListResponse) SetLinks(v []Link) { o.Links = &v } // GetResults returns the Results field value if set, zero value otherwise -func (o *PaginatedApiUserAccessList) GetResults() []UserAccessList { +func (o *PaginatedApiUserAccessListResponse) GetResults() []UserAccessListResponse { if o == nil || IsNil(o.Results) { - var ret []UserAccessList + var ret []UserAccessListResponse return ret } return *o.Results @@ -80,7 +80,7 @@ func (o *PaginatedApiUserAccessList) GetResults() []UserAccessList { // GetResultsOk returns a tuple with the Results field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaginatedApiUserAccessList) GetResultsOk() (*[]UserAccessList, bool) { +func (o *PaginatedApiUserAccessListResponse) GetResultsOk() (*[]UserAccessListResponse, bool) { if o == nil || IsNil(o.Results) { return nil, false } @@ -89,7 +89,7 @@ func (o *PaginatedApiUserAccessList) GetResultsOk() (*[]UserAccessList, bool) { } // HasResults returns a boolean if a field has been set. -func (o *PaginatedApiUserAccessList) HasResults() bool { +func (o *PaginatedApiUserAccessListResponse) HasResults() bool { if o != nil && !IsNil(o.Results) { return true } @@ -97,13 +97,13 @@ func (o *PaginatedApiUserAccessList) HasResults() bool { return false } -// SetResults gets a reference to the given []UserAccessList and assigns it to the Results field. -func (o *PaginatedApiUserAccessList) SetResults(v []UserAccessList) { +// SetResults gets a reference to the given []UserAccessListResponse and assigns it to the Results field. +func (o *PaginatedApiUserAccessListResponse) SetResults(v []UserAccessListResponse) { o.Results = &v } // GetTotalCount returns the TotalCount field value if set, zero value otherwise -func (o *PaginatedApiUserAccessList) GetTotalCount() int { +func (o *PaginatedApiUserAccessListResponse) GetTotalCount() int { if o == nil || IsNil(o.TotalCount) { var ret int return ret @@ -113,7 +113,7 @@ func (o *PaginatedApiUserAccessList) GetTotalCount() int { // GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaginatedApiUserAccessList) GetTotalCountOk() (*int, bool) { +func (o *PaginatedApiUserAccessListResponse) GetTotalCountOk() (*int, bool) { if o == nil || IsNil(o.TotalCount) { return nil, false } @@ -122,7 +122,7 @@ func (o *PaginatedApiUserAccessList) GetTotalCountOk() (*int, bool) { } // HasTotalCount returns a boolean if a field has been set. -func (o *PaginatedApiUserAccessList) HasTotalCount() bool { +func (o *PaginatedApiUserAccessListResponse) HasTotalCount() bool { if o != nil && !IsNil(o.TotalCount) { return true } @@ -131,18 +131,18 @@ func (o *PaginatedApiUserAccessList) HasTotalCount() bool { } // SetTotalCount gets a reference to the given int and assigns it to the TotalCount field. -func (o *PaginatedApiUserAccessList) SetTotalCount(v int) { +func (o *PaginatedApiUserAccessListResponse) SetTotalCount(v int) { o.TotalCount = &v } -func (o PaginatedApiUserAccessList) MarshalJSONWithoutReadOnly() ([]byte, error) { +func (o PaginatedApiUserAccessListResponse) MarshalJSONWithoutReadOnly() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o PaginatedApiUserAccessList) ToMap() (map[string]interface{}, error) { +func (o PaginatedApiUserAccessListResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} return toSerialize, nil } diff --git a/admin/model_paginated_app_user.go b/admin/model_paginated_app_user.go index c3b7a05f..c880ff43 100644 --- a/admin/model_paginated_app_user.go +++ b/admin/model_paginated_app_user.go @@ -14,7 +14,7 @@ type PaginatedAppUser struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]CloudAppUser `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_atlas_group.go b/admin/model_paginated_atlas_group.go index bf7bd528..00765301 100644 --- a/admin/model_paginated_atlas_group.go +++ b/admin/model_paginated_atlas_group.go @@ -14,7 +14,7 @@ type PaginatedAtlasGroup struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]Group `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_backup_snapshot.go b/admin/model_paginated_backup_snapshot.go index 8e56956f..2eb19333 100644 --- a/admin/model_paginated_backup_snapshot.go +++ b/admin/model_paginated_backup_snapshot.go @@ -14,7 +14,7 @@ type PaginatedBackupSnapshot struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]DiskBackupSnapshot `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_backup_snapshot_export_bucket.go b/admin/model_paginated_backup_snapshot_export_bucket.go index c633443f..2c0a6afc 100644 --- a/admin/model_paginated_backup_snapshot_export_bucket.go +++ b/admin/model_paginated_backup_snapshot_export_bucket.go @@ -14,7 +14,7 @@ type PaginatedBackupSnapshotExportBucket struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]DiskBackupSnapshotAWSExportBucket `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_cloud_backup_replica_set.go b/admin/model_paginated_cloud_backup_replica_set.go index ad2d94c4..d51b8e1a 100644 --- a/admin/model_paginated_cloud_backup_replica_set.go +++ b/admin/model_paginated_cloud_backup_replica_set.go @@ -14,7 +14,7 @@ type PaginatedCloudBackupReplicaSet struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]DiskBackupReplicaSet `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_cloud_backup_restore_job.go b/admin/model_paginated_cloud_backup_restore_job.go index 0ef38577..527c9d8d 100644 --- a/admin/model_paginated_cloud_backup_restore_job.go +++ b/admin/model_paginated_cloud_backup_restore_job.go @@ -14,7 +14,7 @@ type PaginatedCloudBackupRestoreJob struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]DiskBackupSnapshotRestoreJob `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_cloud_backup_sharded_cluster_snapshot.go b/admin/model_paginated_cloud_backup_sharded_cluster_snapshot.go index 22d3b190..a949139e 100644 --- a/admin/model_paginated_cloud_backup_sharded_cluster_snapshot.go +++ b/admin/model_paginated_cloud_backup_sharded_cluster_snapshot.go @@ -14,7 +14,7 @@ type PaginatedCloudBackupShardedClusterSnapshot struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]DiskBackupShardedClusterSnapshot `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_cloud_provider_container.go b/admin/model_paginated_cloud_provider_container.go index 91d2dd4e..17346544 100644 --- a/admin/model_paginated_cloud_provider_container.go +++ b/admin/model_paginated_cloud_provider_container.go @@ -14,7 +14,7 @@ type PaginatedCloudProviderContainer struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]CloudProviderContainer `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_container_peer.go b/admin/model_paginated_container_peer.go index 9cffd9e4..990b98bc 100644 --- a/admin/model_paginated_container_peer.go +++ b/admin/model_paginated_container_peer.go @@ -14,7 +14,7 @@ type PaginatedContainerPeer struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]BaseNetworkPeeringConnectionSettings `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_database.go b/admin/model_paginated_database.go index 2e7b37b5..9c29a6fd 100644 --- a/admin/model_paginated_database.go +++ b/admin/model_paginated_database.go @@ -14,7 +14,7 @@ type PaginatedDatabase struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]MesurementsDatabase `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_disk_partition.go b/admin/model_paginated_disk_partition.go index f8c0ac30..77425647 100644 --- a/admin/model_paginated_disk_partition.go +++ b/admin/model_paginated_disk_partition.go @@ -14,7 +14,7 @@ type PaginatedDiskPartition struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]MeasurementDiskPartition `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_federation_identity_provider.go b/admin/model_paginated_federation_identity_provider.go index da2775ba..fb0f767e 100644 --- a/admin/model_paginated_federation_identity_provider.go +++ b/admin/model_paginated_federation_identity_provider.go @@ -14,7 +14,7 @@ type PaginatedFederationIdentityProvider struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]FederationIdentityProvider `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_host_view_atlas.go b/admin/model_paginated_host_view_atlas.go index 0045aeeb..9032306a 100644 --- a/admin/model_paginated_host_view_atlas.go +++ b/admin/model_paginated_host_view_atlas.go @@ -14,7 +14,7 @@ type PaginatedHostViewAtlas struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]ApiHostViewAtlas `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_integration.go b/admin/model_paginated_integration.go index 804e1996..20a412e5 100644 --- a/admin/model_paginated_integration.go +++ b/admin/model_paginated_integration.go @@ -14,7 +14,7 @@ type PaginatedIntegration struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]ThirdPartyIntegration `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_network_access.go b/admin/model_paginated_network_access.go index feb02c17..9fe528da 100644 --- a/admin/model_paginated_network_access.go +++ b/admin/model_paginated_network_access.go @@ -14,7 +14,7 @@ type PaginatedNetworkAccess struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]NetworkPermissionEntry `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_online_archive.go b/admin/model_paginated_online_archive.go index 3e55925f..a14f2598 100644 --- a/admin/model_paginated_online_archive.go +++ b/admin/model_paginated_online_archive.go @@ -14,7 +14,7 @@ type PaginatedOnlineArchive struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]BackupOnlineArchive `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_org_group.go b/admin/model_paginated_org_group.go index 085da6f4..138090e7 100644 --- a/admin/model_paginated_org_group.go +++ b/admin/model_paginated_org_group.go @@ -14,7 +14,7 @@ type PaginatedOrgGroup struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]OrgGroup `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_organization.go b/admin/model_paginated_organization.go index a88441c5..9731ab33 100644 --- a/admin/model_paginated_organization.go +++ b/admin/model_paginated_organization.go @@ -14,7 +14,7 @@ type PaginatedOrganization struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]AtlasOrganization `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_pipeline_run.go b/admin/model_paginated_pipeline_run.go index 814defb6..e930026a 100644 --- a/admin/model_paginated_pipeline_run.go +++ b/admin/model_paginated_pipeline_run.go @@ -14,7 +14,7 @@ type PaginatedPipelineRun struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]IngestionPipelineRun `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_private_network_endpoint_id_entry.go b/admin/model_paginated_private_network_endpoint_id_entry.go index 3ff921c1..7035caa1 100644 --- a/admin/model_paginated_private_network_endpoint_id_entry.go +++ b/admin/model_paginated_private_network_endpoint_id_entry.go @@ -14,7 +14,7 @@ type PaginatedPrivateNetworkEndpointIdEntry struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]PrivateNetworkEndpointIdEntry `json:"results,omitempty"` - // Number of documents returned in this response if **includeCount** query param is true. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_restore_job.go b/admin/model_paginated_restore_job.go index 90da9f3a..c196e86d 100644 --- a/admin/model_paginated_restore_job.go +++ b/admin/model_paginated_restore_job.go @@ -14,7 +14,7 @@ type PaginatedRestoreJob struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]BackupRestoreJob `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_role_mapping.go b/admin/model_paginated_role_mapping.go index bad279a2..86baea9d 100644 --- a/admin/model_paginated_role_mapping.go +++ b/admin/model_paginated_role_mapping.go @@ -14,7 +14,7 @@ type PaginatedRoleMapping struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]AuthFederationRoleMapping `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_serverless_instance_description.go b/admin/model_paginated_serverless_instance_description.go index 3dc1c18b..85009dbe 100644 --- a/admin/model_paginated_serverless_instance_description.go +++ b/admin/model_paginated_serverless_instance_description.go @@ -14,7 +14,7 @@ type PaginatedServerlessInstanceDescription struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]ServerlessInstanceDescription `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_snapshot.go b/admin/model_paginated_snapshot.go index f97797d2..7b957c71 100644 --- a/admin/model_paginated_snapshot.go +++ b/admin/model_paginated_snapshot.go @@ -14,7 +14,7 @@ type PaginatedSnapshot struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]BackupSnapshot `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_team.go b/admin/model_paginated_team.go index 4a05a14f..f53bf19c 100644 --- a/admin/model_paginated_team.go +++ b/admin/model_paginated_team.go @@ -14,7 +14,7 @@ type PaginatedTeam struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]TeamResponse `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_team_role.go b/admin/model_paginated_team_role.go index 17e8067d..d2ccb71e 100644 --- a/admin/model_paginated_team_role.go +++ b/admin/model_paginated_team_role.go @@ -14,7 +14,7 @@ type PaginatedTeamRole struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]TeamRole `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_tenant_restore.go b/admin/model_paginated_tenant_restore.go index 3d8f7227..628547c7 100644 --- a/admin/model_paginated_tenant_restore.go +++ b/admin/model_paginated_tenant_restore.go @@ -14,7 +14,7 @@ type PaginatedTenantRestore struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]TenantRestore `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_tenant_snapshot.go b/admin/model_paginated_tenant_snapshot.go index a3a8b03e..6c048b14 100644 --- a/admin/model_paginated_tenant_snapshot.go +++ b/admin/model_paginated_tenant_snapshot.go @@ -14,7 +14,7 @@ type PaginatedTenantSnapshot struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]BackupTenantSnapshot `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_paginated_user_cert.go b/admin/model_paginated_user_cert.go index 5228a606..41465820 100644 --- a/admin/model_paginated_user_cert.go +++ b/admin/model_paginated_user_cert.go @@ -14,7 +14,7 @@ type PaginatedUserCert struct { // List of returned documents that MongoDB Cloud providers when completing this request. // Read only field. Results *[]UserCert `json:"results,omitempty"` - // Number of documents returned in this response. + // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. // Read only field. TotalCount *int `json:"totalCount,omitempty"` } diff --git a/admin/model_push_based_log_export_project.go b/admin/model_push_based_log_export_project.go index 40202728..74fb3883 100644 --- a/admin/model_push_based_log_export_project.go +++ b/admin/model_push_based_log_export_project.go @@ -22,6 +22,7 @@ type PushBasedLogExportProject struct { // S3 directory in which vector will write to in order to store the logs. PrefixPath *string `json:"prefixPath,omitempty"` // Describes whether or not the feature is enabled and what status it is in. + // Read only field. State *string `json:"state,omitempty"` } @@ -258,8 +259,5 @@ func (o PushBasedLogExportProject) ToMap() (map[string]interface{}, error) { if !IsNil(o.PrefixPath) { toSerialize["prefixPath"] = o.PrefixPath } - if !IsNil(o.State) { - toSerialize["state"] = o.State - } return toSerialize, nil } diff --git a/admin/model_resource_tag.go b/admin/model_resource_tag.go index 19b019f3..1c691563 100644 --- a/admin/model_resource_tag.go +++ b/admin/model_resource_tag.go @@ -9,17 +9,19 @@ import ( // ResourceTag Key-value pair that tags and categorizes a MongoDB Cloud organization, project, or cluster. For example, `environment : production`. type ResourceTag struct { // Constant that defines the set of the tag. For example, `environment` in the `environment : production` tag. - Key *string `json:"key,omitempty"` + Key string `json:"key"` // Variable that belongs to the set of the tag. For example, `production` in the `environment : production` tag. - Value *string `json:"value,omitempty"` + Value string `json:"value"` } // NewResourceTag instantiates a new ResourceTag object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewResourceTag() *ResourceTag { +func NewResourceTag(key string, value string) *ResourceTag { this := ResourceTag{} + this.Key = key + this.Value = value return &this } @@ -31,70 +33,52 @@ func NewResourceTagWithDefaults() *ResourceTag { return &this } -// GetKey returns the Key field value if set, zero value otherwise +// GetKey returns the Key field value func (o *ResourceTag) GetKey() string { - if o == nil || IsNil(o.Key) { + if o == nil { var ret string return ret } - return *o.Key + + return o.Key } -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// GetKeyOk returns a tuple with the Key field value // and a boolean to check if the value has been set. func (o *ResourceTag) GetKeyOk() (*string, bool) { - if o == nil || IsNil(o.Key) { + if o == nil { return nil, false } - - return o.Key, true + return &o.Key, true } -// HasKey returns a boolean if a field has been set. -func (o *ResourceTag) HasKey() bool { - if o != nil && !IsNil(o.Key) { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. +// SetKey sets field value func (o *ResourceTag) SetKey(v string) { - o.Key = &v + o.Key = v } -// GetValue returns the Value field value if set, zero value otherwise +// GetValue returns the Value field value func (o *ResourceTag) GetValue() string { - if o == nil || IsNil(o.Value) { + if o == nil { var ret string return ret } - return *o.Value + + return o.Value } -// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. func (o *ResourceTag) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { + if o == nil { return nil, false } - - return o.Value, true + return &o.Value, true } -// HasValue returns a boolean if a field has been set. -func (o *ResourceTag) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. +// SetValue sets field value func (o *ResourceTag) SetValue(v string) { - o.Value = &v + o.Value = v } func (o ResourceTag) MarshalJSONWithoutReadOnly() ([]byte, error) { @@ -106,11 +90,7 @@ func (o ResourceTag) MarshalJSONWithoutReadOnly() ([]byte, error) { } func (o ResourceTag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Key) { - toSerialize["key"] = o.Key - } - if !IsNil(o.Value) { - toSerialize["value"] = o.Value - } + toSerialize["key"] = o.Key + toSerialize["value"] = o.Value return toSerialize, nil } diff --git a/admin/model_streams_connection.go b/admin/model_streams_connection.go index c9e9d658..7bfa6aa2 100644 --- a/admin/model_streams_connection.go +++ b/admin/model_streams_connection.go @@ -11,7 +11,7 @@ type StreamsConnection struct { // List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. // Read only field. Links *[]Link `json:"links,omitempty"` - // Human-readable label that identifies the stream connection. + // Human-readable label that identifies the stream connection. In the case of the Sample type, this is the name of the sample source. Name *string `json:"name,omitempty"` // Type of the connection. Can be either Cluster or Kafka. Type *string `json:"type,omitempty"` diff --git a/admin/model_user_access_list_request.go b/admin/model_user_access_list_request.go new file mode 100644 index 00000000..89499776 --- /dev/null +++ b/admin/model_user_access_list_request.go @@ -0,0 +1,116 @@ +// Code based on the AtlasAPI V2 OpenAPI file + +package admin + +import ( + "encoding/json" +) + +// UserAccessListRequest struct for UserAccessListRequest +type UserAccessListRequest struct { + // Range of network addresses that you want to add to the access list for the API key. This parameter requires the range to be expressed in classless inter-domain routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or **ipAddress** but not both in the same request. + CidrBlock *string `json:"cidrBlock,omitempty"` + // Network address that you want to add to the access list for the API key. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or **cidrBlock** but not both in the same request. + IpAddress *string `json:"ipAddress,omitempty"` +} + +// NewUserAccessListRequest instantiates a new UserAccessListRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserAccessListRequest() *UserAccessListRequest { + this := UserAccessListRequest{} + return &this +} + +// NewUserAccessListRequestWithDefaults instantiates a new UserAccessListRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserAccessListRequestWithDefaults() *UserAccessListRequest { + this := UserAccessListRequest{} + return &this +} + +// GetCidrBlock returns the CidrBlock field value if set, zero value otherwise +func (o *UserAccessListRequest) GetCidrBlock() string { + if o == nil || IsNil(o.CidrBlock) { + var ret string + return ret + } + return *o.CidrBlock +} + +// GetCidrBlockOk returns a tuple with the CidrBlock field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserAccessListRequest) GetCidrBlockOk() (*string, bool) { + if o == nil || IsNil(o.CidrBlock) { + return nil, false + } + + return o.CidrBlock, true +} + +// HasCidrBlock returns a boolean if a field has been set. +func (o *UserAccessListRequest) HasCidrBlock() bool { + if o != nil && !IsNil(o.CidrBlock) { + return true + } + + return false +} + +// SetCidrBlock gets a reference to the given string and assigns it to the CidrBlock field. +func (o *UserAccessListRequest) SetCidrBlock(v string) { + o.CidrBlock = &v +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise +func (o *UserAccessListRequest) GetIpAddress() string { + if o == nil || IsNil(o.IpAddress) { + var ret string + return ret + } + return *o.IpAddress +} + +// GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserAccessListRequest) GetIpAddressOk() (*string, bool) { + if o == nil || IsNil(o.IpAddress) { + return nil, false + } + + return o.IpAddress, true +} + +// HasIpAddress returns a boolean if a field has been set. +func (o *UserAccessListRequest) HasIpAddress() bool { + if o != nil && !IsNil(o.IpAddress) { + return true + } + + return false +} + +// SetIpAddress gets a reference to the given string and assigns it to the IpAddress field. +func (o *UserAccessListRequest) SetIpAddress(v string) { + o.IpAddress = &v +} + +func (o UserAccessListRequest) MarshalJSONWithoutReadOnly() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} +func (o UserAccessListRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CidrBlock) { + toSerialize["cidrBlock"] = o.CidrBlock + } + if !IsNil(o.IpAddress) { + toSerialize["ipAddress"] = o.IpAddress + } + return toSerialize, nil +} diff --git a/admin/model_user_access_list.go b/admin/model_user_access_list_response.go similarity index 73% rename from admin/model_user_access_list.go rename to admin/model_user_access_list_response.go index 3f8e5e8c..0e28524f 100644 --- a/admin/model_user_access_list.go +++ b/admin/model_user_access_list_response.go @@ -7,9 +7,9 @@ import ( "time" ) -// UserAccessList struct for UserAccessList -type UserAccessList struct { - // Range of network addresses that you want to add to the access list for the API key. This parameter requires the range to be expressed in classless inter-domain routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or **ipAddress** but not both in the same request. +// UserAccessListResponse struct for UserAccessListResponse +type UserAccessListResponse struct { + // Range of IP addresses in Classless Inter-Domain Routing (CIDR) notation in the access list for the API key. CidrBlock *string `json:"cidrBlock,omitempty"` // Total number of requests that have originated from the Internet Protocol (IP) address given as the value of the *lastUsedAddress* parameter. // Read only field. @@ -17,7 +17,7 @@ type UserAccessList struct { // Date and time when someone added the network addresses to the specified API access list. This parameter expresses its value in the ISO 8601 timestamp format in UTC. // Read only field. Created *time.Time `json:"created,omitempty"` - // Network address that you want to add to the access list for the API key. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or **cidrBlock** but not both in the same request. + // Network address in the access list for the API key. IpAddress *string `json:"ipAddress,omitempty"` // Date and time when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request has originated from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource. This parameter expresses its value in the ISO 8601 timestamp format in UTC. // Read only field. @@ -30,25 +30,25 @@ type UserAccessList struct { Links *[]Link `json:"links,omitempty"` } -// NewUserAccessList instantiates a new UserAccessList object +// NewUserAccessListResponse instantiates a new UserAccessListResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUserAccessList() *UserAccessList { - this := UserAccessList{} +func NewUserAccessListResponse() *UserAccessListResponse { + this := UserAccessListResponse{} return &this } -// NewUserAccessListWithDefaults instantiates a new UserAccessList object +// NewUserAccessListResponseWithDefaults instantiates a new UserAccessListResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewUserAccessListWithDefaults() *UserAccessList { - this := UserAccessList{} +func NewUserAccessListResponseWithDefaults() *UserAccessListResponse { + this := UserAccessListResponse{} return &this } // GetCidrBlock returns the CidrBlock field value if set, zero value otherwise -func (o *UserAccessList) GetCidrBlock() string { +func (o *UserAccessListResponse) GetCidrBlock() string { if o == nil || IsNil(o.CidrBlock) { var ret string return ret @@ -58,7 +58,7 @@ func (o *UserAccessList) GetCidrBlock() string { // GetCidrBlockOk returns a tuple with the CidrBlock field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserAccessList) GetCidrBlockOk() (*string, bool) { +func (o *UserAccessListResponse) GetCidrBlockOk() (*string, bool) { if o == nil || IsNil(o.CidrBlock) { return nil, false } @@ -67,7 +67,7 @@ func (o *UserAccessList) GetCidrBlockOk() (*string, bool) { } // HasCidrBlock returns a boolean if a field has been set. -func (o *UserAccessList) HasCidrBlock() bool { +func (o *UserAccessListResponse) HasCidrBlock() bool { if o != nil && !IsNil(o.CidrBlock) { return true } @@ -76,12 +76,12 @@ func (o *UserAccessList) HasCidrBlock() bool { } // SetCidrBlock gets a reference to the given string and assigns it to the CidrBlock field. -func (o *UserAccessList) SetCidrBlock(v string) { +func (o *UserAccessListResponse) SetCidrBlock(v string) { o.CidrBlock = &v } // GetCount returns the Count field value if set, zero value otherwise -func (o *UserAccessList) GetCount() int { +func (o *UserAccessListResponse) GetCount() int { if o == nil || IsNil(o.Count) { var ret int return ret @@ -91,7 +91,7 @@ func (o *UserAccessList) GetCount() int { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserAccessList) GetCountOk() (*int, bool) { +func (o *UserAccessListResponse) GetCountOk() (*int, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -100,7 +100,7 @@ func (o *UserAccessList) GetCountOk() (*int, bool) { } // HasCount returns a boolean if a field has been set. -func (o *UserAccessList) HasCount() bool { +func (o *UserAccessListResponse) HasCount() bool { if o != nil && !IsNil(o.Count) { return true } @@ -109,12 +109,12 @@ func (o *UserAccessList) HasCount() bool { } // SetCount gets a reference to the given int and assigns it to the Count field. -func (o *UserAccessList) SetCount(v int) { +func (o *UserAccessListResponse) SetCount(v int) { o.Count = &v } // GetCreated returns the Created field value if set, zero value otherwise -func (o *UserAccessList) GetCreated() time.Time { +func (o *UserAccessListResponse) GetCreated() time.Time { if o == nil || IsNil(o.Created) { var ret time.Time return ret @@ -124,7 +124,7 @@ func (o *UserAccessList) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserAccessList) GetCreatedOk() (*time.Time, bool) { +func (o *UserAccessListResponse) GetCreatedOk() (*time.Time, bool) { if o == nil || IsNil(o.Created) { return nil, false } @@ -133,7 +133,7 @@ func (o *UserAccessList) GetCreatedOk() (*time.Time, bool) { } // HasCreated returns a boolean if a field has been set. -func (o *UserAccessList) HasCreated() bool { +func (o *UserAccessListResponse) HasCreated() bool { if o != nil && !IsNil(o.Created) { return true } @@ -142,12 +142,12 @@ func (o *UserAccessList) HasCreated() bool { } // SetCreated gets a reference to the given time.Time and assigns it to the Created field. -func (o *UserAccessList) SetCreated(v time.Time) { +func (o *UserAccessListResponse) SetCreated(v time.Time) { o.Created = &v } // GetIpAddress returns the IpAddress field value if set, zero value otherwise -func (o *UserAccessList) GetIpAddress() string { +func (o *UserAccessListResponse) GetIpAddress() string { if o == nil || IsNil(o.IpAddress) { var ret string return ret @@ -157,7 +157,7 @@ func (o *UserAccessList) GetIpAddress() string { // GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserAccessList) GetIpAddressOk() (*string, bool) { +func (o *UserAccessListResponse) GetIpAddressOk() (*string, bool) { if o == nil || IsNil(o.IpAddress) { return nil, false } @@ -166,7 +166,7 @@ func (o *UserAccessList) GetIpAddressOk() (*string, bool) { } // HasIpAddress returns a boolean if a field has been set. -func (o *UserAccessList) HasIpAddress() bool { +func (o *UserAccessListResponse) HasIpAddress() bool { if o != nil && !IsNil(o.IpAddress) { return true } @@ -175,12 +175,12 @@ func (o *UserAccessList) HasIpAddress() bool { } // SetIpAddress gets a reference to the given string and assigns it to the IpAddress field. -func (o *UserAccessList) SetIpAddress(v string) { +func (o *UserAccessListResponse) SetIpAddress(v string) { o.IpAddress = &v } // GetLastUsed returns the LastUsed field value if set, zero value otherwise -func (o *UserAccessList) GetLastUsed() time.Time { +func (o *UserAccessListResponse) GetLastUsed() time.Time { if o == nil || IsNil(o.LastUsed) { var ret time.Time return ret @@ -190,7 +190,7 @@ func (o *UserAccessList) GetLastUsed() time.Time { // GetLastUsedOk returns a tuple with the LastUsed field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserAccessList) GetLastUsedOk() (*time.Time, bool) { +func (o *UserAccessListResponse) GetLastUsedOk() (*time.Time, bool) { if o == nil || IsNil(o.LastUsed) { return nil, false } @@ -199,7 +199,7 @@ func (o *UserAccessList) GetLastUsedOk() (*time.Time, bool) { } // HasLastUsed returns a boolean if a field has been set. -func (o *UserAccessList) HasLastUsed() bool { +func (o *UserAccessListResponse) HasLastUsed() bool { if o != nil && !IsNil(o.LastUsed) { return true } @@ -208,12 +208,12 @@ func (o *UserAccessList) HasLastUsed() bool { } // SetLastUsed gets a reference to the given time.Time and assigns it to the LastUsed field. -func (o *UserAccessList) SetLastUsed(v time.Time) { +func (o *UserAccessListResponse) SetLastUsed(v time.Time) { o.LastUsed = &v } // GetLastUsedAddress returns the LastUsedAddress field value if set, zero value otherwise -func (o *UserAccessList) GetLastUsedAddress() string { +func (o *UserAccessListResponse) GetLastUsedAddress() string { if o == nil || IsNil(o.LastUsedAddress) { var ret string return ret @@ -223,7 +223,7 @@ func (o *UserAccessList) GetLastUsedAddress() string { // GetLastUsedAddressOk returns a tuple with the LastUsedAddress field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserAccessList) GetLastUsedAddressOk() (*string, bool) { +func (o *UserAccessListResponse) GetLastUsedAddressOk() (*string, bool) { if o == nil || IsNil(o.LastUsedAddress) { return nil, false } @@ -232,7 +232,7 @@ func (o *UserAccessList) GetLastUsedAddressOk() (*string, bool) { } // HasLastUsedAddress returns a boolean if a field has been set. -func (o *UserAccessList) HasLastUsedAddress() bool { +func (o *UserAccessListResponse) HasLastUsedAddress() bool { if o != nil && !IsNil(o.LastUsedAddress) { return true } @@ -241,12 +241,12 @@ func (o *UserAccessList) HasLastUsedAddress() bool { } // SetLastUsedAddress gets a reference to the given string and assigns it to the LastUsedAddress field. -func (o *UserAccessList) SetLastUsedAddress(v string) { +func (o *UserAccessListResponse) SetLastUsedAddress(v string) { o.LastUsedAddress = &v } // GetLinks returns the Links field value if set, zero value otherwise -func (o *UserAccessList) GetLinks() []Link { +func (o *UserAccessListResponse) GetLinks() []Link { if o == nil || IsNil(o.Links) { var ret []Link return ret @@ -256,7 +256,7 @@ func (o *UserAccessList) GetLinks() []Link { // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserAccessList) GetLinksOk() (*[]Link, bool) { +func (o *UserAccessListResponse) GetLinksOk() (*[]Link, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -265,7 +265,7 @@ func (o *UserAccessList) GetLinksOk() (*[]Link, bool) { } // HasLinks returns a boolean if a field has been set. -func (o *UserAccessList) HasLinks() bool { +func (o *UserAccessListResponse) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -274,18 +274,18 @@ func (o *UserAccessList) HasLinks() bool { } // SetLinks gets a reference to the given []Link and assigns it to the Links field. -func (o *UserAccessList) SetLinks(v []Link) { +func (o *UserAccessListResponse) SetLinks(v []Link) { o.Links = &v } -func (o UserAccessList) MarshalJSONWithoutReadOnly() ([]byte, error) { +func (o UserAccessListResponse) MarshalJSONWithoutReadOnly() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o UserAccessList) ToMap() (map[string]interface{}, error) { +func (o UserAccessListResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.CidrBlock) { toSerialize["cidrBlock"] = o.CidrBlock diff --git a/auth/device_flow.go b/auth/device_flow.go index 27f8eab7..2fa6030f 100644 --- a/auth/device_flow.go +++ b/auth/device_flow.go @@ -22,7 +22,7 @@ import ( "strings" "time" - core "go.mongodb.org/atlas-sdk/v20231115007/internal/core" + core "go.mongodb.org/atlas-sdk/v20231115008/internal/core" ) const authExpiredError = "DEVICE_AUTHORIZATION_EXPIRED" diff --git a/auth/oauth.go b/auth/oauth.go index c36bb991..976448c0 100644 --- a/auth/oauth.go +++ b/auth/oauth.go @@ -26,7 +26,7 @@ import ( "runtime" "strings" - "go.mongodb.org/atlas-sdk/v20231115007/internal/core" + "go.mongodb.org/atlas-sdk/v20231115008/internal/core" ) const defaultBaseURL = "https://cloud.mongodb.com/" diff --git a/auth/oauth_test.go b/auth/oauth_test.go index 5b152836..406fb810 100644 --- a/auth/oauth_test.go +++ b/auth/oauth_test.go @@ -24,7 +24,7 @@ import ( "reflect" "testing" - core "go.mongodb.org/atlas-sdk/v20231115007/internal/core" + core "go.mongodb.org/atlas-sdk/v20231115008/internal/core" ) const ( diff --git a/docs/README.md b/docs/README.md index dee47204..eb2131a7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,48 +1,15 @@ # Atlas SDK GO documentation -* [Learn Concepts for the Atlas Go SDK](./doc_1_concepts.md#learn-concepts-for-the-atlas-go-sdk) - * [Introduction](./doc_1_concepts.md#introduction) - * [Fetching Data from the Back End](./doc_1_concepts.md#fetching-data-from-the-back-end) - * [Performing Data Modification](./doc_1_concepts.md#performing-data-modification) - * [Experimental Methods](./doc_1_concepts.md#experimental-methods) - * [Read Only and Write Only Fields](./doc_1_concepts.md#read-only-and-write-only-fields) - * [Example](./doc_1_concepts.md#example) - * [Release Strategy (Semantic Versioning)](./doc_1_concepts.md#release-strategy-semantic-versioning) - * [Versioning Rules](./doc_1_concepts.md#versioning-rules) - * [Major Version (vYYYYMMDDXXX.0.0)](./doc_1_concepts.md#major-version-vyyyymmddxxx00) - * [Minor Version (vYYYYMMDDXXX.Y.0)](./doc_1_concepts.md#minor-version-vyyyymmddxxxy0) - * [Patch Version (vYYYYMMDDXXX.Y.Z)](./doc_1_concepts.md#patch-version-vyyyymmddxxxyz) - * [Example Version: v20230201001.0.0](./doc_1_concepts.md#example-version-v2023020100100) - -* [Error Handling](./doc_2_error_handling.md#error-handling) - * [Fetching Error Object](./doc_2_error_handling.md#fetching-error-object) - * [Checking for the Existence of a Specific Error Code](./doc_2_error_handling.md#checking-for-the-existence-of-a-specific-error-code) - -* [Migrate from the Go HTTP Client to the Atlas Go SDK](./doc_3_migration.md#migrate-from-the-go-http-client-to-the-atlas-go-sdk) - * [Background](./doc_3_migration.md#background) - * [Structural Changes](./doc_3_migration.md#structural-changes) - * [Client Initialization](./doc_3_migration.md#client-initialization) - * [Error Handling](./doc_3_migration.md#error-handling) - * [Format of the API Interface](./doc_3_migration.md#format-of-the-api-interface) - * [Different Naming Conventions for SDK Methods](./doc_3_migration.md#different-naming-conventions-for-sdk-methods) - * [Multiple Choices when Creating Request Body Objects](./doc_3_migration.md#multiple-choices-when-creating-request-body-objects) - -* [Authenticate using the Atlas Go SDK](./doc_4_authentication.md#authenticate-using-the-atlas-go-sdk) - * [Use the Atlas Go SDK in Your Code](./doc_4_authentication.md#use-the-atlas-go-sdk-in-your-code) - -* [Best Practices](./doc_5_best_practices.md#best-practices) - * [Using Getters Instead of Direct Field Access](./doc_5_best_practices.md#using-getters-instead-of-direct-field-access) - * [Check for Empty Strings for String Pointers](./doc_5_best_practices.md#check-for-empty-strings-for-string-pointers) - * [Working with Date Fields](./doc_5_best_practices.md#working-with-date-fields) - * [Working with Pointers](./doc_5_best_practices.md#working-with-pointers) - * [Working with Arrays](./doc_5_best_practices.md#working-with-arrays) - * [Working with Binary Responses](./doc_5_best_practices.md#working-with-binary-responses) - * [Use Method for Creating Models](./doc_5_best_practices.md#use-method-for-creating-models) - * [Use golangci-lint Validators](./doc_5_best_practices.md#use-golangci-lint-validators) - * [Linting Issues](./doc_5_best_practices.md#linting-issues) - -* [SDK Reference](./doc_last_reference.md#sdk-reference) - * [Reference Documentation for SDK Endpoints](./doc_last_reference.md#reference-documentation-for-sdk-endpoints) - * [Documentation For Models](./doc_last_reference.md#documentation-for-models) + + + + + + + + + + + diff --git a/docs/doc_2_error_handling.md b/docs/doc_2_error_handling.md index c1a34b78..c33c172b 100644 --- a/docs/doc_2_error_handling.md +++ b/docs/doc_2_error_handling.md @@ -9,7 +9,7 @@ Errors are represented by [ApiErrorObject](https://github.com/mongodb/atlas-sdk- To fetch the error object, execute the following: ```go -import "go.mongodb.org/atlas-sdk/v20231115007/admin" +import "go.mongodb.org/atlas-sdk/v20231115008/admin" projects, response, err := admin.ProjectsApi.ListProjects(ctx).Execute() apiError, ok := admin.AsError(err) @@ -21,7 +21,7 @@ fmt.Println(apiError) To check for the existence of a specific error code (e.g. `MAXIMUM_INDEXES_FOR_TENANT_EXCEEDED`), execute the following: ```go -import admin "go.mongodb.org/atlas-sdk/v20231115007/admin" +import admin "go.mongodb.org/atlas-sdk/v20231115008/admin" projects, response, err := admin.ProjectsApi.ListProjects(ctx).Execute() if admin.IsErrorCode(err, "code"){ @@ -34,7 +34,7 @@ if admin.IsErrorCode(err, "code"){ To check for the existence of a specific HTTP response error code, execute the following: ```go -import admin "go.mongodb.org/atlas-sdk/v20231115007/admin" +import admin "go.mongodb.org/atlas-sdk/v20231115008/admin" projects, response, err := admin.ProjectsApi.ListProjects(ctx).Execute() apiError, ok := admin.AsError(err) diff --git a/docs/doc_3_migration.md b/docs/doc_3_migration.md index e8f25886..9acbeca5 100644 --- a/docs/doc_3_migration.md +++ b/docs/doc_3_migration.md @@ -18,7 +18,7 @@ The Atlas Go SDK doesn't rely on the deprecated [go-client-mongodb-atlas](https: The Atlas Go SDK has different methods for the initialization of the clients: ```go -import admin "go.mongodb.org/atlas-sdk/v20231115007/admin" +import admin "go.mongodb.org/atlas-sdk/v20231115008/admin" sdk, err := admin.NewClient( // Authentication using ApiKey and ApiSecret admin.UseDigestAuth(apiKey, apiSecret)) diff --git a/docs/doc_4_authentication.md b/docs/doc_4_authentication.md index 8a802a87..a743d080 100644 --- a/docs/doc_4_authentication.md +++ b/docs/doc_4_authentication.md @@ -11,7 +11,7 @@ Construct a new Atlas SDK client, then use the services on the client to access different parts of the Atlas Admin API. For example: ```go -import "go.mongodb.org/atlas-sdk/v20231115007/admin" +import "go.mongodb.org/atlas-sdk/v20231115008/admin" func example() { ctx := context.Background() diff --git a/docs/doc_last_reference.md b/docs/doc_last_reference.md index 94ddefc5..2b05913b 100644 --- a/docs/doc_last_reference.md +++ b/docs/doc_last_reference.md @@ -78,9 +78,9 @@ Class | Method | HTTP request | Description | [SDK Maturity](ht *ClusterOutageSimulationApi* | [EndOutageSimulation](./docs/ClusterOutageSimulationApi.md#endoutagesimulation) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/outageSimulation | End an Outage Simulation | Experimental *ClusterOutageSimulationApi* | [GetOutageSimulation](./docs/ClusterOutageSimulationApi.md#getoutagesimulation) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/outageSimulation | Return One Outage Simulation | Experimental *ClusterOutageSimulationApi* | [StartOutageSimulation](./docs/ClusterOutageSimulationApi.md#startoutagesimulation) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/outageSimulation | Start an Outage Simulation | Experimental -*ClustersApi* | [CreateCluster](./docs/ClustersApi.md#createcluster) | **Post** /api/atlas/v2/groups/{groupId}/clusters | Create One Multi-Cloud Cluster from One Project | Stable -*ClustersApi* | [DeleteCluster](./docs/ClustersApi.md#deletecluster) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Remove One Multi-Cloud Cluster from One Project | Stable -*ClustersApi* | [GetCluster](./docs/ClustersApi.md#getcluster) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Return One Multi-Cloud Cluster from One Project | Stable +*ClustersApi* | [CreateCluster](./docs/ClustersApi.md#createcluster) | **Post** /api/atlas/v2/groups/{groupId}/clusters | Create One Cluster from One Project | Stable +*ClustersApi* | [DeleteCluster](./docs/ClustersApi.md#deletecluster) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Remove One Cluster from One Project | Stable +*ClustersApi* | [GetCluster](./docs/ClustersApi.md#getcluster) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Return One Cluster from One Project | Stable *ClustersApi* | [GetClusterAdvancedConfiguration](./docs/ClustersApi.md#getclusteradvancedconfiguration) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs | Return One Advanced Configuration Options for One Cluster | Stable *ClustersApi* | [GetClusterStatus](./docs/ClustersApi.md#getclusterstatus) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/status | Return Status of All Cluster Operations | Experimental *ClustersApi* | [GetSampleDatasetLoadStatus](./docs/ClustersApi.md#getsampledatasetloadstatus) | **Get** /api/atlas/v2/groups/{groupId}/sampleDatasetLoad/{sampleDatasetId} | Check Status of Cluster Sample Dataset Request | Stable @@ -88,8 +88,8 @@ Class | Method | HTTP request | Description | [SDK Maturity](ht *ClustersApi* | [ListClusters](./docs/ClustersApi.md#listclusters) | **Get** /api/atlas/v2/groups/{groupId}/clusters | Return All Clusters in One Project | Stable *ClustersApi* | [ListClustersForAllProjects](./docs/ClustersApi.md#listclustersforallprojects) | **Get** /api/atlas/v2/clusters | Return All Authorized Clusters in All Projects | Experimental *ClustersApi* | [LoadSampleDataset](./docs/ClustersApi.md#loadsampledataset) | **Post** /api/atlas/v2/groups/{groupId}/sampleDatasetLoad/{name} | Load Sample Dataset Request into Cluster | Stable -*ClustersApi* | [TestFailover](./docs/ClustersApi.md#testfailover) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restartPrimaries | Test Failover for One Multi-Cloud Cluster | Stable -*ClustersApi* | [UpdateCluster](./docs/ClustersApi.md#updatecluster) | **Patch** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Modify One Multi-Cloud Cluster from One Project | Stable +*ClustersApi* | [TestFailover](./docs/ClustersApi.md#testfailover) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restartPrimaries | Test Failover for One Cluster | Stable +*ClustersApi* | [UpdateCluster](./docs/ClustersApi.md#updatecluster) | **Patch** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Modify One Cluster from One Project | Stable *ClustersApi* | [UpdateClusterAdvancedConfiguration](./docs/ClustersApi.md#updateclusteradvancedconfiguration) | **Patch** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs | Update Advanced Configuration Options for One Cluster | Stable *ClustersApi* | [UpgradeSharedCluster](./docs/ClustersApi.md#upgradesharedcluster) | **Post** /api/atlas/v2/groups/{groupId}/clusters/tenantUpgrade | Upgrade One Shared-tier Cluster | Experimental *ClustersApi* | [UpgradeSharedClusterToServerless](./docs/ClustersApi.md#upgradesharedclustertoserverless) | **Post** /api/atlas/v2/groups/{groupId}/clusters/tenantUpgradeToServerless | Upgrades One Shared-Tier Cluster to the Serverless Instance | Experimental @@ -155,10 +155,10 @@ Class | Method | HTTP request | Description | [SDK Maturity](ht *FederatedAuthenticationApi* | [UpdateIdentityProvider](./docs/FederatedAuthenticationApi.md#updateidentityprovider) | **Patch** /api/atlas/v2/federationSettings/{federationSettingsId}/identityProviders/{identityProviderId} | Update the identity provider. | Experimental *FederatedAuthenticationApi* | [UpdateRoleMapping](./docs/FederatedAuthenticationApi.md#updaterolemapping) | **Put** /api/atlas/v2/federationSettings/{federationSettingsId}/connectedOrgConfigs/{orgId}/roleMappings/{id} | Update One Role Mapping in One Organization | Experimental *GlobalClustersApi* | [CreateCustomZoneMapping](./docs/GlobalClustersApi.md#createcustomzonemapping) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping | Add One Entry to One Custom Zone Mapping | Experimental -*GlobalClustersApi* | [CreateManagedNamespace](./docs/GlobalClustersApi.md#createmanagednamespace) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces | Create One Managed Namespace in One Global Multi-Cloud Cluster | Experimental -*GlobalClustersApi* | [DeleteAllCustomZoneMappings](./docs/GlobalClustersApi.md#deleteallcustomzonemappings) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping | Remove All Custom Zone Mappings from One Global Multi-Cloud Cluster | Experimental -*GlobalClustersApi* | [DeleteManagedNamespace](./docs/GlobalClustersApi.md#deletemanagednamespace) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces | Remove One Managed Namespace from One Global Multi-Cloud Cluster | Experimental -*GlobalClustersApi* | [GetManagedNamespace](./docs/GlobalClustersApi.md#getmanagednamespace) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites | Return One Managed Namespace in One Global Multi-Cloud Cluster | Stable +*GlobalClustersApi* | [CreateManagedNamespace](./docs/GlobalClustersApi.md#createmanagednamespace) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces | Create One Managed Namespace in One Global Cluster | Experimental +*GlobalClustersApi* | [DeleteAllCustomZoneMappings](./docs/GlobalClustersApi.md#deleteallcustomzonemappings) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping | Remove All Custom Zone Mappings from One Global Cluster | Experimental +*GlobalClustersApi* | [DeleteManagedNamespace](./docs/GlobalClustersApi.md#deletemanagednamespace) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces | Remove One Managed Namespace from One Global Cluster | Experimental +*GlobalClustersApi* | [GetManagedNamespace](./docs/GlobalClustersApi.md#getmanagednamespace) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites | Return One Managed Namespace in One Global Cluster | Stable *InvoicesApi* | [CreateCostExplorerQueryProcess](./docs/InvoicesApi.md#createcostexplorerqueryprocess) | **Post** /api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage | Create Cost Explorer query process | Experimental *InvoicesApi* | [CreateCostExplorerQueryProcess1](./docs/InvoicesApi.md#createcostexplorerqueryprocess1) | **Get** /api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token} | Return results from a given Cost Explorer query, or notify that the results are not ready yet. | Experimental *InvoicesApi* | [DownloadInvoiceCSV](./docs/InvoicesApi.md#downloadinvoicecsv) | **Get** /api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/csv | Return One Organization Invoice as CSV | Experimental @@ -292,7 +292,7 @@ Class | Method | HTTP request | Description | [SDK Maturity](ht *ProjectsApi* | [RemoveProjectUser](./docs/ProjectsApi.md#removeprojectuser) | **Delete** /api/atlas/v2/groups/{groupId}/users/{userId} | Remove One User from One Project | Stable *ProjectsApi* | [ReturnAllIPAddresses](./docs/ProjectsApi.md#returnallipaddresses) | **Get** /api/atlas/v2/groups/{groupId}/ipAddresses | Return All IP Addresses for One Project | Experimental *ProjectsApi* | [SetProjectLimit](./docs/ProjectsApi.md#setprojectlimit) | **Patch** /api/atlas/v2/groups/{groupId}/limits/{limitName} | Set One Project Limit | Experimental -*ProjectsApi* | [UpdateProject](./docs/ProjectsApi.md#updateproject) | **Patch** /api/atlas/v2/groups/{groupId} | Update One Project Name | Experimental +*ProjectsApi* | [UpdateProject](./docs/ProjectsApi.md#updateproject) | **Patch** /api/atlas/v2/groups/{groupId} | Update One Project | Experimental *ProjectsApi* | [UpdateProjectInvitation](./docs/ProjectsApi.md#updateprojectinvitation) | **Patch** /api/atlas/v2/groups/{groupId}/invites | Update One Project Invitation | Stable *ProjectsApi* | [UpdateProjectInvitationById](./docs/ProjectsApi.md#updateprojectinvitationbyid) | **Patch** /api/atlas/v2/groups/{groupId}/invites/{invitationId} | Update One Project Invitation by Invitation ID | Stable *ProjectsApi* | [UpdateProjectRoles](./docs/ProjectsApi.md#updateprojectroles) | **Put** /api/atlas/v2/groups/{groupId}/users/{userId}/roles | Update Project Roles for One MongoDB Cloud User | Experimental @@ -324,6 +324,7 @@ Class | Method | HTTP request | Description | [SDK Maturity](ht *StreamsApi* | [CreateStreamInstance](./docs/StreamsApi.md#createstreaminstance) | **Post** /api/atlas/v2/groups/{groupId}/streams | Create One Stream Instance | Experimental *StreamsApi* | [DeleteStreamConnection](./docs/StreamsApi.md#deletestreamconnection) | **Delete** /api/atlas/v2/groups/{groupId}/streams/{tenantName}/connections/{connectionName} | Delete One Stream Connection | Experimental *StreamsApi* | [DeleteStreamInstance](./docs/StreamsApi.md#deletestreaminstance) | **Delete** /api/atlas/v2/groups/{groupId}/streams/{tenantName} | Delete One Stream Instance | Experimental +*StreamsApi* | [DownloadStreamTenantAuditLogs](./docs/StreamsApi.md#downloadstreamtenantauditlogs) | **Get** /api/atlas/v2/groups/{groupId}/streams/{tenantName}/auditLogs | Download Audit Logs for One Atlas Stream Processing Instance | Experimental *StreamsApi* | [GetStreamConnection](./docs/StreamsApi.md#getstreamconnection) | **Get** /api/atlas/v2/groups/{groupId}/streams/{tenantName}/connections/{connectionName} | Return One Stream Connection | Experimental *StreamsApi* | [GetStreamInstance](./docs/StreamsApi.md#getstreaminstance) | **Get** /api/atlas/v2/groups/{groupId}/streams/{tenantName} | Return One Stream Instance | Experimental *StreamsApi* | [ListStreamConnections](./docs/StreamsApi.md#liststreamconnections) | **Get** /api/atlas/v2/groups/{groupId}/streams/{tenantName}/connections | Return All Connections Of The Stream Instances | Experimental @@ -518,11 +519,11 @@ Class | Method | HTTP request | Description | [SDK Maturity](ht - [GroupInvitationRequest](./docs/GroupInvitationRequest.md) - [GroupInvitationUpdateRequest](./docs/GroupInvitationUpdateRequest.md) - [GroupMaintenanceWindow](./docs/GroupMaintenanceWindow.md) - - [GroupName](./docs/GroupName.md) - [GroupPaginatedEvent](./docs/GroupPaginatedEvent.md) - [GroupRole](./docs/GroupRole.md) - [GroupService](./docs/GroupService.md) - [GroupSettings](./docs/GroupSettings.md) + - [GroupUpdate](./docs/GroupUpdate.md) - [HardwareSpec](./docs/HardwareSpec.md) - [InboundControlPlaneCloudProviderIPAddresses](./docs/InboundControlPlaneCloudProviderIPAddresses.md) - [IndexOptions](./docs/IndexOptions.md) @@ -584,7 +585,7 @@ Class | Method | HTTP request | Description | [SDK Maturity](ht - [PaginatedApiInvoice](./docs/PaginatedApiInvoice.md) - [PaginatedApiStreamsConnection](./docs/PaginatedApiStreamsConnection.md) - [PaginatedApiStreamsTenant](./docs/PaginatedApiStreamsTenant.md) - - [PaginatedApiUserAccessList](./docs/PaginatedApiUserAccessList.md) + - [PaginatedApiUserAccessListResponse](./docs/PaginatedApiUserAccessListResponse.md) - [PaginatedAppUser](./docs/PaginatedAppUser.md) - [PaginatedAtlasGroup](./docs/PaginatedAtlasGroup.md) - [PaginatedBackupSnapshot](./docs/PaginatedBackupSnapshot.md) @@ -678,7 +679,8 @@ Class | Method | HTTP request | Description | [SDK Maturity](ht - [UpdateCustomDBRole](./docs/UpdateCustomDBRole.md) - [UpdateGroupRolesForUser](./docs/UpdateGroupRolesForUser.md) - [UpdateOrgRolesForUser](./docs/UpdateOrgRolesForUser.md) - - [UserAccessList](./docs/UserAccessList.md) + - [UserAccessListRequest](./docs/UserAccessListRequest.md) + - [UserAccessListResponse](./docs/UserAccessListResponse.md) - [UserAccessRoleAssignment](./docs/UserAccessRoleAssignment.md) - [UserCert](./docs/UserCert.md) - [UserCustomDBRole](./docs/UserCustomDBRole.md) diff --git a/docs/docs/AWSClustersDNSApi.md b/docs/docs/AWSClustersDNSApi.md index 9faa0346..80a87878 100644 --- a/docs/docs/AWSClustersDNSApi.md +++ b/docs/docs/AWSClustersDNSApi.md @@ -26,7 +26,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -99,7 +99,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/AccessTrackingApi.md b/docs/docs/AccessTrackingApi.md index 54807f55..bc6c79dd 100644 --- a/docs/docs/AccessTrackingApi.md +++ b/docs/docs/AccessTrackingApi.md @@ -26,7 +26,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -112,7 +112,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/AlertConfigurationsApi.md b/docs/docs/AlertConfigurationsApi.md index 68279d93..2602536a 100644 --- a/docs/docs/AlertConfigurationsApi.md +++ b/docs/docs/AlertConfigurationsApi.md @@ -32,7 +32,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -107,7 +107,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -186,7 +186,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -262,7 +262,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -326,7 +326,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -410,7 +410,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -492,7 +492,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -570,7 +570,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/AlertsApi.md b/docs/docs/AlertsApi.md index eea09ad5..c0b3b912 100644 --- a/docs/docs/AlertsApi.md +++ b/docs/docs/AlertsApi.md @@ -28,7 +28,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -106,7 +106,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -182,7 +182,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -268,7 +268,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ApiError.md b/docs/docs/ApiError.md index b24e2fec..5322bba7 100644 --- a/docs/docs/ApiError.md +++ b/docs/docs/ApiError.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Detail** | Pointer to **string** | Describes the specific conditions or reasons that cause each type of error. | [optional] **Error** | Pointer to **int** | HTTP status code returned with this error. | [optional] **ErrorCode** | Pointer to **string** | Application error code returned with this error. | [optional] -**Parameters** | Pointer to **[]interface{}** | Parameter uses to give more information about the error. | [optional] +**Parameters** | Pointer to **[]interface{}** | Parameters used to give more information about the error. | [optional] **Reason** | Pointer to **string** | Application error message returned with this error. | [optional] ## Methods diff --git a/docs/docs/ApiSearchDeploymentRequest.md b/docs/docs/ApiSearchDeploymentRequest.md index 3c409ba0..20b83026 100644 --- a/docs/docs/ApiSearchDeploymentRequest.md +++ b/docs/docs/ApiSearchDeploymentRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Specs** | Pointer to [**[]ApiSearchDeploymentSpec**](ApiSearchDeploymentSpec.md) | List of settings that configure the search nodes for your cluster. | [optional] +**Specs** | [**[]ApiSearchDeploymentSpec**](ApiSearchDeploymentSpec.md) | List of settings that configure the search nodes for your cluster. | ## Methods ### NewApiSearchDeploymentRequest -`func NewApiSearchDeploymentRequest() *ApiSearchDeploymentRequest` +`func NewApiSearchDeploymentRequest(specs []ApiSearchDeploymentSpec, ) *ApiSearchDeploymentRequest` NewApiSearchDeploymentRequest instantiates a new ApiSearchDeploymentRequest object This constructor will assign default values to properties that have it defined, @@ -44,11 +44,6 @@ and a boolean to check if the value has been set. SetSpecs sets Specs field to given value. -### HasSpecs - -`func (o *ApiSearchDeploymentRequest) HasSpecs() bool` - -HasSpecs returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/docs/AtlasSearchApi.md b/docs/docs/AtlasSearchApi.md index 8b2258e0..399c8cce 100644 --- a/docs/docs/AtlasSearchApi.md +++ b/docs/docs/AtlasSearchApi.md @@ -38,7 +38,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -49,7 +49,7 @@ func main() { groupId := "32b6e34b3d91647abb20e7b8" // string | clusterName := "clusterName_example" // string | - apiSearchDeploymentRequest := *openapiclient.NewApiSearchDeploymentRequest() // ApiSearchDeploymentRequest | + apiSearchDeploymentRequest := *openapiclient.NewApiSearchDeploymentRequest([]openapiclient.ApiSearchDeploymentSpec{*openapiclient.NewApiSearchDeploymentSpec("InstanceSize_example", int(2))}) // ApiSearchDeploymentRequest | resp, r, err := sdk.AtlasSearchApi.CreateAtlasSearchDeployment(context.Background(), groupId, clusterName, &apiSearchDeploymentRequest).Execute() if err != nil { @@ -116,7 +116,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -199,7 +199,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -273,7 +273,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -357,7 +357,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -433,7 +433,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -512,7 +512,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -599,7 +599,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -610,7 +610,7 @@ func main() { groupId := "32b6e34b3d91647abb20e7b8" // string | clusterName := "clusterName_example" // string | - apiSearchDeploymentRequest := *openapiclient.NewApiSearchDeploymentRequest() // ApiSearchDeploymentRequest | + apiSearchDeploymentRequest := *openapiclient.NewApiSearchDeploymentRequest([]openapiclient.ApiSearchDeploymentSpec{*openapiclient.NewApiSearchDeploymentSpec("InstanceSize_example", int(2))}) // ApiSearchDeploymentRequest | resp, r, err := sdk.AtlasSearchApi.UpdateAtlasSearchDeployment(context.Background(), groupId, clusterName, &apiSearchDeploymentRequest).Execute() if err != nil { @@ -677,7 +677,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/AuditingApi.md b/docs/docs/AuditingApi.md index 80aa7e02..24805e56 100644 --- a/docs/docs/AuditingApi.md +++ b/docs/docs/AuditingApi.md @@ -26,7 +26,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -99,7 +99,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/CloudBackupsApi.md b/docs/docs/CloudBackupsApi.md index ef9785a3..707a5234 100644 --- a/docs/docs/CloudBackupsApi.md +++ b/docs/docs/CloudBackupsApi.md @@ -58,7 +58,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -137,7 +137,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -215,7 +215,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -293,7 +293,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -368,7 +368,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -446,7 +446,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -522,7 +522,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -598,7 +598,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -682,7 +682,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -761,7 +761,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -840,7 +840,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -919,7 +919,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -995,7 +995,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1068,7 +1068,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1144,7 +1144,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1223,7 +1223,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1302,7 +1302,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1386,7 +1386,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1465,7 +1465,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1547,7 +1547,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1629,7 +1629,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1708,7 +1708,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1790,7 +1790,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1872,7 +1872,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1959,7 +1959,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -2035,7 +2035,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -2113,7 +2113,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -2176,7 +2176,7 @@ Name | Type | Description | Notes ## UpdateDataProtectionSettings -> DataProtectionSettings20231001 UpdateDataProtectionSettings(ctx, groupId, dataProtectionSettings20231001 DataProtectionSettings20231001).Execute() +> DataProtectionSettings20231001 UpdateDataProtectionSettings(ctx, groupId, dataProtectionSettings20231001 DataProtectionSettings20231001).OverwriteBackupPolicies(overwriteBackupPolicies).Execute() Update or enable the Backup Compliance Policy settings @@ -2191,7 +2191,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -2202,8 +2202,9 @@ func main() { groupId := "32b6e34b3d91647abb20e7b8" // string | dataProtectionSettings20231001 := *openapiclient.NewDataProtectionSettings20231001("AuthorizedEmail_example", "AuthorizedUserFirstName_example", "AuthorizedUserLastName_example") // DataProtectionSettings20231001 | + overwriteBackupPolicies := true // bool | (optional) (default to true) - resp, r, err := sdk.CloudBackupsApi.UpdateDataProtectionSettings(context.Background(), groupId, &dataProtectionSettings20231001).Execute() + resp, r, err := sdk.CloudBackupsApi.UpdateDataProtectionSettings(context.Background(), groupId, &dataProtectionSettings20231001).OverwriteBackupPolicies(overwriteBackupPolicies).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CloudBackupsApi.UpdateDataProtectionSettings``: %v\n", err) apiError := admin.AsError(err) @@ -2231,6 +2232,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **dataProtectionSettings20231001** | [**DataProtectionSettings20231001**](DataProtectionSettings20231001.md) | The new Backup Compliance Policy settings. | + **overwriteBackupPolicies** | **bool** | Flag that indicates whether to overwrite non complying backup policies with the new data protection settings or not. | [default to true] ### Return type @@ -2271,7 +2273,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/CloudDatabaseUser.md b/docs/docs/CloudDatabaseUser.md index 4c38b9e8..da0c2479 100644 --- a/docs/docs/CloudDatabaseUser.md +++ b/docs/docs/CloudDatabaseUser.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **OidcAuthType** | Pointer to **string** | Human-readable label that indicates whether the new database user authenticates with OIDC federated authentication. To create a federated authentication user, specify the value of IDP_GROUP for this field. | [optional] [default to "NONE"] **Password** | Pointer to **string** | Alphanumeric string that authenticates this database user against the database specified in `databaseName`. To authenticate with SCRAM-SHA, you must specify this parameter. This parameter doesn't appear in this response. | [optional] **Roles** | Pointer to [**[]DatabaseUserRole**](DatabaseUserRole.md) | List that provides the pairings of one role with one applicable database. | [optional] -**Scopes** | Pointer to [**[]UserScope**](UserScope.md) | List that contains clusters and MongoDB Atlas Data Lakes that this database user can access. If omitted, MongoDB Cloud grants the database user access to all the clusters and MongoDB Atlas Data Lakes in the project. | [optional] +**Scopes** | Pointer to [**[]UserScope**](UserScope.md) | List that contains clusters, MongoDB Atlas Data Lakes, and MongoDB Atlas Streams Instances that this database user can access. If omitted, MongoDB Cloud grants the database user access to all the clusters, MongoDB Atlas Data Lakes, and MongoDB Atlas Streams Instances in the project. | [optional] **Username** | **string** | Human-readable label that represents the user that authenticates to MongoDB. The format of this label depends on the method of authentication: | Authentication Method | Parameter Needed | Parameter Value | username Format | |---|---|---|---| | AWS IAM | awsType | ROLE | <abbr title=\"Amazon Resource Name\">ARN</abbr> | | AWS IAM | awsType | USER | <abbr title=\"Amazon Resource Name\">ARN</abbr> | | x.509 | x509Type | CUSTOMER | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name | | x.509 | x509Type | MANAGED | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name | | LDAP | ldapAuthType | USER | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name | | LDAP | ldapAuthType | GROUP | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name | | OIDC | oidcAuthType | IDP_GROUP | Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP group name | | SCRAM-SHA | awsType, x509Type, ldapAuthType, oidcAuthType | NONE | Alphanumeric string | | **X509Type** | Pointer to **string** | X.509 method that MongoDB Cloud uses to authenticate the database user. - For application-managed X.509, specify `MANAGED`. - For self-managed X.509, specify `CUSTOMER`. Users created with the `CUSTOMER` method require a Common Name (CN) in the **username** parameter. You must create externally authenticated users on the `$external` database. | [optional] [default to "NONE"] diff --git a/docs/docs/CloudMigrationServiceApi.md b/docs/docs/CloudMigrationServiceApi.md index adaec972..3a75ef88 100644 --- a/docs/docs/CloudMigrationServiceApi.md +++ b/docs/docs/CloudMigrationServiceApi.md @@ -32,7 +32,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -107,7 +107,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -182,7 +182,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -256,7 +256,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -329,7 +329,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -405,7 +405,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -486,7 +486,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -559,7 +559,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/CloudProviderAccessApi.md b/docs/docs/CloudProviderAccessApi.md index 133856a3..34868a49 100644 --- a/docs/docs/CloudProviderAccessApi.md +++ b/docs/docs/CloudProviderAccessApi.md @@ -29,7 +29,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -107,7 +107,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -182,7 +182,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -264,7 +264,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -340,7 +340,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ClusterOutageSimulationApi.md b/docs/docs/ClusterOutageSimulationApi.md index 0b172629..66c30f1c 100644 --- a/docs/docs/ClusterOutageSimulationApi.md +++ b/docs/docs/ClusterOutageSimulationApi.md @@ -32,7 +32,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -113,7 +113,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -194,7 +194,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ClustersApi.md b/docs/docs/ClustersApi.md index 2f4b1ffe..a1899f30 100644 --- a/docs/docs/ClustersApi.md +++ b/docs/docs/ClustersApi.md @@ -4,9 +4,9 @@ All URIs are relative to *https://cloud.mongodb.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateCluster**](ClustersApi.md#CreateCluster) | **Post** /api/atlas/v2/groups/{groupId}/clusters | Create One Multi-Cloud Cluster from One Project -[**DeleteCluster**](ClustersApi.md#DeleteCluster) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Remove One Multi-Cloud Cluster from One Project -[**GetCluster**](ClustersApi.md#GetCluster) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Return One Multi-Cloud Cluster from One Project +[**CreateCluster**](ClustersApi.md#CreateCluster) | **Post** /api/atlas/v2/groups/{groupId}/clusters | Create One Cluster from One Project +[**DeleteCluster**](ClustersApi.md#DeleteCluster) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Remove One Cluster from One Project +[**GetCluster**](ClustersApi.md#GetCluster) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Return One Cluster from One Project [**GetClusterAdvancedConfiguration**](ClustersApi.md#GetClusterAdvancedConfiguration) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs | Return One Advanced Configuration Options for One Cluster [**GetClusterStatus**](ClustersApi.md#GetClusterStatus) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/status | Return Status of All Cluster Operations [**GetSampleDatasetLoadStatus**](ClustersApi.md#GetSampleDatasetLoadStatus) | **Get** /api/atlas/v2/groups/{groupId}/sampleDatasetLoad/{sampleDatasetId} | Check Status of Cluster Sample Dataset Request @@ -14,8 +14,8 @@ Method | HTTP request | Description [**ListClusters**](ClustersApi.md#ListClusters) | **Get** /api/atlas/v2/groups/{groupId}/clusters | Return All Clusters in One Project [**ListClustersForAllProjects**](ClustersApi.md#ListClustersForAllProjects) | **Get** /api/atlas/v2/clusters | Return All Authorized Clusters in All Projects [**LoadSampleDataset**](ClustersApi.md#LoadSampleDataset) | **Post** /api/atlas/v2/groups/{groupId}/sampleDatasetLoad/{name} | Load Sample Dataset Request into Cluster -[**TestFailover**](ClustersApi.md#TestFailover) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restartPrimaries | Test Failover for One Multi-Cloud Cluster -[**UpdateCluster**](ClustersApi.md#UpdateCluster) | **Patch** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Modify One Multi-Cloud Cluster from One Project +[**TestFailover**](ClustersApi.md#TestFailover) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restartPrimaries | Test Failover for One Cluster +[**UpdateCluster**](ClustersApi.md#UpdateCluster) | **Patch** /api/atlas/v2/groups/{groupId}/clusters/{clusterName} | Modify One Cluster from One Project [**UpdateClusterAdvancedConfiguration**](ClustersApi.md#UpdateClusterAdvancedConfiguration) | **Patch** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs | Update Advanced Configuration Options for One Cluster [**UpgradeSharedCluster**](ClustersApi.md#UpgradeSharedCluster) | **Post** /api/atlas/v2/groups/{groupId}/clusters/tenantUpgrade | Upgrade One Shared-tier Cluster [**UpgradeSharedClusterToServerless**](ClustersApi.md#UpgradeSharedClusterToServerless) | **Post** /api/atlas/v2/groups/{groupId}/clusters/tenantUpgradeToServerless | Upgrades One Shared-Tier Cluster to the Serverless Instance @@ -26,7 +26,7 @@ Method | HTTP request | Description > AdvancedClusterDescription CreateCluster(ctx, groupId, advancedClusterDescription AdvancedClusterDescription).Execute() -Create One Multi-Cloud Cluster from One Project +Create One Cluster from One Project ### Example @@ -39,7 +39,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -101,7 +101,7 @@ Name | Type | Description | Notes > DeleteCluster(ctx, groupId, clusterName).RetainBackups(retainBackups).Execute() -Remove One Multi-Cloud Cluster from One Project +Remove One Cluster from One Project ### Example @@ -114,7 +114,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -177,7 +177,7 @@ Name | Type | Description | Notes > AdvancedClusterDescription GetCluster(ctx, groupId, clusterName).Execute() -Return One Multi-Cloud Cluster from One Project +Return One Cluster from One Project ### Example @@ -190,7 +190,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -220,7 +220,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **groupId** | **string** | 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. | -**clusterName** | **string** | Human-readable label that identifies this advanced cluster. | +**clusterName** | **string** | Human-readable label that identifies this cluster. | ### Other Parameters @@ -266,7 +266,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -347,7 +347,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -423,7 +423,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -499,7 +499,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -582,7 +582,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -668,7 +668,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -741,7 +741,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -804,7 +804,7 @@ Name | Type | Description | Notes > TestFailover(ctx, groupId, clusterName).Execute() -Test Failover for One Multi-Cloud Cluster +Test Failover for One Cluster ### Example @@ -817,7 +817,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -878,7 +878,7 @@ Name | Type | Description | Notes > AdvancedClusterDescription UpdateCluster(ctx, groupId, clusterName, advancedClusterDescription AdvancedClusterDescription).Execute() -Modify One Multi-Cloud Cluster from One Project +Modify One Cluster from One Project ### Example @@ -891,7 +891,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -969,7 +969,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1052,7 +1052,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1132,7 +1132,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/CustomDatabaseRolesApi.md b/docs/docs/CustomDatabaseRolesApi.md index 98b804ce..7193f7cc 100644 --- a/docs/docs/CustomDatabaseRolesApi.md +++ b/docs/docs/CustomDatabaseRolesApi.md @@ -29,7 +29,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -104,7 +104,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -178,7 +178,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -254,7 +254,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -327,7 +327,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/DataFederationApi.md b/docs/docs/DataFederationApi.md index f0d171d6..abbbe9fc 100644 --- a/docs/docs/DataFederationApi.md +++ b/docs/docs/DataFederationApi.md @@ -38,7 +38,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -113,7 +113,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -190,7 +190,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -271,7 +271,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -347,7 +347,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -423,7 +423,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -502,7 +502,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -582,7 +582,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -658,7 +658,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -734,7 +734,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -813,7 +813,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -888,7 +888,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -967,7 +967,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1043,7 +1043,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/DataLakePipelinesApi.md b/docs/docs/DataLakePipelinesApi.md index 83e8c31c..1c05db27 100644 --- a/docs/docs/DataLakePipelinesApi.md +++ b/docs/docs/DataLakePipelinesApi.md @@ -37,7 +37,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -112,7 +112,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -188,7 +188,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -267,7 +267,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -343,7 +343,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -422,7 +422,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -506,7 +506,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -582,7 +582,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -666,7 +666,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -739,7 +739,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -815,7 +815,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -891,7 +891,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -969,7 +969,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/DatabaseUsersApi.md b/docs/docs/DatabaseUsersApi.md index 3d56d8bc..e6e41a49 100644 --- a/docs/docs/DatabaseUsersApi.md +++ b/docs/docs/DatabaseUsersApi.md @@ -29,7 +29,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -104,7 +104,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -183,7 +183,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -262,7 +262,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -341,7 +341,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/EncryptionAtRestUsingCustomerKeyManagementApi.md b/docs/docs/EncryptionAtRestUsingCustomerKeyManagementApi.md index 27755ed2..ab39df71 100644 --- a/docs/docs/EncryptionAtRestUsingCustomerKeyManagementApi.md +++ b/docs/docs/EncryptionAtRestUsingCustomerKeyManagementApi.md @@ -26,7 +26,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -104,7 +104,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/EventsApi.md b/docs/docs/EventsApi.md index 9dbc5d67..337f661a 100644 --- a/docs/docs/EventsApi.md +++ b/docs/docs/EventsApi.md @@ -33,7 +33,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -116,7 +116,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -194,7 +194,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -281,7 +281,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/FederatedAuthenticationApi.md b/docs/docs/FederatedAuthenticationApi.md index 762019fc..bc3ca8d3 100644 --- a/docs/docs/FederatedAuthenticationApi.md +++ b/docs/docs/FederatedAuthenticationApi.md @@ -47,7 +47,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -127,7 +127,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -210,7 +210,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -286,7 +286,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -365,7 +365,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -447,7 +447,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -528,7 +528,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -606,7 +606,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -687,7 +687,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -768,7 +768,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -852,7 +852,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -930,7 +930,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -940,8 +940,8 @@ func main() { sdk := admin.NewClient(admin.UseDigestAuth(apiKey, apiSecret)) federationSettingsId := "55fa922fb343282757d9554e" // string | - protocol := "protocol_example" // string | (optional) - idpType := "idpType_example" // string | (optional) + protocol := []string{"Inner_example"} // []string | (optional) + idpType := []string{"Inner_example"} // []string | (optional) resp, r, err := sdk.FederatedAuthenticationApi.ListIdentityProviders(context.Background(), federationSettingsId).Protocol(protocol).IdpType(idpType).Execute() if err != nil { @@ -970,8 +970,8 @@ Other parameters are passed through a pointer to a apiListIdentityProvidersReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **protocol** | **string** | The protocols of the target identity providers. Defaults to SAML. | - **idpType** | **string** | The types of the target identity providers. Defaults to WORKFORCE. | + **protocol** | **[]string** | The protocols of the target identity providers. | + **idpType** | **[]string** | The types of the target identity providers. | ### Return type @@ -1012,7 +1012,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1093,7 +1093,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1174,7 +1174,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1253,7 +1253,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1336,7 +1336,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1419,7 +1419,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/GlobalClustersApi.md b/docs/docs/GlobalClustersApi.md index 313c04ed..ce8dbb5a 100644 --- a/docs/docs/GlobalClustersApi.md +++ b/docs/docs/GlobalClustersApi.md @@ -5,10 +5,10 @@ All URIs are relative to *https://cloud.mongodb.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateCustomZoneMapping**](GlobalClustersApi.md#CreateCustomZoneMapping) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping | Add One Entry to One Custom Zone Mapping -[**CreateManagedNamespace**](GlobalClustersApi.md#CreateManagedNamespace) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces | Create One Managed Namespace in One Global Multi-Cloud Cluster -[**DeleteAllCustomZoneMappings**](GlobalClustersApi.md#DeleteAllCustomZoneMappings) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping | Remove All Custom Zone Mappings from One Global Multi-Cloud Cluster -[**DeleteManagedNamespace**](GlobalClustersApi.md#DeleteManagedNamespace) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces | Remove One Managed Namespace from One Global Multi-Cloud Cluster -[**GetManagedNamespace**](GlobalClustersApi.md#GetManagedNamespace) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites | Return One Managed Namespace in One Global Multi-Cloud Cluster +[**CreateManagedNamespace**](GlobalClustersApi.md#CreateManagedNamespace) | **Post** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces | Create One Managed Namespace in One Global Cluster +[**DeleteAllCustomZoneMappings**](GlobalClustersApi.md#DeleteAllCustomZoneMappings) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping | Remove All Custom Zone Mappings from One Global Cluster +[**DeleteManagedNamespace**](GlobalClustersApi.md#DeleteManagedNamespace) | **Delete** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces | Remove One Managed Namespace from One Global Cluster +[**GetManagedNamespace**](GlobalClustersApi.md#GetManagedNamespace) | **Get** /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites | Return One Managed Namespace in One Global Cluster @@ -34,7 +34,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -65,7 +65,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **groupId** | **string** | 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. | -**clusterName** | **string** | Human-readable label that identifies this advanced cluster. | +**clusterName** | **string** | Human-readable label that identifies this cluster. | ### Other Parameters @@ -99,7 +99,7 @@ Name | Type | Description | Notes > GeoSharding CreateManagedNamespace(ctx, groupId, clusterName, managedNamespace ManagedNamespace).Execute() -Create One Managed Namespace in One Global Multi-Cloud Cluster +Create One Managed Namespace in One Global Cluster ## Experimental @@ -117,7 +117,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -148,7 +148,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **groupId** | **string** | 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. | -**clusterName** | **string** | Human-readable label that identifies this advanced cluster. | +**clusterName** | **string** | Human-readable label that identifies this cluster. | ### Other Parameters @@ -182,7 +182,7 @@ Name | Type | Description | Notes > GeoSharding DeleteAllCustomZoneMappings(ctx, groupId, clusterName).Execute() -Remove All Custom Zone Mappings from One Global Multi-Cloud Cluster +Remove All Custom Zone Mappings from One Global Cluster ## Experimental @@ -200,7 +200,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -230,7 +230,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **groupId** | **string** | 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. | -**clusterName** | **string** | Human-readable label that identifies this advanced cluster. | +**clusterName** | **string** | Human-readable label that identifies this cluster. | ### Other Parameters @@ -263,7 +263,7 @@ Name | Type | Description | Notes > GeoSharding DeleteManagedNamespace(ctx, clusterName, groupId).Db(db).Collection(collection).Execute() -Remove One Managed Namespace from One Global Multi-Cloud Cluster +Remove One Managed Namespace from One Global Cluster ## Experimental @@ -281,7 +281,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -312,7 +312,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**clusterName** | **string** | Human-readable label that identifies this advanced cluster. | +**clusterName** | **string** | Human-readable label that identifies this cluster. | **groupId** | **string** | 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. | ### Other Parameters @@ -348,7 +348,7 @@ Name | Type | Description | Notes > GeoSharding GetManagedNamespace(ctx, groupId, clusterName).Execute() -Return One Managed Namespace in One Global Multi-Cloud Cluster +Return One Managed Namespace in One Global Cluster ### Example @@ -361,7 +361,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -391,7 +391,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **groupId** | **string** | 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. | -**clusterName** | **string** | Human-readable label that identifies this advanced cluster. | +**clusterName** | **string** | Human-readable label that identifies this cluster. | ### Other Parameters diff --git a/docs/docs/GroupName.md b/docs/docs/GroupName.md deleted file mode 100644 index 9e56919d..00000000 --- a/docs/docs/GroupName.md +++ /dev/null @@ -1,55 +0,0 @@ -# GroupName - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | Human-readable label that identifies the project included in the MongoDB Cloud organization. | [optional] - -## Methods - -### NewGroupName - -`func NewGroupName() *GroupName` - -NewGroupName instantiates a new GroupName object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGroupNameWithDefaults - -`func NewGroupNameWithDefaults() *GroupName` - -NewGroupNameWithDefaults instantiates a new GroupName object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *GroupName) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *GroupName) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *GroupName) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *GroupName) HasName() bool` - -HasName returns a boolean if a field has been set. - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/docs/GroupPaginatedEvent.md b/docs/docs/GroupPaginatedEvent.md index bf4a841e..fa3680b6 100644 --- a/docs/docs/GroupPaginatedEvent.md +++ b/docs/docs/GroupPaginatedEvent.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]EventViewForNdsGroup**](EventViewForNdsGroup.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/GroupUpdate.md b/docs/docs/GroupUpdate.md new file mode 100644 index 00000000..2324f1dc --- /dev/null +++ b/docs/docs/GroupUpdate.md @@ -0,0 +1,80 @@ +# GroupUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Human-readable label that identifies the project included in the MongoDB Cloud organization. | [optional] +**Tags** | Pointer to [**[]ResourceTag**](ResourceTag.md) | List that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. | [optional] + +## Methods + +### NewGroupUpdate + +`func NewGroupUpdate() *GroupUpdate` + +NewGroupUpdate instantiates a new GroupUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGroupUpdateWithDefaults + +`func NewGroupUpdateWithDefaults() *GroupUpdate` + +NewGroupUpdateWithDefaults instantiates a new GroupUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GroupUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GroupUpdate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GroupUpdate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GroupUpdate) HasName() bool` + +HasName returns a boolean if a field has been set. +### GetTags + +`func (o *GroupUpdate) GetTags() []ResourceTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *GroupUpdate) GetTagsOk() (*[]ResourceTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *GroupUpdate) SetTags(v []ResourceTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *GroupUpdate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/docs/InvoicesApi.md b/docs/docs/InvoicesApi.md index d37424ef..15af0e51 100644 --- a/docs/docs/InvoicesApi.md +++ b/docs/docs/InvoicesApi.md @@ -35,7 +35,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -115,7 +115,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -196,7 +196,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -277,7 +277,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -358,7 +358,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -442,7 +442,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/LDAPConfigurationApi.md b/docs/docs/LDAPConfigurationApi.md index 6dee7878..50c64168 100644 --- a/docs/docs/LDAPConfigurationApi.md +++ b/docs/docs/LDAPConfigurationApi.md @@ -29,7 +29,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -102,7 +102,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -175,7 +175,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -251,7 +251,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -326,7 +326,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/LegacyBackupApi.md b/docs/docs/LegacyBackupApi.md index 984986e3..82bc75a7 100644 --- a/docs/docs/LegacyBackupApi.md +++ b/docs/docs/LegacyBackupApi.md @@ -39,7 +39,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -123,7 +123,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -207,7 +207,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -291,7 +291,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -375,7 +375,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -456,7 +456,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -543,7 +543,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -632,7 +632,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -721,7 +721,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -807,7 +807,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/LegacyBackupRestoreJobsApi.md b/docs/docs/LegacyBackupRestoreJobsApi.md index 9f12b19d..51b072b6 100644 --- a/docs/docs/LegacyBackupRestoreJobsApi.md +++ b/docs/docs/LegacyBackupRestoreJobsApi.md @@ -30,7 +30,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/MaintenanceWindowsApi.md b/docs/docs/MaintenanceWindowsApi.md index 25587b25..d1ad4a25 100644 --- a/docs/docs/MaintenanceWindowsApi.md +++ b/docs/docs/MaintenanceWindowsApi.md @@ -29,7 +29,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -100,7 +100,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -173,7 +173,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -249,7 +249,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -320,7 +320,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/MongoDBCloudUsersApi.md b/docs/docs/MongoDBCloudUsersApi.md index 03586081..b1102fd3 100644 --- a/docs/docs/MongoDBCloudUsersApi.md +++ b/docs/docs/MongoDBCloudUsersApi.md @@ -27,7 +27,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -96,7 +96,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -169,7 +169,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/MonitoringAndLogsApi.md b/docs/docs/MonitoringAndLogsApi.md index 230ec280..ef7cdf64 100644 --- a/docs/docs/MonitoringAndLogsApi.md +++ b/docs/docs/MonitoringAndLogsApi.md @@ -38,7 +38,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -119,7 +119,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -198,7 +198,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -287,7 +287,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -376,7 +376,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -459,7 +459,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -550,7 +550,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -650,7 +650,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -736,7 +736,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -815,7 +815,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -902,7 +902,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -981,7 +981,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1068,7 +1068,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1165,7 +1165,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/NetworkPeeringApi.md b/docs/docs/NetworkPeeringApi.md index 5f1d4ba0..8b18c8ff 100644 --- a/docs/docs/NetworkPeeringApi.md +++ b/docs/docs/NetworkPeeringApi.md @@ -37,7 +37,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -112,7 +112,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -187,7 +187,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -263,7 +263,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -344,7 +344,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -419,7 +419,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -495,7 +495,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -571,7 +571,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -652,7 +652,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -733,7 +733,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -817,7 +817,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -900,7 +900,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -983,7 +983,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/OnlineArchiveApi.md b/docs/docs/OnlineArchiveApi.md index a3d0ad92..efea6bfa 100644 --- a/docs/docs/OnlineArchiveApi.md +++ b/docs/docs/OnlineArchiveApi.md @@ -30,7 +30,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -108,7 +108,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -192,7 +192,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -274,7 +274,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -353,7 +353,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -435,7 +435,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/OrgPaginatedEvent.md b/docs/docs/OrgPaginatedEvent.md index 32108d47..b95cffb3 100644 --- a/docs/docs/OrgPaginatedEvent.md +++ b/docs/docs/OrgPaginatedEvent.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]EventViewForOrg**](EventViewForOrg.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/OrganizationInvitation.md b/docs/docs/OrganizationInvitation.md index 1ad6f9f7..f999828c 100644 --- a/docs/docs/OrganizationInvitation.md +++ b/docs/docs/OrganizationInvitation.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **time.Time** | Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC. | [optional] [readonly] **ExpiresAt** | Pointer to **time.Time** | Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC. | [optional] [readonly] **GroupRoleAssignments** | Pointer to [**[]GroupRole**](GroupRole.md) | List of projects that the user will be added to when they accept their invitation to the organization. | [optional] -**Id** | Pointer to **string** | Unique 24-hexadecimal digit string that identifies this organization. | [optional] [readonly] +**Id** | Pointer to **string** | Unique 24-hexadecimal digit string that identifies this invitation. | [optional] [readonly] **InviterUsername** | Pointer to **string** | Email address of the MongoDB Cloud user who sent the invitation to join the organization. | [optional] [readonly] **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **OrgId** | Pointer to **string** | Unique 24-hexadecimal digit string that identifies the organization. | [optional] [readonly] **OrgName** | **string** | Human-readable label that identifies this organization. | -**Roles** | Pointer to **[]string** | One or more organization or project level roles to assign to the MongoDB Cloud user. | [optional] +**Roles** | Pointer to **[]string** | One or more organization level roles to assign to the MongoDB Cloud user. | [optional] **TeamIds** | Pointer to **[]string** | List of unique 24-hexadecimal digit strings that identifies each team. | [optional] [readonly] **Username** | Pointer to **string** | Email address of the MongoDB Cloud user invited to join the organization. | [optional] diff --git a/docs/docs/OrganizationsApi.md b/docs/docs/OrganizationsApi.md index a840f3bb..b109b1dc 100644 --- a/docs/docs/OrganizationsApi.md +++ b/docs/docs/OrganizationsApi.md @@ -41,7 +41,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -110,7 +110,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -185,7 +185,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -258,7 +258,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -334,7 +334,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -407,7 +407,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -488,7 +488,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -561,7 +561,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -636,7 +636,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -717,7 +717,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -796,7 +796,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -876,7 +876,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -957,7 +957,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1032,7 +1032,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1107,7 +1107,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1190,7 +1190,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1273,7 +1273,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/PaginatedAdvancedClusterDescription.md b/docs/docs/PaginatedAdvancedClusterDescription.md index df4039e4..fc704d5a 100644 --- a/docs/docs/PaginatedAdvancedClusterDescription.md +++ b/docs/docs/PaginatedAdvancedClusterDescription.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]AdvancedClusterDescription**](AdvancedClusterDescription.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedAlert.md b/docs/docs/PaginatedAlert.md index 42b4947d..41a43d1e 100644 --- a/docs/docs/PaginatedAlert.md +++ b/docs/docs/PaginatedAlert.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]AlertViewForNdsGroup**](AlertViewForNdsGroup.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedAlertConfig.md b/docs/docs/PaginatedAlertConfig.md index 8a92f99d..4ad4a7fc 100644 --- a/docs/docs/PaginatedAlertConfig.md +++ b/docs/docs/PaginatedAlertConfig.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]GroupAlertsConfig**](GroupAlertsConfig.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiApiUser.md b/docs/docs/PaginatedApiApiUser.md index f9cfb980..ebd257a3 100644 --- a/docs/docs/PaginatedApiApiUser.md +++ b/docs/docs/PaginatedApiApiUser.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]ApiKeyUserDetails**](ApiKeyUserDetails.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiAppUser.md b/docs/docs/PaginatedApiAppUser.md index a769efb3..2e3cbf3a 100644 --- a/docs/docs/PaginatedApiAppUser.md +++ b/docs/docs/PaginatedApiAppUser.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]CloudAppUser**](CloudAppUser.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiAtlasCheckpoint.md b/docs/docs/PaginatedApiAtlasCheckpoint.md index 9ac0d10b..134f4de1 100644 --- a/docs/docs/PaginatedApiAtlasCheckpoint.md +++ b/docs/docs/PaginatedApiAtlasCheckpoint.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]ApiAtlasCheckpoint**](ApiAtlasCheckpoint.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiAtlasDatabaseUser.md b/docs/docs/PaginatedApiAtlasDatabaseUser.md index 5b2e5ec8..ad676be4 100644 --- a/docs/docs/PaginatedApiAtlasDatabaseUser.md +++ b/docs/docs/PaginatedApiAtlasDatabaseUser.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]CloudDatabaseUser**](CloudDatabaseUser.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiAtlasDiskBackupExportJob.md b/docs/docs/PaginatedApiAtlasDiskBackupExportJob.md index bd95f06d..3795bd30 100644 --- a/docs/docs/PaginatedApiAtlasDiskBackupExportJob.md +++ b/docs/docs/PaginatedApiAtlasDiskBackupExportJob.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]DiskBackupExportJob**](DiskBackupExportJob.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiAtlasProviderRegions.md b/docs/docs/PaginatedApiAtlasProviderRegions.md index 46178565..a73ddcd9 100644 --- a/docs/docs/PaginatedApiAtlasProviderRegions.md +++ b/docs/docs/PaginatedApiAtlasProviderRegions.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]CloudProviderRegions**](CloudProviderRegions.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiAtlasServerlessBackupRestoreJob.md b/docs/docs/PaginatedApiAtlasServerlessBackupRestoreJob.md index 30921e64..8376b98f 100644 --- a/docs/docs/PaginatedApiAtlasServerlessBackupRestoreJob.md +++ b/docs/docs/PaginatedApiAtlasServerlessBackupRestoreJob.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]ServerlessBackupRestoreJob**](ServerlessBackupRestoreJob.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiAtlasServerlessBackupSnapshot.md b/docs/docs/PaginatedApiAtlasServerlessBackupSnapshot.md index 39c233b3..9632d891 100644 --- a/docs/docs/PaginatedApiAtlasServerlessBackupSnapshot.md +++ b/docs/docs/PaginatedApiAtlasServerlessBackupSnapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]ServerlessBackupSnapshot**](ServerlessBackupSnapshot.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiInvoice.md b/docs/docs/PaginatedApiInvoice.md index 24eea4c5..0ef0e808 100644 --- a/docs/docs/PaginatedApiInvoice.md +++ b/docs/docs/PaginatedApiInvoice.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]BillingInvoice**](BillingInvoice.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiStreamsConnection.md b/docs/docs/PaginatedApiStreamsConnection.md index 0441f339..bb27626d 100644 --- a/docs/docs/PaginatedApiStreamsConnection.md +++ b/docs/docs/PaginatedApiStreamsConnection.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]StreamsConnection**](StreamsConnection.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiStreamsTenant.md b/docs/docs/PaginatedApiStreamsTenant.md index 80818647..1601cffa 100644 --- a/docs/docs/PaginatedApiStreamsTenant.md +++ b/docs/docs/PaginatedApiStreamsTenant.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]StreamsTenant**](StreamsTenant.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedApiUserAccessList.md b/docs/docs/PaginatedApiUserAccessListResponse.md similarity index 53% rename from docs/docs/PaginatedApiUserAccessList.md rename to docs/docs/PaginatedApiUserAccessListResponse.md index 859dd752..a1555439 100644 --- a/docs/docs/PaginatedApiUserAccessList.md +++ b/docs/docs/PaginatedApiUserAccessListResponse.md @@ -1,102 +1,102 @@ -# PaginatedApiUserAccessList +# PaginatedApiUserAccessListResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] -**Results** | Pointer to [**[]UserAccessList**](UserAccessList.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**Results** | Pointer to [**[]UserAccessListResponse**](UserAccessListResponse.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods -### NewPaginatedApiUserAccessList +### NewPaginatedApiUserAccessListResponse -`func NewPaginatedApiUserAccessList() *PaginatedApiUserAccessList` +`func NewPaginatedApiUserAccessListResponse() *PaginatedApiUserAccessListResponse` -NewPaginatedApiUserAccessList instantiates a new PaginatedApiUserAccessList object +NewPaginatedApiUserAccessListResponse instantiates a new PaginatedApiUserAccessListResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPaginatedApiUserAccessListWithDefaults +### NewPaginatedApiUserAccessListResponseWithDefaults -`func NewPaginatedApiUserAccessListWithDefaults() *PaginatedApiUserAccessList` +`func NewPaginatedApiUserAccessListResponseWithDefaults() *PaginatedApiUserAccessListResponse` -NewPaginatedApiUserAccessListWithDefaults instantiates a new PaginatedApiUserAccessList object +NewPaginatedApiUserAccessListResponseWithDefaults instantiates a new PaginatedApiUserAccessListResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *PaginatedApiUserAccessList) GetLinks() []Link` +`func (o *PaginatedApiUserAccessListResponse) GetLinks() []Link` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *PaginatedApiUserAccessList) GetLinksOk() (*[]Link, bool)` +`func (o *PaginatedApiUserAccessListResponse) GetLinksOk() (*[]Link, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *PaginatedApiUserAccessList) SetLinks(v []Link)` +`func (o *PaginatedApiUserAccessListResponse) SetLinks(v []Link)` SetLinks sets Links field to given value. ### HasLinks -`func (o *PaginatedApiUserAccessList) HasLinks() bool` +`func (o *PaginatedApiUserAccessListResponse) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetResults -`func (o *PaginatedApiUserAccessList) GetResults() []UserAccessList` +`func (o *PaginatedApiUserAccessListResponse) GetResults() []UserAccessListResponse` GetResults returns the Results field if non-nil, zero value otherwise. ### GetResultsOk -`func (o *PaginatedApiUserAccessList) GetResultsOk() (*[]UserAccessList, bool)` +`func (o *PaginatedApiUserAccessListResponse) GetResultsOk() (*[]UserAccessListResponse, bool)` GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResults -`func (o *PaginatedApiUserAccessList) SetResults(v []UserAccessList)` +`func (o *PaginatedApiUserAccessListResponse) SetResults(v []UserAccessListResponse)` SetResults sets Results field to given value. ### HasResults -`func (o *PaginatedApiUserAccessList) HasResults() bool` +`func (o *PaginatedApiUserAccessListResponse) HasResults() bool` HasResults returns a boolean if a field has been set. ### GetTotalCount -`func (o *PaginatedApiUserAccessList) GetTotalCount() int` +`func (o *PaginatedApiUserAccessListResponse) GetTotalCount() int` GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. ### GetTotalCountOk -`func (o *PaginatedApiUserAccessList) GetTotalCountOk() (*int, bool)` +`func (o *PaginatedApiUserAccessListResponse) GetTotalCountOk() (*int, bool)` GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTotalCount -`func (o *PaginatedApiUserAccessList) SetTotalCount(v int)` +`func (o *PaginatedApiUserAccessListResponse) SetTotalCount(v int)` SetTotalCount sets TotalCount field to given value. ### HasTotalCount -`func (o *PaginatedApiUserAccessList) HasTotalCount() bool` +`func (o *PaginatedApiUserAccessListResponse) HasTotalCount() bool` HasTotalCount returns a boolean if a field has been set. diff --git a/docs/docs/PaginatedAppUser.md b/docs/docs/PaginatedAppUser.md index 87379981..e82744e3 100644 --- a/docs/docs/PaginatedAppUser.md +++ b/docs/docs/PaginatedAppUser.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]CloudAppUser**](CloudAppUser.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedAtlasGroup.md b/docs/docs/PaginatedAtlasGroup.md index 7a8adb8f..d2cc8472 100644 --- a/docs/docs/PaginatedAtlasGroup.md +++ b/docs/docs/PaginatedAtlasGroup.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]Group**](Group.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedBackupSnapshot.md b/docs/docs/PaginatedBackupSnapshot.md index c131a864..a654c3a4 100644 --- a/docs/docs/PaginatedBackupSnapshot.md +++ b/docs/docs/PaginatedBackupSnapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]DiskBackupSnapshot**](DiskBackupSnapshot.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedBackupSnapshotExportBucket.md b/docs/docs/PaginatedBackupSnapshotExportBucket.md index 4ddceeb3..6ac9e7bb 100644 --- a/docs/docs/PaginatedBackupSnapshotExportBucket.md +++ b/docs/docs/PaginatedBackupSnapshotExportBucket.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]DiskBackupSnapshotAWSExportBucket**](DiskBackupSnapshotAWSExportBucket.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedCloudBackupReplicaSet.md b/docs/docs/PaginatedCloudBackupReplicaSet.md index 97b96309..f7a6e583 100644 --- a/docs/docs/PaginatedCloudBackupReplicaSet.md +++ b/docs/docs/PaginatedCloudBackupReplicaSet.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]DiskBackupReplicaSet**](DiskBackupReplicaSet.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedCloudBackupRestoreJob.md b/docs/docs/PaginatedCloudBackupRestoreJob.md index 8db1fcf6..135bae6c 100644 --- a/docs/docs/PaginatedCloudBackupRestoreJob.md +++ b/docs/docs/PaginatedCloudBackupRestoreJob.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]DiskBackupSnapshotRestoreJob**](DiskBackupSnapshotRestoreJob.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedCloudBackupShardedClusterSnapshot.md b/docs/docs/PaginatedCloudBackupShardedClusterSnapshot.md index 32b3435b..64508fae 100644 --- a/docs/docs/PaginatedCloudBackupShardedClusterSnapshot.md +++ b/docs/docs/PaginatedCloudBackupShardedClusterSnapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]DiskBackupShardedClusterSnapshot**](DiskBackupShardedClusterSnapshot.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedCloudProviderContainer.md b/docs/docs/PaginatedCloudProviderContainer.md index 0f328530..4581c231 100644 --- a/docs/docs/PaginatedCloudProviderContainer.md +++ b/docs/docs/PaginatedCloudProviderContainer.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]CloudProviderContainer**](CloudProviderContainer.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedContainerPeer.md b/docs/docs/PaginatedContainerPeer.md index 9d287ef5..8a9156b0 100644 --- a/docs/docs/PaginatedContainerPeer.md +++ b/docs/docs/PaginatedContainerPeer.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]BaseNetworkPeeringConnectionSettings**](BaseNetworkPeeringConnectionSettings.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedDatabase.md b/docs/docs/PaginatedDatabase.md index 048d411d..456bdca0 100644 --- a/docs/docs/PaginatedDatabase.md +++ b/docs/docs/PaginatedDatabase.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]MesurementsDatabase**](MesurementsDatabase.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedDiskPartition.md b/docs/docs/PaginatedDiskPartition.md index 9eb90c78..45707a11 100644 --- a/docs/docs/PaginatedDiskPartition.md +++ b/docs/docs/PaginatedDiskPartition.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]MeasurementDiskPartition**](MeasurementDiskPartition.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedFederationIdentityProvider.md b/docs/docs/PaginatedFederationIdentityProvider.md index 9afb491b..40ef0431 100644 --- a/docs/docs/PaginatedFederationIdentityProvider.md +++ b/docs/docs/PaginatedFederationIdentityProvider.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]FederationIdentityProvider**](FederationIdentityProvider.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedHostViewAtlas.md b/docs/docs/PaginatedHostViewAtlas.md index 3857ac36..40e73388 100644 --- a/docs/docs/PaginatedHostViewAtlas.md +++ b/docs/docs/PaginatedHostViewAtlas.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]LinkAtlas**](LinkAtlas.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]ApiHostViewAtlas**](ApiHostViewAtlas.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedIntegration.md b/docs/docs/PaginatedIntegration.md index 47d1a475..612ddd07 100644 --- a/docs/docs/PaginatedIntegration.md +++ b/docs/docs/PaginatedIntegration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]ThirdPartyIntegration**](ThirdPartyIntegration.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedNetworkAccess.md b/docs/docs/PaginatedNetworkAccess.md index 96064ba5..648be966 100644 --- a/docs/docs/PaginatedNetworkAccess.md +++ b/docs/docs/PaginatedNetworkAccess.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]NetworkPermissionEntry**](NetworkPermissionEntry.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedOnlineArchive.md b/docs/docs/PaginatedOnlineArchive.md index 5e1e2b71..b9ff969f 100644 --- a/docs/docs/PaginatedOnlineArchive.md +++ b/docs/docs/PaginatedOnlineArchive.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]BackupOnlineArchive**](BackupOnlineArchive.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedOrgGroup.md b/docs/docs/PaginatedOrgGroup.md index b65ac7bb..56c7e38b 100644 --- a/docs/docs/PaginatedOrgGroup.md +++ b/docs/docs/PaginatedOrgGroup.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]OrgGroup**](OrgGroup.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedOrganization.md b/docs/docs/PaginatedOrganization.md index d62a4612..b8372db5 100644 --- a/docs/docs/PaginatedOrganization.md +++ b/docs/docs/PaginatedOrganization.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]AtlasOrganization**](AtlasOrganization.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedPipelineRun.md b/docs/docs/PaginatedPipelineRun.md index 61601ac8..3033ec1f 100644 --- a/docs/docs/PaginatedPipelineRun.md +++ b/docs/docs/PaginatedPipelineRun.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]IngestionPipelineRun**](IngestionPipelineRun.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedPrivateNetworkEndpointIdEntry.md b/docs/docs/PaginatedPrivateNetworkEndpointIdEntry.md index 924c72b2..1f84dd24 100644 --- a/docs/docs/PaginatedPrivateNetworkEndpointIdEntry.md +++ b/docs/docs/PaginatedPrivateNetworkEndpointIdEntry.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]PrivateNetworkEndpointIdEntry**](PrivateNetworkEndpointIdEntry.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response if **includeCount** query param is true. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedRestoreJob.md b/docs/docs/PaginatedRestoreJob.md index 09605998..3007348c 100644 --- a/docs/docs/PaginatedRestoreJob.md +++ b/docs/docs/PaginatedRestoreJob.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]BackupRestoreJob**](BackupRestoreJob.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedRoleMapping.md b/docs/docs/PaginatedRoleMapping.md index 30f8899d..58163f0c 100644 --- a/docs/docs/PaginatedRoleMapping.md +++ b/docs/docs/PaginatedRoleMapping.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]AuthFederationRoleMapping**](AuthFederationRoleMapping.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedServerlessInstanceDescription.md b/docs/docs/PaginatedServerlessInstanceDescription.md index d4068067..21e9beab 100644 --- a/docs/docs/PaginatedServerlessInstanceDescription.md +++ b/docs/docs/PaginatedServerlessInstanceDescription.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]ServerlessInstanceDescription**](ServerlessInstanceDescription.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedSnapshot.md b/docs/docs/PaginatedSnapshot.md index b5fc3b13..e8b55316 100644 --- a/docs/docs/PaginatedSnapshot.md +++ b/docs/docs/PaginatedSnapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]BackupSnapshot**](BackupSnapshot.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedTeam.md b/docs/docs/PaginatedTeam.md index a188031c..ee92cb55 100644 --- a/docs/docs/PaginatedTeam.md +++ b/docs/docs/PaginatedTeam.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]TeamResponse**](TeamResponse.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedTeamRole.md b/docs/docs/PaginatedTeamRole.md index 82270477..3d34dae6 100644 --- a/docs/docs/PaginatedTeamRole.md +++ b/docs/docs/PaginatedTeamRole.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]TeamRole**](TeamRole.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedTenantRestore.md b/docs/docs/PaginatedTenantRestore.md index dc01e35a..34a03a7a 100644 --- a/docs/docs/PaginatedTenantRestore.md +++ b/docs/docs/PaginatedTenantRestore.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]TenantRestore**](TenantRestore.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedTenantSnapshot.md b/docs/docs/PaginatedTenantSnapshot.md index a2d7c19b..9377f06a 100644 --- a/docs/docs/PaginatedTenantSnapshot.md +++ b/docs/docs/PaginatedTenantSnapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]BackupTenantSnapshot**](BackupTenantSnapshot.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PaginatedUserCert.md b/docs/docs/PaginatedUserCert.md index 01367182..5653f452 100644 --- a/docs/docs/PaginatedUserCert.md +++ b/docs/docs/PaginatedUserCert.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **Results** | Pointer to [**[]UserCert**](UserCert.md) | List of returned documents that MongoDB Cloud providers when completing this request. | [optional] [readonly] -**TotalCount** | Pointer to **int** | Number of documents returned in this response. | [optional] [readonly] +**TotalCount** | Pointer to **int** | Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | [optional] [readonly] ## Methods diff --git a/docs/docs/PerformanceAdvisorApi.md b/docs/docs/PerformanceAdvisorApi.md index aa12e5f6..e5e745d1 100644 --- a/docs/docs/PerformanceAdvisorApi.md +++ b/docs/docs/PerformanceAdvisorApi.md @@ -31,7 +31,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -102,7 +102,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -178,7 +178,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -254,7 +254,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -302,7 +302,7 @@ Name | Type | Description | Notes **duration** | **int64** | Length of time expressed during which the query finds slow queries among the managed namespaces in the cluster. This parameter expresses its value in milliseconds. - If you don't specify the **since** parameter, the endpoint returns data covering the duration before the current time. - If you specify neither the **duration** nor **since** parameters, the endpoint returns data from the previous 24 hours. | **namespaces** | **[]string** | Namespaces from which to retrieve slow queries. A namespace consists of one database and one collection resource written as `.`: `<database>.<collection>`. To include multiple namespaces, pass the parameter multiple times delimited with an ampersand (`&`) between each namespace. Omit this parameter to return results for all namespaces. | **nLogs** | **int64** | Maximum number of lines from the log to return. | [default to 20000] - **since** | **int64** | Date and time from which the query retrieves the slow queries. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. | + **since** | **int64** | Date and time from which the query retrieves the slow queries. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. | ### Return type @@ -338,7 +338,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -382,7 +382,7 @@ Name | Type | Description | Notes **duration** | **int64** | Length of time expressed during which the query finds suggested indexes among the managed namespaces in the cluster. This parameter expresses its value in milliseconds. - If you don't specify the **since** parameter, the endpoint returns data covering the duration before the current time. - If you specify neither the **duration** nor **since** parameters, the endpoint returns data from the previous 24 hours. | - **since** | **int64** | Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. | + **since** | **int64** | Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. | ### Return type @@ -418,7 +418,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -474,7 +474,7 @@ Name | Type | Description | Notes **namespaces** | **[]string** | Namespaces from which to retrieve suggested indexes. A namespace consists of one database and one collection resource written as `.`: `<database>.<collection>`. To include multiple namespaces, pass the parameter multiple times delimited with an ampersand (`&`) between each namespace. Omit this parameter to return results for all namespaces. | **nExamples** | **int64** | Maximum number of example queries that benefit from the suggested index. | [default to 5] **nIndexes** | **int64** | Number that indicates the maximum indexes to suggest. | - **since** | **int64** | Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. | + **since** | **int64** | Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. | ### Return type @@ -515,7 +515,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/PrivateEndpointServicesApi.md b/docs/docs/PrivateEndpointServicesApi.md index b3d6ce90..2a1079dc 100644 --- a/docs/docs/PrivateEndpointServicesApi.md +++ b/docs/docs/PrivateEndpointServicesApi.md @@ -33,7 +33,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -114,7 +114,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -189,7 +189,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -271,7 +271,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -350,7 +350,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -432,7 +432,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -511,7 +511,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -584,7 +584,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -660,7 +660,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ProgrammaticAPIKeysApi.md b/docs/docs/ProgrammaticAPIKeysApi.md index 34b08644..5b2d0157 100644 --- a/docs/docs/ProgrammaticAPIKeysApi.md +++ b/docs/docs/ProgrammaticAPIKeysApi.md @@ -43,7 +43,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -121,7 +121,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -181,7 +181,7 @@ Name | Type | Description | Notes ## CreateApiKeyAccessList -> PaginatedApiUserAccessList CreateApiKeyAccessList(ctx, orgId, apiUserId, userAccessList []UserAccessList).IncludeCount(includeCount).ItemsPerPage(itemsPerPage).PageNum(pageNum).Execute() +> PaginatedApiUserAccessListResponse CreateApiKeyAccessList(ctx, orgId, apiUserId, userAccessListRequest []UserAccessListRequest).IncludeCount(includeCount).ItemsPerPage(itemsPerPage).PageNum(pageNum).Execute() Create Access List Entries for One Organization API Key @@ -196,7 +196,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -207,18 +207,18 @@ func main() { orgId := "4888442a3354817a7320eb61" // string | apiUserId := "apiUserId_example" // string | - userAccessList := []openapiclient.UserAccessList{*openapiclient.NewUserAccessList()} // []UserAccessList | + userAccessListRequest := []openapiclient.UserAccessListRequest{*openapiclient.NewUserAccessListRequest()} // []UserAccessListRequest | includeCount := true // bool | (optional) (default to true) itemsPerPage := int(100) // int | (optional) (default to 100) pageNum := int(1) // int | (optional) (default to 1) - resp, r, err := sdk.ProgrammaticAPIKeysApi.CreateApiKeyAccessList(context.Background(), orgId, apiUserId, &userAccessList).IncludeCount(includeCount).ItemsPerPage(itemsPerPage).PageNum(pageNum).Execute() + resp, r, err := sdk.ProgrammaticAPIKeysApi.CreateApiKeyAccessList(context.Background(), orgId, apiUserId, &userAccessListRequest).IncludeCount(includeCount).ItemsPerPage(itemsPerPage).PageNum(pageNum).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ProgrammaticAPIKeysApi.CreateApiKeyAccessList``: %v\n", err) apiError := admin.AsError(err) fmt.Fprintf(os.Stderr, "Error obj: %v\n", apiError) } - // response from `CreateApiKeyAccessList`: PaginatedApiUserAccessList + // response from `CreateApiKeyAccessList`: PaginatedApiUserAccessListResponse fmt.Fprintf(os.Stdout, "Response from `ProgrammaticAPIKeysApi.CreateApiKeyAccessList`: %v\n", resp) } ``` @@ -241,14 +241,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userAccessList** | [**[]UserAccessList**](UserAccessList.md) | Access list entries to be created for the specified organization API key. | + **userAccessListRequest** | [**[]UserAccessListRequest**](UserAccessListRequest.md) | Access list entries to be created for the specified organization API key. | **includeCount** | **bool** | Flag that indicates whether the response returns the total number of items (**totalCount**) in the response. | [default to true] **itemsPerPage** | **int** | Number of items that the response returns per page. | [default to 100] **pageNum** | **int** | Number of the page that displays the current set of the total objects that the response returns. | [default to 1] ### Return type -[**PaginatedApiUserAccessList**](PaginatedApiUserAccessList.md) +[**PaginatedApiUserAccessListResponse**](PaginatedApiUserAccessListResponse.md) ### Authorization [DigestAuth](../README.md#Authentication) @@ -280,7 +280,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -355,7 +355,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -431,7 +431,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -510,7 +510,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -571,7 +571,7 @@ Name | Type | Description | Notes ## GetApiKeyAccessList -> UserAccessList GetApiKeyAccessList(ctx, orgId, ipAddress, apiUserId).Execute() +> UserAccessListResponse GetApiKeyAccessList(ctx, orgId, ipAddress, apiUserId).Execute() Return One Access List Entry for One Organization API Key @@ -591,7 +591,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -610,7 +610,7 @@ func main() { apiError := admin.AsError(err) fmt.Fprintf(os.Stderr, "Error obj: %v\n", apiError) } - // response from `GetApiKeyAccessList`: UserAccessList + // response from `GetApiKeyAccessList`: UserAccessListResponse fmt.Fprintf(os.Stdout, "Response from `ProgrammaticAPIKeysApi.GetApiKeyAccessList`: %v\n", resp) } ``` @@ -638,7 +638,7 @@ Name | Type | Description | Notes ### Return type -[**UserAccessList**](UserAccessList.md) +[**UserAccessListResponse**](UserAccessListResponse.md) ### Authorization [DigestAuth](../README.md#Authentication) @@ -655,7 +655,7 @@ Name | Type | Description | Notes ## ListApiKeyAccessListsEntries -> PaginatedApiUserAccessList ListApiKeyAccessListsEntries(ctx, orgId, apiUserId).IncludeCount(includeCount).ItemsPerPage(itemsPerPage).PageNum(pageNum).Execute() +> PaginatedApiUserAccessListResponse ListApiKeyAccessListsEntries(ctx, orgId, apiUserId).IncludeCount(includeCount).ItemsPerPage(itemsPerPage).PageNum(pageNum).Execute() Return All Access List Entries for One Organization API Key @@ -670,7 +670,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -691,7 +691,7 @@ func main() { apiError := admin.AsError(err) fmt.Fprintf(os.Stderr, "Error obj: %v\n", apiError) } - // response from `ListApiKeyAccessListsEntries`: PaginatedApiUserAccessList + // response from `ListApiKeyAccessListsEntries`: PaginatedApiUserAccessListResponse fmt.Fprintf(os.Stdout, "Response from `ProgrammaticAPIKeysApi.ListApiKeyAccessListsEntries`: %v\n", resp) } ``` @@ -720,7 +720,7 @@ Name | Type | Description | Notes ### Return type -[**PaginatedApiUserAccessList**](PaginatedApiUserAccessList.md) +[**PaginatedApiUserAccessListResponse**](PaginatedApiUserAccessListResponse.md) ### Authorization [DigestAuth](../README.md#Authentication) @@ -752,7 +752,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -831,7 +831,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -910,7 +910,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -986,7 +986,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1064,7 +1064,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ProjectIPAccessListApi.md b/docs/docs/ProjectIPAccessListApi.md index c81d669d..c23f94f1 100644 --- a/docs/docs/ProjectIPAccessListApi.md +++ b/docs/docs/ProjectIPAccessListApi.md @@ -29,7 +29,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -110,7 +110,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -191,7 +191,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -267,7 +267,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -343,7 +343,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ProjectsApi.md b/docs/docs/ProjectsApi.md index 20844bc0..36f2271d 100644 --- a/docs/docs/ProjectsApi.md +++ b/docs/docs/ProjectsApi.md @@ -22,7 +22,7 @@ Method | HTTP request | Description [**RemoveProjectUser**](ProjectsApi.md#RemoveProjectUser) | **Delete** /api/atlas/v2/groups/{groupId}/users/{userId} | Remove One User from One Project [**ReturnAllIPAddresses**](ProjectsApi.md#ReturnAllIPAddresses) | **Get** /api/atlas/v2/groups/{groupId}/ipAddresses | Return All IP Addresses for One Project [**SetProjectLimit**](ProjectsApi.md#SetProjectLimit) | **Patch** /api/atlas/v2/groups/{groupId}/limits/{limitName} | Set One Project Limit -[**UpdateProject**](ProjectsApi.md#UpdateProject) | **Patch** /api/atlas/v2/groups/{groupId} | Update One Project Name +[**UpdateProject**](ProjectsApi.md#UpdateProject) | **Patch** /api/atlas/v2/groups/{groupId} | Update One Project [**UpdateProjectInvitation**](ProjectsApi.md#UpdateProjectInvitation) | **Patch** /api/atlas/v2/groups/{groupId}/invites | Update One Project Invitation [**UpdateProjectInvitationById**](ProjectsApi.md#UpdateProjectInvitationById) | **Patch** /api/atlas/v2/groups/{groupId}/invites/{invitationId} | Update One Project Invitation by Invitation ID [**UpdateProjectRoles**](ProjectsApi.md#UpdateProjectRoles) | **Put** /api/atlas/v2/groups/{groupId}/users/{userId}/roles | Update Project Roles for One MongoDB Cloud User @@ -52,7 +52,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -127,7 +127,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -198,7 +198,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -273,7 +273,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -346,7 +346,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -427,7 +427,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -503,7 +503,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -576,7 +576,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -649,7 +649,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -730,7 +730,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -806,7 +806,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -879,7 +879,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -959,7 +959,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1032,7 +1032,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1115,7 +1115,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1188,7 +1188,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1267,7 +1267,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1345,7 +1345,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1408,9 +1408,9 @@ Name | Type | Description | Notes ## UpdateProject -> Group UpdateProject(ctx, groupId, groupName GroupName).Execute() +> Group UpdateProject(ctx, groupId, groupUpdate GroupUpdate).Execute() -Update One Project Name +Update One Project ## Experimental @@ -1428,7 +1428,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1438,9 +1438,9 @@ func main() { sdk := admin.NewClient(admin.UseDigestAuth(apiKey, apiSecret)) groupId := "32b6e34b3d91647abb20e7b8" // string | - groupName := *openapiclient.NewGroupName() // GroupName | + groupUpdate := *openapiclient.NewGroupUpdate() // GroupUpdate | - resp, r, err := sdk.ProjectsApi.UpdateProject(context.Background(), groupId, &groupName).Execute() + resp, r, err := sdk.ProjectsApi.UpdateProject(context.Background(), groupId, &groupUpdate).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ProjectsApi.UpdateProject``: %v\n", err) apiError := admin.AsError(err) @@ -1467,7 +1467,7 @@ Other parameters are passed through a pointer to a apiUpdateProjectRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **groupName** | [**GroupName**](GroupName.md) | Project to update. | + **groupUpdate** | [**GroupUpdate**](GroupUpdate.md) | Project to update. | ### Return type @@ -1503,7 +1503,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1578,7 +1578,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1661,7 +1661,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -1739,7 +1739,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/PushBasedLogExportApi.md b/docs/docs/PushBasedLogExportApi.md index 9858fd4c..02dfe376 100644 --- a/docs/docs/PushBasedLogExportApi.md +++ b/docs/docs/PushBasedLogExportApi.md @@ -33,7 +33,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -111,7 +111,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -187,7 +187,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -265,7 +265,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/PushBasedLogExportProject.md b/docs/docs/PushBasedLogExportProject.md index 3c1a225a..98c550eb 100644 --- a/docs/docs/PushBasedLogExportProject.md +++ b/docs/docs/PushBasedLogExportProject.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **IamRoleId** | Pointer to **string** | ID of the AWS IAM role that will be used to write to the S3 bucket. | [optional] **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] **PrefixPath** | Pointer to **string** | S3 directory in which vector will write to in order to store the logs. | [optional] -**State** | Pointer to **string** | Describes whether or not the feature is enabled and what status it is in. | [optional] +**State** | Pointer to **string** | Describes whether or not the feature is enabled and what status it is in. | [optional] [readonly] ## Methods diff --git a/docs/docs/ResourceTag.md b/docs/docs/ResourceTag.md index 67b9caf8..0ca0e955 100644 --- a/docs/docs/ResourceTag.md +++ b/docs/docs/ResourceTag.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Key** | Pointer to **string** | Constant that defines the set of the tag. For example, `environment` in the `environment : production` tag. | [optional] -**Value** | Pointer to **string** | Variable that belongs to the set of the tag. For example, `production` in the `environment : production` tag. | [optional] +**Key** | **string** | Constant that defines the set of the tag. For example, `environment` in the `environment : production` tag. | +**Value** | **string** | Variable that belongs to the set of the tag. For example, `production` in the `environment : production` tag. | ## Methods ### NewResourceTag -`func NewResourceTag() *ResourceTag` +`func NewResourceTag(key string, value string, ) *ResourceTag` NewResourceTag instantiates a new ResourceTag object This constructor will assign default values to properties that have it defined, @@ -45,11 +45,6 @@ and a boolean to check if the value has been set. SetKey sets Key field to given value. -### HasKey - -`func (o *ResourceTag) HasKey() bool` - -HasKey returns a boolean if a field has been set. ### GetValue `func (o *ResourceTag) GetValue() string` @@ -69,11 +64,6 @@ and a boolean to check if the value has been set. SetValue sets Value field to given value. -### HasValue - -`func (o *ResourceTag) HasValue() bool` - -HasValue returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/docs/RollingIndexApi.md b/docs/docs/RollingIndexApi.md index f3936252..0c6eceae 100644 --- a/docs/docs/RollingIndexApi.md +++ b/docs/docs/RollingIndexApi.md @@ -25,7 +25,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/RootApi.md b/docs/docs/RootApi.md index b94975b2..9555ef8b 100644 --- a/docs/docs/RootApi.md +++ b/docs/docs/RootApi.md @@ -31,7 +31,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -100,7 +100,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ServerlessInstancesApi.md b/docs/docs/ServerlessInstancesApi.md index ebd4e1ab..63550562 100644 --- a/docs/docs/ServerlessInstancesApi.md +++ b/docs/docs/ServerlessInstancesApi.md @@ -29,7 +29,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -104,7 +104,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -180,7 +180,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -256,7 +256,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -335,7 +335,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ServerlessPrivateEndpointsApi.md b/docs/docs/ServerlessPrivateEndpointsApi.md index b514a957..759cda28 100644 --- a/docs/docs/ServerlessPrivateEndpointsApi.md +++ b/docs/docs/ServerlessPrivateEndpointsApi.md @@ -34,7 +34,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -117,7 +117,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -201,7 +201,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -280,7 +280,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -361,7 +361,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/SharedTierRestoreJobsApi.md b/docs/docs/SharedTierRestoreJobsApi.md index 1a193216..f225b03f 100644 --- a/docs/docs/SharedTierRestoreJobsApi.md +++ b/docs/docs/SharedTierRestoreJobsApi.md @@ -32,7 +32,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -115,7 +115,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -199,7 +199,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/SharedTierSnapshotsApi.md b/docs/docs/SharedTierSnapshotsApi.md index c4c01434..040c9bd8 100644 --- a/docs/docs/SharedTierSnapshotsApi.md +++ b/docs/docs/SharedTierSnapshotsApi.md @@ -32,7 +32,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -115,7 +115,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -199,7 +199,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/StreamsApi.md b/docs/docs/StreamsApi.md index 51360f90..8df8213c 100644 --- a/docs/docs/StreamsApi.md +++ b/docs/docs/StreamsApi.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**CreateStreamInstance**](StreamsApi.md#CreateStreamInstance) | **Post** /api/atlas/v2/groups/{groupId}/streams | Create One Stream Instance [**DeleteStreamConnection**](StreamsApi.md#DeleteStreamConnection) | **Delete** /api/atlas/v2/groups/{groupId}/streams/{tenantName}/connections/{connectionName} | Delete One Stream Connection [**DeleteStreamInstance**](StreamsApi.md#DeleteStreamInstance) | **Delete** /api/atlas/v2/groups/{groupId}/streams/{tenantName} | Delete One Stream Instance +[**DownloadStreamTenantAuditLogs**](StreamsApi.md#DownloadStreamTenantAuditLogs) | **Get** /api/atlas/v2/groups/{groupId}/streams/{tenantName}/auditLogs | Download Audit Logs for One Atlas Stream Processing Instance [**GetStreamConnection**](StreamsApi.md#GetStreamConnection) | **Get** /api/atlas/v2/groups/{groupId}/streams/{tenantName}/connections/{connectionName} | Return One Stream Connection [**GetStreamInstance**](StreamsApi.md#GetStreamInstance) | **Get** /api/atlas/v2/groups/{groupId}/streams/{tenantName} | Return One Stream Instance [**ListStreamConnections**](StreamsApi.md#ListStreamConnections) | **Get** /api/atlas/v2/groups/{groupId}/streams/{tenantName}/connections | Return All Connections Of The Stream Instances @@ -39,7 +40,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -122,7 +123,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -202,7 +203,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -286,7 +287,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -345,6 +346,91 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## DownloadStreamTenantAuditLogs + +> io.ReadCloser DownloadStreamTenantAuditLogs(ctx, groupId, tenantName).EndDate(endDate).StartDate(startDate).Execute() + +Download Audit Logs for One Atlas Stream Processing Instance + + +## Experimental + +This operation is marked as experimental. It might be changed in the future without compatibility guarantees. +For more information see [ExperimentalMethods](../doc_1_concepts.md#experimental-methods) + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "go.mongodb.org/atlas-sdk/v20231115008/admin" +) + +func main() { + apiKey := os.Getenv("MONGODB_ATLAS_PUBLIC_KEY") + apiSecret := os.Getenv("MONGODB_ATLAS_PRIVATE_KEY") + + sdk := admin.NewClient(admin.UseDigestAuth(apiKey, apiSecret)) + + groupId := "32b6e34b3d91647abb20e7b8" // string | + tenantName := "tenantName_example" // string | + endDate := int64(1636481348) // int64 | (optional) + startDate := int64(1636466948) // int64 | (optional) + + resp, r, err := sdk.StreamsApi.DownloadStreamTenantAuditLogs(context.Background(), groupId, tenantName).EndDate(endDate).StartDate(startDate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.DownloadStreamTenantAuditLogs``: %v\n", err) + apiError := admin.AsError(err) + fmt.Fprintf(os.Stderr, "Error obj: %v\n", apiError) + } + // response from `DownloadStreamTenantAuditLogs`: io.ReadCloser + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.DownloadStreamTenantAuditLogs`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | 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. | +**tenantName** | **string** | Human-readable label that identifies the stream instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDownloadStreamTenantAuditLogsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **endDate** | **int64** | Timestamp that specifies the end point for the range of log messages to download. MongoDB Cloud expresses this timestamp in the number of seconds that have elapsed since the UNIX epoch. | + **startDate** | **int64** | Timestamp that specifies the starting point for the range of log messages to download. MongoDB Cloud expresses this timestamp in the number of seconds that have elapsed since the UNIX epoch. | + +### Return type + +[**io.ReadCloser**](io.ReadCloser.md) + +### Authorization +[DigestAuth](../README.md#Authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.atlas.2023-02-01+gzip, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GetStreamConnection > StreamsConnection GetStreamConnection(ctx, groupId, tenantName, connectionName).Execute() @@ -367,7 +453,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -451,7 +537,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -534,7 +620,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -619,7 +705,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -701,7 +787,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -787,7 +873,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/StreamsConnection.md b/docs/docs/StreamsConnection.md index a1efe53e..2931c474 100644 --- a/docs/docs/StreamsConnection.md +++ b/docs/docs/StreamsConnection.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] -**Name** | Pointer to **string** | Human-readable label that identifies the stream connection. | [optional] +**Name** | Pointer to **string** | Human-readable label that identifies the stream connection. In the case of the Sample type, this is the name of the sample source. | [optional] **Type** | Pointer to **string** | Type of the connection. Can be either Cluster or Kafka. | [optional] **ClusterName** | Pointer to **string** | Name of the cluster configured for this connection. | [optional] **DbRoleToExecute** | Pointer to [**DBRoleToExecute**](DBRoleToExecute.md) | | [optional] diff --git a/docs/docs/TeamsApi.md b/docs/docs/TeamsApi.md index bb6d0b34..874abf9d 100644 --- a/docs/docs/TeamsApi.md +++ b/docs/docs/TeamsApi.md @@ -37,7 +37,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -112,7 +112,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -190,7 +190,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -265,7 +265,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -341,7 +341,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -417,7 +417,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -493,7 +493,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -572,7 +572,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -651,7 +651,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -731,7 +731,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -805,7 +805,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -887,7 +887,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -965,7 +965,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/ThirdPartyIntegrationsApi.md b/docs/docs/ThirdPartyIntegrationsApi.md index b0c4f0ea..01687d11 100644 --- a/docs/docs/ThirdPartyIntegrationsApi.md +++ b/docs/docs/ThirdPartyIntegrationsApi.md @@ -29,7 +29,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -113,7 +113,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -189,7 +189,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -265,7 +265,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -349,7 +349,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/docs/docs/UserAccessListRequest.md b/docs/docs/UserAccessListRequest.md new file mode 100644 index 00000000..720ace44 --- /dev/null +++ b/docs/docs/UserAccessListRequest.md @@ -0,0 +1,80 @@ +# UserAccessListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CidrBlock** | Pointer to **string** | Range of network addresses that you want to add to the access list for the API key. This parameter requires the range to be expressed in classless inter-domain routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or **ipAddress** but not both in the same request. | [optional] +**IpAddress** | Pointer to **string** | Network address that you want to add to the access list for the API key. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or **cidrBlock** but not both in the same request. | [optional] + +## Methods + +### NewUserAccessListRequest + +`func NewUserAccessListRequest() *UserAccessListRequest` + +NewUserAccessListRequest instantiates a new UserAccessListRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserAccessListRequestWithDefaults + +`func NewUserAccessListRequestWithDefaults() *UserAccessListRequest` + +NewUserAccessListRequestWithDefaults instantiates a new UserAccessListRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCidrBlock + +`func (o *UserAccessListRequest) GetCidrBlock() string` + +GetCidrBlock returns the CidrBlock field if non-nil, zero value otherwise. + +### GetCidrBlockOk + +`func (o *UserAccessListRequest) GetCidrBlockOk() (*string, bool)` + +GetCidrBlockOk returns a tuple with the CidrBlock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidrBlock + +`func (o *UserAccessListRequest) SetCidrBlock(v string)` + +SetCidrBlock sets CidrBlock field to given value. + +### HasCidrBlock + +`func (o *UserAccessListRequest) HasCidrBlock() bool` + +HasCidrBlock returns a boolean if a field has been set. +### GetIpAddress + +`func (o *UserAccessListRequest) GetIpAddress() string` + +GetIpAddress returns the IpAddress field if non-nil, zero value otherwise. + +### GetIpAddressOk + +`func (o *UserAccessListRequest) GetIpAddressOk() (*string, bool)` + +GetIpAddressOk returns a tuple with the IpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddress + +`func (o *UserAccessListRequest) SetIpAddress(v string)` + +SetIpAddress sets IpAddress field to given value. + +### HasIpAddress + +`func (o *UserAccessListRequest) HasIpAddress() bool` + +HasIpAddress returns a boolean if a field has been set. + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/docs/UserAccessList.md b/docs/docs/UserAccessListResponse.md similarity index 66% rename from docs/docs/UserAccessList.md rename to docs/docs/UserAccessListResponse.md index fe6c114c..783618fa 100644 --- a/docs/docs/UserAccessList.md +++ b/docs/docs/UserAccessListResponse.md @@ -1,202 +1,202 @@ -# UserAccessList +# UserAccessListResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CidrBlock** | Pointer to **string** | Range of network addresses that you want to add to the access list for the API key. This parameter requires the range to be expressed in classless inter-domain routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or **ipAddress** but not both in the same request. | [optional] +**CidrBlock** | Pointer to **string** | Range of IP addresses in Classless Inter-Domain Routing (CIDR) notation in the access list for the API key. | [optional] **Count** | Pointer to **int** | Total number of requests that have originated from the Internet Protocol (IP) address given as the value of the *lastUsedAddress* parameter. | [optional] [readonly] **Created** | Pointer to **time.Time** | Date and time when someone added the network addresses to the specified API access list. This parameter expresses its value in the ISO 8601 timestamp format in UTC. | [optional] [readonly] -**IpAddress** | Pointer to **string** | Network address that you want to add to the access list for the API key. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or **cidrBlock** but not both in the same request. | [optional] +**IpAddress** | Pointer to **string** | Network address in the access list for the API key. | [optional] **LastUsed** | Pointer to **time.Time** | Date and time when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request has originated from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource. This parameter expresses its value in the ISO 8601 timestamp format in UTC. | [optional] [readonly] **LastUsedAddress** | Pointer to **string** | Network address that issued the most recent request to the API. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. The resource returns this parameter after this IP address made at least one request. | [optional] [readonly] **Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly] ## Methods -### NewUserAccessList +### NewUserAccessListResponse -`func NewUserAccessList() *UserAccessList` +`func NewUserAccessListResponse() *UserAccessListResponse` -NewUserAccessList instantiates a new UserAccessList object +NewUserAccessListResponse instantiates a new UserAccessListResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewUserAccessListWithDefaults +### NewUserAccessListResponseWithDefaults -`func NewUserAccessListWithDefaults() *UserAccessList` +`func NewUserAccessListResponseWithDefaults() *UserAccessListResponse` -NewUserAccessListWithDefaults instantiates a new UserAccessList object +NewUserAccessListResponseWithDefaults instantiates a new UserAccessListResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCidrBlock -`func (o *UserAccessList) GetCidrBlock() string` +`func (o *UserAccessListResponse) GetCidrBlock() string` GetCidrBlock returns the CidrBlock field if non-nil, zero value otherwise. ### GetCidrBlockOk -`func (o *UserAccessList) GetCidrBlockOk() (*string, bool)` +`func (o *UserAccessListResponse) GetCidrBlockOk() (*string, bool)` GetCidrBlockOk returns a tuple with the CidrBlock field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCidrBlock -`func (o *UserAccessList) SetCidrBlock(v string)` +`func (o *UserAccessListResponse) SetCidrBlock(v string)` SetCidrBlock sets CidrBlock field to given value. ### HasCidrBlock -`func (o *UserAccessList) HasCidrBlock() bool` +`func (o *UserAccessListResponse) HasCidrBlock() bool` HasCidrBlock returns a boolean if a field has been set. ### GetCount -`func (o *UserAccessList) GetCount() int` +`func (o *UserAccessListResponse) GetCount() int` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *UserAccessList) GetCountOk() (*int, bool)` +`func (o *UserAccessListResponse) GetCountOk() (*int, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *UserAccessList) SetCount(v int)` +`func (o *UserAccessListResponse) SetCount(v int)` SetCount sets Count field to given value. ### HasCount -`func (o *UserAccessList) HasCount() bool` +`func (o *UserAccessListResponse) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetCreated -`func (o *UserAccessList) GetCreated() time.Time` +`func (o *UserAccessListResponse) GetCreated() time.Time` GetCreated returns the Created field if non-nil, zero value otherwise. ### GetCreatedOk -`func (o *UserAccessList) GetCreatedOk() (*time.Time, bool)` +`func (o *UserAccessListResponse) GetCreatedOk() (*time.Time, bool)` GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCreated -`func (o *UserAccessList) SetCreated(v time.Time)` +`func (o *UserAccessListResponse) SetCreated(v time.Time)` SetCreated sets Created field to given value. ### HasCreated -`func (o *UserAccessList) HasCreated() bool` +`func (o *UserAccessListResponse) HasCreated() bool` HasCreated returns a boolean if a field has been set. ### GetIpAddress -`func (o *UserAccessList) GetIpAddress() string` +`func (o *UserAccessListResponse) GetIpAddress() string` GetIpAddress returns the IpAddress field if non-nil, zero value otherwise. ### GetIpAddressOk -`func (o *UserAccessList) GetIpAddressOk() (*string, bool)` +`func (o *UserAccessListResponse) GetIpAddressOk() (*string, bool)` GetIpAddressOk returns a tuple with the IpAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpAddress -`func (o *UserAccessList) SetIpAddress(v string)` +`func (o *UserAccessListResponse) SetIpAddress(v string)` SetIpAddress sets IpAddress field to given value. ### HasIpAddress -`func (o *UserAccessList) HasIpAddress() bool` +`func (o *UserAccessListResponse) HasIpAddress() bool` HasIpAddress returns a boolean if a field has been set. ### GetLastUsed -`func (o *UserAccessList) GetLastUsed() time.Time` +`func (o *UserAccessListResponse) GetLastUsed() time.Time` GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. ### GetLastUsedOk -`func (o *UserAccessList) GetLastUsedOk() (*time.Time, bool)` +`func (o *UserAccessListResponse) GetLastUsedOk() (*time.Time, bool)` GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastUsed -`func (o *UserAccessList) SetLastUsed(v time.Time)` +`func (o *UserAccessListResponse) SetLastUsed(v time.Time)` SetLastUsed sets LastUsed field to given value. ### HasLastUsed -`func (o *UserAccessList) HasLastUsed() bool` +`func (o *UserAccessListResponse) HasLastUsed() bool` HasLastUsed returns a boolean if a field has been set. ### GetLastUsedAddress -`func (o *UserAccessList) GetLastUsedAddress() string` +`func (o *UserAccessListResponse) GetLastUsedAddress() string` GetLastUsedAddress returns the LastUsedAddress field if non-nil, zero value otherwise. ### GetLastUsedAddressOk -`func (o *UserAccessList) GetLastUsedAddressOk() (*string, bool)` +`func (o *UserAccessListResponse) GetLastUsedAddressOk() (*string, bool)` GetLastUsedAddressOk returns a tuple with the LastUsedAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLastUsedAddress -`func (o *UserAccessList) SetLastUsedAddress(v string)` +`func (o *UserAccessListResponse) SetLastUsedAddress(v string)` SetLastUsedAddress sets LastUsedAddress field to given value. ### HasLastUsedAddress -`func (o *UserAccessList) HasLastUsedAddress() bool` +`func (o *UserAccessListResponse) HasLastUsedAddress() bool` HasLastUsedAddress returns a boolean if a field has been set. ### GetLinks -`func (o *UserAccessList) GetLinks() []Link` +`func (o *UserAccessListResponse) GetLinks() []Link` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *UserAccessList) GetLinksOk() (*[]Link, bool)` +`func (o *UserAccessListResponse) GetLinksOk() (*[]Link, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *UserAccessList) SetLinks(v []Link)` +`func (o *UserAccessListResponse) SetLinks(v []Link)` SetLinks sets Links field to given value. ### HasLinks -`func (o *UserAccessList) HasLinks() bool` +`func (o *UserAccessListResponse) HasLinks() bool` HasLinks returns a boolean if a field has been set. diff --git a/docs/docs/X509AuthenticationApi.md b/docs/docs/X509AuthenticationApi.md index 8da6d6db..90828c72 100644 --- a/docs/docs/X509AuthenticationApi.md +++ b/docs/docs/X509AuthenticationApi.md @@ -27,7 +27,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -105,7 +105,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { @@ -178,7 +178,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/examples/aws_cluster/aws.go b/examples/aws_cluster/aws.go index 678053eb..9cfb9145 100644 --- a/examples/aws_cluster/aws.go +++ b/examples/aws_cluster/aws.go @@ -10,8 +10,8 @@ import ( "context" - "go.mongodb.org/atlas-sdk/v20231115007/admin" - "go.mongodb.org/atlas-sdk/v20231115007/examples" + "go.mongodb.org/atlas-sdk/v20231115008/admin" + "go.mongodb.org/atlas-sdk/v20231115008/examples" ) /* diff --git a/examples/basic/basic.go b/examples/basic/basic.go index 6813420b..2fc57b1a 100644 --- a/examples/basic/basic.go +++ b/examples/basic/basic.go @@ -7,8 +7,8 @@ import ( "context" - "go.mongodb.org/atlas-sdk/v20231115007/admin" - "go.mongodb.org/atlas-sdk/v20231115007/examples" + "go.mongodb.org/atlas-sdk/v20231115008/admin" + "go.mongodb.org/atlas-sdk/v20231115008/examples" ) /* diff --git a/examples/db_users/db_users.go b/examples/db_users/db_users.go index c3da0d2f..25ab85ae 100644 --- a/examples/db_users/db_users.go +++ b/examples/db_users/db_users.go @@ -6,8 +6,8 @@ import ( "context" - "go.mongodb.org/atlas-sdk/v20231115007/admin" - "go.mongodb.org/atlas-sdk/v20231115007/examples" + "go.mongodb.org/atlas-sdk/v20231115008/admin" + "go.mongodb.org/atlas-sdk/v20231115008/examples" ) const ( diff --git a/examples/download/downloadLogs.go b/examples/download/downloadLogs.go index bad0c917..6b9fa4bb 100644 --- a/examples/download/downloadLogs.go +++ b/examples/download/downloadLogs.go @@ -7,8 +7,8 @@ import ( "context" - "go.mongodb.org/atlas-sdk/v20231115007/admin" - "go.mongodb.org/atlas-sdk/v20231115007/examples" + "go.mongodb.org/atlas-sdk/v20231115008/admin" + "go.mongodb.org/atlas-sdk/v20231115008/examples" ) /* diff --git a/examples/errors.go b/examples/errors.go index 2db155c0..fa2edfc6 100644 --- a/examples/errors.go +++ b/examples/errors.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func HandleErr(err error, resp *http.Response) { diff --git a/examples/regions/regions.go b/examples/regions/regions.go index 98166865..b5e78162 100644 --- a/examples/regions/regions.go +++ b/examples/regions/regions.go @@ -7,8 +7,8 @@ import ( "context" - "go.mongodb.org/atlas-sdk/v20231115007/admin" - "go.mongodb.org/atlas-sdk/v20231115007/examples" + "go.mongodb.org/atlas-sdk/v20231115008/admin" + "go.mongodb.org/atlas-sdk/v20231115008/examples" ) /* diff --git a/go.mod b/go.mod index 3ff70cb7..bbbc0fbf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.mongodb.org/atlas-sdk/v20231115007 +module go.mongodb.org/atlas-sdk/v20231115008 go 1.20 diff --git a/internal/core/version.go b/internal/core/version.go index 170ecf55..920fc78f 100644 --- a/internal/core/version.go +++ b/internal/core/version.go @@ -5,7 +5,7 @@ package core // For more information please see: https://github.com/mongodb/atlas-sdk-go/blob/main/docs/doc_1_concepts.md const ( // SDK release tag version. - Version = "v20231115007.1.0" + Version = "v20231115008.0.0" // Resource Version. Resource = "20231115" ) diff --git a/openapi/atlas-api-transformed.yaml b/openapi/atlas-api-transformed.yaml index 4a70e350..8be23c46 100644 --- a/openapi/atlas-api-transformed.yaml +++ b/openapi/atlas-api-transformed.yaml @@ -24,7 +24,7 @@ info: termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions title: MongoDB Atlas Administration API version: "2.0" - x-xgen-sha: 76088c8031312c93862e7b4c7d9d15f4f0e64d4a + x-xgen-sha: 5872b4cc51488757711256c66c6956f57df3d1c7 servers: - url: https://cloud.mongodb.com tags: @@ -74,6 +74,9 @@ tags: cluster configurations can affect costs. This resource requires your Project ID. name: Clusters + - description: Returns, adds, and edits pinned namespaces for the specified + cluster or process. Also returns collection level latency metric data. + name: Collection Level Metrics - description: Returns, adds, edits, and removes custom database user privilege roles. Use custom roles to specify custom sets of actions that the MongoDB Cloud built-in roles can't describe. You define custom roles at the @@ -238,9 +241,7 @@ paths: x-xgen-version: 2023-01-01 description: OK "401": - $ref: "#/components/responses/unauthorized" - "404": - $ref: "#/components/responses/notFound" + description: Unauthorized. "500": $ref: "#/components/responses/internalServerError" security: @@ -717,16 +718,22 @@ paths: operationId: listIdentityProviders parameters: - $ref: "#/components/parameters/federationSettingsId" - - description: The protocols of the target identity providers. Defaults to SAML. + - description: The protocols of the target identity providers. in: query name: protocol schema: - type: string - - description: The types of the target identity providers. Defaults to WORKFORCE. + type: array + items: + type: string + default: SAML + - description: The types of the target identity providers. in: query name: idpType schema: - type: string + type: array + items: + type: string + default: WORKFORCE responses: "200": content: @@ -1174,8 +1181,8 @@ paths: - Projects patch: description: Updates the human-readable label that identifies the specified - project. To use this resource, the requesting API Key must have the - Project Owner role. + project, or the tags associated with the project. To use this resource, + the requesting API Key must have the Project Owner role. operationId: updateProject parameters: - $ref: "#/components/parameters/groupId" @@ -1183,7 +1190,7 @@ paths: content: application/vnd.atlas.2023-01-01+json: schema: - $ref: "#/components/schemas/GroupName" + $ref: "#/components/schemas/GroupUpdate" description: Project to update. required: true responses: @@ -1206,7 +1213,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Update One Project Name + summary: Update One Project tags: - Projects x-xgen-experimental: true @@ -1215,8 +1222,11 @@ paths: description: Adds one MongoDB Cloud user to the specified project. If the MongoDB Cloud user is not a member of the project's organization, then the user must accept their invitation to the organization to access - information within the specified project. To use this resource, the - requesting API Key must have the Group User Admin role. + information within the specified project. If the MongoDB Cloud User is + already a member of the project's organization, then they will be added + to the project immediately and an invitation will not be returned by + this resource. To use this resource, the requesting API Key must have + the Group User Admin role. operationId: addUserToProject parameters: - $ref: "#/components/parameters/groupId" @@ -1235,6 +1245,11 @@ paths: $ref: "#/components/schemas/OrganizationInvitation" x-xgen-version: 2023-02-01 description: OK + "204": + content: + application/vnd.atlas.2023-02-01+json: + x-xgen-version: 2023-02-01 + description: No Content "401": $ref: "#/components/responses/unauthorized" "500": @@ -2505,6 +2520,13 @@ paths: operationId: updateDataProtectionSettings parameters: - $ref: "#/components/parameters/groupId" + - description: Flag that indicates whether to overwrite non complying backup + policies with the new data protection settings or not. + in: query + name: overwriteBackupPolicies + schema: + type: boolean + default: true requestBody: content: application/vnd.atlas.2023-10-01+json: @@ -2521,6 +2543,8 @@ paths: $ref: "#/components/schemas/DataProtectionSettings20231001" x-xgen-version: 2023-10-01 description: OK + "400": + $ref: "#/components/responses/badRequest" "401": $ref: "#/components/responses/unauthorized" "404": @@ -2873,7 +2897,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Create One Multi-Cloud Cluster from One Project + summary: Create One Cluster from One Project tags: - Clusters "/api/atlas/v2/groups/{groupId}/clusters/provider/regions": @@ -3002,11 +3026,11 @@ paths: x-xgen-experimental: true "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}": delete: - description: "Removes one cluster with advanced features from the specified - project. The cluster must have termination protection disabled in order - to be deleted. To use this resource, the requesting API Key must have - the Project Owner role. This feature is not available for serverless - clusters. Deprecated versions: v2-{2023-01-01}" + description: "Removes one cluster from the specified project. The cluster must + have termination protection disabled in order to be deleted. To use this + resource, the requesting API Key must have the Project Owner role. This + feature is not available for serverless clusters. Deprecated versions: + v2-{2023-01-01}" operationId: deleteCluster parameters: - $ref: "#/components/parameters/groupId" @@ -3043,7 +3067,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Remove One Multi-Cloud Cluster from One Project + summary: Remove One Cluster from One Project tags: - Clusters get: @@ -3056,7 +3080,7 @@ paths: operationId: getCluster parameters: - $ref: "#/components/parameters/groupId" - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -3083,7 +3107,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Return One Multi-Cloud Cluster from One Project + summary: Return One Cluster from One Project tags: - Clusters patch: @@ -3136,7 +3160,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Modify One Multi-Cloud Cluster from One Project + summary: Modify One Cluster from One Project tags: - Clusters "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/exports": @@ -4561,7 +4585,7 @@ paths: operationId: getManagedNamespace parameters: - $ref: "#/components/parameters/groupId" - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4584,7 +4608,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Return One Managed Namespace in One Global Multi-Cloud Cluster + summary: Return One Managed Namespace in One Global Cluster tags: - Global Clusters "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping": @@ -4602,7 +4626,7 @@ paths: operationId: deleteAllCustomZoneMappings parameters: - $ref: "#/components/parameters/groupId" - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4625,7 +4649,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Remove All Custom Zone Mappings from One Global Multi-Cloud Cluster + summary: Remove All Custom Zone Mappings from One Global Cluster tags: - Global Clusters x-xgen-experimental: true @@ -4642,7 +4666,7 @@ paths: operationId: createCustomZoneMapping parameters: - $ref: "#/components/parameters/groupId" - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4691,7 +4715,7 @@ paths: url: https://www.mongodb.com/docs/atlas/global-clusters/ operationId: deleteManagedNamespace parameters: - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4729,7 +4753,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Remove One Managed Namespace from One Global Multi-Cloud Cluster + summary: Remove One Managed Namespace from One Global Cluster tags: - Global Clusters x-xgen-experimental: true @@ -4745,7 +4769,7 @@ paths: operationId: createManagedNamespace parameters: - $ref: "#/components/parameters/groupId" - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4779,7 +4803,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Create One Managed Namespace in One Global Multi-Cloud Cluster + summary: Create One Managed Namespace in One Global Cluster tags: - Global Clusters x-xgen-experimental: true @@ -5422,7 +5446,7 @@ paths: $ref: "#/components/responses/internalServerError" security: - DigestAuth: [] - summary: Test Failover for One Multi-Cloud Cluster + summary: Test Failover for One Cluster tags: - Clusters "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restoreJobs": @@ -11307,8 +11331,8 @@ paths: pattern: ^([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-f]{1,4}\:){7}([0-9a-f]{1,4})|(([a-z0-9]+\.){1,10}[a-z]+)?(\:[0-9]{4,5})$ - description: >- Date and time from which the query retrieves the suggested indexes. - This parameter expresses its value in the number of seconds that - have elapsed since the [UNIX + This parameter expresses its value in the number of milliseconds + that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). @@ -11320,7 +11344,7 @@ paths: schema: type: integer format: int64 - minimum: 1199145600 + minimum: 1199145600000 responses: "200": content: @@ -11399,8 +11423,8 @@ paths: pattern: ^([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-f]{1,4}\:){7}([0-9a-f]{1,4})|(([a-z0-9]+\.){1,10}[a-z]+)?(\:[0-9]{4,5})$ - description: >- Date and time from which the query retrieves the slow queries. This - parameter expresses its value in the number of seconds that have - elapsed since the [UNIX + parameter expresses its value in the number of milliseconds that + have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). @@ -11412,7 +11436,7 @@ paths: schema: type: integer format: int64 - minimum: 1199145600 + minimum: 1199145600000 responses: "200": content: @@ -11496,8 +11520,8 @@ paths: pattern: ^([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-f]{1,4}\:){7}([0-9a-f]{1,4})|(([a-z0-9]+\.){1,10}[a-z]+)?(\:[0-9]{4,5})$ - description: >- Date and time from which the query retrieves the suggested indexes. - This parameter expresses its value in the number of seconds that - have elapsed since the [UNIX + This parameter expresses its value in the number of milliseconds + that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). @@ -11509,6 +11533,7 @@ paths: schema: type: integer format: int64 + minimum: 1199145600000 responses: "200": content: @@ -12458,6 +12483,69 @@ paths: 2023-09-11: The MongoDB Atlas Streams Processing API is now exposed as part of private preview, but is subject to change until GA. x-xgen-experimental: true + "/api/atlas/v2/groups/{groupId}/streams/{tenantName}/auditLogs": + get: + description: Downloads the audit logs for the specified Atlas Streams Processing + instance. By default, logs cover periods of 30 days. To use this + resource, the requesting API Key must have the Project Owner roles or + Project Data Access Read Write roles. + operationId: downloadStreamTenantAuditLogs + parameters: + - $ref: "#/components/parameters/groupId" + - description: Timestamp that specifies the end point for the range of log + messages to download. MongoDB Cloud expresses this timestamp in the + number of seconds that have elapsed since the UNIX epoch. + in: query + name: endDate + schema: + type: integer + format: int64 + example: 1636481348 + pattern: "1199145600" + - description: Timestamp that specifies the starting point for the range of log + messages to download. MongoDB Cloud expresses this timestamp in the + number of seconds that have elapsed since the UNIX epoch. + in: query + name: startDate + schema: + type: integer + format: int64 + example: 1636466948 + pattern: "1199145600" + - description: Human-readable label that identifies the stream instance. + in: path + name: tenantName + required: true + schema: + type: string + responses: + "200": + content: + application/vnd.atlas.2023-02-01+gzip: + schema: + type: string + format: binary + description: Compressed archive labeled `auditLogs.gz` downloads + x-xgen-version: 2023-02-01 + description: OK + "400": + $ref: "#/components/responses/badRequest" + "401": + $ref: "#/components/responses/unauthorized" + "403": + $ref: "#/components/responses/forbidden" + "404": + $ref: "#/components/responses/notFound" + "409": + $ref: "#/components/responses/conflict" + "500": + $ref: "#/components/responses/internalServerError" + security: + - DigestAuth: [] + summary: Download Audit Logs for One Atlas Stream Processing Instance + tags: + - Streams + x-xgen-experimental: true "/api/atlas/v2/groups/{groupId}/streams/{tenantName}/connections": get: description: Returns all connections of the stream instance for the specified project. @@ -13587,7 +13675,7 @@ paths: content: application/vnd.atlas.2023-01-01+json: schema: - $ref: "#/components/schemas/PaginatedApiUserAccessList" + $ref: "#/components/schemas/PaginatedApiUserAccessListResponse" x-xgen-version: 2023-01-01 description: OK "401": @@ -13627,7 +13715,7 @@ paths: schema: type: array items: - $ref: "#/components/schemas/UserAccessList" + $ref: "#/components/schemas/UserAccessListRequest" description: Access list entries to be created for the specified organization API key. required: true @@ -13636,7 +13724,7 @@ paths: content: application/vnd.atlas.2023-01-01+json: schema: - $ref: "#/components/schemas/PaginatedApiUserAccessList" + $ref: "#/components/schemas/PaginatedApiUserAccessListResponse" x-xgen-version: 2023-01-01 description: OK "400": @@ -13748,7 +13836,7 @@ paths: content: application/vnd.atlas.2023-01-01+json: schema: - $ref: "#/components/schemas/UserAccessList" + $ref: "#/components/schemas/UserAccessListResponse" x-xgen-version: 2023-01-01 description: OK "401": @@ -13767,7 +13855,7 @@ paths: post: description: Creates a query process within the Cost Explorer for the given parameters. A token is returned that can be used to poll the status of - the query and eventually retrievethe results. + the query and eventually retrieve the results. operationId: createCostExplorerQueryProcess parameters: - $ref: "#/components/parameters/orgId" @@ -15477,9 +15565,7 @@ components: detail: (This is just an example, the exception may not be related to this endpoint) No provider AWS exists. error: 400 - errorCode: INVALID_PROVIDER - parameters: - - AWS + errorCode: VALIDATION_ERROR reason: Bad Request schema: $ref: "#/components/schemas/ApiError" @@ -15492,9 +15578,7 @@ components: endpoint) Cannot delete organization link while there is active migration in following project ids: 60c4fd418ebe251047c50554" error: 409 - errorCode: CANNOT_DELETE_ORG_LINK_WITH_RUNNING_LIVE_EXPORT - parameters: - - 60c4fd418ebe251047c50554 + errorCode: CANNOT_DELETE_ORG_ACTIVE_LIVE_MIGRATION_ATLAS_ORG_LINK reason: Conflict schema: $ref: "#/components/schemas/ApiError" @@ -15507,8 +15591,6 @@ components: endpoint) error: 403 errorCode: CANNOT_CHANGE_GROUP_NAME - parameters: - - EXAMPLE reason: Forbidden schema: $ref: "#/components/schemas/ApiError" @@ -15521,8 +15603,6 @@ components: in the past. error: 410 errorCode: VERSION_GONE - parameters: - - EXAMPLE reason: Gone schema: $ref: "#/components/schemas/ApiError" @@ -15535,8 +15615,6 @@ components: endpoint) error: 500 errorCode: UNEXPECTED_ERROR - parameters: - - EXAMPLE reason: Internal Server Error schema: $ref: "#/components/schemas/ApiError" @@ -15549,8 +15627,6 @@ components: endpoint) error: 405 errorCode: ATLAS_BACKUP_CANCEL_SHARD_RESTORE_JOB_NOT_ALLOWED - parameters: - - EXAMPLE reason: Method Not Allowed schema: $ref: "#/components/schemas/ApiError" @@ -15565,8 +15641,6 @@ components: endpoint) Cannot find resource AWS error: 404 errorCode: RESOURCE_NOT_FOUND - parameters: - - AWS reason: Not Found schema: $ref: "#/components/schemas/ApiError" @@ -15579,8 +15653,6 @@ components: endpoint) error: 402 errorCode: NO_PAYMENT_INFORMATION_FOUND - parameters: - - EXAMPLE reason: Payment Required schema: $ref: "#/components/schemas/ApiError" @@ -15593,8 +15665,6 @@ components: endpoint) error: 401 errorCode: NOT_ORG_GROUP_CREATOR - parameters: - - EXAMPLE reason: Unauthorized schema: $ref: "#/components/schemas/ApiError" @@ -16426,21 +16496,18 @@ components: type: integer format: int32 description: HTTP status code returned with this error. - maximum: 599 - minimum: 200 + externalDocs: + url: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status errorCode: type: string description: Application error code returned with this error. - example: TOO_MANY_GROUP_NOTIFICATIONS parameters: type: array - description: Parameter uses to give more information about the error. + description: Parameters used to give more information about the error. items: {} reason: type: string description: Application error message returned with this error. - example: At most one group notification can be specified for an alert - configuration. ApiHostView_Atlas: type: object properties: @@ -18619,10 +18686,11 @@ components: $ref: "#/components/schemas/DatabaseUserRole" scopes: type: array - description: List that contains clusters and MongoDB Atlas Data Lakes that this - database user can access. If omitted, MongoDB Cloud grants the - database user access to all the clusters and MongoDB Atlas Data - Lakes in the project. + description: List that contains clusters, MongoDB Atlas Data Lakes, and MongoDB + Atlas Streams Instances that this database user can access. If + omitted, MongoDB Cloud grants the database user access to all the + clusters, MongoDB Atlas Data Lakes, and MongoDB Atlas Streams + Instances in the project. items: $ref: "#/components/schemas/UserScope" username: @@ -23765,14 +23833,6 @@ components: maintenance. required: - dayOfWeek - GroupName: - type: object - description: Request view to update the group name. - properties: - name: - type: string - description: Human-readable label that identifies the project included in the - MongoDB Cloud organization. GroupRole: type: object properties: @@ -23851,6 +23911,23 @@ components: type: boolean description: Flag that indicates whether to enable the Schema Advisor for the specified project. + GroupUpdate: + type: object + description: Request view to update the group. + properties: + name: + type: string + description: Human-readable label that identifies the project included in the + MongoDB Cloud organization. + tags: + type: array + description: List that contains key-value pairs between 1 to 255 characters in + length for tagging and categorizing the project. + externalDocs: + description: Resource Tags + url: https://www.mongodb.com/docs/atlas/tags + items: + $ref: "#/components/schemas/ResourceTag" HardwareSpec: type: object description: Hardware specifications for all electable nodes deployed in the @@ -26069,7 +26146,7 @@ components: uniqueItems: true id: type: string - description: Unique 24-hexadecimal digit string that identifies this organization. + description: Unique 24-hexadecimal digit string that identifies this invitation. example: 32b6e34b3d91647abb20e7b8 maxLength: 24 minLength: 24 @@ -26106,8 +26183,8 @@ components: pattern: ^[\p{L}\p{N}\-_.(),:&@+']{1,64}$ roles: type: array - description: One or more organization or project level roles to assign to the - MongoDB Cloud user. + description: One or more organization level roles to assign to the MongoDB Cloud + user. items: type: string uniqueItems: true @@ -26321,8 +26398,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedHostView_Atlas: @@ -26349,7 +26426,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PemFileInfo: @@ -26730,6 +26808,7 @@ components: type: string description: Describes whether or not the feature is enabled and what status it is in. + readOnly: true RawMetricUnits: type: string default: RAW @@ -26850,6 +26929,9 @@ components: `production` in the `environment : production` tag." maxLength: 255 minLength: 1 + required: + - key + - value title: Resource Tag RestoreJobFileHash: type: object @@ -27718,7 +27800,8 @@ components: readOnly: true name: type: string - description: Human-readable label that identifies the stream connection. + description: Human-readable label that identifies the stream connection. In the + case of the Sample type, this is the name of the sample source. type: type: string description: Type of the connection. Can be either Cluster or Kafka. @@ -28497,7 +28580,7 @@ components: items: type: string uniqueItems: true - UserAccessList: + UserAccessListRequest: type: object properties: cidrBlock: @@ -28508,6 +28591,24 @@ components: Protocol version 4 or version 6 addresses. You can set a value for this parameter or **ipAddress** but not both in the same request. example: 203.0.113.0/24 + pattern: ^((([0-9]{1,3}\.){3}[0-9]{1,3})|(:{0,2}([0-9a-f]{1,4}:){0,7}[0-9a-f]{1,4}[:]{0,2}))((%2[fF]|/)[0-9]{1,3})+$ + ipAddress: + type: string + description: Network address that you want to add to the access list for the API + key. This parameter requires the address to be expressed as one + Internet Protocol version 4 or version 6 address. You can set a + value for this parameter or **cidrBlock** but not both in the same + request. + example: 203.0.113.10 + pattern: ^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}|([0-9a-f]{1,4}:){7}[0-9a-f]{1,4}$ + UserAccessListResponse: + type: object + properties: + cidrBlock: + type: string + description: Range of IP addresses in Classless Inter-Domain Routing (CIDR) + notation in the access list for the API key. + example: 203.0.113.0/24 pattern: ^((([0-9]{1,3}\.){3}[0-9]{1,3})|([\:]{0,2}([0-9a-f]{1,4}\:){0,7}[0-9a-f]{1,4}[\:]{0,2}))((%2[fF]|\/)[0-9]{1,3})+$ count: type: integer @@ -28526,11 +28627,7 @@ components: readOnly: true ipAddress: type: string - description: Network address that you want to add to the access list for the API - key. This parameter requires the address to be expressed as one - Internet Protocol version 4 or version 6 address. You can set a - value for this parameter or **cidrBlock** but not both in the same - request. + description: Network address in the access list for the API key. example: 203.0.113.10 pattern: ^((([0-9]{1,3}\.){3}[0-9]{1,3})|([\:]{0,2}([0-9a-f]{1,4}\:){0,7}[0-9a-f]{1,4}[\:]{0,2}))$ lastUsed: @@ -29086,6 +29183,10 @@ components: description: List of settings that configure the search nodes for your cluster. items: $ref: "#/components/schemas/ApiSearchDeploymentSpec" + maxItems: 1 + minItems: 1 + required: + - specs ApiSearchDeploymentResponse: type: object properties: @@ -29177,7 +29278,7 @@ components: Criteria: type: object description: >- - Rules by which MongoDB MongoDB Cloud archives data. + Rules by which MongoDB Cloud archives data. Use the **criteria.type** field to choose how MongoDB Cloud selects data to archive. Choose data using the age of the data or a MongoDB query. @@ -29276,8 +29377,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true ManagedNamespace: @@ -29359,8 +29460,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAdvancedClusterDescription: @@ -29387,7 +29488,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAlertConfig: @@ -29414,8 +29516,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAlert: @@ -29442,8 +29544,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiApiUser: @@ -29470,7 +29572,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAppUser: @@ -29497,7 +29600,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasCheckpoint: @@ -29524,7 +29628,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasDatabaseUser: @@ -29553,7 +29658,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasDiskBackupExportJob: @@ -29580,7 +29686,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasProviderRegions: @@ -29607,7 +29714,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasServerlessBackupRestoreJob: @@ -29634,7 +29742,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasServerlessBackupSnapshot: @@ -29661,7 +29770,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiInvoice: @@ -29688,7 +29798,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiStreamsConnection: @@ -29715,8 +29826,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiStreamsTenant: @@ -29743,11 +29854,11 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true - PaginatedApiUserAccessList: + PaginatedApiUserAccessListResponse: type: object properties: links: @@ -29766,12 +29877,13 @@ components: description: List of returned documents that MongoDB Cloud providers when completing this request. items: - $ref: "#/components/schemas/UserAccessList" + $ref: "#/components/schemas/UserAccessListResponse" readOnly: true totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAppUser: @@ -29798,7 +29910,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAtlasGroup: @@ -29825,7 +29938,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedBackupSnapshotExportBucket: @@ -29852,7 +29966,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedBackupSnapshot: @@ -29879,7 +29994,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedCloudBackupReplicaSet: @@ -29906,7 +30022,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedCloudBackupRestoreJob: @@ -29933,7 +30050,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedCloudBackupShardedClusterSnapshot: @@ -29960,7 +30078,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedCloudProviderContainer: @@ -29988,7 +30107,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true title: Network Peering @@ -30017,8 +30137,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedDatabase: @@ -30045,7 +30165,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedDiskPartition: @@ -30072,7 +30193,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedIntegration: @@ -30099,8 +30221,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedNetworkAccess: @@ -30127,7 +30249,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedOnlineArchive: @@ -30154,7 +30277,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedOrgGroup: @@ -30181,7 +30305,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedOrganization: @@ -30208,7 +30333,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedPipelineRun: @@ -30235,7 +30361,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedPrivateNetworkEndpointIdEntry: @@ -30262,8 +30389,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedRestoreJob: @@ -30290,7 +30417,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedRoleMapping: @@ -30319,7 +30447,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedServerlessInstanceDescription: @@ -30346,7 +30475,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedSnapshot: @@ -30373,7 +30503,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedTeamRole: @@ -30400,7 +30531,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedTeam: @@ -30427,7 +30559,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedTenantRestore: @@ -30454,7 +30587,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedTenantSnapshot: @@ -30481,7 +30615,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedUserCert: @@ -30508,7 +30643,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this value + if `includeCount` is set to `false`. minimum: 0 readOnly: true PartitionField: diff --git a/openapi/atlas-api.yaml b/openapi/atlas-api.yaml index b7a66ad4..817568c4 100644 --- a/openapi/atlas-api.yaml +++ b/openapi/atlas-api.yaml @@ -19,7 +19,7 @@ info: termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions title: MongoDB Atlas Administration API version: "2.0" - x-xgen-sha: 76088c8031312c93862e7b4c7d9d15f4f0e64d4a + x-xgen-sha: 5872b4cc51488757711256c66c6956f57df3d1c7 servers: - url: https://cloud.mongodb.com tags: @@ -64,6 +64,9 @@ tags: \ cluster configurations can affect costs. This resource requires your Project\ \ ID." name: Clusters +- description: "Returns, adds, and edits pinned namespaces for the specified cluster\ + \ or process. Also returns collection level latency metric data." + name: Collection Level Metrics - description: "Returns, adds, edits, and removes custom database user privilege roles.\ \ Use custom roles to specify custom sets of actions that the MongoDB Cloud built-in\ \ roles can't describe. You define custom roles at the project level, for all\ @@ -212,9 +215,7 @@ paths: x-xgen-version: 2023-01-01 description: OK "401": - $ref: '#/components/responses/unauthorized' - "404": - $ref: '#/components/responses/notFound' + description: Unauthorized. "500": $ref: '#/components/responses/internalServerError' security: @@ -685,22 +686,28 @@ paths: parameters: - $ref: '#/components/parameters/federationSettingsId' - $ref: '#/components/parameters/envelope' - - description: The protocols of the target identity providers. Defaults to SAML. + - description: The protocols of the target identity providers. in: query name: protocol schema: - type: string - enum: - - SAML - - OIDC - - description: The types of the target identity providers. Defaults to WORKFORCE. + type: array + items: + type: string + default: SAML + enum: + - SAML + - OIDC + - description: The types of the target identity providers. in: query name: idpType schema: - type: string - enum: - - WORKFORCE - - WORKLOAD + type: array + items: + type: string + default: WORKFORCE + enum: + - WORKFORCE + - WORKLOAD responses: "200": content: @@ -1150,8 +1157,8 @@ paths: - Projects patch: description: "Updates the human-readable label that identifies the specified\ - \ project. To use this resource, the requesting API Key must have the Project\ - \ Owner role." + \ project, or the tags associated with the project. To use this resource,\ + \ the requesting API Key must have the Project Owner role." operationId: updateProject parameters: - $ref: '#/components/parameters/envelope' @@ -1161,7 +1168,7 @@ paths: content: application/vnd.atlas.2023-01-01+json: schema: - $ref: '#/components/schemas/GroupName' + $ref: '#/components/schemas/GroupUpdate' description: Project to update. required: true responses: @@ -1184,7 +1191,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Update One Project Name + summary: Update One Project tags: - Projects /api/atlas/v2/groups/{groupId}/access: @@ -1192,8 +1199,10 @@ paths: description: "Adds one MongoDB Cloud user to the specified project. If the MongoDB\ \ Cloud user is not a member of the project's organization, then the user\ \ must accept their invitation to the organization to access information within\ - \ the specified project. To use this resource, the requesting API Key must\ - \ have the Group User Admin role." + \ the specified project. If the MongoDB Cloud User is already a member of\ + \ the project's organization, then they will be added to the project immediately\ + \ and an invitation will not be returned by this resource. To use this resource,\ + \ the requesting API Key must have the Group User Admin role." operationId: addUserToProject parameters: - $ref: '#/components/parameters/groupId' @@ -1214,6 +1223,11 @@ paths: $ref: '#/components/schemas/OrganizationInvitation' x-xgen-version: 2023-02-01 description: OK + "204": + content: + application/vnd.atlas.2023-02-01+json: + x-xgen-version: 2023-02-01 + description: No Content "401": $ref: '#/components/responses/unauthorized' "500": @@ -2475,6 +2489,13 @@ paths: parameters: - $ref: '#/components/parameters/envelope' - $ref: '#/components/parameters/groupId' + - description: Flag that indicates whether to overwrite non complying backup + policies with the new data protection settings or not. + in: query + name: overwriteBackupPolicies + schema: + type: boolean + default: true - $ref: '#/components/parameters/pretty' requestBody: content: @@ -2492,6 +2513,8 @@ paths: $ref: '#/components/schemas/DataProtectionSettings20231001' x-xgen-version: 2023-10-01 description: OK + "400": + $ref: '#/components/responses/badRequest' "401": $ref: '#/components/responses/unauthorized' "404": @@ -2859,7 +2882,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Create One Multi-Cloud Cluster from One Project + summary: Create One Cluster from One Project tags: - Clusters /api/atlas/v2/groups/{groupId}/clusters/provider/regions: @@ -2992,11 +3015,10 @@ paths: - Clusters /api/atlas/v2/groups/{groupId}/clusters/{clusterName}: delete: - description: "Removes one cluster with advanced features from the specified\ - \ project. The cluster must have termination protection disabled in order\ - \ to be deleted. To use this resource, the requesting API Key must have the\ - \ Project Owner role. This feature is not available for serverless clusters.\ - \ Deprecated versions: v2-{2023-01-01}" + description: "Removes one cluster from the specified project. The cluster must\ + \ have termination protection disabled in order to be deleted. To use this\ + \ resource, the requesting API Key must have the Project Owner role. This\ + \ feature is not available for serverless clusters. Deprecated versions: v2-{2023-01-01}" operationId: deleteCluster parameters: - $ref: '#/components/parameters/envelope' @@ -3035,7 +3057,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Remove One Multi-Cloud Cluster from One Project + summary: Remove One Cluster from One Project tags: - Clusters get: @@ -3049,7 +3071,7 @@ paths: - $ref: '#/components/parameters/envelope' - $ref: '#/components/parameters/pretty' - $ref: '#/components/parameters/groupId' - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -3076,7 +3098,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Return One Multi-Cloud Cluster from One Project + summary: Return One Cluster from One Project tags: - Clusters patch: @@ -3131,7 +3153,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Modify One Multi-Cloud Cluster from One Project + summary: Modify One Cluster from One Project tags: - Clusters /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/exports: @@ -4587,7 +4609,7 @@ paths: - $ref: '#/components/parameters/envelope' - $ref: '#/components/parameters/pretty' - $ref: '#/components/parameters/groupId' - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4610,7 +4632,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Return One Managed Namespace in One Global Multi-Cloud Cluster + summary: Return One Managed Namespace in One Global Cluster tags: - Global Clusters /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/customZoneMapping: @@ -4629,7 +4651,7 @@ paths: - $ref: '#/components/parameters/envelope' - $ref: '#/components/parameters/pretty' - $ref: '#/components/parameters/groupId' - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4652,7 +4674,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Remove All Custom Zone Mappings from One Global Multi-Cloud Cluster + summary: Remove All Custom Zone Mappings from One Global Cluster tags: - Global Clusters post: @@ -4669,7 +4691,7 @@ paths: - $ref: '#/components/parameters/envelope' - $ref: '#/components/parameters/pretty' - $ref: '#/components/parameters/groupId' - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4719,7 +4741,7 @@ paths: parameters: - $ref: '#/components/parameters/envelope' - $ref: '#/components/parameters/pretty' - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4757,7 +4779,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Remove One Managed Namespace from One Global Multi-Cloud Cluster + summary: Remove One Managed Namespace from One Global Cluster tags: - Global Clusters post: @@ -4774,7 +4796,7 @@ paths: - $ref: '#/components/parameters/envelope' - $ref: '#/components/parameters/pretty' - $ref: '#/components/parameters/groupId' - - description: Human-readable label that identifies this advanced cluster. + - description: Human-readable label that identifies this cluster. in: path name: clusterName required: true @@ -4808,7 +4830,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Create One Managed Namespace in One Global Multi-Cloud Cluster + summary: Create One Managed Namespace in One Global Cluster tags: - Global Clusters /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/index: @@ -5465,7 +5487,7 @@ paths: $ref: '#/components/responses/internalServerError' security: - DigestAuth: [] - summary: Test Failover for One Multi-Cloud Cluster + summary: Test Failover for One Cluster tags: - Clusters /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restoreJobs: @@ -11697,7 +11719,7 @@ paths: pattern: "^([0-9]{1,3}\\.){3}[0-9]{1,3}|([0-9a-f]{1,4}\\:){7}([0-9a-f]{1,4})|(([a-z0-9]+\\\ .){1,10}[a-z]+)?(\\:[0-9]{4,5})$" - description: |- - Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). + Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. @@ -11706,7 +11728,7 @@ paths: schema: type: integer format: int64 - minimum: 1199145600 + minimum: 1199145600000 responses: "200": content: @@ -11781,7 +11803,7 @@ paths: pattern: "^([0-9]{1,3}\\.){3}[0-9]{1,3}|([0-9a-f]{1,4}\\:){7}([0-9a-f]{1,4})|(([a-z0-9]+\\\ .){1,10}[a-z]+)?(\\:[0-9]{4,5})$" - description: |- - Date and time from which the query retrieves the slow queries. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). + Date and time from which the query retrieves the slow queries. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. @@ -11790,7 +11812,7 @@ paths: schema: type: integer format: int64 - minimum: 1199145600 + minimum: 1199145600000 responses: "200": content: @@ -11870,7 +11892,7 @@ paths: pattern: "^([0-9]{1,3}\\.){3}[0-9]{1,3}|([0-9a-f]{1,4}\\:){7}([0-9a-f]{1,4})|(([a-z0-9]+\\\ .){1,10}[a-z]+)?(\\:[0-9]{4,5})$" - description: |- - Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of seconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). + Date and time from which the query retrieves the suggested indexes. This parameter expresses its value in the number of milliseconds that have elapsed since the [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). - If you don't specify the **duration** parameter, the endpoint returns data covering from the **since** value and the current time. - If you specify neither the **duration** nor the **since** parameters, the endpoint returns data from the previous 24 hours. @@ -11879,6 +11901,7 @@ paths: schema: type: integer format: int64 + minimum: 1199145600000 responses: "200": content: @@ -12863,6 +12886,69 @@ paths: x-xgen-changelog: "2023-09-11": "The MongoDB Atlas Streams Processing API is now exposed as\ \ part of private preview, but is subject to change until GA." + /api/atlas/v2/groups/{groupId}/streams/{tenantName}/auditLogs: + get: + description: "Downloads the audit logs for the specified Atlas Streams Processing\ + \ instance. By default, logs cover periods of 30 days. To use this resource,\ + \ the requesting API Key must have the Project Owner roles or Project Data\ + \ Access Read Write roles." + operationId: downloadStreamTenantAuditLogs + parameters: + - $ref: '#/components/parameters/envelope' + - $ref: '#/components/parameters/groupId' + - description: Timestamp that specifies the end point for the range of log messages + to download. MongoDB Cloud expresses this timestamp in the number of seconds + that have elapsed since the UNIX epoch. + in: query + name: endDate + schema: + type: integer + format: int64 + example: 1636481348 + pattern: "1199145600" + - description: Timestamp that specifies the starting point for the range of + log messages to download. MongoDB Cloud expresses this timestamp in the + number of seconds that have elapsed since the UNIX epoch. + in: query + name: startDate + schema: + type: integer + format: int64 + example: 1636466948 + pattern: "1199145600" + - description: Human-readable label that identifies the stream instance. + in: path + name: tenantName + required: true + schema: + type: string + responses: + "200": + content: + application/vnd.atlas.2023-02-01+gzip: + schema: + type: string + format: binary + description: Compressed archive labeled `auditLogs.gz` downloads + x-xgen-version: 2023-02-01 + description: OK + "400": + $ref: '#/components/responses/badRequest' + "401": + $ref: '#/components/responses/unauthorized' + "403": + $ref: '#/components/responses/forbidden' + "404": + $ref: '#/components/responses/notFound' + "409": + $ref: '#/components/responses/conflict' + "500": + $ref: '#/components/responses/internalServerError' + security: + - DigestAuth: [] + summary: Download Audit Logs for One Atlas Stream Processing Instance + tags: + - Streams /api/atlas/v2/groups/{groupId}/streams/{tenantName}/connections: get: description: Returns all connections of the stream instance for the specified @@ -14032,7 +14118,7 @@ paths: content: application/vnd.atlas.2023-01-01+json: schema: - $ref: '#/components/schemas/PaginatedApiUserAccessListView' + $ref: '#/components/schemas/PaginatedApiUserAccessListResponseView' x-xgen-version: 2023-01-01 description: OK "401": @@ -14073,7 +14159,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/UserAccessList' + $ref: '#/components/schemas/UserAccessListRequest' description: Access list entries to be created for the specified organization API key. required: true @@ -14082,7 +14168,7 @@ paths: content: application/vnd.atlas.2023-01-01+json: schema: - $ref: '#/components/schemas/PaginatedApiUserAccessListView' + $ref: '#/components/schemas/PaginatedApiUserAccessListResponseView' x-xgen-version: 2023-01-01 description: OK "400": @@ -14196,7 +14282,7 @@ paths: content: application/vnd.atlas.2023-01-01+json: schema: - $ref: '#/components/schemas/UserAccessList' + $ref: '#/components/schemas/UserAccessListResponse' x-xgen-version: 2023-01-01 description: OK "401": @@ -14214,7 +14300,7 @@ paths: post: description: Creates a query process within the Cost Explorer for the given parameters. A token is returned that can be used to poll the status of the - query and eventually retrievethe results. + query and eventually retrieve the results. operationId: createCostExplorerQueryProcess parameters: - $ref: '#/components/parameters/orgId' @@ -15946,9 +16032,7 @@ components: detail: "(This is just an example, the exception may not be related to\ \ this endpoint) No provider AWS exists." error: 400 - errorCode: INVALID_PROVIDER - parameters: - - AWS + errorCode: VALIDATION_ERROR reason: Bad Request schema: $ref: '#/components/schemas/ApiError' @@ -15961,9 +16045,7 @@ components: \ this endpoint) Cannot delete organization link while there is active\ \ migration in following project ids: 60c4fd418ebe251047c50554" error: 409 - errorCode: CANNOT_DELETE_ORG_LINK_WITH_RUNNING_LIVE_EXPORT - parameters: - - 60c4fd418ebe251047c50554 + errorCode: CANNOT_DELETE_ORG_ACTIVE_LIVE_MIGRATION_ATLAS_ORG_LINK reason: Conflict schema: $ref: '#/components/schemas/ApiError' @@ -15976,8 +16058,6 @@ components: \ this endpoint)" error: 403 errorCode: CANNOT_CHANGE_GROUP_NAME - parameters: - - EXAMPLE reason: Forbidden schema: $ref: '#/components/schemas/ApiError' @@ -15990,8 +16070,6 @@ components: date is in the past. error: 410 errorCode: VERSION_GONE - parameters: - - EXAMPLE reason: Gone schema: $ref: '#/components/schemas/ApiError' @@ -16004,8 +16082,6 @@ components: \ this endpoint)" error: 500 errorCode: UNEXPECTED_ERROR - parameters: - - EXAMPLE reason: Internal Server Error schema: $ref: '#/components/schemas/ApiError' @@ -16018,8 +16094,6 @@ components: \ this endpoint)" error: 405 errorCode: ATLAS_BACKUP_CANCEL_SHARD_RESTORE_JOB_NOT_ALLOWED - parameters: - - EXAMPLE reason: Method Not Allowed schema: $ref: '#/components/schemas/ApiError' @@ -16034,8 +16108,6 @@ components: \ this endpoint) Cannot find resource AWS" error: 404 errorCode: RESOURCE_NOT_FOUND - parameters: - - AWS reason: Not Found schema: $ref: '#/components/schemas/ApiError' @@ -16048,8 +16120,6 @@ components: \ this endpoint)" error: 402 errorCode: NO_PAYMENT_INFORMATION_FOUND - parameters: - - EXAMPLE reason: Payment Required schema: $ref: '#/components/schemas/ApiError' @@ -16062,8 +16132,6 @@ components: \ this endpoint)" error: 401 errorCode: NOT_ORG_GROUP_CREATOR - parameters: - - EXAMPLE reason: Unauthorized schema: $ref: '#/components/schemas/ApiError' @@ -17873,19 +17941,19 @@ components: type: integer format: int32 description: HTTP status code returned with this error. - maximum: 599 - minimum: 200 + externalDocs: + url: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status errorCode: type: string description: Application error code returned with this error. - example: TOO_MANY_GROUP_NOTIFICATIONS parameters: type: array - description: Parameter uses to give more information about the error. + description: Parameters used to give more information about the error. + items: + type: object reason: type: string description: Application error message returned with this error. - example: At most one group notification can be specified for an alert configuration. ApiHostView_Atlas: type: object properties: @@ -18182,6 +18250,10 @@ components: description: List of settings that configure the search nodes for your cluster. items: $ref: '#/components/schemas/ApiSearchDeploymentSpecView' + maxItems: 1 + minItems: 1 + required: + - specs ApiSearchDeploymentResponseView: type: object properties: @@ -18240,6 +18312,9 @@ components: - S90_LOWCPU_NVME - S100_LOWCPU_NVME - S110_LOWCPU_NVME + - S120_LOWCPU_NVME + - S130_LOWCPU_NVME + - S140_LOWCPU_NVME nodeCount: type: integer format: int32 @@ -22232,9 +22307,10 @@ components: $ref: '#/components/schemas/DatabaseUserRole' scopes: type: array - description: "List that contains clusters and MongoDB Atlas Data Lakes that\ - \ this database user can access. If omitted, MongoDB Cloud grants the\ - \ database user access to all the clusters and MongoDB Atlas Data Lakes\ + description: "List that contains clusters, MongoDB Atlas Data Lakes, and\ + \ MongoDB Atlas Streams Instances that this database user can access.\ + \ If omitted, MongoDB Cloud grants the database user access to all the\ + \ clusters, MongoDB Atlas Data Lakes, and MongoDB Atlas Streams Instances\ \ in the project." items: $ref: '#/components/schemas/UserScope' @@ -22313,13 +22389,21 @@ components: - EASTERN_US - GOV_EASTERN_US - US_EAST_4 + - GOV_US_EAST_4 - US_EAST_5 + - GOV_US_EAST_5 - US_WEST_2 + - GOV_US_WEST_2 - US_WEST_3 + - GOV_US_WEST_3 - US_WEST_4 + - GOV_US_WEST_4 - US_SOUTH_1 + - GOV_US_SOUTH_1 - CENTRAL_US + - GOV_CENTRAL_US - WESTERN_US + - GOV_WESTERN_US - NORTH_AMERICA_NORTHEAST_1 - NORTH_AMERICA_NORTHEAST_2 - SOUTH_AMERICA_EAST_1 @@ -22883,13 +22967,21 @@ components: - EASTERN_US - GOV_EASTERN_US - US_EAST_4 + - GOV_US_EAST_4 - US_EAST_5 + - GOV_US_EAST_5 - US_WEST_2 + - GOV_US_WEST_2 - US_WEST_3 + - GOV_US_WEST_3 - US_WEST_4 + - GOV_US_WEST_4 - US_SOUTH_1 + - GOV_US_SOUTH_1 - CENTRAL_US + - GOV_CENTRAL_US - WESTERN_US + - GOV_WESTERN_US - NORTH_AMERICA_NORTHEAST_1 - NORTH_AMERICA_NORTHEAST_2 - SOUTH_AMERICA_EAST_1 @@ -24709,7 +24801,7 @@ components: CriteriaView: type: object description: |- - Rules by which MongoDB MongoDB Cloud archives data. + Rules by which MongoDB Cloud archives data. Use the **criteria.type** field to choose how MongoDB Cloud selects data to archive. Choose data using the age of the data or a MongoDB query. **"criteria.type": "DATE"** selects documents to archive based on a date. @@ -26727,6 +26819,7 @@ components: - EU - US3 - US5 + - AP1 type: type: string description: Human-readable label that identifies the service to which you @@ -26765,6 +26858,7 @@ components: - EU - US3 - US5 + - AP1 delayMin: type: integer format: int32 @@ -27081,6 +27175,9 @@ components: - AWS_ENCRYPTION_KEY_NEEDS_ROTATION - AZURE_ENCRYPTION_KEY_NEEDS_ROTATION - GCP_ENCRYPTION_KEY_NEEDS_ROTATION + - AWS_ENCRYPTION_KEY_INVALID + - AZURE_ENCRYPTION_KEY_INVALID + - GCP_ENCRYPTION_KEY_INVALID title: Encryption Event Types - type: string enum: @@ -27329,6 +27426,12 @@ components: - AZURE_ENCRYPTION_KEY_NEEDS_ROTATION - GCP_ENCRYPTION_KEY_ROTATED - GCP_ENCRYPTION_KEY_NEEDS_ROTATION + - AWS_ENCRYPTION_KEY_VALID + - AWS_ENCRYPTION_KEY_INVALID + - AZURE_ENCRYPTION_KEY_VALID + - AZURE_ENCRYPTION_KEY_INVALID + - GCP_ENCRYPTION_KEY_VALID + - GCP_ENCRYPTION_KEY_INVALID title: Encryption Event Types - type: string enum: @@ -27514,6 +27617,8 @@ components: - CLUSTER_FCV_UNFIXED - AGENT_VERSION_FIXED - AGENT_VERSION_UNFIXED + - FIXED_VERSION_UPDATED + - FIXED_AGENT_VERSION_UPDATED title: Version Audit Types groupId: type: string @@ -29010,6 +29115,9 @@ components: - AWS_ENCRYPTION_KEY_NEEDS_ROTATION - AZURE_ENCRYPTION_KEY_NEEDS_ROTATION - GCP_ENCRYPTION_KEY_NEEDS_ROTATION + - AWS_ENCRYPTION_KEY_INVALID + - AZURE_ENCRYPTION_KEY_INVALID + - GCP_ENCRYPTION_KEY_INVALID example: AWS_ENCRYPTION_KEY_NEEDS_ROTATION title: Encryption Event Types EndpointService: @@ -29089,6 +29197,19 @@ components: - API_KEY_UI_IP_ACCESS_LIST_INHERITANCE_ENABLED - API_KEY_UI_IP_ACCESS_LIST_INHERITANCE_DISABLED title: API User Event Types + - type: string + enum: + - SERVICE_ACCOUNT_CREATED + - SERVICE_ACCOUNT_DELETED + - SERVICE_ACCOUNT_ROLES_CHANGED + - SERVICE_ACCOUNT_DETAILS_CHANGED + - SERVICE_ACCOUNT_ADDED_TO_GROUP + - SERVICE_ACCOUNT_REMOVED_FROM_GROUP + - SERVICE_ACCOUNT_ACCESS_LIST_ENTRY_ADDED + - SERVICE_ACCOUNT_ACCESS_LIST_ENTRY_DELETED + - SERVICE_ACCOUNT_SECRET_ADDED + - SERVICE_ACCOUNT_SECRET_DELETED + title: Service Account Event Types - type: string enum: - URL_CONFIRMATION @@ -29213,6 +29334,12 @@ components: - AZURE_ENCRYPTION_KEY_NEEDS_ROTATION - GCP_ENCRYPTION_KEY_ROTATED - GCP_ENCRYPTION_KEY_NEEDS_ROTATION + - AWS_ENCRYPTION_KEY_VALID + - AWS_ENCRYPTION_KEY_INVALID + - AZURE_ENCRYPTION_KEY_VALID + - AZURE_ENCRYPTION_KEY_INVALID + - GCP_ENCRYPTION_KEY_VALID + - GCP_ENCRYPTION_KEY_INVALID title: Encryption Event Types - type: string enum: @@ -29506,6 +29633,7 @@ components: - STREAM_TENANT_CONNECTION_CREATED - STREAM_TENANT_CONNECTION_VIEWED - STREAM_TENANT_AUDIT_LOGS + - STREAM_TENANT_AUDIT_LOGS_DELETED title: NDS Audit Types - type: string enum: @@ -29682,6 +29810,8 @@ components: - CLUSTER_FCV_UNFIXED - AGENT_VERSION_FIXED - AGENT_VERSION_UNFIXED + - FIXED_VERSION_UPDATED + - FIXED_AGENT_VERSION_UPDATED title: Version Audit Types - type: string enum: @@ -29717,6 +29847,19 @@ components: - API_KEY_UI_IP_ACCESS_LIST_INHERITANCE_ENABLED - API_KEY_UI_IP_ACCESS_LIST_INHERITANCE_DISABLED title: API User Event Types + - type: string + enum: + - SERVICE_ACCOUNT_CREATED + - SERVICE_ACCOUNT_DELETED + - SERVICE_ACCOUNT_ROLES_CHANGED + - SERVICE_ACCOUNT_DETAILS_CHANGED + - SERVICE_ACCOUNT_ADDED_TO_GROUP + - SERVICE_ACCOUNT_REMOVED_FROM_GROUP + - SERVICE_ACCOUNT_ACCESS_LIST_ENTRY_ADDED + - SERVICE_ACCOUNT_ACCESS_LIST_ENTRY_DELETED + - SERVICE_ACCOUNT_SECRET_ADDED + - SERVICE_ACCOUNT_SECRET_DELETED + title: Service Account Event Types - type: string enum: - CHARGE_SUCCEEDED @@ -29945,6 +30088,7 @@ components: - $ref: '#/components/schemas/AlertAudit' - $ref: '#/components/schemas/AlertConfigAudit' - $ref: '#/components/schemas/ApiUserEventViewForNdsGroup' + - $ref: '#/components/schemas/ServiceAccountGroupEvents' - $ref: '#/components/schemas/AutomationConfigEventView' - $ref: '#/components/schemas/AppServiceEventView' - $ref: '#/components/schemas/BillingEventViewForNdsGroup' @@ -29968,6 +30112,7 @@ components: - $ref: '#/components/schemas/AlertAudit' - $ref: '#/components/schemas/AlertConfigAudit' - $ref: '#/components/schemas/ApiUserEventViewForOrg' + - $ref: '#/components/schemas/ServiceAccountOrgEvents' - $ref: '#/components/schemas/BillingEventViewForOrg' - $ref: '#/components/schemas/NDSAuditViewForOrg' - $ref: '#/components/schemas/OrgEventViewForOrg' @@ -31656,14 +31801,6 @@ components: \ `false` after MongoDB Cloud completes maintenance." required: - dayOfWeek - GroupName: - type: object - description: Request view to update the group name. - properties: - name: - type: string - description: Human-readable label that identifies the project included in - the MongoDB Cloud organization. GroupNotification: type: object description: Group notification configuration for MongoDB Cloud to send information @@ -31761,8 +31898,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true GroupRole: @@ -31841,6 +31978,23 @@ components: type: boolean description: Flag that indicates whether to enable the Schema Advisor for the specified project. + GroupUpdate: + type: object + description: Request view to update the group. + properties: + name: + type: string + description: Human-readable label that identifies the project included in + the MongoDB Cloud organization. + tags: + type: array + description: List that contains key-value pairs between 1 to 255 characters + in length for tagging and categorizing the project. + externalDocs: + description: Resource Tags + url: https://www.mongodb.com/docs/atlas/tags + items: + $ref: '#/components/schemas/ResourceTag' HardwareSpec: type: object description: "Hardware specifications for all electable nodes deployed in the\ @@ -34004,12 +34158,20 @@ components: - ATLAS_DATA_FEDERATION_AZURE_DATA_RETURNED_SAME_CONTINENT - ATLAS_DATA_FEDERATION_AZURE_DATA_RETURNED_DIFFERENT_CONTINENT - ATLAS_DATA_FEDERATION_AZURE_DATA_RETURNED_INTERNET + - ATLAS_DATA_FEDERATION_GCP_DATA_RETURNED_SAME_REGION + - ATLAS_DATA_FEDERATION_GCP_DATA_RETURNED_DIFFERENT_REGION + - ATLAS_DATA_FEDERATION_GCP_DATA_RETURNED_INTERNET - ATLAS_DATA_FEDERATION_AZURE_DATA_SCANNED - ATLAS_NDS_AZURE_DATA_LAKE_STORAGE_ACCESS - ATLAS_NDS_AZURE_DATA_LAKE_STORAGE + - ATLAS_DATA_FEDERATION_GCP_DATA_SCANNED + - ATLAS_NDS_GCP_DATA_LAKE_STORAGE_ACCESS + - ATLAS_NDS_GCP_DATA_LAKE_STORAGE - ATLAS_NDS_AWS_OBJECT_STORAGE_ACCESS - ATLAS_NDS_AZURE_OBJECT_STORAGE_ACCESS - ATLAS_NDS_AZURE_OBJECT_STORAGE + - ATLAS_NDS_GCP_OBJECT_STORAGE_ACCESS + - ATLAS_NDS_GCP_OBJECT_STORAGE - ATLAS_ARCHIVE_ACCESS_PARTITION_LOCATE - ATLAS_NDS_AWS_PIT_RESTORE_STORAGE_FREE_TIER - ATLAS_NDS_AWS_PIT_RESTORE_STORAGE @@ -36068,6 +36230,7 @@ components: - STREAM_TENANT_CONNECTION_CREATED - STREAM_TENANT_CONNECTION_VIEWED - STREAM_TENANT_AUDIT_LOGS + - STREAM_TENANT_AUDIT_LOGS_DELETED example: CLUSTER_CREATED title: NDS Audit Types NDSAuditTypeViewForOrg: @@ -37814,8 +37977,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true OrganizationInvitation: @@ -37842,7 +38005,7 @@ components: uniqueItems: true id: type: string - description: Unique 24-hexadecimal digit string that identifies this organization. + description: Unique 24-hexadecimal digit string that identifies this invitation. example: 32b6e34b3d91647abb20e7b8 maxLength: 24 minLength: 24 @@ -37879,8 +38042,8 @@ components: pattern: "^[\\p{L}\\p{N}\\-_.(),:&@+']{1,64}$" roles: type: array - description: One or more organization or project level roles to assign to - the MongoDB Cloud user. + description: One or more organization level roles to assign to the MongoDB + Cloud user. items: type: string enum: @@ -38204,7 +38367,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAlertConfigView: @@ -38231,8 +38395,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAlertView: @@ -38259,8 +38423,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiApiUserView: @@ -38287,7 +38451,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAppUserView: @@ -38314,7 +38479,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasCheckpointView: @@ -38341,7 +38507,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasDatabaseUserView: @@ -38370,7 +38537,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasDiskBackupExportJobView: @@ -38397,7 +38565,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasProviderRegionsView: @@ -38424,7 +38593,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasServerlessBackupRestoreJobView: @@ -38451,7 +38621,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiAtlasServerlessBackupSnapshotView: @@ -38478,7 +38649,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiInvoiceView: @@ -38505,7 +38677,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiStreamsConnectionView: @@ -38532,8 +38705,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedApiStreamsTenantView: @@ -38560,11 +38733,11 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true - PaginatedApiUserAccessListView: + PaginatedApiUserAccessListResponseView: type: object properties: links: @@ -38583,12 +38756,13 @@ components: description: List of returned documents that MongoDB Cloud providers when completing this request. items: - $ref: '#/components/schemas/UserAccessList' + $ref: '#/components/schemas/UserAccessListResponse' readOnly: true totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAppUserView: @@ -38615,7 +38789,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedAtlasGroupView: @@ -38642,7 +38817,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedBackupSnapshotExportBucketView: @@ -38669,7 +38845,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedBackupSnapshotView: @@ -38696,7 +38873,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedCloudBackupReplicaSetView: @@ -38723,7 +38901,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedCloudBackupRestoreJobView: @@ -38750,7 +38929,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedCloudBackupShardedClusterSnapshotView: @@ -38777,7 +38957,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedCloudProviderContainerView: @@ -38805,7 +38986,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true title: Network Peering @@ -38834,8 +39016,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedDatabaseView: @@ -38862,7 +39044,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedDiskPartitionView: @@ -38889,7 +39072,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedFederationIdentityProvider: @@ -38916,8 +39100,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedHostView_Atlas: @@ -38944,7 +39128,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedIntegrationView: @@ -38971,8 +39156,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedLegacyClusterView: @@ -38999,7 +39184,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedNetworkAccessView: @@ -39026,7 +39212,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedOnlineArchiveView: @@ -39053,7 +39240,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedOrgGroupView: @@ -39080,7 +39268,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedOrganizationView: @@ -39107,7 +39296,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedPipelineRunView: @@ -39134,7 +39324,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedPrivateNetworkEndpointIdEntryView: @@ -39161,8 +39352,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response if **includeCount** - query param is true. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedRestoreJobView: @@ -39189,7 +39380,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedRoleMappingView: @@ -39218,7 +39410,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedServerlessInstanceDescriptionView: @@ -39245,7 +39438,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedSnapshotView: @@ -39272,7 +39466,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedTeamRoleView: @@ -39299,7 +39494,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedTeamView: @@ -39326,7 +39522,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedTenantRestoreView: @@ -39353,7 +39550,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedTenantSnapshotView: @@ -39380,7 +39578,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PaginatedUserCertView: @@ -39407,7 +39606,8 @@ components: totalCount: type: integer format: int32 - description: Number of documents returned in this response. + description: Total number of documents available. MongoDB Cloud omits this + value if `includeCount` is set to `false`. minimum: 0 readOnly: true PartialFilter: @@ -39980,6 +40180,7 @@ components: - BUCKET_VERIFICATION_FAILED - ASSUME_ROLE_FAILED - ACTIVE + readOnly: true RPUMetricThresholdView: type: object properties: @@ -41103,6 +41304,9 @@ components: \ `production` in the `environment : production` tag." maxLength: 255 minLength: 1 + required: + - key + - value title: Resource Tag RestoreJobFileHash: type: object @@ -42385,6 +42589,250 @@ components: writeOnly: true required: - providerName + ServiceAccountEventTypeViewForNdsGroup: + type: string + description: Unique identifier of event type. + enum: + - SERVICE_ACCOUNT_CREATED + - SERVICE_ACCOUNT_DELETED + - SERVICE_ACCOUNT_ROLES_CHANGED + - SERVICE_ACCOUNT_DETAILS_CHANGED + - SERVICE_ACCOUNT_ADDED_TO_GROUP + - SERVICE_ACCOUNT_REMOVED_FROM_GROUP + - SERVICE_ACCOUNT_ACCESS_LIST_ENTRY_ADDED + - SERVICE_ACCOUNT_ACCESS_LIST_ENTRY_DELETED + - SERVICE_ACCOUNT_SECRET_ADDED + - SERVICE_ACCOUNT_SECRET_DELETED + title: Service Account Event Types + ServiceAccountEventTypeViewForOrg: + type: string + description: Unique identifier of event type. + enum: + - SERVICE_ACCOUNT_CREATED + - SERVICE_ACCOUNT_DELETED + - SERVICE_ACCOUNT_ROLES_CHANGED + - SERVICE_ACCOUNT_DETAILS_CHANGED + - SERVICE_ACCOUNT_ADDED_TO_GROUP + - SERVICE_ACCOUNT_REMOVED_FROM_GROUP + - SERVICE_ACCOUNT_ACCESS_LIST_ENTRY_ADDED + - SERVICE_ACCOUNT_ACCESS_LIST_ENTRY_DELETED + - SERVICE_ACCOUNT_SECRET_ADDED + - SERVICE_ACCOUNT_SECRET_DELETED + title: Service Account Event Types + ServiceAccountGroupEvents: + type: object + description: Service Account event identifies different activities around user + api keys. + properties: + apiKeyId: + type: string + description: "Unique 24-hexadecimal digit string that identifies the [API\ + \ Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) that\ + \ triggered the event. If this resource returns this parameter, it doesn't\ + \ return the **userId** parameter." + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + created: + type: string + format: date-time + description: Date and time when this event occurred. This parameter expresses + its value in the ISO 8601 timestamp format in UTC. + readOnly: true + eventTypeName: + $ref: '#/components/schemas/ServiceAccountEventTypeViewForNdsGroup' + groupId: + type: string + description: Unique 24-hexadecimal digit string that identifies the project + in which the event occurred. The **eventId** identifies the specific event. + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + id: + type: string + description: Unique 24-hexadecimal digit string that identifies the event. + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + isGlobalAdmin: + type: boolean + default: false + description: Flag that indicates whether a MongoDB employee triggered the + specified event. + readOnly: true + links: + type: array + description: "List of one or more Uniform Resource Locators (URLs) that\ + \ point to API sub-resources, related API resources, or both. RFC 5988\ + \ outlines these relationships." + externalDocs: + description: Web Linking Specification (RFC 5988) + url: https://datatracker.ietf.org/doc/html/rfc5988 + items: + $ref: '#/components/schemas/Link' + readOnly: true + orgId: + type: string + description: Unique 24-hexadecimal digit string that identifies the organization + to which these events apply. + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + publicKey: + type: string + format: email + description: "Public part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key)\ + \ that triggered the event. If this resource returns this parameter, it\ + \ doesn't return the **username** parameter." + example: test.user@mongodb.com + readOnly: true + raw: + $ref: '#/components/schemas/raw' + remoteAddress: + type: string + description: IPv4 or IPv6 address from which the user triggered this event. + example: 216.172.40.186 + pattern: "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)(\\.(?!$)|$)){4}|([0-9a-f]{1,4}:){7}[0-9a-f]{1,4}$" + readOnly: true + userId: + type: string + description: "Unique 24-hexadecimal digit string that identifies the console\ + \ user who triggered the event. If this resource returns this parameter,\ + \ it doesn't return the **apiKeyId** parameter." + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + username: + type: string + format: email + description: "Email address for the user who triggered this event. If this\ + \ resource returns this parameter, it doesn't return the **publicApiKey**\ + \ parameter." + example: test.user@mongodb.com + readOnly: true + required: + - created + - eventTypeName + - id + title: ServiceAccount Events + ServiceAccountOrgEvents: + type: object + description: Service Account event identifies different activities around user + api keys. + properties: + apiKeyId: + type: string + description: "Unique 24-hexadecimal digit string that identifies the [API\ + \ Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) that\ + \ triggered the event. If this resource returns this parameter, it doesn't\ + \ return the **userId** parameter." + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + created: + type: string + format: date-time + description: Date and time when this event occurred. This parameter expresses + its value in the ISO 8601 timestamp format in UTC. + readOnly: true + eventTypeName: + $ref: '#/components/schemas/ServiceAccountEventTypeViewForOrg' + groupId: + type: string + description: Unique 24-hexadecimal digit string that identifies the project + in which the event occurred. The **eventId** identifies the specific event. + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + id: + type: string + description: Unique 24-hexadecimal digit string that identifies the event. + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + isGlobalAdmin: + type: boolean + default: false + description: Flag that indicates whether a MongoDB employee triggered the + specified event. + readOnly: true + links: + type: array + description: "List of one or more Uniform Resource Locators (URLs) that\ + \ point to API sub-resources, related API resources, or both. RFC 5988\ + \ outlines these relationships." + externalDocs: + description: Web Linking Specification (RFC 5988) + url: https://datatracker.ietf.org/doc/html/rfc5988 + items: + $ref: '#/components/schemas/Link' + readOnly: true + orgId: + type: string + description: Unique 24-hexadecimal digit string that identifies the organization + to which these events apply. + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + publicKey: + type: string + format: email + description: "Public part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key)\ + \ that triggered the event. If this resource returns this parameter, it\ + \ doesn't return the **username** parameter." + example: test.user@mongodb.com + readOnly: true + raw: + $ref: '#/components/schemas/raw' + remoteAddress: + type: string + description: IPv4 or IPv6 address from which the user triggered this event. + example: 216.172.40.186 + pattern: "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)(\\.(?!$)|$)){4}|([0-9a-f]{1,4}:){7}[0-9a-f]{1,4}$" + readOnly: true + userId: + type: string + description: "Unique 24-hexadecimal digit string that identifies the console\ + \ user who triggered the event. If this resource returns this parameter,\ + \ it doesn't return the **apiKeyId** parameter." + example: 32b6e34b3d91647abb20e7b8 + maxLength: 24 + minLength: 24 + pattern: "^([a-f0-9]{24})$" + readOnly: true + username: + type: string + format: email + description: "Email address for the user who triggered this event. If this\ + \ resource returns this parameter, it doesn't return the **publicApiKey**\ + \ parameter." + example: test.user@mongodb.com + readOnly: true + required: + - created + - eventTypeName + - id + title: ServiceAccount Events ShardEntry: type: object description: Sharding configuration for a collection to be sharded on the destination @@ -42640,10 +43088,12 @@ components: mapping: Cluster: '#/components/schemas/StreamsClusterConnection' Kafka: '#/components/schemas/StreamsKafkaConnection' + Sample: '#/components/schemas/StreamsSampleConnection' propertyName: type oneOf: - $ref: '#/components/schemas/StreamsClusterConnection' - $ref: '#/components/schemas/StreamsKafkaConnection' + - $ref: '#/components/schemas/StreamsSampleConnection' properties: links: type: array @@ -42658,7 +43108,8 @@ components: readOnly: true name: type: string - description: Human-readable label that identifies the stream connection. + description: "Human-readable label that identifies the stream connection.\ + \ In the case of the Sample type, this is the name of the sample source." type: type: string description: Type of the connection. Can be either Cluster or Kafka. @@ -42777,6 +43228,10 @@ components: protocol: type: string description: Describes the transport type. Can be either PLAINTEXT or SSL. + StreamsSampleConnection: + type: object + allOf: + - $ref: '#/components/schemas/StreamsConnection' StreamsTenant: type: object properties: @@ -44045,7 +44500,7 @@ components: - ORG_BILLING_ADMIN - ORG_READ_ONLY uniqueItems: true - UserAccessList: + UserAccessListRequest: type: object properties: cidrBlock: @@ -44056,6 +44511,23 @@ components: version 4 or version 6 addresses. You can set a value for this parameter or **ipAddress** but not both in the same request. example: 203.0.113.0/24 + pattern: "^((([0-9]{1,3}\\.){3}[0-9]{1,3})|(:{0,2}([0-9a-f]{1,4}:){0,7}[0-9a-f]{1,4}[:]{0,2}))((%2[fF]|/)[0-9]{1,3})+$" + ipAddress: + type: string + description: Network address that you want to add to the access list for + the API key. This parameter requires the address to be expressed as one + Internet Protocol version 4 or version 6 address. You can set a value + for this parameter or **cidrBlock** but not both in the same request. + example: 203.0.113.10 + pattern: "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)(\\.(?!$)|$)){4}|([0-9a-f]{1,4}:){7}[0-9a-f]{1,4}$" + UserAccessListResponse: + type: object + properties: + cidrBlock: + type: string + description: Range of IP addresses in Classless Inter-Domain Routing (CIDR) + notation in the access list for the API key. + example: 203.0.113.0/24 pattern: "^((([0-9]{1,3}\\.){3}[0-9]{1,3})|([\\:]{0,2}([0-9a-f]{1,4}\\:){0,7}[0-9a-f]{1,4}[\\\ :]{0,2}))((%2[fF]|\\/)[0-9]{1,3})+$" count: @@ -44074,10 +44546,7 @@ components: readOnly: true ipAddress: type: string - description: Network address that you want to add to the access list for - the API key. This parameter requires the address to be expressed as one - Internet Protocol version 4 or version 6 address. You can set a value - for this parameter or **cidrBlock** but not both in the same request. + description: Network address in the access list for the API key. example: 203.0.113.10 pattern: "^((([0-9]{1,3}\\.){3}[0-9]{1,3})|([\\:]{0,2}([0-9a-f]{1,4}\\:){0,7}[0-9a-f]{1,4}[\\\ :]{0,2}))$" @@ -45037,7 +45506,7 @@ components: readOnly: true tokenFilterasciiFolding: type: object - description: "Filter that converts alphabetic, numeric, and symbolic unicode\ + description: "Filter that converts alphabetic, numeric, and symbolic Unicode\ \ characters that are not in the Basic Latin Unicode block to their ASCII\ \ equivalents, if available." externalDocs: diff --git a/test/example_client_test.go b/test/example_client_test.go index cd5e02cc..df8c598e 100644 --- a/test/example_client_test.go +++ b/test/example_client_test.go @@ -3,7 +3,7 @@ package test import ( "fmt" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func ExampleNewClient() { diff --git a/test/utils_test.go b/test/utils_test.go index 65f76863..9ca6c6ee 100644 --- a/test/utils_test.go +++ b/test/utils_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) type testCase[T comparable] struct { diff --git a/tools/config/go-templates/api_doc.mustache b/tools/config/go-templates/api_doc.mustache index 4411c640..30808b4d 100644 --- a/tools/config/go-templates/api_doc.mustache +++ b/tools/config/go-templates/api_doc.mustache @@ -36,7 +36,7 @@ import ( "fmt" "os" - "go.mongodb.org/atlas-sdk/v20231115007/admin" + "go.mongodb.org/atlas-sdk/v20231115008/admin" ) func main() { diff --git a/tools/config/go-templates/atlas_client.mustache b/tools/config/go-templates/atlas_client.mustache index 1156c4a5..38dc90b6 100644 --- a/tools/config/go-templates/atlas_client.mustache +++ b/tools/config/go-templates/atlas_client.mustache @@ -1,4 +1,4 @@ -{{! X-XGEN-CUSTOM }}package {{packageName}} // import "go.mongodb.org/atlas-sdk/v20231115007/admin" +{{! X-XGEN-CUSTOM }}package {{packageName}} // import "go.mongodb.org/atlas-sdk/v20231115008/admin" import ( "errors" @@ -8,7 +8,7 @@ import ( "strings" "github.com/mongodb-forks/digest" - "go.mongodb.org/atlas-sdk/v20231115007/internal/core" + "go.mongodb.org/atlas-sdk/v20231115008/internal/core" ) const ( diff --git a/tools/releaser/breaking_changes/v20231115003.md b/tools/releaser/breaking_changes/v20231115003.md index 05a01d47..e75da938 100644 --- a/tools/releaser/breaking_changes/v20231115003.md +++ b/tools/releaser/breaking_changes/v20231115003.md @@ -2,7 +2,7 @@ ## SDK changes -go.mongodb.org/atlas-sdk/v20231115007/admin +go.mongodb.org/atlas-sdk/v20231115008/admin ## Breaking changes diff --git a/tools/releaser/breaking_changes/v20231115004.md b/tools/releaser/breaking_changes/v20231115004.md index 37e019e9..ce2c202e 100644 --- a/tools/releaser/breaking_changes/v20231115004.md +++ b/tools/releaser/breaking_changes/v20231115004.md @@ -2,7 +2,7 @@ ## SDK changes -go.mongodb.org/atlas-sdk/v20231115007/admin +go.mongodb.org/atlas-sdk/v20231115008/admin Incompatible changes: - ListIdentityProvidersApiRequest.Execute: changed from func() ([]FederationIdentityProvider, *net/http.Response, error) to func() (*PaginatedFederationIdentityProvider, \*net/http.Response, error) diff --git a/tools/releaser/breaking_changes/v20231115005.md b/tools/releaser/breaking_changes/v20231115005.md index 7ac03021..35cbea3b 100644 --- a/tools/releaser/breaking_changes/v20231115005.md +++ b/tools/releaser/breaking_changes/v20231115005.md @@ -2,7 +2,7 @@ ## SDK changes -go.mongodb.org/atlas-sdk/v20231115007/admin +go.mongodb.org/atlas-sdk/v20231115008/admin Incompatible changes: - DataProcessRegion: changed from DataProcessRegion to DataProcessRegion diff --git a/tools/releaser/breaking_changes/v20231115006.md b/tools/releaser/breaking_changes/v20231115006.md index 4c43804b..ff2a885e 100644 --- a/tools/releaser/breaking_changes/v20231115006.md +++ b/tools/releaser/breaking_changes/v20231115006.md @@ -2,7 +2,7 @@ ## SDK changes -go.mongodb.org/atlas-sdk/v20231115007/admin +go.mongodb.org/atlas-sdk/v20231115008/admin Incompatible changes: - GroupMaintenanceWindow.HourOfDay: changed from int to \*int diff --git a/tools/releaser/breaking_changes/v20231115007.md b/tools/releaser/breaking_changes/v20231115007.md index a4dacc86..88279c55 100644 --- a/tools/releaser/breaking_changes/v20231115007.md +++ b/tools/releaser/breaking_changes/v20231115007.md @@ -2,7 +2,7 @@ ## SDK changes -go.mongodb.org/atlas-sdk/v20231115007/admin +go.mongodb.org/atlas-sdk/v20231115008/admin Incompatible changes: - (*TeamsApiService).RenameTeam: changed from func(context.Context, string, string, *Team) RenameTeamApiRequest to func(context.Context, string, string, \*TeamUpdate) RenameTeamApiRequest diff --git a/tools/releaser/breaking_changes/v20231115008.md b/tools/releaser/breaking_changes/v20231115008.md new file mode 100644 index 00000000..733d47d4 --- /dev/null +++ b/tools/releaser/breaking_changes/v20231115008.md @@ -0,0 +1,40 @@ +# Breaking Changes + +## SDK changes + +go.mongodb.org/atlas-sdk/v20231115008/admin +Incompatible changes: + +- (\*ApiSearchDeploymentRequest).HasSpecs: removed +- (_ProgrammaticAPIKeysApiService).CreateApiKeyAccessList: changed from func(context.Context, string, string, _[]UserAccessList) CreateApiKeyAccessListApiRequest to func(context.Context, string, string, \*[]UserAccessListRequest) CreateApiKeyAccessListApiRequest +- (\*ResourceTag).HasKey: removed +- (\*ResourceTag).HasValue: removed +- ApiSearchDeploymentRequest.Specs: changed from \*[]ApiSearchDeploymentSpec to []ApiSearchDeploymentSpec +- ApiSearchDeploymentRequest: old is comparable, new is not +- CreateApiKeyAccessListApiParams.UserAccessList: removed +- GroupName: removed +- ListIdentityProvidersApiParams.IdpType: changed from _string to _[]string +- ListIdentityProvidersApiParams.Protocol: changed from _string to _[]string +- ListIdentityProvidersApiRequest.IdpType: changed from func(string) ListIdentityProvidersApiRequest to func([]string) ListIdentityProvidersApiRequest +- ListIdentityProvidersApiRequest.Protocol: changed from func(string) ListIdentityProvidersApiRequest to func([]string) ListIdentityProvidersApiRequest +- NewApiSearchDeploymentRequest: changed from func() *ApiSearchDeploymentRequest to func([]ApiSearchDeploymentSpec) *ApiSearchDeploymentRequest +- NewGroupName: removed +- NewGroupNameWithDefaults: removed +- NewPaginatedApiUserAccessList: removed +- NewPaginatedApiUserAccessListWithDefaults: removed +- NewResourceTag: changed from func() *ResourceTag to func(string, string) *ResourceTag +- NewUserAccessList: removed +- NewUserAccessListWithDefaults: removed +- PaginatedApiUserAccessList: removed +- ProgrammaticAPIKeysApi.CreateApiKeyAccessList: changed from func(context.Context, string, string, _[]UserAccessList) CreateApiKeyAccessListApiRequest to func(context.Context, string, string, _[]UserAccessListRequest) CreateApiKeyAccessListApiRequest +- ResourceTag.Key: changed from \*string to string +- ResourceTag.Value: changed from \*string to string +- StreamsApi.DownloadStreamTenantAuditLogs: added +- StreamsApi.DownloadStreamTenantAuditLogsExecute: added +- StreamsApi.DownloadStreamTenantAuditLogsWithParams: added +- UpdateProjectApiParams.GroupName: removed +- UserAccessList: removed + +## API Changelog + +https://www.mongodb.com/docs/atlas/reference/api-resources-spec/changelog