From d98b17d706e9316c3b5f8e6c0021854d6c31908b Mon Sep 17 00:00:00 2001
From: wtrocki <981838+wtrocki@users.noreply.github.com>
Date: Fri, 10 Jan 2025 08:37:10 +0000
Subject: [PATCH] temp: client update
---
.mockery.yaml | 2 +-
admin/api_access_tracking.go | 8 +-
admin/api_cloud_backups.go | 52 +-
admin/api_custom_database_roles.go | 12 +-
admin/api_database_users.go | 12 +-
admin/api_mongo_db_cloud_users.go | 1886 +++++++++++++-
admin/api_open_api.go | 187 ++
admin/api_organizations.go | 22 +-
admin/api_performance_advisor.go | 286 ++-
admin/api_projects.go | 45 +-
admin/api_streams.go | 149 ++
admin/api_teams.go | 16 +-
admin/atlas_client.go | 8 +-
admin/client.go | 3 +
admin/model_add_or_remove_group_role.go | 51 +
admin/model_add_or_remove_org_role.go | 51 +
admin/model_add_or_remove_user_from_team.go | 52 +
...odel_alerts_notification_root_for_group.go | 4 +-
admin/model_api_search_deployment_request.go | 2 +-
admin/model_api_search_deployment_response.go | 2 +-
admin/model_api_version.go | 59 +
admin/model_awskms_configuration.go | 35 +
admin/model_event_view_for_nds_group.go | 36 +
...=> model_flex_cluster_metric_threshold.go} | 54 +-
admin/model_group_alerts_config.go | 20 +-
admin/model_group_role_assignment.go | 94 +
admin/model_group_user_request.go | 80 +
admin/model_group_user_response.go | 464 ++++
admin/model_org_user_request.go | 114 +
admin/model_org_user_response.go | 498 ++++
admin/model_org_user_roles_request.go | 86 +
admin/model_org_user_roles_response.go | 94 +
admin/model_org_user_update_request.go | 94 +
admin/model_paginated_api_versions.go | 132 +
admin/model_paginated_org_user.go | 132 +
.../model_streams_private_link_connection.go | 74 +
auth/clientcredentials/clientcredentials.go | 4 +-
.../clientcredentials_test.go | 2 +-
auth/code/device_flow.go | 2 +-
auth/code/oauth.go | 2 +-
auth/code/oauth_test.go | 2 +-
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/go.mod | 10 +-
examples/invoice/invoice.go | 4 +-
examples/mock/cluster_test.go | 4 +-
examples/regions/regions.go | 4 +-
examples/retry/retry.go | 2 +-
.../sa_management.go | 2 +-
.../cached_token.go | 6 +-
go.mod | 2 +-
mockadmin/access_tracking_api.go | 2 +-
mockadmin/alert_configurations_api.go | 2 +-
mockadmin/alerts_api.go | 2 +-
mockadmin/atlas_search_api.go | 2 +-
mockadmin/auditing_api.go | 2 +-
mockadmin/aws_clusters_dns_api.go | 2 +-
mockadmin/cloud_backups_api.go | 2 +-
mockadmin/cloud_migration_service_api.go | 2 +-
mockadmin/cloud_provider_access_api.go | 2 +-
mockadmin/cluster_outage_simulation_api.go | 2 +-
mockadmin/clusters_api.go | 2 +-
mockadmin/collection_level_metrics_api.go | 2 +-
mockadmin/custom_database_roles_api.go | 2 +-
mockadmin/data_federation_api.go | 2 +-
mockadmin/data_lake_pipelines_api.go | 2 +-
mockadmin/database_users_api.go | 2 +-
..._rest_using_customer_key_management_api.go | 2 +-
mockadmin/events_api.go | 2 +-
mockadmin/federated_authentication_api.go | 2 +-
mockadmin/flex_clusters_api.go | 2 +-
mockadmin/flex_restore_jobs_api.go | 2 +-
mockadmin/flex_snapshots_api.go | 2 +-
mockadmin/global_clusters_api.go | 2 +-
mockadmin/invoices_api.go | 2 +-
mockadmin/ldap_configuration_api.go | 2 +-
mockadmin/legacy_backup_api.go | 2 +-
mockadmin/maintenance_windows_api.go | 2 +-
mockadmin/mongo_db_cloud_users_api.go | 2101 +++++++++++++--
mockadmin/monitoring_and_logs_api.go | 2 +-
mockadmin/network_peering_api.go | 2 +-
mockadmin/online_archive_api.go | 2 +-
mockadmin/open_api_api.go | 200 ++
mockadmin/organizations_api.go | 16 +-
mockadmin/performance_advisor_api.go | 326 ++-
mockadmin/private_endpoint_services_api.go | 2 +-
mockadmin/programmatic_api_keys_api.go | 2 +-
mockadmin/project_ip_access_list_api.go | 2 +-
mockadmin/projects_api.go | 35 +-
mockadmin/push_based_log_export_api.go | 2 +-
mockadmin/resource_policies_api.go | 2 +-
mockadmin/rolling_index_api.go | 2 +-
mockadmin/root_api.go | 2 +-
mockadmin/serverless_instances_api.go | 2 +-
mockadmin/serverless_private_endpoints_api.go | 2 +-
mockadmin/service_accounts_api.go | 2 +-
mockadmin/shared_tier_restore_jobs_api.go | 2 +-
mockadmin/shared_tier_snapshots_api.go | 2 +-
mockadmin/streams_api.go | 154 +-
mockadmin/teams_api.go | 16 +-
mockadmin/third_party_integrations_api.go | 2 +-
mockadmin/x509_authentication_api.go | 2 +-
openapi/atlas-api-transformed.yaml | 1731 ++++++++++++-
openapi/atlas-api.yaml | 2257 +++++++++++++++--
openapi/versions.json | 2 +-
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 | 8 +-
112 files changed, 11181 insertions(+), 739 deletions(-)
create mode 100644 admin/api_open_api.go
create mode 100644 admin/model_add_or_remove_group_role.go
create mode 100644 admin/model_add_or_remove_org_role.go
create mode 100644 admin/model_add_or_remove_user_from_team.go
create mode 100644 admin/model_api_version.go
rename admin/{model_serverless_metric_threshold.go => model_flex_cluster_metric_threshold.go} (68%)
create mode 100644 admin/model_group_role_assignment.go
create mode 100644 admin/model_group_user_request.go
create mode 100644 admin/model_group_user_response.go
create mode 100644 admin/model_org_user_request.go
create mode 100644 admin/model_org_user_response.go
create mode 100644 admin/model_org_user_roles_request.go
create mode 100644 admin/model_org_user_roles_response.go
create mode 100644 admin/model_org_user_update_request.go
create mode 100644 admin/model_paginated_api_versions.go
create mode 100644 admin/model_paginated_org_user.go
create mode 100644 mockadmin/open_api_api.go
diff --git a/.mockery.yaml b/.mockery.yaml
index b37e9f71a..02cb53dca 100644
--- a/.mockery.yaml
+++ b/.mockery.yaml
@@ -6,6 +6,6 @@ filename: "{{ .InterfaceName | snakecase }}.go"
mockname: "{{.InterfaceName}}"
packages:
- go.mongodb.org/atlas-sdk/v20241113004/admin:
+ github.com/mongodb/atlas-sdk-go/admin:
config:
include-regex: ".*Api"
diff --git a/admin/api_access_tracking.go b/admin/api_access_tracking.go
index e05e21ae2..2bcbd0352 100644
--- a/admin/api_access_tracking.go
+++ b/admin/api_access_tracking.go
@@ -15,7 +15,7 @@ type AccessTrackingApi interface {
/*
ListAccessLogsByClusterName Return Database Access History for One Cluster using Its Cluster Name
- Returns the access logs of one cluster identified by the cluster's name. Access logs contain a list of authentication requests made against your cluster. You can't use this feature on tenant-tier clusters (M0, M2, M5). To use this resource, the requesting API Key must have the Project Monitoring Admin role.
+ Returns the access logs of one cluster identified by the cluster's name. Access logs contain a list of authentication requests made against your cluster. You can't use this feature on tenant-tier clusters (M0, M2, M5). To use this resource, the requesting API Key must have the Project Monitoring Admin role or the Project Database Access 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.
@@ -39,7 +39,7 @@ type AccessTrackingApi interface {
/*
ListAccessLogsByHostname Return Database Access History for One Cluster using Its Hostname
- Returns the access logs of one cluster identified by the cluster's hostname. Access logs contain a list of authentication requests made against your clusters. You can't use this feature on tenant-tier clusters (M0, M2, M5). To use this resource, the requesting API Key must have the Project Monitoring Admin role.
+ Returns the access logs of one cluster identified by the cluster's hostname. Access logs contain a list of authentication requests made against your clusters. You can't use this feature on tenant-tier clusters (M0, M2, M5). To use this resource, the requesting API Key must have the Project Monitoring Admin role or the Project Database Access 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.
@@ -137,7 +137,7 @@ func (r ListAccessLogsByClusterNameApiRequest) Execute() (*MongoDBAccessLogsList
/*
ListAccessLogsByClusterName Return Database Access History for One Cluster using Its Cluster Name
-Returns the access logs of one cluster identified by the cluster's name. Access logs contain a list of authentication requests made against your cluster. You can't use this feature on tenant-tier clusters (M0, M2, M5). To use this resource, the requesting API Key must have the Project Monitoring Admin role.
+Returns the access logs of one cluster identified by the cluster's name. Access logs contain a list of authentication requests made against your cluster. You can't use this feature on tenant-tier clusters (M0, M2, M5). To use this resource, the requesting API Key must have the Project Monitoring Admin role or the Project Database Access 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.
@@ -318,7 +318,7 @@ func (r ListAccessLogsByHostnameApiRequest) Execute() (*MongoDBAccessLogsList, *
/*
ListAccessLogsByHostname Return Database Access History for One Cluster using Its Hostname
-Returns the access logs of one cluster identified by the cluster's hostname. Access logs contain a list of authentication requests made against your clusters. You can't use this feature on tenant-tier clusters (M0, M2, M5). To use this resource, the requesting API Key must have the Project Monitoring Admin role.
+Returns the access logs of one cluster identified by the cluster's hostname. Access logs contain a list of authentication requests made against your clusters. You can't use this feature on tenant-tier clusters (M0, M2, M5). To use this resource, the requesting API Key must have the Project Monitoring Admin role or the Project Database Access 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.
diff --git a/admin/api_cloud_backups.go b/admin/api_cloud_backups.go
index 40dee4009..cfade7234 100644
--- a/admin/api_cloud_backups.go
+++ b/admin/api_cloud_backups.go
@@ -15,7 +15,7 @@ type CloudBackupsApi interface {
/*
CancelBackupRestoreJob Cancel One Restore Job of One Cluster
- Cancels one cloud backup restore job of one cluster from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+ Cancels one cloud backup restore job of one cluster from the specified project. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -67,7 +67,7 @@ type CloudBackupsApi interface {
Restores one snapshot of one cluster from the specified project. Atlas takes on-demand snapshots immediately and scheduled snapshots at regular intervals. If an on-demand snapshot with a status of **queued** or **inProgress** exists, before taking another snapshot, wait until Atlas completes completes processing the previously taken on-demand snapshot.
- To use this resource, the requesting API Key must have the Project Owner role.
+ To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -165,7 +165,7 @@ type CloudBackupsApi interface {
/*
DeleteExportBucket Delete One Snapshot Export Bucket
- Deletes an Export Bucket. Auto export must be disabled on all clusters in this Project exporting to this Export Bucket before revoking access. To use this resource, the requesting API Key must have the Project Owner role.
+ Deletes an Export Bucket. Auto export must be disabled on all clusters in this Project exporting to this Export Bucket before revoking access. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -189,7 +189,7 @@ type CloudBackupsApi interface {
/*
DeleteReplicaSetBackup Remove One Replica Set Cloud Backup
- Removes the specified snapshot. To use this resource, the requesting API Key must have the Project Owner role.
+ Removes the specified snapshot. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -214,7 +214,7 @@ type CloudBackupsApi interface {
/*
DeleteShardedClusterBackup Remove One Sharded Cluster Cloud Backup
- Removes one snapshot of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+ Removes one snapshot of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -287,7 +287,7 @@ type CloudBackupsApi interface {
/*
GetBackupRestoreJob Return One Restore Job of One Cluster
- Returns one cloud backup restore job for one cluster from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+ Returns one cloud backup restore job for one cluster from the specified project. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -383,7 +383,7 @@ type CloudBackupsApi interface {
/*
GetReplicaSetBackup Return One Replica Set Cloud Backup
- Returns one snapshot from the specified cluster. To use this resource, the requesting API Key must have the Project Read Only role.
+ Returns one snapshot from the specified cluster. To use this resource, the requesting API Key must have the Project Read Only role or Project Backup Manager 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.
@@ -458,7 +458,7 @@ type CloudBackupsApi interface {
/*
GetShardedClusterBackup Return One Sharded Cluster Cloud Backup
- Returns one snapshot of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+ Returns one snapshot of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role or Project Backup Manager 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.
@@ -507,7 +507,7 @@ type CloudBackupsApi interface {
/*
ListBackupRestoreJobs Return All Restore Jobs for One Cluster
- Returns all cloud backup restore jobs for one cluster from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+ Returns all cloud backup restore jobs for one cluster from the specified project. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -554,7 +554,7 @@ type CloudBackupsApi interface {
/*
ListReplicaSetBackups Return All Replica Set Cloud Backups
- Returns all snapshots of one cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+ Returns all snapshots of one cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role or Project Backup Manager 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.
@@ -626,7 +626,7 @@ type CloudBackupsApi interface {
/*
ListShardedClusterBackups Return All Sharded Cluster Cloud Backups
- Returns all snapshots of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+ Returns all snapshots of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role or Project Backup Manager 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.
@@ -652,7 +652,7 @@ type CloudBackupsApi interface {
Takes one on-demand snapshot for the specified cluster. Atlas takes on-demand snapshots immediately and scheduled snapshots at regular intervals. If an on-demand snapshot with a status of **queued** or **inProgress** exists, before taking another snapshot, wait until Atlas completes completes processing the previously taken on-demand snapshot.
- To use this resource, the requesting API Key must have the Project Owner role.
+ To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -726,7 +726,7 @@ type CloudBackupsApi interface {
/*
UpdateSnapshotRetention Change Expiration Date for One Cloud Backup
- Changes the expiration date for one cloud backup snapshot for one cluster in the specified project.
+ Changes the expiration date for one cloud backup snapshot for one cluster in the specified project, the requesting API Key must have the Project Backup Manager 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.
@@ -784,7 +784,7 @@ func (r CancelBackupRestoreJobApiRequest) Execute() (any, *http.Response, error)
/*
CancelBackupRestoreJob Cancel One Restore Job of One Cluster
-Cancels one cloud backup restore job of one cluster from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+Cancels one cloud backup restore job of one cluster from the specified project. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -1035,7 +1035,7 @@ CreateBackupRestoreJob Restore One Snapshot of One Cluster
Restores one snapshot of one cluster from the specified project. Atlas takes on-demand snapshots immediately and scheduled snapshots at regular intervals. If an on-demand snapshot with a status of **queued** or **inProgress** exists, before taking another snapshot, wait until Atlas completes completes processing the previously taken on-demand snapshot.
- To use this resource, the requesting API Key must have the Project Owner role.
+ To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -1521,7 +1521,7 @@ func (r DeleteExportBucketApiRequest) Execute() (any, *http.Response, error) {
/*
DeleteExportBucket Delete One Snapshot Export Bucket
-Deletes an Export Bucket. Auto export must be disabled on all clusters in this Project exporting to this Export Bucket before revoking access. To use this resource, the requesting API Key must have the Project Owner role.
+Deletes an Export Bucket. Auto export must be disabled on all clusters in this Project exporting to this Export Bucket before revoking access. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -1641,7 +1641,7 @@ func (r DeleteReplicaSetBackupApiRequest) Execute() (any, *http.Response, error)
/*
DeleteReplicaSetBackup Remove One Replica Set Cloud Backup
-Removes the specified snapshot. To use this resource, the requesting API Key must have the Project Owner role.
+Removes the specified snapshot. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -1764,7 +1764,7 @@ func (r DeleteShardedClusterBackupApiRequest) Execute() (any, *http.Response, er
/*
DeleteShardedClusterBackup Remove One Sharded Cluster Cloud Backup
-Removes one snapshot of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+Removes one snapshot of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -2121,7 +2121,7 @@ func (r GetBackupRestoreJobApiRequest) Execute() (*DiskBackupSnapshotRestoreJob,
/*
GetBackupRestoreJob Return One Restore Job of One Cluster
-Returns one cloud backup restore job for one cluster from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+Returns one cloud backup restore job for one cluster from the specified project. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -2589,7 +2589,7 @@ func (r GetReplicaSetBackupApiRequest) Execute() (*DiskBackupReplicaSet, *http.R
/*
GetReplicaSetBackup Return One Replica Set Cloud Backup
-Returns one snapshot from the specified cluster. To use this resource, the requesting API Key must have the Project Read Only role.
+Returns one snapshot from the specified cluster. To use this resource, the requesting API Key must have the Project Read Only role or Project Backup Manager 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.
@@ -2958,7 +2958,7 @@ func (r GetShardedClusterBackupApiRequest) Execute() (*DiskBackupShardedClusterS
/*
GetShardedClusterBackup Return One Sharded Cluster Cloud Backup
-Returns one snapshot of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+Returns one snapshot of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role or Project Backup Manager 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.
@@ -3270,7 +3270,7 @@ func (r ListBackupRestoreJobsApiRequest) Execute() (*PaginatedCloudBackupRestore
/*
ListBackupRestoreJobs Return All Restore Jobs for One Cluster
-Returns all cloud backup restore jobs for one cluster from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+Returns all cloud backup restore jobs for one cluster from the specified project. To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -3594,7 +3594,7 @@ func (r ListReplicaSetBackupsApiRequest) Execute() (*PaginatedCloudBackupReplica
/*
ListReplicaSetBackups Return All Replica Set Cloud Backups
-Returns all snapshots of one cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+Returns all snapshots of one cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role or Project Backup Manager 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.
@@ -4062,7 +4062,7 @@ func (r ListShardedClusterBackupsApiRequest) Execute() (*PaginatedCloudBackupSha
/*
ListShardedClusterBackups Return All Sharded Cluster Cloud Backups
-Returns all snapshots of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+Returns all snapshots of one sharded cluster from the specified project. To use this resource, the requesting API Key must have the Project Read Only role or Project Backup Manager 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.
@@ -4184,7 +4184,7 @@ TakeSnapshot Take One On-Demand Snapshot
Takes one on-demand snapshot for the specified cluster. Atlas takes on-demand snapshots immediately and scheduled snapshots at regular intervals. If an on-demand snapshot with a status of **queued** or **inProgress** exists, before taking another snapshot, wait until Atlas completes completes processing the previously taken on-demand snapshot.
- To use this resource, the requesting API Key must have the Project Owner role.
+ To use this resource, the requesting API Key must have the Project Backup Manager 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.
@@ -4575,7 +4575,7 @@ func (r UpdateSnapshotRetentionApiRequest) Execute() (*DiskBackupReplicaSet, *ht
/*
UpdateSnapshotRetention Change Expiration Date for One Cloud Backup
-Changes the expiration date for one cloud backup snapshot for one cluster in the specified project.
+Changes the expiration date for one cloud backup snapshot for one cluster in the specified project, the requesting API Key must have the Project Backup Manager 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.
diff --git a/admin/api_custom_database_roles.go b/admin/api_custom_database_roles.go
index 536b1d31f..637db43f1 100644
--- a/admin/api_custom_database_roles.go
+++ b/admin/api_custom_database_roles.go
@@ -15,7 +15,7 @@ type CustomDatabaseRolesApi interface {
/*
CreateCustomDatabaseRole Create One Custom Role
- Creates one custom role in the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+ Creates one custom role in the specified project. To use this resource, the requesting API Key must have the Project Owner role, Project Stream Processing Owner role, or the Project Database Access 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.
@@ -39,7 +39,7 @@ type CustomDatabaseRolesApi interface {
/*
DeleteCustomDatabaseRole Remove One Custom Role from One Project
- Removes one custom role from the specified project. You can't remove a custom role that would leave one or more child roles with no parent roles or actions. You also can't remove a custom role that would leave one or more database users without roles. To use this resource, the requesting API Key must have the Project Atlas Admin role.
+ Removes one custom role from the specified project. You can't remove a custom role that would leave one or more child roles with no parent roles or actions. You also can't remove a custom role that would leave one or more database users without roles. To use this resource, the requesting API Key must have the Project Owner role, Project Stream Processing Owner role, or the Project Database Access 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.
@@ -110,7 +110,7 @@ type CustomDatabaseRolesApi interface {
/*
UpdateCustomDatabaseRole Update One Custom Role in One Project
- Updates one custom role in the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+ Updates one custom role in the specified project. To use this resource, the requesting API Key must have the Project Owner role, the Project Stream Processing Owner role, or the Project Database Access 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.
@@ -164,7 +164,7 @@ func (r CreateCustomDatabaseRoleApiRequest) Execute() (*UserCustomDBRole, *http.
/*
CreateCustomDatabaseRole Create One Custom Role
-Creates one custom role in the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+Creates one custom role in the specified project. To use this resource, the requesting API Key must have the Project Owner role, Project Stream Processing Owner role, or the Project Database Access 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.
@@ -284,7 +284,7 @@ func (r DeleteCustomDatabaseRoleApiRequest) Execute() (*http.Response, error) {
/*
DeleteCustomDatabaseRole Remove One Custom Role from One Project
-Removes one custom role from the specified project. You can't remove a custom role that would leave one or more child roles with no parent roles or actions. You also can't remove a custom role that would leave one or more database users without roles. To use this resource, the requesting API Key must have the Project Atlas Admin role.
+Removes one custom role from the specified project. You can't remove a custom role that would leave one or more child roles with no parent roles or actions. You also can't remove a custom role that would leave one or more database users without roles. To use this resource, the requesting API Key must have the Project Owner role, Project Stream Processing Owner role, or the Project Database Access 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.
@@ -615,7 +615,7 @@ func (r UpdateCustomDatabaseRoleApiRequest) Execute() (*UserCustomDBRole, *http.
/*
UpdateCustomDatabaseRole Update One Custom Role in One Project
-Updates one custom role in the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+Updates one custom role in the specified project. To use this resource, the requesting API Key must have the Project Owner role, the Project Stream Processing Owner role, or the Project Database Access 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.
diff --git a/admin/api_database_users.go b/admin/api_database_users.go
index b6e2d63ce..cd4f07c88 100644
--- a/admin/api_database_users.go
+++ b/admin/api_database_users.go
@@ -15,7 +15,7 @@ type DatabaseUsersApi interface {
/*
CreateDatabaseUser Create One Database User in One Project
- Creates one database user in the specified project. This MongoDB Cloud supports a maximum of 100 database users per project. If you require more than 100 database users on a project, contact [Support](https://cloud.mongodb.com/support). To use this resource, the requesting API Key must have the Project Owner or Project Charts Admin roles.
+ Creates one database user in the specified project. This MongoDB Cloud supports a maximum of 100 database users per project. If you require more than 100 database users on a project, contact [Support](https://cloud.mongodb.com/support). To use this resource, the requesting API Key must have the Project Owner role, the Project Charts Admin role, Project Stream Processing Owner role, or the Project Database Access 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.
@@ -39,7 +39,7 @@ type DatabaseUsersApi interface {
/*
DeleteDatabaseUser Remove One Database User from One Project
- Removes one database user from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+ Removes one database user from the specified project. To use this resource, the requesting API Key must have the Project Owner role, the Project Stream Processing Owner role, or the Project Database Access 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.
@@ -112,7 +112,7 @@ type DatabaseUsersApi interface {
/*
UpdateDatabaseUser Update One Database User in One Project
- Updates one database user that belongs to the specified project. To use this resource, the requesting API Key must have the Project Owner or Project Charts Admin roles.
+ Updates one database user that belongs to the specified project. To use this resource, the requesting API Key must have the Project Owner role, Project Charts Admin role, Project Stream Processing Owner role, or the Project Database Access 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.
@@ -167,7 +167,7 @@ func (r CreateDatabaseUserApiRequest) Execute() (*CloudDatabaseUser, *http.Respo
/*
CreateDatabaseUser Create One Database User in One Project
-Creates one database user in the specified project. This MongoDB Cloud supports a maximum of 100 database users per project. If you require more than 100 database users on a project, contact [Support](https://cloud.mongodb.com/support). To use this resource, the requesting API Key must have the Project Owner or Project Charts Admin roles.
+Creates one database user in the specified project. This MongoDB Cloud supports a maximum of 100 database users per project. If you require more than 100 database users on a project, contact [Support](https://cloud.mongodb.com/support). To use this resource, the requesting API Key must have the Project Owner role, the Project Charts Admin role, Project Stream Processing Owner role, or the Project Database Access 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.
@@ -290,7 +290,7 @@ func (r DeleteDatabaseUserApiRequest) Execute() (any, *http.Response, error) {
/*
DeleteDatabaseUser Remove One Database User from One Project
-Removes one database user from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+Removes one database user from the specified project. To use this resource, the requesting API Key must have the Project Owner role, the Project Stream Processing Owner role, or the Project Database Access 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.
@@ -698,7 +698,7 @@ func (r UpdateDatabaseUserApiRequest) Execute() (*CloudDatabaseUser, *http.Respo
/*
UpdateDatabaseUser Update One Database User in One Project
-Updates one database user that belongs to the specified project. To use this resource, the requesting API Key must have the Project Owner or Project Charts Admin roles.
+Updates one database user that belongs to the specified project. To use this resource, the requesting API Key must have the Project Owner role, Project Charts Admin role, Project Stream Processing Owner role, or the Project Database Access 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.
diff --git a/admin/api_mongo_db_cloud_users.go b/admin/api_mongo_db_cloud_users.go
index 121b0731b..a5b7ca819 100644
--- a/admin/api_mongo_db_cloud_users.go
+++ b/admin/api_mongo_db_cloud_users.go
@@ -12,6 +12,143 @@ import (
type MongoDBCloudUsersApi interface {
+ /*
+ AddOrganizationRole Add One Organization Role to One MongoDB Cloud User
+
+ Adds one organization-level role to the MongoDB Cloud user. You can add a role to an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: This operation is atomic.
+
+ **Note**: This resource cannot be used to add a role to users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param userId Unique 24-hexadecimal digit string that identifies the pending or active user in the organization. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Organization resource and filter by username.
+ @param addOrRemoveOrgRole Organization-level role to assign to the MongoDB Cloud user.
+ @return AddOrganizationRoleApiRequest
+ */
+ AddOrganizationRole(ctx context.Context, orgId string, userId string, addOrRemoveOrgRole *AddOrRemoveOrgRole) AddOrganizationRoleApiRequest
+ /*
+ AddOrganizationRole Add One Organization Role to One MongoDB Cloud User
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param AddOrganizationRoleApiParams - Parameters for the request
+ @return AddOrganizationRoleApiRequest
+ */
+ AddOrganizationRoleWithParams(ctx context.Context, args *AddOrganizationRoleApiParams) AddOrganizationRoleApiRequest
+
+ // Method available only for mocking purposes
+ AddOrganizationRoleExecute(r AddOrganizationRoleApiRequest) (*OrgUserResponse, *http.Response, error)
+
+ /*
+ AddProjectRole Add One Project Role to One MongoDB Cloud User
+
+ Adds one project-level role to the MongoDB Cloud user. You can add a role to an active user or a user that has been invited to join the project. To use this resource, the requesting API Key must have the Project Owner role.
+
+ **Note**: This resource cannot be used to add a role to users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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 userId Unique 24-hexadecimal digit string that identifies the pending or active user in the project. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Project resource and filter by username.
+ @param addOrRemoveGroupRole Project-level role to assign to the MongoDB Cloud user.
+ @return AddProjectRoleApiRequest
+ */
+ AddProjectRole(ctx context.Context, groupId string, userId string, addOrRemoveGroupRole *AddOrRemoveGroupRole) AddProjectRoleApiRequest
+ /*
+ AddProjectRole Add One Project Role to One MongoDB Cloud User
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param AddProjectRoleApiParams - Parameters for the request
+ @return AddProjectRoleApiRequest
+ */
+ AddProjectRoleWithParams(ctx context.Context, args *AddProjectRoleApiParams) AddProjectRoleApiRequest
+
+ // Method available only for mocking purposes
+ AddProjectRoleExecute(r AddProjectRoleApiRequest) (*OrgUserResponse, *http.Response, error)
+
+ /*
+ AddProjectUser Add One MongoDB Cloud User to One Project
+
+ Adds one MongoDB Cloud user to one project. To use this resource, the requesting API Key must have the Project Owner role.
+ - If the user has a pending invitation to join the project's organization, MongoDB Cloud modifies it and grants project access.
+ - If the user doesn't have an invitation to join the organization, MongoDB Cloud sends a new invitation that grants the user organization and project access.
+ - If the user is already active in the project's organization, MongoDB Cloud grants access to the project.
+
+
+ @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 groupUserRequest The active or pending MongoDB Cloud user that you want to add to the specified project.
+ @return AddProjectUserApiRequest
+ */
+ AddProjectUser(ctx context.Context, groupId string, groupUserRequest *GroupUserRequest) AddProjectUserApiRequest
+ /*
+ AddProjectUser Add One MongoDB Cloud User to One Project
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param AddProjectUserApiParams - Parameters for the request
+ @return AddProjectUserApiRequest
+ */
+ AddProjectUserWithParams(ctx context.Context, args *AddProjectUserApiParams) AddProjectUserApiRequest
+
+ // Method available only for mocking purposes
+ AddProjectUserExecute(r AddProjectUserApiRequest) (*GroupUserResponse, *http.Response, error)
+
+ /*
+ AddUserToTeam Add One MongoDB Cloud User to One Team
+
+ Adds one MongoDB Cloud user to one team. You can add an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: This resource cannot be used to add a user invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param teamId Unique 24-hexadecimal digit string that identifies the team to add the MongoDB Cloud user to.
+ @param addOrRemoveUserFromTeam The active or pending MongoDB Cloud user that you want to add to the specified team.
+ @return AddUserToTeamApiRequest
+ */
+ AddUserToTeam(ctx context.Context, orgId string, teamId string, addOrRemoveUserFromTeam *AddOrRemoveUserFromTeam) AddUserToTeamApiRequest
+ /*
+ AddUserToTeam Add One MongoDB Cloud User to One Team
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param AddUserToTeamApiParams - Parameters for the request
+ @return AddUserToTeamApiRequest
+ */
+ AddUserToTeamWithParams(ctx context.Context, args *AddUserToTeamApiParams) AddUserToTeamApiRequest
+
+ // Method available only for mocking purposes
+ AddUserToTeamExecute(r AddUserToTeamApiRequest) (*OrgUserResponse, *http.Response, error)
+
+ /*
+ CreateOrganizationUser Add One MongoDB Cloud User to One Organization
+
+ Invites one new or existing MongoDB Cloud user to join the organization. The invitation to join the organization will be sent to the username provided and must be accepted within 30 days. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: If the user does not have an existing MongoDB Cloud account, they will be prompted to finish setting up an account upon accepting the invitation. If the user already has an account, they will still receive an invitation to access the organization.
+
+ @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.
+ @param orgUserRequest Represents the MongoDB Cloud user to be created within the organization.
+ @return CreateOrganizationUserApiRequest
+ */
+ CreateOrganizationUser(ctx context.Context, orgId string, orgUserRequest *OrgUserRequest) CreateOrganizationUserApiRequest
+ /*
+ CreateOrganizationUser Add One MongoDB Cloud User to One Organization
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param CreateOrganizationUserApiParams - Parameters for the request
+ @return CreateOrganizationUserApiRequest
+ */
+ CreateOrganizationUserWithParams(ctx context.Context, args *CreateOrganizationUserApiParams) CreateOrganizationUserApiRequest
+
+ // Method available only for mocking purposes
+ CreateOrganizationUserExecute(r CreateOrganizationUserApiRequest) (*OrgUserResponse, *http.Response, error)
+
/*
CreateUser Create One MongoDB Cloud User
@@ -39,6 +176,62 @@ type MongoDBCloudUsersApi interface {
// Method available only for mocking purposes
CreateUserExecute(r CreateUserApiRequest) (*CloudAppUser, *http.Response, error)
+ /*
+ GetOrganizationUser Return One MongoDB Cloud User in One Organization
+
+ Returns information about the specified MongoDB Cloud user within the context of the specified organization. To use this resource, the requesting API Key must have the Organization Member role.
+
+ **Note**: This resource can only be used to fetch information about MongoDB Cloud human users. To return information about an API Key, use the [Return One Organization API Key](#tag/Programmatic-API-Keys/operation/getApiKey) endpoint.
+
+ **Note**: This resource does not return information about pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param userId Unique 24-hexadecimal digit string that identifies the pending or active user in the organization. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Organization resource and filter by username.
+ @return GetOrganizationUserApiRequest
+ */
+ GetOrganizationUser(ctx context.Context, orgId string, userId string) GetOrganizationUserApiRequest
+ /*
+ GetOrganizationUser Return One MongoDB Cloud User in One Organization
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param GetOrganizationUserApiParams - Parameters for the request
+ @return GetOrganizationUserApiRequest
+ */
+ GetOrganizationUserWithParams(ctx context.Context, args *GetOrganizationUserApiParams) GetOrganizationUserApiRequest
+
+ // Method available only for mocking purposes
+ GetOrganizationUserExecute(r GetOrganizationUserApiRequest) (*OrgUserResponse, *http.Response, error)
+
+ /*
+ GetProjectUser Return One MongoDB Cloud User in One Project
+
+ Returns information about the specified MongoDB Cloud user within the context of the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+
+ **Note**: You can only use this resource to fetch information about MongoDB Cloud human users. To return information about an API Key, use the [Return One Organization API Key](#tag/Programmatic-API-Keys/operation/getApiKey) endpoint.
+
+ **Note**: This resource does not return information about pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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 userId Unique 24-hexadecimal digit string that identifies the pending or active user in the project. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Project resource and filter by username.
+ @return GetProjectUserApiRequest
+ */
+ GetProjectUser(ctx context.Context, groupId string, userId string) GetProjectUserApiRequest
+ /*
+ GetProjectUser Return One MongoDB Cloud User in One Project
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param GetProjectUserApiParams - Parameters for the request
+ @return GetProjectUserApiRequest
+ */
+ GetProjectUserWithParams(ctx context.Context, args *GetProjectUserApiParams) GetProjectUserApiRequest
+
+ // Method available only for mocking purposes
+ GetProjectUserExecute(r GetProjectUserApiRequest) (*GroupUserResponse, *http.Response, error)
+
/*
GetUser Return One MongoDB Cloud User using Its ID
@@ -84,80 +277,204 @@ type MongoDBCloudUsersApi interface {
// Method available only for mocking purposes
GetUserByUsernameExecute(r GetUserByUsernameApiRequest) (*CloudAppUser, *http.Response, error)
+
+ /*
+ RemoveOrganizationRole Remove One Organization Role from One MongoDB Cloud User
+
+ Removes one organization-level role from the MongoDB Cloud user. You can remove a role from an active user or a user that has not yet accepted the invitation to join the organization. To replace a user's only role, add the new role before removing the old role. A user must have at least one role at all times. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: This operation is atomic.
+
+ **Note**: This resource cannot be used to remove a role from users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param userId Unique 24-hexadecimal digit string that identifies the pending or active user in the organization. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Organization resource and filter by username.
+ @param addOrRemoveOrgRole Organization-level role to remove from the MongoDB Cloud user.
+ @return RemoveOrganizationRoleApiRequest
+ */
+ RemoveOrganizationRole(ctx context.Context, orgId string, userId string, addOrRemoveOrgRole *AddOrRemoveOrgRole) RemoveOrganizationRoleApiRequest
+ /*
+ RemoveOrganizationRole Remove One Organization Role from One MongoDB Cloud User
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param RemoveOrganizationRoleApiParams - Parameters for the request
+ @return RemoveOrganizationRoleApiRequest
+ */
+ RemoveOrganizationRoleWithParams(ctx context.Context, args *RemoveOrganizationRoleApiParams) RemoveOrganizationRoleApiRequest
+
+ // Method available only for mocking purposes
+ RemoveOrganizationRoleExecute(r RemoveOrganizationRoleApiRequest) (*OrgUserResponse, *http.Response, error)
+
+ /*
+ RemoveProjectRole Remove One Project Role from One MongoDB Cloud User
+
+ Removes one project-level role from the MongoDB Cloud user. You can remove a role from an active user or a user that has been invited to join the project. To replace a user's only role, add the new role before removing the old role. A user must have at least one role at all times. To use this resource, the requesting API Key must have the Project Owner role.
+
+ **Note**: This resource cannot be used to remove a role from users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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 userId Unique 24-hexadecimal digit string that identifies the pending or active user in the project. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Project resource and filter by username.
+ @param addOrRemoveGroupRole Project-level role to remove from the MongoDB Cloud user.
+ @return RemoveProjectRoleApiRequest
+ */
+ RemoveProjectRole(ctx context.Context, groupId string, userId string, addOrRemoveGroupRole *AddOrRemoveGroupRole) RemoveProjectRoleApiRequest
+ /*
+ RemoveProjectRole Remove One Project Role from One MongoDB Cloud User
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param RemoveProjectRoleApiParams - Parameters for the request
+ @return RemoveProjectRoleApiRequest
+ */
+ RemoveProjectRoleWithParams(ctx context.Context, args *RemoveProjectRoleApiParams) RemoveProjectRoleApiRequest
+
+ // Method available only for mocking purposes
+ RemoveProjectRoleExecute(r RemoveProjectRoleApiRequest) (*OrgUserResponse, *http.Response, error)
+
+ /*
+ RemoveUserFromTeam Remove One MongoDB Cloud User from One Team
+
+ Removes one MongoDB Cloud user from one team. You can remove an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: This resource cannot be used to remove a user invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param teamId Unique 24-hexadecimal digit string that identifies the team to remove the MongoDB user from.
+ @param addOrRemoveUserFromTeam The id of the active or pending MongoDB Cloud user that you want to remove from the specified team.
+ @return RemoveUserFromTeamApiRequest
+ */
+ RemoveUserFromTeam(ctx context.Context, orgId string, teamId string, addOrRemoveUserFromTeam *AddOrRemoveUserFromTeam) RemoveUserFromTeamApiRequest
+ /*
+ RemoveUserFromTeam Remove One MongoDB Cloud User from One Team
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param RemoveUserFromTeamApiParams - Parameters for the request
+ @return RemoveUserFromTeamApiRequest
+ */
+ RemoveUserFromTeamWithParams(ctx context.Context, args *RemoveUserFromTeamApiParams) RemoveUserFromTeamApiRequest
+
+ // Method available only for mocking purposes
+ RemoveUserFromTeamExecute(r RemoveUserFromTeamApiRequest) (*OrgUserResponse, *http.Response, error)
+
+ /*
+ UpdateOrganizationUser Update One MongoDB Cloud User in One Organization
+
+ Updates one MongoDB Cloud user in the specified organization. You can update an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: Only include the fields you wish to update in the request body. Supplying a field with an empty value will reset that field on the user.
+
+ **Note**: This resource cannot be used to update pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param userId Unique 24-hexadecimal digit string that identifies the pending or active user in the organization. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Organization resource and filter by username.
+ @param orgUserUpdateRequest Represents the roles and teams to assign the MongoDB Cloud user.
+ @return UpdateOrganizationUserApiRequest
+ */
+ UpdateOrganizationUser(ctx context.Context, orgId string, userId string, orgUserUpdateRequest *OrgUserUpdateRequest) UpdateOrganizationUserApiRequest
+ /*
+ UpdateOrganizationUser Update One MongoDB Cloud User in One Organization
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param UpdateOrganizationUserApiParams - Parameters for the request
+ @return UpdateOrganizationUserApiRequest
+ */
+ UpdateOrganizationUserWithParams(ctx context.Context, args *UpdateOrganizationUserApiParams) UpdateOrganizationUserApiRequest
+
+ // Method available only for mocking purposes
+ UpdateOrganizationUserExecute(r UpdateOrganizationUserApiRequest) (*OrgUserResponse, *http.Response, error)
}
// MongoDBCloudUsersApiService MongoDBCloudUsersApi service
type MongoDBCloudUsersApiService service
-type CreateUserApiRequest struct {
- ctx context.Context
- ApiService MongoDBCloudUsersApi
- cloudAppUser *CloudAppUser
+type AddOrganizationRoleApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ orgId string
+ userId string
+ addOrRemoveOrgRole *AddOrRemoveOrgRole
}
-type CreateUserApiParams struct {
- CloudAppUser *CloudAppUser
+type AddOrganizationRoleApiParams struct {
+ OrgId string
+ UserId string
+ AddOrRemoveOrgRole *AddOrRemoveOrgRole
}
-func (a *MongoDBCloudUsersApiService) CreateUserWithParams(ctx context.Context, args *CreateUserApiParams) CreateUserApiRequest {
- return CreateUserApiRequest{
- ApiService: a,
- ctx: ctx,
- cloudAppUser: args.CloudAppUser,
+func (a *MongoDBCloudUsersApiService) AddOrganizationRoleWithParams(ctx context.Context, args *AddOrganizationRoleApiParams) AddOrganizationRoleApiRequest {
+ return AddOrganizationRoleApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: args.OrgId,
+ userId: args.UserId,
+ addOrRemoveOrgRole: args.AddOrRemoveOrgRole,
}
}
-func (r CreateUserApiRequest) Execute() (*CloudAppUser, *http.Response, error) {
- return r.ApiService.CreateUserExecute(r)
+func (r AddOrganizationRoleApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.AddOrganizationRoleExecute(r)
}
/*
-CreateUser Create One MongoDB Cloud User
+AddOrganizationRole Add One Organization Role to One MongoDB Cloud User
-Creates one MongoDB Cloud user account. A MongoDB Cloud user account grants access to only the MongoDB Cloud application. To grant database access, create a database user. MongoDB Cloud sends an email to the users you specify, inviting them to join the project. Invited users don't have access to the project until they accept the invitation. Invitations expire after 30 days.
+Adds one organization-level role to the MongoDB Cloud user. You can add a role to an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
- MongoDB Cloud limits MongoDB Cloud user membership to a maximum of 250 MongoDB Cloud users per team. MongoDB Cloud limits MongoDB Cloud user membership to 500 MongoDB Cloud users per project and 500 MongoDB Cloud users per organization, which includes the combined membership of all projects in the organization. MongoDB Cloud raises an error if an operation exceeds these limits. For example, if you have an organization with five projects, and each project has 100 MongoDB Cloud users, and each MongoDB Cloud user belongs to only one project, you can't add any MongoDB Cloud users to this organization without first removing existing MongoDB Cloud users from the organization.
+**Note**: This operation is atomic.
- To use this resource, the requesting API Key can have any role.
+**Note**: This resource cannot be used to add a role to users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return CreateUserApiRequest
+ @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.
+ @param userId Unique 24-hexadecimal digit string that identifies the pending or active user in the organization. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Organization resource and filter by username.
+ @return AddOrganizationRoleApiRequest
*/
-func (a *MongoDBCloudUsersApiService) CreateUser(ctx context.Context, cloudAppUser *CloudAppUser) CreateUserApiRequest {
- return CreateUserApiRequest{
- ApiService: a,
- ctx: ctx,
- cloudAppUser: cloudAppUser,
+func (a *MongoDBCloudUsersApiService) AddOrganizationRole(ctx context.Context, orgId string, userId string, addOrRemoveOrgRole *AddOrRemoveOrgRole) AddOrganizationRoleApiRequest {
+ return AddOrganizationRoleApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: orgId,
+ userId: userId,
+ addOrRemoveOrgRole: addOrRemoveOrgRole,
}
}
-// CreateUserExecute executes the request
+// AddOrganizationRoleExecute executes the request
//
-// @return CloudAppUser
-func (a *MongoDBCloudUsersApiService) CreateUserExecute(r CreateUserApiRequest) (*CloudAppUser, *http.Response, error) {
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) AddOrganizationRoleExecute(r AddOrganizationRoleApiRequest) (*OrgUserResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody any
formFiles []formFile
- localVarReturnValue *CloudAppUser
+ localVarReturnValue *OrgUserResponse
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.CreateUser")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.AddOrganizationRole")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/atlas/v2/users"
+ localVarPath := localBasePath + "/api/atlas/v2/orgs/{orgId}/users/{userId}:addRole"
+ localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(r.orgId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(r.userId), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.cloudAppUser == nil {
- return localVarReturnValue, nil, reportError("cloudAppUser is required and must be specified")
+ if r.addOrRemoveOrgRole == nil {
+ return localVarReturnValue, nil, reportError("addOrRemoveOrgRole is required and must be specified")
}
// to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/vnd.atlas.2023-01-01+json"}
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
@@ -166,7 +483,7 @@ func (a *MongoDBCloudUsersApiService) CreateUserExecute(r CreateUserApiRequest)
}
// to determine the Accept header (only first one)
- localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -174,7 +491,7 @@ func (a *MongoDBCloudUsersApiService) CreateUserExecute(r CreateUserApiRequest)
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.cloudAppUser
+ localVarPostBody = r.addOrRemoveOrgRole
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
@@ -207,70 +524,85 @@ func (a *MongoDBCloudUsersApiService) CreateUserExecute(r CreateUserApiRequest)
return localVarReturnValue, localVarHTTPResponse, nil
}
-type GetUserApiRequest struct {
- ctx context.Context
- ApiService MongoDBCloudUsersApi
- userId string
+type AddProjectRoleApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ groupId string
+ userId string
+ addOrRemoveGroupRole *AddOrRemoveGroupRole
}
-type GetUserApiParams struct {
- UserId string
+type AddProjectRoleApiParams struct {
+ GroupId string
+ UserId string
+ AddOrRemoveGroupRole *AddOrRemoveGroupRole
}
-func (a *MongoDBCloudUsersApiService) GetUserWithParams(ctx context.Context, args *GetUserApiParams) GetUserApiRequest {
- return GetUserApiRequest{
- ApiService: a,
- ctx: ctx,
- userId: args.UserId,
+func (a *MongoDBCloudUsersApiService) AddProjectRoleWithParams(ctx context.Context, args *AddProjectRoleApiParams) AddProjectRoleApiRequest {
+ return AddProjectRoleApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: args.GroupId,
+ userId: args.UserId,
+ addOrRemoveGroupRole: args.AddOrRemoveGroupRole,
}
}
-func (r GetUserApiRequest) Execute() (*CloudAppUser, *http.Response, error) {
- return r.ApiService.GetUserExecute(r)
+func (r AddProjectRoleApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.AddProjectRoleExecute(r)
}
/*
-GetUser Return One MongoDB Cloud User using Its ID
+AddProjectRole Add One Project Role to One MongoDB Cloud User
-Returns the details for one MongoDB Cloud user account with the specified unique identifier for the user. You can't use this endpoint to return information on an API Key. To return information about an API Key, use the [Return One Organization](#tag/Organizations/operation/getOrganization) API Key endpoint. You can always retrieve your own user account. If you are the owner of a MongoDB Cloud organization or project, you can also retrieve the user profile for any user with membership in that organization or project. To use this resource, the requesting API Key can have any role.
+Adds one project-level role to the MongoDB Cloud user. You can add a role to an active user or a user that has been invited to join the project. To use this resource, the requesting API Key must have the Project Owner role.
+
+**Note**: This resource cannot be used to add a role to users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param userId Unique 24-hexadecimal digit string that identifies this user.
- @return GetUserApiRequest
+ @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 userId Unique 24-hexadecimal digit string that identifies the pending or active user in the project. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Project resource and filter by username.
+ @return AddProjectRoleApiRequest
*/
-func (a *MongoDBCloudUsersApiService) GetUser(ctx context.Context, userId string) GetUserApiRequest {
- return GetUserApiRequest{
- ApiService: a,
- ctx: ctx,
- userId: userId,
+func (a *MongoDBCloudUsersApiService) AddProjectRole(ctx context.Context, groupId string, userId string, addOrRemoveGroupRole *AddOrRemoveGroupRole) AddProjectRoleApiRequest {
+ return AddProjectRoleApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: groupId,
+ userId: userId,
+ addOrRemoveGroupRole: addOrRemoveGroupRole,
}
}
-// GetUserExecute executes the request
+// AddProjectRoleExecute executes the request
//
-// @return CloudAppUser
-func (a *MongoDBCloudUsersApiService) GetUserExecute(r GetUserApiRequest) (*CloudAppUser, *http.Response, error) {
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) AddProjectRoleExecute(r AddProjectRoleApiRequest) (*OrgUserResponse, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
+ localVarHTTPMethod = http.MethodPost
localVarPostBody any
formFiles []formFile
- localVarReturnValue *CloudAppUser
+ localVarReturnValue *OrgUserResponse
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.GetUser")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.AddProjectRole")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/atlas/v2/users/{userId}"
+ localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/users/{userId}:addRole"
+ localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(r.groupId), -1)
localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(r.userId), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.addOrRemoveGroupRole == nil {
+ return localVarReturnValue, nil, reportError("addOrRemoveGroupRole is required and must be specified")
+ }
// to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
@@ -279,13 +611,15 @@ func (a *MongoDBCloudUsersApiService) GetUserExecute(r GetUserApiRequest) (*Clou
}
// to determine the Accept header (only first one)
- localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
+ // body params
+ localVarPostBody = r.addOrRemoveGroupRole
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
@@ -318,70 +652,1170 @@ func (a *MongoDBCloudUsersApiService) GetUserExecute(r GetUserApiRequest) (*Clou
return localVarReturnValue, localVarHTTPResponse, nil
}
-type GetUserByUsernameApiRequest struct {
- ctx context.Context
- ApiService MongoDBCloudUsersApi
- userName string
+type AddProjectUserApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ groupId string
+ groupUserRequest *GroupUserRequest
}
-type GetUserByUsernameApiParams struct {
- UserName string
+type AddProjectUserApiParams struct {
+ GroupId string
+ GroupUserRequest *GroupUserRequest
}
-func (a *MongoDBCloudUsersApiService) GetUserByUsernameWithParams(ctx context.Context, args *GetUserByUsernameApiParams) GetUserByUsernameApiRequest {
- return GetUserByUsernameApiRequest{
- ApiService: a,
- ctx: ctx,
- userName: args.UserName,
+func (a *MongoDBCloudUsersApiService) AddProjectUserWithParams(ctx context.Context, args *AddProjectUserApiParams) AddProjectUserApiRequest {
+ return AddProjectUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: args.GroupId,
+ groupUserRequest: args.GroupUserRequest,
}
}
-func (r GetUserByUsernameApiRequest) Execute() (*CloudAppUser, *http.Response, error) {
- return r.ApiService.GetUserByUsernameExecute(r)
+func (r AddProjectUserApiRequest) Execute() (*GroupUserResponse, *http.Response, error) {
+ return r.ApiService.AddProjectUserExecute(r)
}
/*
-GetUserByUsername Return One MongoDB Cloud User using Their Username
+AddProjectUser Add One MongoDB Cloud User to One Project
-Returns the details for one MongoDB Cloud user account with the specified username. You can't use this endpoint to return information about an API Key. To return information about an API Key, use the [Return One Organization](#tag/Organizations/operation/getOrganization) API Key endpoint. To use this resource, the requesting API Key can have any role.
+Adds one MongoDB Cloud user to one project. To use this resource, the requesting API Key must have the Project Owner role.
+- If the user has a pending invitation to join the project's organization, MongoDB Cloud modifies it and grants project access.
+- If the user doesn't have an invitation to join the organization, MongoDB Cloud sends a new invitation that grants the user organization and project access.
+- If the user is already active in the project's organization, MongoDB Cloud grants access to the project.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param userName Email address that belongs to the MongoDB Cloud user account. You cannot modify this address after creating the user.
- @return GetUserByUsernameApiRequest
+ @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 AddProjectUserApiRequest
*/
-func (a *MongoDBCloudUsersApiService) GetUserByUsername(ctx context.Context, userName string) GetUserByUsernameApiRequest {
- return GetUserByUsernameApiRequest{
- ApiService: a,
- ctx: ctx,
- userName: userName,
+func (a *MongoDBCloudUsersApiService) AddProjectUser(ctx context.Context, groupId string, groupUserRequest *GroupUserRequest) AddProjectUserApiRequest {
+ return AddProjectUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: groupId,
+ groupUserRequest: groupUserRequest,
}
}
-// GetUserByUsernameExecute executes the request
+// AddProjectUserExecute executes the request
//
-// @return CloudAppUser
-func (a *MongoDBCloudUsersApiService) GetUserByUsernameExecute(r GetUserByUsernameApiRequest) (*CloudAppUser, *http.Response, error) {
+// @return GroupUserResponse
+func (a *MongoDBCloudUsersApiService) AddProjectUserExecute(r AddProjectUserApiRequest) (*GroupUserResponse, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *GroupUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.AddProjectUser")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/users"
+ localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(r.groupId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.groupUserRequest == nil {
+ return localVarReturnValue, nil, reportError("groupUserRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.groupUserRequest
+ 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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type AddUserToTeamApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ orgId string
+ teamId string
+ addOrRemoveUserFromTeam *AddOrRemoveUserFromTeam
+}
+
+type AddUserToTeamApiParams struct {
+ OrgId string
+ TeamId string
+ AddOrRemoveUserFromTeam *AddOrRemoveUserFromTeam
+}
+
+func (a *MongoDBCloudUsersApiService) AddUserToTeamWithParams(ctx context.Context, args *AddUserToTeamApiParams) AddUserToTeamApiRequest {
+ return AddUserToTeamApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: args.OrgId,
+ teamId: args.TeamId,
+ addOrRemoveUserFromTeam: args.AddOrRemoveUserFromTeam,
+ }
+}
+
+func (r AddUserToTeamApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.AddUserToTeamExecute(r)
+}
+
+/*
+AddUserToTeam Add One MongoDB Cloud User to One Team
+
+Adds one MongoDB Cloud user to one team. You can add an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+**Note**: This resource cannot be used to add a user invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param teamId Unique 24-hexadecimal digit string that identifies the team to add the MongoDB Cloud user to.
+ @return AddUserToTeamApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) AddUserToTeam(ctx context.Context, orgId string, teamId string, addOrRemoveUserFromTeam *AddOrRemoveUserFromTeam) AddUserToTeamApiRequest {
+ return AddUserToTeamApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: orgId,
+ teamId: teamId,
+ addOrRemoveUserFromTeam: addOrRemoveUserFromTeam,
+ }
+}
+
+// AddUserToTeamExecute executes the request
+//
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) AddUserToTeamExecute(r AddUserToTeamApiRequest) (*OrgUserResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *OrgUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.AddUserToTeam")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/orgs/{orgId}/teams/{teamId}:addUser"
+ localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(r.orgId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"teamId"+"}", url.PathEscape(r.teamId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.addOrRemoveUserFromTeam == nil {
+ return localVarReturnValue, nil, reportError("addOrRemoveUserFromTeam is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.addOrRemoveUserFromTeam
+ 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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type CreateOrganizationUserApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ orgId string
+ orgUserRequest *OrgUserRequest
+}
+
+type CreateOrganizationUserApiParams struct {
+ OrgId string
+ OrgUserRequest *OrgUserRequest
+}
+
+func (a *MongoDBCloudUsersApiService) CreateOrganizationUserWithParams(ctx context.Context, args *CreateOrganizationUserApiParams) CreateOrganizationUserApiRequest {
+ return CreateOrganizationUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: args.OrgId,
+ orgUserRequest: args.OrgUserRequest,
+ }
+}
+
+func (r CreateOrganizationUserApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.CreateOrganizationUserExecute(r)
+}
+
+/*
+CreateOrganizationUser Add One MongoDB Cloud User to One Organization
+
+Invites one new or existing MongoDB Cloud user to join the organization. The invitation to join the organization will be sent to the username provided and must be accepted within 30 days. To use this resource, the requesting API Key must have the Organization Owner role.
+
+**Note**: If the user does not have an existing MongoDB Cloud account, they will be prompted to finish setting up an account upon accepting the invitation. If the user already has an account, they will still receive an invitation to access the organization.
+
+ @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.
+ @return CreateOrganizationUserApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) CreateOrganizationUser(ctx context.Context, orgId string, orgUserRequest *OrgUserRequest) CreateOrganizationUserApiRequest {
+ return CreateOrganizationUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: orgId,
+ orgUserRequest: orgUserRequest,
+ }
+}
+
+// CreateOrganizationUserExecute executes the request
+//
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) CreateOrganizationUserExecute(r CreateOrganizationUserApiRequest) (*OrgUserResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *OrgUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.CreateOrganizationUser")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/orgs/{orgId}/users"
+ localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(r.orgId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.orgUserRequest == nil {
+ return localVarReturnValue, nil, reportError("orgUserRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.orgUserRequest
+ 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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type CreateUserApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ cloudAppUser *CloudAppUser
+}
+
+type CreateUserApiParams struct {
+ CloudAppUser *CloudAppUser
+}
+
+func (a *MongoDBCloudUsersApiService) CreateUserWithParams(ctx context.Context, args *CreateUserApiParams) CreateUserApiRequest {
+ return CreateUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ cloudAppUser: args.CloudAppUser,
+ }
+}
+
+func (r CreateUserApiRequest) Execute() (*CloudAppUser, *http.Response, error) {
+ return r.ApiService.CreateUserExecute(r)
+}
+
+/*
+CreateUser Create One MongoDB Cloud User
+
+Creates one MongoDB Cloud user account. A MongoDB Cloud user account grants access to only the MongoDB Cloud application. To grant database access, create a database user. MongoDB Cloud sends an email to the users you specify, inviting them to join the project. Invited users don't have access to the project until they accept the invitation. Invitations expire after 30 days.
+
+ MongoDB Cloud limits MongoDB Cloud user membership to a maximum of 250 MongoDB Cloud users per team. MongoDB Cloud limits MongoDB Cloud user membership to 500 MongoDB Cloud users per project and 500 MongoDB Cloud users per organization, which includes the combined membership of all projects in the organization. MongoDB Cloud raises an error if an operation exceeds these limits. For example, if you have an organization with five projects, and each project has 100 MongoDB Cloud users, and each MongoDB Cloud user belongs to only one project, you can't add any MongoDB Cloud users to this organization without first removing existing MongoDB Cloud users from the organization.
+
+ To use this resource, the requesting API Key can have any role.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return CreateUserApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) CreateUser(ctx context.Context, cloudAppUser *CloudAppUser) CreateUserApiRequest {
+ return CreateUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ cloudAppUser: cloudAppUser,
+ }
+}
+
+// CreateUserExecute executes the request
+//
+// @return CloudAppUser
+func (a *MongoDBCloudUsersApiService) CreateUserExecute(r CreateUserApiRequest) (*CloudAppUser, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *CloudAppUser
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.CreateUser")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/users"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.cloudAppUser == nil {
+ return localVarReturnValue, nil, reportError("cloudAppUser is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2023-01-01+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.cloudAppUser
+ 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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type GetOrganizationUserApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ orgId string
+ userId string
+}
+
+type GetOrganizationUserApiParams struct {
+ OrgId string
+ UserId string
+}
+
+func (a *MongoDBCloudUsersApiService) GetOrganizationUserWithParams(ctx context.Context, args *GetOrganizationUserApiParams) GetOrganizationUserApiRequest {
+ return GetOrganizationUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: args.OrgId,
+ userId: args.UserId,
+ }
+}
+
+func (r GetOrganizationUserApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.GetOrganizationUserExecute(r)
+}
+
+/*
+GetOrganizationUser Return One MongoDB Cloud User in One Organization
+
+Returns information about the specified MongoDB Cloud user within the context of the specified organization. To use this resource, the requesting API Key must have the Organization Member role.
+
+**Note**: This resource can only be used to fetch information about MongoDB Cloud human users. To return information about an API Key, use the [Return One Organization API Key](#tag/Programmatic-API-Keys/operation/getApiKey) endpoint.
+
+**Note**: This resource does not return information about pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param userId Unique 24-hexadecimal digit string that identifies the pending or active user in the organization. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Organization resource and filter by username.
+ @return GetOrganizationUserApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) GetOrganizationUser(ctx context.Context, orgId string, userId string) GetOrganizationUserApiRequest {
+ return GetOrganizationUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: orgId,
+ userId: userId,
+ }
+}
+
+// GetOrganizationUserExecute executes the request
+//
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) GetOrganizationUserExecute(r GetOrganizationUserApiRequest) (*OrgUserResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *OrgUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.GetOrganizationUser")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/orgs/{orgId}/users/{userId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(r.orgId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(r.userId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type GetProjectUserApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ groupId string
+ userId string
+}
+
+type GetProjectUserApiParams struct {
+ GroupId string
+ UserId string
+}
+
+func (a *MongoDBCloudUsersApiService) GetProjectUserWithParams(ctx context.Context, args *GetProjectUserApiParams) GetProjectUserApiRequest {
+ return GetProjectUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: args.GroupId,
+ userId: args.UserId,
+ }
+}
+
+func (r GetProjectUserApiRequest) Execute() (*GroupUserResponse, *http.Response, error) {
+ return r.ApiService.GetProjectUserExecute(r)
+}
+
+/*
+GetProjectUser Return One MongoDB Cloud User in One Project
+
+Returns information about the specified MongoDB Cloud user within the context of the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+
+**Note**: You can only use this resource to fetch information about MongoDB Cloud human users. To return information about an API Key, use the [Return One Organization API Key](#tag/Programmatic-API-Keys/operation/getApiKey) endpoint.
+
+**Note**: This resource does not return information about pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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 userId Unique 24-hexadecimal digit string that identifies the pending or active user in the project. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Project resource and filter by username.
+ @return GetProjectUserApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) GetProjectUser(ctx context.Context, groupId string, userId string) GetProjectUserApiRequest {
+ return GetProjectUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: groupId,
+ userId: userId,
+ }
+}
+
+// GetProjectUserExecute executes the request
+//
+// @return GroupUserResponse
+func (a *MongoDBCloudUsersApiService) GetProjectUserExecute(r GetProjectUserApiRequest) (*GroupUserResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *GroupUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.GetProjectUser")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/users/{userId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(r.groupId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(r.userId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type GetUserApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ userId string
+}
+
+type GetUserApiParams struct {
+ UserId string
+}
+
+func (a *MongoDBCloudUsersApiService) GetUserWithParams(ctx context.Context, args *GetUserApiParams) GetUserApiRequest {
+ return GetUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ userId: args.UserId,
+ }
+}
+
+func (r GetUserApiRequest) Execute() (*CloudAppUser, *http.Response, error) {
+ return r.ApiService.GetUserExecute(r)
+}
+
+/*
+GetUser Return One MongoDB Cloud User using Its ID
+
+Returns the details for one MongoDB Cloud user account with the specified unique identifier for the user. You can't use this endpoint to return information on an API Key. To return information about an API Key, use the [Return One Organization](#tag/Organizations/operation/getOrganization) API Key endpoint. You can always retrieve your own user account. If you are the owner of a MongoDB Cloud organization or project, you can also retrieve the user profile for any user with membership in that organization or project. To use this resource, the requesting API Key can have any role.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param userId Unique 24-hexadecimal digit string that identifies this user.
+ @return GetUserApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) GetUser(ctx context.Context, userId string) GetUserApiRequest {
+ return GetUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ userId: userId,
+ }
+}
+
+// GetUserExecute executes the request
+//
+// @return CloudAppUser
+func (a *MongoDBCloudUsersApiService) GetUserExecute(r GetUserApiRequest) (*CloudAppUser, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *CloudAppUser
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.GetUser")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/users/{userId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(r.userId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type GetUserByUsernameApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ userName string
+}
+
+type GetUserByUsernameApiParams struct {
+ UserName string
+}
+
+func (a *MongoDBCloudUsersApiService) GetUserByUsernameWithParams(ctx context.Context, args *GetUserByUsernameApiParams) GetUserByUsernameApiRequest {
+ return GetUserByUsernameApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ userName: args.UserName,
+ }
+}
+
+func (r GetUserByUsernameApiRequest) Execute() (*CloudAppUser, *http.Response, error) {
+ return r.ApiService.GetUserByUsernameExecute(r)
+}
+
+/*
+GetUserByUsername Return One MongoDB Cloud User using Their Username
+
+Returns the details for one MongoDB Cloud user account with the specified username. You can't use this endpoint to return information about an API Key. To return information about an API Key, use the [Return One Organization](#tag/Organizations/operation/getOrganization) API Key endpoint. To use this resource, the requesting API Key can have any role.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param userName Email address that belongs to the MongoDB Cloud user account. You cannot modify this address after creating the user.
+ @return GetUserByUsernameApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) GetUserByUsername(ctx context.Context, userName string) GetUserByUsernameApiRequest {
+ return GetUserByUsernameApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ userName: userName,
+ }
+}
+
+// GetUserByUsernameExecute executes the request
+//
+// @return CloudAppUser
+func (a *MongoDBCloudUsersApiService) GetUserByUsernameExecute(r GetUserByUsernameApiRequest) (*CloudAppUser, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
localVarPostBody any
formFiles []formFile
localVarReturnValue *CloudAppUser
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.GetUserByUsername")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.GetUserByUsername")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/users/byName/{userName}"
+ localVarPath = strings.Replace(localVarPath, "{"+"userName"+"}", url.PathEscape(r.userName), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type RemoveOrganizationRoleApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ orgId string
+ userId string
+ addOrRemoveOrgRole *AddOrRemoveOrgRole
+}
+
+type RemoveOrganizationRoleApiParams struct {
+ OrgId string
+ UserId string
+ AddOrRemoveOrgRole *AddOrRemoveOrgRole
+}
+
+func (a *MongoDBCloudUsersApiService) RemoveOrganizationRoleWithParams(ctx context.Context, args *RemoveOrganizationRoleApiParams) RemoveOrganizationRoleApiRequest {
+ return RemoveOrganizationRoleApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: args.OrgId,
+ userId: args.UserId,
+ addOrRemoveOrgRole: args.AddOrRemoveOrgRole,
+ }
+}
+
+func (r RemoveOrganizationRoleApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.RemoveOrganizationRoleExecute(r)
+}
+
+/*
+RemoveOrganizationRole Remove One Organization Role from One MongoDB Cloud User
+
+Removes one organization-level role from the MongoDB Cloud user. You can remove a role from an active user or a user that has not yet accepted the invitation to join the organization. To replace a user's only role, add the new role before removing the old role. A user must have at least one role at all times. To use this resource, the requesting API Key must have the Organization Owner role.
+
+**Note**: This operation is atomic.
+
+**Note**: This resource cannot be used to remove a role from users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param userId Unique 24-hexadecimal digit string that identifies the pending or active user in the organization. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Organization resource and filter by username.
+ @return RemoveOrganizationRoleApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) RemoveOrganizationRole(ctx context.Context, orgId string, userId string, addOrRemoveOrgRole *AddOrRemoveOrgRole) RemoveOrganizationRoleApiRequest {
+ return RemoveOrganizationRoleApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: orgId,
+ userId: userId,
+ addOrRemoveOrgRole: addOrRemoveOrgRole,
+ }
+}
+
+// RemoveOrganizationRoleExecute executes the request
+//
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) RemoveOrganizationRoleExecute(r RemoveOrganizationRoleApiRequest) (*OrgUserResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *OrgUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.RemoveOrganizationRole")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/orgs/{orgId}/users/{userId}:removeRole"
+ localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(r.orgId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(r.userId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.addOrRemoveOrgRole == nil {
+ return localVarReturnValue, nil, reportError("addOrRemoveOrgRole is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.addOrRemoveOrgRole
+ 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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type RemoveProjectRoleApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ groupId string
+ userId string
+ addOrRemoveGroupRole *AddOrRemoveGroupRole
+}
+
+type RemoveProjectRoleApiParams struct {
+ GroupId string
+ UserId string
+ AddOrRemoveGroupRole *AddOrRemoveGroupRole
+}
+
+func (a *MongoDBCloudUsersApiService) RemoveProjectRoleWithParams(ctx context.Context, args *RemoveProjectRoleApiParams) RemoveProjectRoleApiRequest {
+ return RemoveProjectRoleApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: args.GroupId,
+ userId: args.UserId,
+ addOrRemoveGroupRole: args.AddOrRemoveGroupRole,
+ }
+}
+
+func (r RemoveProjectRoleApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.RemoveProjectRoleExecute(r)
+}
+
+/*
+RemoveProjectRole Remove One Project Role from One MongoDB Cloud User
+
+Removes one project-level role from the MongoDB Cloud user. You can remove a role from an active user or a user that has been invited to join the project. To replace a user's only role, add the new role before removing the old role. A user must have at least one role at all times. To use this resource, the requesting API Key must have the Project Owner role.
+
+**Note**: This resource cannot be used to remove a role from users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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 userId Unique 24-hexadecimal digit string that identifies the pending or active user in the project. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Project resource and filter by username.
+ @return RemoveProjectRoleApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) RemoveProjectRole(ctx context.Context, groupId string, userId string, addOrRemoveGroupRole *AddOrRemoveGroupRole) RemoveProjectRoleApiRequest {
+ return RemoveProjectRoleApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: groupId,
+ userId: userId,
+ addOrRemoveGroupRole: addOrRemoveGroupRole,
+ }
+}
+
+// RemoveProjectRoleExecute executes the request
+//
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) RemoveProjectRoleExecute(r RemoveProjectRoleApiRequest) (*OrgUserResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *OrgUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.RemoveProjectRole")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/atlas/v2/users/byName/{userName}"
- localVarPath = strings.Replace(localVarPath, "{"+"userName"+"}", url.PathEscape(r.userName), -1)
+ localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/users/{userId}:removeRole"
+ localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(r.groupId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(r.userId), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.addOrRemoveGroupRole == nil {
+ return localVarReturnValue, nil, reportError("addOrRemoveGroupRole is required and must be specified")
+ }
// to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
@@ -390,13 +1824,273 @@ func (a *MongoDBCloudUsersApiService) GetUserByUsernameExecute(r GetUserByUserna
}
// to determine the Accept header (only first one)
- localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.addOrRemoveGroupRole
+ 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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type RemoveUserFromTeamApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ orgId string
+ teamId string
+ addOrRemoveUserFromTeam *AddOrRemoveUserFromTeam
+}
+
+type RemoveUserFromTeamApiParams struct {
+ OrgId string
+ TeamId string
+ AddOrRemoveUserFromTeam *AddOrRemoveUserFromTeam
+}
+
+func (a *MongoDBCloudUsersApiService) RemoveUserFromTeamWithParams(ctx context.Context, args *RemoveUserFromTeamApiParams) RemoveUserFromTeamApiRequest {
+ return RemoveUserFromTeamApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: args.OrgId,
+ teamId: args.TeamId,
+ addOrRemoveUserFromTeam: args.AddOrRemoveUserFromTeam,
+ }
+}
+
+func (r RemoveUserFromTeamApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.RemoveUserFromTeamExecute(r)
+}
+
+/*
+RemoveUserFromTeam Remove One MongoDB Cloud User from One Team
+
+Removes one MongoDB Cloud user from one team. You can remove an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+**Note**: This resource cannot be used to remove a user invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param teamId Unique 24-hexadecimal digit string that identifies the team to remove the MongoDB user from.
+ @return RemoveUserFromTeamApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) RemoveUserFromTeam(ctx context.Context, orgId string, teamId string, addOrRemoveUserFromTeam *AddOrRemoveUserFromTeam) RemoveUserFromTeamApiRequest {
+ return RemoveUserFromTeamApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: orgId,
+ teamId: teamId,
+ addOrRemoveUserFromTeam: addOrRemoveUserFromTeam,
+ }
+}
+
+// RemoveUserFromTeamExecute executes the request
+//
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) RemoveUserFromTeamExecute(r RemoveUserFromTeamApiRequest) (*OrgUserResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *OrgUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.RemoveUserFromTeam")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/orgs/{orgId}/teams/{teamId}:removeUser"
+ localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(r.orgId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"teamId"+"}", url.PathEscape(r.teamId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.addOrRemoveUserFromTeam == nil {
+ return localVarReturnValue, nil, reportError("addOrRemoveUserFromTeam is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.addOrRemoveUserFromTeam
+ 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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type UpdateOrganizationUserApiRequest struct {
+ ctx context.Context
+ ApiService MongoDBCloudUsersApi
+ orgId string
+ userId string
+ orgUserUpdateRequest *OrgUserUpdateRequest
+}
+
+type UpdateOrganizationUserApiParams struct {
+ OrgId string
+ UserId string
+ OrgUserUpdateRequest *OrgUserUpdateRequest
+}
+
+func (a *MongoDBCloudUsersApiService) UpdateOrganizationUserWithParams(ctx context.Context, args *UpdateOrganizationUserApiParams) UpdateOrganizationUserApiRequest {
+ return UpdateOrganizationUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: args.OrgId,
+ userId: args.UserId,
+ orgUserUpdateRequest: args.OrgUserUpdateRequest,
+ }
+}
+
+func (r UpdateOrganizationUserApiRequest) Execute() (*OrgUserResponse, *http.Response, error) {
+ return r.ApiService.UpdateOrganizationUserExecute(r)
+}
+
+/*
+UpdateOrganizationUser Update One MongoDB Cloud User in One Organization
+
+Updates one MongoDB Cloud user in the specified organization. You can update an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+**Note**: Only include the fields you wish to update in the request body. Supplying a field with an empty value will reset that field on the user.
+
+**Note**: This resource cannot be used to update pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+
+ @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.
+ @param userId Unique 24-hexadecimal digit string that identifies the pending or active user in the organization. If you need to lookup a user's userId or verify a user's status in the organization, use the Return All MongoDB Cloud Users in One Organization resource and filter by username.
+ @return UpdateOrganizationUserApiRequest
+*/
+func (a *MongoDBCloudUsersApiService) UpdateOrganizationUser(ctx context.Context, orgId string, userId string, orgUserUpdateRequest *OrgUserUpdateRequest) UpdateOrganizationUserApiRequest {
+ return UpdateOrganizationUserApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ orgId: orgId,
+ userId: userId,
+ orgUserUpdateRequest: orgUserUpdateRequest,
+ }
+}
+
+// UpdateOrganizationUserExecute executes the request
+//
+// @return OrgUserResponse
+func (a *MongoDBCloudUsersApiService) UpdateOrganizationUserExecute(r UpdateOrganizationUserApiRequest) (*OrgUserResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *OrgUserResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MongoDBCloudUsersApiService.UpdateOrganizationUser")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/orgs/{orgId}/users/{userId}"
+ localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(r.orgId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(r.userId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.orgUserUpdateRequest == nil {
+ return localVarReturnValue, nil, reportError("orgUserUpdateRequest is required and must be specified")
+ }
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/vnd.atlas.2043-01-01+json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
+ // body params
+ localVarPostBody = r.orgUserUpdateRequest
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_open_api.go b/admin/api_open_api.go
new file mode 100644
index 000000000..dddb1d9a3
--- /dev/null
+++ b/admin/api_open_api.go
@@ -0,0 +1,187 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+import (
+ "context"
+ "io"
+ "net/http"
+ "net/url"
+)
+
+type OpenAPIApi interface {
+
+ /*
+ GetApiVersions Provides a list of versions for a given environment.
+
+ API that provides a list of available versionsfor a given environment.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return GetApiVersionsApiRequest
+ */
+ GetApiVersions(ctx context.Context) GetApiVersionsApiRequest
+ /*
+ GetApiVersions Provides a list of versions for a given environment.
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param GetApiVersionsApiParams - Parameters for the request
+ @return GetApiVersionsApiRequest
+ */
+ GetApiVersionsWithParams(ctx context.Context, args *GetApiVersionsApiParams) GetApiVersionsApiRequest
+
+ // Method available only for mocking purposes
+ GetApiVersionsExecute(r GetApiVersionsApiRequest) (*PaginatedApiVersions, *http.Response, error)
+}
+
+// OpenAPIApiService OpenAPIApi service
+type OpenAPIApiService service
+
+type GetApiVersionsApiRequest struct {
+ ctx context.Context
+ ApiService OpenAPIApi
+ itemsPerPage *int
+ pageNum *int
+ env *string
+}
+
+type GetApiVersionsApiParams struct {
+ ItemsPerPage *int
+ PageNum *int
+ Env *string
+}
+
+func (a *OpenAPIApiService) GetApiVersionsWithParams(ctx context.Context, args *GetApiVersionsApiParams) GetApiVersionsApiRequest {
+ return GetApiVersionsApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ itemsPerPage: args.ItemsPerPage,
+ pageNum: args.PageNum,
+ env: args.Env,
+ }
+}
+
+// Number of items that the response returns per page.
+func (r GetApiVersionsApiRequest) ItemsPerPage(itemsPerPage int) GetApiVersionsApiRequest {
+ r.itemsPerPage = &itemsPerPage
+ return r
+}
+
+// Number of the page that displays the current set of the total objects that the response returns.
+func (r GetApiVersionsApiRequest) PageNum(pageNum int) GetApiVersionsApiRequest {
+ r.pageNum = &pageNum
+ return r
+}
+
+// The environment to get the versions from. If not provided, it returnsthe versions for the given MongoDB URL. (E.g. prod for cloud.mongodb.com)
+func (r GetApiVersionsApiRequest) Env(env string) GetApiVersionsApiRequest {
+ r.env = &env
+ return r
+}
+
+func (r GetApiVersionsApiRequest) Execute() (*PaginatedApiVersions, *http.Response, error) {
+ return r.ApiService.GetApiVersionsExecute(r)
+}
+
+/*
+GetApiVersions Provides a list of versions for a given environment.
+
+API that provides a list of available versionsfor a given environment.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return GetApiVersionsApiRequest
+*/
+func (a *OpenAPIApiService) GetApiVersions(ctx context.Context) GetApiVersionsApiRequest {
+ return GetApiVersionsApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// GetApiVersionsExecute executes the request
+//
+// @return PaginatedApiVersions
+func (a *OpenAPIApiService) GetApiVersionsExecute(r GetApiVersionsApiRequest) (*PaginatedApiVersions, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *PaginatedApiVersions
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OpenAPIApiService.GetApiVersions")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/unauth/openapi/versions"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.itemsPerPage != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "itemsPerPage", r.itemsPerPage, "")
+ } else {
+ var defaultValue int = 100
+ r.itemsPerPage = &defaultValue
+ parameterAddToHeaderOrQuery(localVarQueryParams, "itemsPerPage", r.itemsPerPage, "")
+ }
+ if r.pageNum != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pageNum", r.pageNum, "")
+ } else {
+ var defaultValue int = 1
+ r.pageNum = &defaultValue
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pageNum", r.pageNum, "")
+ }
+ if r.env != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "env", r.env, "")
+ }
+ // 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 (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-08-05+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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
diff --git a/admin/api_organizations.go b/admin/api_organizations.go
index 6fbcca175..08904f731 100644
--- a/admin/api_organizations.go
+++ b/admin/api_organizations.go
@@ -236,7 +236,7 @@ type OrganizationsApi interface {
/*
ListOrganizationUsers Return All MongoDB Cloud Users in One Organization
- Returns details about the MongoDB Cloud users associated with the specified organization. Each MongoDB Cloud user returned must belong to the specified organization or to a project within the specified organization. To use this resource, the requesting API Key must have the Organization Member role.
+ Returns details about the MongoDB Cloud users associated with the specified organization. Each MongoDB Cloud user returned must belong to the specified organization or to a project within the specified organization. To use this resource, the requesting API Key must have the Organization Member 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 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.
@@ -254,7 +254,7 @@ type OrganizationsApi interface {
ListOrganizationUsersWithParams(ctx context.Context, args *ListOrganizationUsersApiParams) ListOrganizationUsersApiRequest
// Method available only for mocking purposes
- ListOrganizationUsersExecute(r ListOrganizationUsersApiRequest) (*PaginatedAppUser, *http.Response, error)
+ ListOrganizationUsersExecute(r ListOrganizationUsersApiRequest) (*PaginatedOrgUser, *http.Response, error)
/*
ListOrganizations Return All Organizations
@@ -281,7 +281,7 @@ type OrganizationsApi interface {
/*
RemoveOrganizationUser Remove One MongoDB Cloud User From One Organization
- Removes one MongoDB Cloud user from the specified organization. To use this resource, the requesting API Key must have the Organization User Admin role.
+ Removes one MongoDB Cloud user from the specified organization. To use this resource, the requesting API Key must have the Organization User 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 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.
@@ -1580,14 +1580,14 @@ func (r ListOrganizationUsersApiRequest) PageNum(pageNum int) ListOrganizationUs
return r
}
-func (r ListOrganizationUsersApiRequest) Execute() (*PaginatedAppUser, *http.Response, error) {
+func (r ListOrganizationUsersApiRequest) Execute() (*PaginatedOrgUser, *http.Response, error) {
return r.ApiService.ListOrganizationUsersExecute(r)
}
/*
ListOrganizationUsers Return All MongoDB Cloud Users in One Organization
-Returns details about the MongoDB Cloud users associated with the specified organization. Each MongoDB Cloud user returned must belong to the specified organization or to a project within the specified organization. To use this resource, the requesting API Key must have the Organization Member role.
+Returns details about the MongoDB Cloud users associated with the specified organization. Each MongoDB Cloud user returned must belong to the specified organization or to a project within the specified organization. To use this resource, the requesting API Key must have the Organization Member 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 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.
@@ -1603,13 +1603,13 @@ func (a *OrganizationsApiService) ListOrganizationUsers(ctx context.Context, org
// ListOrganizationUsersExecute executes the request
//
-// @return PaginatedAppUser
-func (a *OrganizationsApiService) ListOrganizationUsersExecute(r ListOrganizationUsersApiRequest) (*PaginatedAppUser, *http.Response, error) {
+// @return PaginatedOrgUser
+func (a *OrganizationsApiService) ListOrganizationUsersExecute(r ListOrganizationUsersApiRequest) (*PaginatedOrgUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody any
formFiles []formFile
- localVarReturnValue *PaginatedAppUser
+ localVarReturnValue *PaginatedOrgUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsApiService.ListOrganizationUsers")
@@ -1655,7 +1655,7 @@ func (a *OrganizationsApiService) ListOrganizationUsersExecute(r ListOrganizatio
}
// to determine the Accept header (only first one)
- localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1887,7 +1887,7 @@ func (r RemoveOrganizationUserApiRequest) Execute() (any, *http.Response, error)
/*
RemoveOrganizationUser Remove One MongoDB Cloud User From One Organization
-Removes one MongoDB Cloud user from the specified organization. To use this resource, the requesting API Key must have the Organization User Admin role.
+Removes one MongoDB Cloud user from the specified organization. To use this resource, the requesting API Key must have the Organization User 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 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.
@@ -1937,7 +1937,7 @@ func (a *OrganizationsApiService) RemoveOrganizationUserExecute(r RemoveOrganiza
}
// to determine the Accept header (only first one)
- localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
diff --git a/admin/api_performance_advisor.go b/admin/api_performance_advisor.go
index d60199fd7..07455e8ed 100644
--- a/admin/api_performance_advisor.go
+++ b/admin/api_performance_advisor.go
@@ -130,10 +130,58 @@ type PerformanceAdvisorApi interface {
// Method available only for mocking purposes
ListClusterSuggestedIndexesExecute(r ListClusterSuggestedIndexesApiRequest) (*PerformanceAdvisorResponse, *http.Response, error)
+ /*
+ ListDropIndexes Returns Suggested Indexes to Drop
+
+ Returns the indexes that the Performance Advisor suggests to drop. The Performance Advisor suggests dropping unused, redundant, and hidden indexes to improve write performance and increase storage space. To use this resource, the requesting API Key must have the Project Read Only 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.
+ @param clusterName Human-readable label that identifies the cluster.
+ @return ListDropIndexesApiRequest
+ */
+ ListDropIndexes(ctx context.Context, groupId string, clusterName string) ListDropIndexesApiRequest
+ /*
+ ListDropIndexes Returns Suggested Indexes to Drop
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param ListDropIndexesApiParams - Parameters for the request
+ @return ListDropIndexesApiRequest
+ */
+ ListDropIndexesWithParams(ctx context.Context, args *ListDropIndexesApiParams) ListDropIndexesApiRequest
+
+ // Method available only for mocking purposes
+ ListDropIndexesExecute(r ListDropIndexesApiRequest) (*PerformanceAdvisorResponse, *http.Response, error)
+
+ /*
+ ListSchemaAdvice Return Schema Advice
+
+ Returns the schema suggestions that the Performance Advisor detects. The Performance Advisor provides holistic schema recommendations for your cluster by sampling documents in your most active collections and collections with slow-running queries. To use this resource, the requesting API Key must have the Project Read Only 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.
+ @param clusterName Human-readable label that identifies the cluster.
+ @return ListSchemaAdviceApiRequest
+ */
+ ListSchemaAdvice(ctx context.Context, groupId string, clusterName string) ListSchemaAdviceApiRequest
+ /*
+ ListSchemaAdvice Return Schema Advice
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param ListSchemaAdviceApiParams - Parameters for the request
+ @return ListSchemaAdviceApiRequest
+ */
+ ListSchemaAdviceWithParams(ctx context.Context, args *ListSchemaAdviceApiParams) ListSchemaAdviceApiRequest
+
+ // Method available only for mocking purposes
+ ListSchemaAdviceExecute(r ListSchemaAdviceApiRequest) (*PerformanceAdvisorResponse, *http.Response, error)
+
/*
ListSlowQueries Return Slow Queries
- Returns log lines for slow queries that the Performance Advisor and Query Profiler identified. The Performance Advisor monitors queries that MongoDB considers slow and suggests new indexes to improve query performance. MongoDB Cloud bases the threshold for slow queries on the average time of operations on your cluster. This enables workload-relevant recommendations. To use this resource, the requesting API Key must have the Project Data Access Read Write role.
+ Returns log lines for slow queries that the Performance Advisor and Query Profiler identified. The Performance Advisor monitors queries that MongoDB considers slow and suggests new indexes to improve query performance. MongoDB Cloud bases the threshold for slow queries on the average time of operations on your cluster. This enables workload-relevant recommendations. To use this resource, the requesting API Key must have any Project Data Access role or the Project Observability Viewer 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.
@@ -802,6 +850,240 @@ func (a *PerformanceAdvisorApiService) ListClusterSuggestedIndexesExecute(r List
return localVarReturnValue, localVarHTTPResponse, nil
}
+type ListDropIndexesApiRequest struct {
+ ctx context.Context
+ ApiService PerformanceAdvisorApi
+ groupId string
+ clusterName string
+}
+
+type ListDropIndexesApiParams struct {
+ GroupId string
+ ClusterName string
+}
+
+func (a *PerformanceAdvisorApiService) ListDropIndexesWithParams(ctx context.Context, args *ListDropIndexesApiParams) ListDropIndexesApiRequest {
+ return ListDropIndexesApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: args.GroupId,
+ clusterName: args.ClusterName,
+ }
+}
+
+func (r ListDropIndexesApiRequest) Execute() (*PerformanceAdvisorResponse, *http.Response, error) {
+ return r.ApiService.ListDropIndexesExecute(r)
+}
+
+/*
+ListDropIndexes Returns Suggested Indexes to Drop
+
+Returns the indexes that the Performance Advisor suggests to drop. The Performance Advisor suggests dropping unused, redundant, and hidden indexes to improve write performance and increase storage space. To use this resource, the requesting API Key must have the Project Read Only 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.
+ @param clusterName Human-readable label that identifies the cluster.
+ @return ListDropIndexesApiRequest
+*/
+func (a *PerformanceAdvisorApiService) ListDropIndexes(ctx context.Context, groupId string, clusterName string) ListDropIndexesApiRequest {
+ return ListDropIndexesApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: groupId,
+ clusterName: clusterName,
+ }
+}
+
+// ListDropIndexesExecute executes the request
+//
+// @return PerformanceAdvisorResponse
+func (a *PerformanceAdvisorApiService) ListDropIndexesExecute(r ListDropIndexesApiRequest) (*PerformanceAdvisorResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *PerformanceAdvisorResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PerformanceAdvisorApiService.ListDropIndexes")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/dropIndexSuggestions"
+ localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(r.groupId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(r.clusterName), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-08-05+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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ListSchemaAdviceApiRequest struct {
+ ctx context.Context
+ ApiService PerformanceAdvisorApi
+ groupId string
+ clusterName string
+}
+
+type ListSchemaAdviceApiParams struct {
+ GroupId string
+ ClusterName string
+}
+
+func (a *PerformanceAdvisorApiService) ListSchemaAdviceWithParams(ctx context.Context, args *ListSchemaAdviceApiParams) ListSchemaAdviceApiRequest {
+ return ListSchemaAdviceApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: args.GroupId,
+ clusterName: args.ClusterName,
+ }
+}
+
+func (r ListSchemaAdviceApiRequest) Execute() (*PerformanceAdvisorResponse, *http.Response, error) {
+ return r.ApiService.ListSchemaAdviceExecute(r)
+}
+
+/*
+ListSchemaAdvice Return Schema Advice
+
+Returns the schema suggestions that the Performance Advisor detects. The Performance Advisor provides holistic schema recommendations for your cluster by sampling documents in your most active collections and collections with slow-running queries. To use this resource, the requesting API Key must have the Project Read Only 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.
+ @param clusterName Human-readable label that identifies the cluster.
+ @return ListSchemaAdviceApiRequest
+*/
+func (a *PerformanceAdvisorApiService) ListSchemaAdvice(ctx context.Context, groupId string, clusterName string) ListSchemaAdviceApiRequest {
+ return ListSchemaAdviceApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: groupId,
+ clusterName: clusterName,
+ }
+}
+
+// ListSchemaAdviceExecute executes the request
+//
+// @return PerformanceAdvisorResponse
+func (a *PerformanceAdvisorApiService) ListSchemaAdviceExecute(r ListSchemaAdviceApiRequest) (*PerformanceAdvisorResponse, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue *PerformanceAdvisorResponse
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PerformanceAdvisorApiService.ListSchemaAdvice")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/schemaAdvice"
+ localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(r.groupId), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"clusterName"+"}", url.PathEscape(r.clusterName), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // 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 (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-08-05+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
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
type ListSlowQueriesApiRequest struct {
ctx context.Context
ApiService PerformanceAdvisorApi
@@ -866,7 +1148,7 @@ func (r ListSlowQueriesApiRequest) Execute() (*PerformanceAdvisorSlowQueryList,
/*
ListSlowQueries Return Slow Queries
-Returns log lines for slow queries that the Performance Advisor and Query Profiler identified. The Performance Advisor monitors queries that MongoDB considers slow and suggests new indexes to improve query performance. MongoDB Cloud bases the threshold for slow queries on the average time of operations on your cluster. This enables workload-relevant recommendations. To use this resource, the requesting API Key must have the Project Data Access Read Write role.
+Returns log lines for slow queries that the Performance Advisor and Query Profiler identified. The Performance Advisor monitors queries that MongoDB considers slow and suggests new indexes to improve query performance. MongoDB Cloud bases the threshold for slow queries on the average time of operations on your cluster. This enables workload-relevant recommendations. To use this resource, the requesting API Key must have any Project Data Access role or the Project Observability Viewer 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.
diff --git a/admin/api_projects.go b/admin/api_projects.go
index b7b75a7f0..3f2a1a155 100644
--- a/admin/api_projects.go
+++ b/admin/api_projects.go
@@ -432,7 +432,7 @@ type ProjectsApi interface {
/*
RemoveProjectUser Remove One User from One Project
- Removes the specified user from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+ Removes the specified user from the specified project. 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.
@@ -451,7 +451,7 @@ type ProjectsApi interface {
RemoveProjectUserWithParams(ctx context.Context, args *RemoveProjectUserApiParams) RemoveProjectUserApiRequest
// Method available only for mocking purposes
- RemoveProjectUserExecute(r RemoveProjectUserApiRequest) (*http.Response, error)
+ RemoveProjectUserExecute(r RemoveProjectUserApiRequest) (any, *http.Response, error)
/*
ReturnAllIpAddresses Return All IP Addresses for One Project
@@ -2845,14 +2845,14 @@ func (a *ProjectsApiService) RemoveProjectUserWithParams(ctx context.Context, ar
}
}
-func (r RemoveProjectUserApiRequest) Execute() (*http.Response, error) {
+func (r RemoveProjectUserApiRequest) Execute() (any, *http.Response, error) {
return r.ApiService.RemoveProjectUserExecute(r)
}
/*
RemoveProjectUser Remove One User from One Project
-Removes the specified user from the specified project. To use this resource, the requesting API Key must have the Project Owner role.
+Removes the specified user from the specified project. 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.
@@ -2869,16 +2869,19 @@ func (a *ProjectsApiService) RemoveProjectUser(ctx context.Context, groupId stri
}
// RemoveProjectUserExecute executes the request
-func (a *ProjectsApiService) RemoveProjectUserExecute(r RemoveProjectUserApiRequest) (*http.Response, error) {
+//
+// @return any
+func (a *ProjectsApiService) RemoveProjectUserExecute(r RemoveProjectUserApiRequest) (any, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody any
- formFiles []formFile
+ localVarHTTPMethod = http.MethodDelete
+ localVarPostBody any
+ formFiles []formFile
+ localVarReturnValue any
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectsApiService.RemoveProjectUser")
if err != nil {
- return nil, &GenericOpenAPIError{error: err.Error()}
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/users/{userId}"
@@ -2899,7 +2902,7 @@ func (a *ProjectsApiService) RemoveProjectUserExecute(r RemoveProjectUserApiRequ
}
// to determine the Accept header (only first one)
- localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -2908,20 +2911,34 @@ func (a *ProjectsApiService) RemoveProjectUserExecute(r RemoveProjectUserApiRequ
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
- return nil, err
+ return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
- return localVarHTTPResponse, err
+ return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
- return localVarHTTPResponse, newErr
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarHTTPResponse.Body, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ defer localVarHTTPResponse.Body.Close()
+ buf, readErr := io.ReadAll(localVarHTTPResponse.Body)
+ if readErr != nil {
+ err = readErr
+ }
+ newErr := &GenericOpenAPIError{
+ body: buf,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
}
- return localVarHTTPResponse, nil
+ return localVarReturnValue, localVarHTTPResponse, nil
}
type ReturnAllIpAddressesApiRequest struct {
diff --git a/admin/api_streams.go b/admin/api_streams.go
index 01abe866d..33f931e64 100644
--- a/admin/api_streams.go
+++ b/admin/api_streams.go
@@ -328,6 +328,29 @@ type StreamsApi interface {
// Method available only for mocking purposes
GetAccountDetailsExecute(r GetAccountDetailsApiRequest) (*AWSAccountDetails, *http.Response, error)
+ /*
+ GetActiveVpcPeeringConnections Returns all the active incoming VPC Peering Connections.
+
+ Returns a list of active incoming VPC Peering Connections.
+
+ @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 GetActiveVpcPeeringConnectionsApiRequest
+ */
+ GetActiveVpcPeeringConnections(ctx context.Context, groupId string) GetActiveVpcPeeringConnectionsApiRequest
+ /*
+ GetActiveVpcPeeringConnections Returns all the active incoming VPC Peering Connections.
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param GetActiveVpcPeeringConnectionsApiParams - Parameters for the request
+ @return GetActiveVpcPeeringConnectionsApiRequest
+ */
+ GetActiveVpcPeeringConnectionsWithParams(ctx context.Context, args *GetActiveVpcPeeringConnectionsApiParams) GetActiveVpcPeeringConnectionsApiRequest
+
+ // Method available only for mocking purposes
+ GetActiveVpcPeeringConnectionsExecute(r GetActiveVpcPeeringConnectionsApiRequest) (*http.Response, error)
+
/*
GetPrivateLinkConnection Return One PrivateLink Connection
@@ -2294,6 +2317,132 @@ func (a *StreamsApiService) GetAccountDetailsExecute(r GetAccountDetailsApiReque
return localVarReturnValue, localVarHTTPResponse, nil
}
+type GetActiveVpcPeeringConnectionsApiRequest struct {
+ ctx context.Context
+ ApiService StreamsApi
+ groupId string
+ itemsPerPage *int
+ pageNum *int
+}
+
+type GetActiveVpcPeeringConnectionsApiParams struct {
+ GroupId string
+ ItemsPerPage *int
+ PageNum *int
+}
+
+func (a *StreamsApiService) GetActiveVpcPeeringConnectionsWithParams(ctx context.Context, args *GetActiveVpcPeeringConnectionsApiParams) GetActiveVpcPeeringConnectionsApiRequest {
+ return GetActiveVpcPeeringConnectionsApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: args.GroupId,
+ itemsPerPage: args.ItemsPerPage,
+ pageNum: args.PageNum,
+ }
+}
+
+// Number of items that the response returns per page.
+func (r GetActiveVpcPeeringConnectionsApiRequest) ItemsPerPage(itemsPerPage int) GetActiveVpcPeeringConnectionsApiRequest {
+ r.itemsPerPage = &itemsPerPage
+ return r
+}
+
+// Number of the page that displays the current set of the total objects that the response returns.
+func (r GetActiveVpcPeeringConnectionsApiRequest) PageNum(pageNum int) GetActiveVpcPeeringConnectionsApiRequest {
+ r.pageNum = &pageNum
+ return r
+}
+
+func (r GetActiveVpcPeeringConnectionsApiRequest) Execute() (*http.Response, error) {
+ return r.ApiService.GetActiveVpcPeeringConnectionsExecute(r)
+}
+
+/*
+GetActiveVpcPeeringConnections Returns all the active incoming VPC Peering Connections.
+
+Returns a list of active incoming VPC Peering Connections.
+
+ @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 GetActiveVpcPeeringConnectionsApiRequest
+*/
+func (a *StreamsApiService) GetActiveVpcPeeringConnections(ctx context.Context, groupId string) GetActiveVpcPeeringConnectionsApiRequest {
+ return GetActiveVpcPeeringConnectionsApiRequest{
+ ApiService: a,
+ ctx: ctx,
+ groupId: groupId,
+ }
+}
+
+// GetActiveVpcPeeringConnectionsExecute executes the request
+func (a *StreamsApiService) GetActiveVpcPeeringConnectionsExecute(r GetActiveVpcPeeringConnectionsApiRequest) (*http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody any
+ formFiles []formFile
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.GetActiveVpcPeeringConnections")
+ if err != nil {
+ return nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/streams/activeVpcPeeringConnections"
+ localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(r.groupId), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.itemsPerPage != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "itemsPerPage", r.itemsPerPage, "")
+ } else {
+ var defaultValue int = 100
+ r.itemsPerPage = &defaultValue
+ parameterAddToHeaderOrQuery(localVarQueryParams, "itemsPerPage", r.itemsPerPage, "")
+ }
+ if r.pageNum != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pageNum", r.pageNum, "")
+ } else {
+ var defaultValue int = 1
+ r.pageNum = &defaultValue
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pageNum", r.pageNum, "")
+ }
+ // 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 (only first one)
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-11-13+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 nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := a.client.makeApiError(localVarHTTPResponse, localVarHTTPMethod, localVarPath)
+ return localVarHTTPResponse, newErr
+ }
+
+ return localVarHTTPResponse, nil
+}
+
type GetPrivateLinkConnectionApiRequest struct {
ctx context.Context
ApiService StreamsApi
diff --git a/admin/api_teams.go b/admin/api_teams.go
index cd533871d..b0b5e22a4 100644
--- a/admin/api_teams.go
+++ b/admin/api_teams.go
@@ -206,7 +206,7 @@ type TeamsApi interface {
/*
ListTeamUsers Return All MongoDB Cloud Users Assigned to One Team
- Returns all MongoDB Cloud users assigned to the team specified using its unique 24-hexadecimal digit identifier. This team belongs to one organization. Teams enable you to grant project access roles to MongoDB Cloud users. To use this resource, the requesting API Key must have the Organization Member role.
+ Returns all MongoDB Cloud users assigned to the team specified using its unique 24-hexadecimal digit identifier. This team belongs to one organization. Teams enable you to grant project access roles to MongoDB Cloud users. To use this resource, the requesting API Key must have the Organization Member 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 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.
@@ -225,7 +225,7 @@ type TeamsApi interface {
ListTeamUsersWithParams(ctx context.Context, args *ListTeamUsersApiParams) ListTeamUsersApiRequest
// Method available only for mocking purposes
- ListTeamUsersExecute(r ListTeamUsersApiRequest) (*PaginatedAppUser, *http.Response, error)
+ ListTeamUsersExecute(r ListTeamUsersApiRequest) (*PaginatedOrgUser, *http.Response, error)
/*
RemoveProjectTeam Remove One Team from One Project
@@ -1404,14 +1404,14 @@ func (r ListTeamUsersApiRequest) PageNum(pageNum int) ListTeamUsersApiRequest {
return r
}
-func (r ListTeamUsersApiRequest) Execute() (*PaginatedAppUser, *http.Response, error) {
+func (r ListTeamUsersApiRequest) Execute() (*PaginatedOrgUser, *http.Response, error) {
return r.ApiService.ListTeamUsersExecute(r)
}
/*
ListTeamUsers Return All MongoDB Cloud Users Assigned to One Team
-Returns all MongoDB Cloud users assigned to the team specified using its unique 24-hexadecimal digit identifier. This team belongs to one organization. Teams enable you to grant project access roles to MongoDB Cloud users. To use this resource, the requesting API Key must have the Organization Member role.
+Returns all MongoDB Cloud users assigned to the team specified using its unique 24-hexadecimal digit identifier. This team belongs to one organization. Teams enable you to grant project access roles to MongoDB Cloud users. To use this resource, the requesting API Key must have the Organization Member 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 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.
@@ -1429,13 +1429,13 @@ func (a *TeamsApiService) ListTeamUsers(ctx context.Context, orgId string, teamI
// ListTeamUsersExecute executes the request
//
-// @return PaginatedAppUser
-func (a *TeamsApiService) ListTeamUsersExecute(r ListTeamUsersApiRequest) (*PaginatedAppUser, *http.Response, error) {
+// @return PaginatedOrgUser
+func (a *TeamsApiService) ListTeamUsersExecute(r ListTeamUsersApiRequest) (*PaginatedOrgUser, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody any
formFiles []formFile
- localVarReturnValue *PaginatedAppUser
+ localVarReturnValue *PaginatedOrgUser
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsApiService.ListTeamUsers")
@@ -1475,7 +1475,7 @@ func (a *TeamsApiService) ListTeamUsersExecute(r ListTeamUsersApiRequest) (*Pagi
}
// to determine the Accept header (only first one)
- localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
+ localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2043-01-01+json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
diff --git a/admin/atlas_client.go b/admin/atlas_client.go
index 3b55249a6..d15277975 100644
--- a/admin/atlas_client.go
+++ b/admin/atlas_client.go
@@ -1,4 +1,4 @@
-package admin // import "go.mongodb.org/atlas-sdk/v20241113004/admin"
+package admin // import "github.com/mongodb/atlas-sdk-go/admin"
import (
"context"
@@ -7,9 +7,9 @@ import (
"strings"
"github.com/mongodb-forks/digest"
- "go.mongodb.org/atlas-sdk/v20241113004/auth"
- "go.mongodb.org/atlas-sdk/v20241113004/auth/clientcredentials"
- "go.mongodb.org/atlas-sdk/v20241113004/internal/core"
+ "github.com/mongodb/atlas-sdk-go/auth"
+ "github.com/mongodb/atlas-sdk-go/auth/clientcredentials"
+ "github.com/mongodb/atlas-sdk-go/internal/core"
)
const (
diff --git a/admin/client.go b/admin/client.go
index c09944c28..802d2070f 100644
--- a/admin/client.go
+++ b/admin/client.go
@@ -101,6 +101,8 @@ type APIClient struct {
OnlineArchiveApi OnlineArchiveApi
+ OpenAPIApi OpenAPIApi
+
OrganizationsApi OrganizationsApi
PerformanceAdvisorApi PerformanceAdvisorApi
@@ -187,6 +189,7 @@ func NewAPIClient(cfg *Configuration) *APIClient {
c.MonitoringAndLogsApi = (*MonitoringAndLogsApiService)(&c.common)
c.NetworkPeeringApi = (*NetworkPeeringApiService)(&c.common)
c.OnlineArchiveApi = (*OnlineArchiveApiService)(&c.common)
+ c.OpenAPIApi = (*OpenAPIApiService)(&c.common)
c.OrganizationsApi = (*OrganizationsApiService)(&c.common)
c.PerformanceAdvisorApi = (*PerformanceAdvisorApiService)(&c.common)
c.PrivateEndpointServicesApi = (*PrivateEndpointServicesApiService)(&c.common)
diff --git a/admin/model_add_or_remove_group_role.go b/admin/model_add_or_remove_group_role.go
new file mode 100644
index 000000000..aa625a076
--- /dev/null
+++ b/admin/model_add_or_remove_group_role.go
@@ -0,0 +1,51 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// AddOrRemoveGroupRole struct for AddOrRemoveGroupRole
+type AddOrRemoveGroupRole struct {
+ // Project-level role.
+ GroupRole string `json:"groupRole"`
+}
+
+// NewAddOrRemoveGroupRole instantiates a new AddOrRemoveGroupRole 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 NewAddOrRemoveGroupRole(groupRole string) *AddOrRemoveGroupRole {
+ this := AddOrRemoveGroupRole{}
+ this.GroupRole = groupRole
+ return &this
+}
+
+// NewAddOrRemoveGroupRoleWithDefaults instantiates a new AddOrRemoveGroupRole 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 NewAddOrRemoveGroupRoleWithDefaults() *AddOrRemoveGroupRole {
+ this := AddOrRemoveGroupRole{}
+ return &this
+}
+
+// GetGroupRole returns the GroupRole field value
+func (o *AddOrRemoveGroupRole) GetGroupRole() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.GroupRole
+}
+
+// GetGroupRoleOk returns a tuple with the GroupRole field value
+// and a boolean to check if the value has been set.
+func (o *AddOrRemoveGroupRole) GetGroupRoleOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.GroupRole, true
+}
+
+// SetGroupRole sets field value
+func (o *AddOrRemoveGroupRole) SetGroupRole(v string) {
+ o.GroupRole = v
+}
diff --git a/admin/model_add_or_remove_org_role.go b/admin/model_add_or_remove_org_role.go
new file mode 100644
index 000000000..20928d5bd
--- /dev/null
+++ b/admin/model_add_or_remove_org_role.go
@@ -0,0 +1,51 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// AddOrRemoveOrgRole struct for AddOrRemoveOrgRole
+type AddOrRemoveOrgRole struct {
+ // Organization-level role.
+ OrgRole string `json:"orgRole"`
+}
+
+// NewAddOrRemoveOrgRole instantiates a new AddOrRemoveOrgRole 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 NewAddOrRemoveOrgRole(orgRole string) *AddOrRemoveOrgRole {
+ this := AddOrRemoveOrgRole{}
+ this.OrgRole = orgRole
+ return &this
+}
+
+// NewAddOrRemoveOrgRoleWithDefaults instantiates a new AddOrRemoveOrgRole 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 NewAddOrRemoveOrgRoleWithDefaults() *AddOrRemoveOrgRole {
+ this := AddOrRemoveOrgRole{}
+ return &this
+}
+
+// GetOrgRole returns the OrgRole field value
+func (o *AddOrRemoveOrgRole) GetOrgRole() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OrgRole
+}
+
+// GetOrgRoleOk returns a tuple with the OrgRole field value
+// and a boolean to check if the value has been set.
+func (o *AddOrRemoveOrgRole) GetOrgRoleOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrgRole, true
+}
+
+// SetOrgRole sets field value
+func (o *AddOrRemoveOrgRole) SetOrgRole(v string) {
+ o.OrgRole = v
+}
diff --git a/admin/model_add_or_remove_user_from_team.go b/admin/model_add_or_remove_user_from_team.go
new file mode 100644
index 000000000..c834a26e9
--- /dev/null
+++ b/admin/model_add_or_remove_user_from_team.go
@@ -0,0 +1,52 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// AddOrRemoveUserFromTeam struct for AddOrRemoveUserFromTeam
+type AddOrRemoveUserFromTeam struct {
+ // Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
+ // Write only field.
+ Id string `json:"id"`
+}
+
+// NewAddOrRemoveUserFromTeam instantiates a new AddOrRemoveUserFromTeam 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 NewAddOrRemoveUserFromTeam(id string) *AddOrRemoveUserFromTeam {
+ this := AddOrRemoveUserFromTeam{}
+ this.Id = id
+ return &this
+}
+
+// NewAddOrRemoveUserFromTeamWithDefaults instantiates a new AddOrRemoveUserFromTeam 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 NewAddOrRemoveUserFromTeamWithDefaults() *AddOrRemoveUserFromTeam {
+ this := AddOrRemoveUserFromTeam{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *AddOrRemoveUserFromTeam) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *AddOrRemoveUserFromTeam) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *AddOrRemoveUserFromTeam) SetId(v string) {
+ o.Id = v
+}
diff --git a/admin/model_alerts_notification_root_for_group.go b/admin/model_alerts_notification_root_for_group.go
index 38ad1bcd4..966e4c35b 100644
--- a/admin/model_alerts_notification_root_for_group.go
+++ b/admin/model_alerts_notification_root_for_group.go
@@ -6,7 +6,7 @@ package admin
type AlertsNotificationRootForGroup struct {
// Datadog API Key that MongoDB Cloud needs to send alert notifications to Datadog. You can find this API key in the Datadog dashboard. The resource requires this parameter when `\"notifications.[n].typeName\" : \"DATADOG\"`. **NOTE**: After you create a notification which requires an API or integration key, the key appears partially redacted when you: * View or edit the alert through the Atlas UI. * Query the alert for the notification through the Atlas Administration API.
DatadogApiKey *string `json:"datadogApiKey,omitempty"`
- // Datadog region that indicates which API Uniform Resource Locator (URL) to use. The resource requires this parameter when `\"notifications.[n].typeName\" : \"DATADOG\"`. To learn more about Datadog's regions, see Datadog Sites.
+ // Datadog region that indicates which API Uniform Resource Locator (URL) to use. The resource requires this parameter when `\"notifications.[n].typeName\" : \"DATADOG\"`.
DatadogRegion *string `json:"datadogRegion,omitempty"`
// Number of minutes that MongoDB Cloud waits after detecting an alert condition before it sends out the first notification.
DelayMin *int `json:"delayMin,omitempty"`
@@ -56,7 +56,7 @@ type AlertsNotificationRootForGroup struct {
VictorOpsApiKey *string `json:"victorOpsApiKey,omitempty"`
// Routing key that MongoDB Cloud needs to send alert notifications to Splunk On-Call. The resource requires this parameter when `\"notifications.[n].typeName\" : \"VICTOR_OPS\"`. If the key later becomes invalid, MongoDB Cloud sends an email to the project owners. If the key remains invalid, MongoDB Cloud removes it.
VictorOpsRoutingKey *string `json:"victorOpsRoutingKey,omitempty"`
- // Authentication secret for a webhook-based alert. Atlas returns this value if you set `\"notifications.[n].typeName\" :\"WEBHOOK\"` and either: * You set `notification.[n].webhookSecret` to a non-empty string * You set a default webhookSecret either on the [Integrations](https://www.mongodb.com/docs/atlas/tutorial/third-party-service-integrations/#std-label-third-party-integrations) page, or with the [Integrations API](#tag/Third-Party-Service-Integrations/operation/createIntegration) **NOTE**: When you view or edit the alert for a webhook notification, the secret appears completely redacted.
+ // Authentication secret for a webhook-based alert. Atlas returns this value if you set `\"notifications.[n].typeName\" :\"WEBHOOK\"` and either: * You set `notification.[n].webhookSecret` to a non-empty string * You set a default webhookSecret either on the Integrations page, or with the [Integrations API](#tag/Third-Party-Service-Integrations/operation/createIntegration) **NOTE**: When you view or edit the alert for a webhook notification, the secret appears completely redacted.
WebhookSecret *string `json:"webhookSecret,omitempty"`
// Target URL for a webhook-based alert. Atlas returns this value if you set `\"notifications.[n].typeName\" :\"WEBHOOK\"` and either: * You set `notification.[n].webhookURL` to a non-empty string * You set a default webhookUrl either on the [Integrations](https://www.mongodb.com/docs/atlas/tutorial/third-party-service-integrations/#std-label-third-party-integrations) page, or with the [Integrations API](#tag/Third-Party-Service-Integrations/operation/createIntegration) **NOTE**: When you view or edit the alert for a Webhook URL notification, the URL appears partially redacted.
WebhookUrl *string `json:"webhookUrl,omitempty"`
diff --git a/admin/model_api_search_deployment_request.go b/admin/model_api_search_deployment_request.go
index f6be4033e..0f5318ebb 100644
--- a/admin/model_api_search_deployment_request.go
+++ b/admin/model_api_search_deployment_request.go
@@ -4,7 +4,7 @@ package admin
// ApiSearchDeploymentRequest struct for ApiSearchDeploymentRequest
type ApiSearchDeploymentRequest struct {
- // List of settings that configure the Search Nodes for your cluster.
+ // List of settings that configure the Search Nodes for your cluster. **NOTE**: We accept a single configuration for all nodes currently.
Specs []ApiSearchDeploymentSpec `json:"specs"`
}
diff --git a/admin/model_api_search_deployment_response.go b/admin/model_api_search_deployment_response.go
index 6eb9c423d..91fe67fac 100644
--- a/admin/model_api_search_deployment_response.go
+++ b/admin/model_api_search_deployment_response.go
@@ -10,7 +10,7 @@ type ApiSearchDeploymentResponse struct {
// Unique 24-hexadecimal digit string that identifies the search deployment.
// Read only field.
Id *string `json:"id,omitempty"`
- // List of settings that configure the Search Nodes for your cluster.
+ // List of settings that configure the Search Nodes for your cluster. The configuration will be returned for each region and shard.
// Read only field.
Specs *[]ApiSearchDeploymentSpec `json:"specs,omitempty"`
// Human-readable label that indicates the current operating condition of this search deployment.
diff --git a/admin/model_api_version.go b/admin/model_api_version.go
new file mode 100644
index 000000000..3e3511811
--- /dev/null
+++ b/admin/model_api_version.go
@@ -0,0 +1,59 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// ApiVersion struct for ApiVersion
+type ApiVersion struct {
+ // Object representing a version of the Atlas Admin API.
+ Version *string `json:"version,omitempty"`
+}
+
+// NewApiVersion instantiates a new ApiVersion 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 NewApiVersion() *ApiVersion {
+ this := ApiVersion{}
+ return &this
+}
+
+// NewApiVersionWithDefaults instantiates a new ApiVersion 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 NewApiVersionWithDefaults() *ApiVersion {
+ this := ApiVersion{}
+ return &this
+}
+
+// GetVersion returns the Version field value if set, zero value otherwise
+func (o *ApiVersion) GetVersion() string {
+ if o == nil || IsNil(o.Version) {
+ var ret string
+ return ret
+ }
+ return *o.Version
+}
+
+// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ApiVersion) GetVersionOk() (*string, bool) {
+ if o == nil || IsNil(o.Version) {
+ return nil, false
+ }
+
+ return o.Version, true
+}
+
+// HasVersion returns a boolean if a field has been set.
+func (o *ApiVersion) HasVersion() bool {
+ if o != nil && !IsNil(o.Version) {
+ return true
+ }
+
+ return false
+}
+
+// SetVersion gets a reference to the given string and assigns it to the Version field.
+func (o *ApiVersion) SetVersion(v string) {
+ o.Version = &v
+}
diff --git a/admin/model_awskms_configuration.go b/admin/model_awskms_configuration.go
index 0207eb280..339ab1742 100644
--- a/admin/model_awskms_configuration.go
+++ b/admin/model_awskms_configuration.go
@@ -12,6 +12,8 @@ type AWSKMSConfiguration struct {
Enabled *bool `json:"enabled,omitempty"`
// Physical location where MongoDB Cloud deploys your AWS-hosted MongoDB cluster nodes. The region you choose can affect network latency for clients accessing your databases. When MongoDB Cloud deploys a dedicated cluster, it checks if a VPC or VPC connection exists for that provider and region. If not, MongoDB Cloud creates them as part of the deployment. MongoDB Cloud assigns the VPC a CIDR block. To limit a new VPC peering connection to one CIDR block and region, create the connection first. Deploy the cluster after the connection starts.
Region *string `json:"region,omitempty"`
+ // Enable connection to your Amazon Web Services (AWS) Key Management Service (KMS) over private networking.
+ RequirePrivateNetworking *bool `json:"requirePrivateNetworking,omitempty"`
// Unique 24-hexadecimal digit string that identifies an Amazon Web Services (AWS) Identity and Access Management (IAM) role. This IAM role has the permissions required to manage your AWS customer master key.
// Write only field.
RoleId *string `json:"roleId,omitempty"`
@@ -172,6 +174,39 @@ func (o *AWSKMSConfiguration) SetRegion(v string) {
o.Region = &v
}
+// GetRequirePrivateNetworking returns the RequirePrivateNetworking field value if set, zero value otherwise
+func (o *AWSKMSConfiguration) GetRequirePrivateNetworking() bool {
+ if o == nil || IsNil(o.RequirePrivateNetworking) {
+ var ret bool
+ return ret
+ }
+ return *o.RequirePrivateNetworking
+}
+
+// GetRequirePrivateNetworkingOk returns a tuple with the RequirePrivateNetworking field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *AWSKMSConfiguration) GetRequirePrivateNetworkingOk() (*bool, bool) {
+ if o == nil || IsNil(o.RequirePrivateNetworking) {
+ return nil, false
+ }
+
+ return o.RequirePrivateNetworking, true
+}
+
+// HasRequirePrivateNetworking returns a boolean if a field has been set.
+func (o *AWSKMSConfiguration) HasRequirePrivateNetworking() bool {
+ if o != nil && !IsNil(o.RequirePrivateNetworking) {
+ return true
+ }
+
+ return false
+}
+
+// SetRequirePrivateNetworking gets a reference to the given bool and assigns it to the RequirePrivateNetworking field.
+func (o *AWSKMSConfiguration) SetRequirePrivateNetworking(v bool) {
+ o.RequirePrivateNetworking = &v
+}
+
// GetRoleId returns the RoleId field value if set, zero value otherwise
func (o *AWSKMSConfiguration) GetRoleId() string {
if o == nil || IsNil(o.RoleId) {
diff --git a/admin/model_event_view_for_nds_group.go b/admin/model_event_view_for_nds_group.go
index e1edaccfe..9538cd039 100644
--- a/admin/model_event_view_for_nds_group.go
+++ b/admin/model_event_view_for_nds_group.go
@@ -68,6 +68,9 @@ type EventViewForNdsGroup struct {
// Action that the database attempted to execute when the event triggered. The response returns this parameter when `eventTypeName\" : \"DATA_EXPLORER\"`.
// Read only field.
OpType *string `json:"opType,omitempty"`
+ // Unique 24-hexadecimal digit string that identifies the Data Explorer session associated with the event.
+ // Read only field.
+ SessionId *string `json:"sessionId,omitempty"`
// Desk location of MongoDB employee associated with the event.
// Read only field.
DeskLocation *string `json:"deskLocation,omitempty"`
@@ -831,6 +834,39 @@ func (o *EventViewForNdsGroup) SetOpType(v string) {
o.OpType = &v
}
+// GetSessionId returns the SessionId field value if set, zero value otherwise
+func (o *EventViewForNdsGroup) GetSessionId() string {
+ if o == nil || IsNil(o.SessionId) {
+ var ret string
+ return ret
+ }
+ return *o.SessionId
+}
+
+// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EventViewForNdsGroup) GetSessionIdOk() (*string, bool) {
+ if o == nil || IsNil(o.SessionId) {
+ return nil, false
+ }
+
+ return o.SessionId, true
+}
+
+// HasSessionId returns a boolean if a field has been set.
+func (o *EventViewForNdsGroup) HasSessionId() bool {
+ if o != nil && !IsNil(o.SessionId) {
+ return true
+ }
+
+ return false
+}
+
+// SetSessionId gets a reference to the given string and assigns it to the SessionId field.
+func (o *EventViewForNdsGroup) SetSessionId(v string) {
+ o.SessionId = &v
+}
+
// GetDeskLocation returns the DeskLocation field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetDeskLocation() string {
if o == nil || IsNil(o.DeskLocation) {
diff --git a/admin/model_serverless_metric_threshold.go b/admin/model_flex_cluster_metric_threshold.go
similarity index 68%
rename from admin/model_serverless_metric_threshold.go
rename to admin/model_flex_cluster_metric_threshold.go
index d35250b81..721342ff1 100644
--- a/admin/model_serverless_metric_threshold.go
+++ b/admin/model_flex_cluster_metric_threshold.go
@@ -2,8 +2,8 @@
package admin
-// ServerlessMetricThreshold Threshold for the metric that, when exceeded, triggers an alert. The metric threshold pertains to event types which reflects changes of measurements and metrics about the serverless database.
-type ServerlessMetricThreshold struct {
+// FlexClusterMetricThreshold Threshold for the metric that, when exceeded, triggers an alert. The metric threshold pertains to event types which reflects changes of measurements and metrics about the serverless database.
+type FlexClusterMetricThreshold struct {
// Human-readable label that identifies the metric against which MongoDB Cloud checks the configured **metricThreshold.threshold**.
MetricName string `json:"metricName"`
// MongoDB Cloud computes the current metric value as an average.
@@ -16,26 +16,26 @@ type ServerlessMetricThreshold struct {
Units *string `json:"units,omitempty"`
}
-// NewServerlessMetricThreshold instantiates a new ServerlessMetricThreshold object
+// NewFlexClusterMetricThreshold instantiates a new FlexClusterMetricThreshold 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 NewServerlessMetricThreshold(metricName string) *ServerlessMetricThreshold {
- this := ServerlessMetricThreshold{}
+func NewFlexClusterMetricThreshold(metricName string) *FlexClusterMetricThreshold {
+ this := FlexClusterMetricThreshold{}
this.MetricName = metricName
return &this
}
-// NewServerlessMetricThresholdWithDefaults instantiates a new ServerlessMetricThreshold object
+// NewFlexClusterMetricThresholdWithDefaults instantiates a new FlexClusterMetricThreshold 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 NewServerlessMetricThresholdWithDefaults() *ServerlessMetricThreshold {
- this := ServerlessMetricThreshold{}
+func NewFlexClusterMetricThresholdWithDefaults() *FlexClusterMetricThreshold {
+ this := FlexClusterMetricThreshold{}
return &this
}
// GetMetricName returns the MetricName field value
-func (o *ServerlessMetricThreshold) GetMetricName() string {
+func (o *FlexClusterMetricThreshold) GetMetricName() string {
if o == nil {
var ret string
return ret
@@ -46,7 +46,7 @@ func (o *ServerlessMetricThreshold) GetMetricName() string {
// GetMetricNameOk returns a tuple with the MetricName field value
// and a boolean to check if the value has been set.
-func (o *ServerlessMetricThreshold) GetMetricNameOk() (*string, bool) {
+func (o *FlexClusterMetricThreshold) GetMetricNameOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -54,12 +54,12 @@ func (o *ServerlessMetricThreshold) GetMetricNameOk() (*string, bool) {
}
// SetMetricName sets field value
-func (o *ServerlessMetricThreshold) SetMetricName(v string) {
+func (o *FlexClusterMetricThreshold) SetMetricName(v string) {
o.MetricName = v
}
// GetMode returns the Mode field value if set, zero value otherwise
-func (o *ServerlessMetricThreshold) GetMode() string {
+func (o *FlexClusterMetricThreshold) GetMode() string {
if o == nil || IsNil(o.Mode) {
var ret string
return ret
@@ -69,7 +69,7 @@ func (o *ServerlessMetricThreshold) GetMode() string {
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ServerlessMetricThreshold) GetModeOk() (*string, bool) {
+func (o *FlexClusterMetricThreshold) GetModeOk() (*string, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
@@ -78,7 +78,7 @@ func (o *ServerlessMetricThreshold) GetModeOk() (*string, bool) {
}
// HasMode returns a boolean if a field has been set.
-func (o *ServerlessMetricThreshold) HasMode() bool {
+func (o *FlexClusterMetricThreshold) HasMode() bool {
if o != nil && !IsNil(o.Mode) {
return true
}
@@ -87,12 +87,12 @@ func (o *ServerlessMetricThreshold) HasMode() bool {
}
// SetMode gets a reference to the given string and assigns it to the Mode field.
-func (o *ServerlessMetricThreshold) SetMode(v string) {
+func (o *FlexClusterMetricThreshold) SetMode(v string) {
o.Mode = &v
}
// GetOperator returns the Operator field value if set, zero value otherwise
-func (o *ServerlessMetricThreshold) GetOperator() string {
+func (o *FlexClusterMetricThreshold) GetOperator() string {
if o == nil || IsNil(o.Operator) {
var ret string
return ret
@@ -102,7 +102,7 @@ func (o *ServerlessMetricThreshold) GetOperator() string {
// GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ServerlessMetricThreshold) GetOperatorOk() (*string, bool) {
+func (o *FlexClusterMetricThreshold) GetOperatorOk() (*string, bool) {
if o == nil || IsNil(o.Operator) {
return nil, false
}
@@ -111,7 +111,7 @@ func (o *ServerlessMetricThreshold) GetOperatorOk() (*string, bool) {
}
// HasOperator returns a boolean if a field has been set.
-func (o *ServerlessMetricThreshold) HasOperator() bool {
+func (o *FlexClusterMetricThreshold) HasOperator() bool {
if o != nil && !IsNil(o.Operator) {
return true
}
@@ -120,12 +120,12 @@ func (o *ServerlessMetricThreshold) HasOperator() bool {
}
// SetOperator gets a reference to the given string and assigns it to the Operator field.
-func (o *ServerlessMetricThreshold) SetOperator(v string) {
+func (o *FlexClusterMetricThreshold) SetOperator(v string) {
o.Operator = &v
}
// GetThreshold returns the Threshold field value if set, zero value otherwise
-func (o *ServerlessMetricThreshold) GetThreshold() float64 {
+func (o *FlexClusterMetricThreshold) GetThreshold() float64 {
if o == nil || IsNil(o.Threshold) {
var ret float64
return ret
@@ -135,7 +135,7 @@ func (o *ServerlessMetricThreshold) GetThreshold() float64 {
// GetThresholdOk returns a tuple with the Threshold field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ServerlessMetricThreshold) GetThresholdOk() (*float64, bool) {
+func (o *FlexClusterMetricThreshold) GetThresholdOk() (*float64, bool) {
if o == nil || IsNil(o.Threshold) {
return nil, false
}
@@ -144,7 +144,7 @@ func (o *ServerlessMetricThreshold) GetThresholdOk() (*float64, bool) {
}
// HasThreshold returns a boolean if a field has been set.
-func (o *ServerlessMetricThreshold) HasThreshold() bool {
+func (o *FlexClusterMetricThreshold) HasThreshold() bool {
if o != nil && !IsNil(o.Threshold) {
return true
}
@@ -153,12 +153,12 @@ func (o *ServerlessMetricThreshold) HasThreshold() bool {
}
// SetThreshold gets a reference to the given float64 and assigns it to the Threshold field.
-func (o *ServerlessMetricThreshold) SetThreshold(v float64) {
+func (o *FlexClusterMetricThreshold) SetThreshold(v float64) {
o.Threshold = &v
}
// GetUnits returns the Units field value if set, zero value otherwise
-func (o *ServerlessMetricThreshold) GetUnits() string {
+func (o *FlexClusterMetricThreshold) GetUnits() string {
if o == nil || IsNil(o.Units) {
var ret string
return ret
@@ -168,7 +168,7 @@ func (o *ServerlessMetricThreshold) GetUnits() string {
// GetUnitsOk returns a tuple with the Units field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ServerlessMetricThreshold) GetUnitsOk() (*string, bool) {
+func (o *FlexClusterMetricThreshold) GetUnitsOk() (*string, bool) {
if o == nil || IsNil(o.Units) {
return nil, false
}
@@ -177,7 +177,7 @@ func (o *ServerlessMetricThreshold) GetUnitsOk() (*string, bool) {
}
// HasUnits returns a boolean if a field has been set.
-func (o *ServerlessMetricThreshold) HasUnits() bool {
+func (o *FlexClusterMetricThreshold) HasUnits() bool {
if o != nil && !IsNil(o.Units) {
return true
}
@@ -186,6 +186,6 @@ func (o *ServerlessMetricThreshold) HasUnits() bool {
}
// SetUnits gets a reference to the given string and assigns it to the Units field.
-func (o *ServerlessMetricThreshold) SetUnits(v string) {
+func (o *FlexClusterMetricThreshold) SetUnits(v string) {
o.Units = &v
}
diff --git a/admin/model_group_alerts_config.go b/admin/model_group_alerts_config.go
index 2d6f6281b..df32672de 100644
--- a/admin/model_group_alerts_config.go
+++ b/admin/model_group_alerts_config.go
@@ -8,7 +8,7 @@ import (
// GroupAlertsConfig struct for GroupAlertsConfig
type GroupAlertsConfig struct {
- // Date and time when MongoDB Cloud created the alert configuration. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
+ // Date and time when MongoDB Cloud created the alert configuration. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
// Read only field.
Created *time.Time `json:"created,omitempty"`
// Flag that indicates whether someone enabled this alert configuration for the specified project.
@@ -28,11 +28,11 @@ type GroupAlertsConfig struct {
Matchers *[]StreamsMatcher `json:"matchers,omitempty"`
// List that contains the targets that MongoDB Cloud sends notifications.
Notifications *[]AlertsNotificationRootForGroup `json:"notifications,omitempty"`
- // Date and time when someone last updated this alert configuration. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
+ // Date and time when someone last updated this alert configuration. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
// Read only field.
- Updated *time.Time `json:"updated,omitempty"`
- MetricThreshold *ServerlessMetricThreshold `json:"metricThreshold,omitempty"`
- Threshold *GreaterThanRawThreshold `json:"threshold,omitempty"`
+ Updated *time.Time `json:"updated,omitempty"`
+ MetricThreshold *FlexClusterMetricThreshold `json:"metricThreshold,omitempty"`
+ Threshold *GreaterThanRawThreshold `json:"threshold,omitempty"`
}
// NewGroupAlertsConfig instantiates a new GroupAlertsConfig object
@@ -354,9 +354,9 @@ func (o *GroupAlertsConfig) SetUpdated(v time.Time) {
}
// GetMetricThreshold returns the MetricThreshold field value if set, zero value otherwise
-func (o *GroupAlertsConfig) GetMetricThreshold() ServerlessMetricThreshold {
+func (o *GroupAlertsConfig) GetMetricThreshold() FlexClusterMetricThreshold {
if o == nil || IsNil(o.MetricThreshold) {
- var ret ServerlessMetricThreshold
+ var ret FlexClusterMetricThreshold
return ret
}
return *o.MetricThreshold
@@ -364,7 +364,7 @@ func (o *GroupAlertsConfig) GetMetricThreshold() ServerlessMetricThreshold {
// GetMetricThresholdOk returns a tuple with the MetricThreshold field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GroupAlertsConfig) GetMetricThresholdOk() (*ServerlessMetricThreshold, bool) {
+func (o *GroupAlertsConfig) GetMetricThresholdOk() (*FlexClusterMetricThreshold, bool) {
if o == nil || IsNil(o.MetricThreshold) {
return nil, false
}
@@ -381,8 +381,8 @@ func (o *GroupAlertsConfig) HasMetricThreshold() bool {
return false
}
-// SetMetricThreshold gets a reference to the given ServerlessMetricThreshold and assigns it to the MetricThreshold field.
-func (o *GroupAlertsConfig) SetMetricThreshold(v ServerlessMetricThreshold) {
+// SetMetricThreshold gets a reference to the given FlexClusterMetricThreshold and assigns it to the MetricThreshold field.
+func (o *GroupAlertsConfig) SetMetricThreshold(v FlexClusterMetricThreshold) {
o.MetricThreshold = &v
}
diff --git a/admin/model_group_role_assignment.go b/admin/model_group_role_assignment.go
new file mode 100644
index 000000000..3e4aa7fc8
--- /dev/null
+++ b/admin/model_group_role_assignment.go
@@ -0,0 +1,94 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// GroupRoleAssignment struct for GroupRoleAssignment
+type GroupRoleAssignment struct {
+ // Unique 24-hexadecimal digit string that identifies the project to which these roles belong.
+ GroupId *string `json:"groupId,omitempty"`
+ // One or more project-level roles assigned to the MongoDB Cloud user.
+ GroupRoles *[]string `json:"groupRoles,omitempty"`
+}
+
+// NewGroupRoleAssignment instantiates a new GroupRoleAssignment 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 NewGroupRoleAssignment() *GroupRoleAssignment {
+ this := GroupRoleAssignment{}
+ return &this
+}
+
+// NewGroupRoleAssignmentWithDefaults instantiates a new GroupRoleAssignment 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 NewGroupRoleAssignmentWithDefaults() *GroupRoleAssignment {
+ this := GroupRoleAssignment{}
+ return &this
+}
+
+// GetGroupId returns the GroupId field value if set, zero value otherwise
+func (o *GroupRoleAssignment) GetGroupId() string {
+ if o == nil || IsNil(o.GroupId) {
+ var ret string
+ return ret
+ }
+ return *o.GroupId
+}
+
+// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupRoleAssignment) GetGroupIdOk() (*string, bool) {
+ if o == nil || IsNil(o.GroupId) {
+ return nil, false
+ }
+
+ return o.GroupId, true
+}
+
+// HasGroupId returns a boolean if a field has been set.
+func (o *GroupRoleAssignment) HasGroupId() bool {
+ if o != nil && !IsNil(o.GroupId) {
+ return true
+ }
+
+ return false
+}
+
+// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
+func (o *GroupRoleAssignment) SetGroupId(v string) {
+ o.GroupId = &v
+}
+
+// GetGroupRoles returns the GroupRoles field value if set, zero value otherwise
+func (o *GroupRoleAssignment) GetGroupRoles() []string {
+ if o == nil || IsNil(o.GroupRoles) {
+ var ret []string
+ return ret
+ }
+ return *o.GroupRoles
+}
+
+// GetGroupRolesOk returns a tuple with the GroupRoles field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupRoleAssignment) GetGroupRolesOk() (*[]string, bool) {
+ if o == nil || IsNil(o.GroupRoles) {
+ return nil, false
+ }
+
+ return o.GroupRoles, true
+}
+
+// HasGroupRoles returns a boolean if a field has been set.
+func (o *GroupRoleAssignment) HasGroupRoles() bool {
+ if o != nil && !IsNil(o.GroupRoles) {
+ return true
+ }
+
+ return false
+}
+
+// SetGroupRoles gets a reference to the given []string and assigns it to the GroupRoles field.
+func (o *GroupRoleAssignment) SetGroupRoles(v []string) {
+ o.GroupRoles = &v
+}
diff --git a/admin/model_group_user_request.go b/admin/model_group_user_request.go
new file mode 100644
index 000000000..3c69d47f7
--- /dev/null
+++ b/admin/model_group_user_request.go
@@ -0,0 +1,80 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// GroupUserRequest struct for GroupUserRequest
+type GroupUserRequest struct {
+ // One or more project-level roles to assign the MongoDB Cloud user.
+ // Write only field.
+ Roles []string `json:"roles"`
+ // Email address that represents the username of the MongoDB Cloud user.
+ // Write only field.
+ Username string `json:"username"`
+}
+
+// NewGroupUserRequest instantiates a new GroupUserRequest 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 NewGroupUserRequest(roles []string, username string) *GroupUserRequest {
+ this := GroupUserRequest{}
+ this.Roles = roles
+ this.Username = username
+ return &this
+}
+
+// NewGroupUserRequestWithDefaults instantiates a new GroupUserRequest 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 NewGroupUserRequestWithDefaults() *GroupUserRequest {
+ this := GroupUserRequest{}
+ return &this
+}
+
+// GetRoles returns the Roles field value
+func (o *GroupUserRequest) GetRoles() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.Roles
+}
+
+// GetRolesOk returns a tuple with the Roles field value
+// and a boolean to check if the value has been set.
+func (o *GroupUserRequest) GetRolesOk() (*[]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Roles, true
+}
+
+// SetRoles sets field value
+func (o *GroupUserRequest) SetRoles(v []string) {
+ o.Roles = v
+}
+
+// GetUsername returns the Username field value
+func (o *GroupUserRequest) GetUsername() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Username
+}
+
+// GetUsernameOk returns a tuple with the Username field value
+// and a boolean to check if the value has been set.
+func (o *GroupUserRequest) GetUsernameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Username, true
+}
+
+// SetUsername sets field value
+func (o *GroupUserRequest) SetUsername(v string) {
+ o.Username = v
+}
diff --git a/admin/model_group_user_response.go b/admin/model_group_user_response.go
new file mode 100644
index 000000000..39adef2de
--- /dev/null
+++ b/admin/model_group_user_response.go
@@ -0,0 +1,464 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+import (
+ "time"
+)
+
+// GroupUserResponse struct for GroupUserResponse
+type GroupUserResponse struct {
+ // Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
+ // Read only field.
+ Id string `json:"id"`
+ // String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or they are already active in the organization.
+ // Read only field.
+ OrgMembershipStatus string `json:"orgMembershipStatus"`
+ // One or more project-level roles assigned to the MongoDB Cloud user.
+ // Read only field.
+ Roles []string `json:"roles"`
+ // Email address that represents the username of the MongoDB Cloud user.
+ // Read only field.
+ Username string `json:"username"`
+ // Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
+ // Read only field.
+ InvitationCreatedAt *time.Time `json:"invitationCreatedAt,omitempty"`
+ // Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
+ // Read only field.
+ InvitationExpiresAt *time.Time `json:"invitationExpiresAt,omitempty"`
+ // Username of the MongoDB Cloud user who sent the invitation to join the organization.
+ // Read only field.
+ InviterUsername *string `json:"inviterUsername,omitempty"`
+ // Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
+ // Read only field.
+ Country *string `json:"country,omitempty"`
+ // Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
+ // Read only field.
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ // First or given name that belongs to the MongoDB Cloud user.
+ // Read only field.
+ FirstName *string `json:"firstName,omitempty"`
+ // Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
+ // Read only field.
+ LastAuth *time.Time `json:"lastAuth,omitempty"`
+ // Last name, family name, or surname that belongs to the MongoDB Cloud user.
+ // Read only field.
+ LastName *string `json:"lastName,omitempty"`
+ // Mobile phone number that belongs to the MongoDB Cloud user.
+ // Read only field.
+ MobileNumber *string `json:"mobileNumber,omitempty"`
+}
+
+// NewGroupUserResponse instantiates a new GroupUserResponse 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 NewGroupUserResponse(id string, orgMembershipStatus string, roles []string, username string) *GroupUserResponse {
+ this := GroupUserResponse{}
+ this.Id = id
+ this.OrgMembershipStatus = orgMembershipStatus
+ this.Roles = roles
+ this.Username = username
+ return &this
+}
+
+// NewGroupUserResponseWithDefaults instantiates a new GroupUserResponse 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 NewGroupUserResponseWithDefaults() *GroupUserResponse {
+ this := GroupUserResponse{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *GroupUserResponse) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *GroupUserResponse) SetId(v string) {
+ o.Id = v
+}
+
+// GetOrgMembershipStatus returns the OrgMembershipStatus field value
+func (o *GroupUserResponse) GetOrgMembershipStatus() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OrgMembershipStatus
+}
+
+// GetOrgMembershipStatusOk returns a tuple with the OrgMembershipStatus field value
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetOrgMembershipStatusOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrgMembershipStatus, true
+}
+
+// SetOrgMembershipStatus sets field value
+func (o *GroupUserResponse) SetOrgMembershipStatus(v string) {
+ o.OrgMembershipStatus = v
+}
+
+// GetRoles returns the Roles field value
+func (o *GroupUserResponse) GetRoles() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.Roles
+}
+
+// GetRolesOk returns a tuple with the Roles field value
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetRolesOk() (*[]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Roles, true
+}
+
+// SetRoles sets field value
+func (o *GroupUserResponse) SetRoles(v []string) {
+ o.Roles = v
+}
+
+// GetUsername returns the Username field value
+func (o *GroupUserResponse) GetUsername() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Username
+}
+
+// GetUsernameOk returns a tuple with the Username field value
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetUsernameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Username, true
+}
+
+// SetUsername sets field value
+func (o *GroupUserResponse) SetUsername(v string) {
+ o.Username = v
+}
+
+// GetInvitationCreatedAt returns the InvitationCreatedAt field value if set, zero value otherwise
+func (o *GroupUserResponse) GetInvitationCreatedAt() time.Time {
+ if o == nil || IsNil(o.InvitationCreatedAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.InvitationCreatedAt
+}
+
+// GetInvitationCreatedAtOk returns a tuple with the InvitationCreatedAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetInvitationCreatedAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.InvitationCreatedAt) {
+ return nil, false
+ }
+
+ return o.InvitationCreatedAt, true
+}
+
+// HasInvitationCreatedAt returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasInvitationCreatedAt() bool {
+ if o != nil && !IsNil(o.InvitationCreatedAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetInvitationCreatedAt gets a reference to the given time.Time and assigns it to the InvitationCreatedAt field.
+func (o *GroupUserResponse) SetInvitationCreatedAt(v time.Time) {
+ o.InvitationCreatedAt = &v
+}
+
+// GetInvitationExpiresAt returns the InvitationExpiresAt field value if set, zero value otherwise
+func (o *GroupUserResponse) GetInvitationExpiresAt() time.Time {
+ if o == nil || IsNil(o.InvitationExpiresAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.InvitationExpiresAt
+}
+
+// GetInvitationExpiresAtOk returns a tuple with the InvitationExpiresAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetInvitationExpiresAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.InvitationExpiresAt) {
+ return nil, false
+ }
+
+ return o.InvitationExpiresAt, true
+}
+
+// HasInvitationExpiresAt returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasInvitationExpiresAt() bool {
+ if o != nil && !IsNil(o.InvitationExpiresAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetInvitationExpiresAt gets a reference to the given time.Time and assigns it to the InvitationExpiresAt field.
+func (o *GroupUserResponse) SetInvitationExpiresAt(v time.Time) {
+ o.InvitationExpiresAt = &v
+}
+
+// GetInviterUsername returns the InviterUsername field value if set, zero value otherwise
+func (o *GroupUserResponse) GetInviterUsername() string {
+ if o == nil || IsNil(o.InviterUsername) {
+ var ret string
+ return ret
+ }
+ return *o.InviterUsername
+}
+
+// GetInviterUsernameOk returns a tuple with the InviterUsername field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetInviterUsernameOk() (*string, bool) {
+ if o == nil || IsNil(o.InviterUsername) {
+ return nil, false
+ }
+
+ return o.InviterUsername, true
+}
+
+// HasInviterUsername returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasInviterUsername() bool {
+ if o != nil && !IsNil(o.InviterUsername) {
+ return true
+ }
+
+ return false
+}
+
+// SetInviterUsername gets a reference to the given string and assigns it to the InviterUsername field.
+func (o *GroupUserResponse) SetInviterUsername(v string) {
+ o.InviterUsername = &v
+}
+
+// GetCountry returns the Country field value if set, zero value otherwise
+func (o *GroupUserResponse) GetCountry() string {
+ if o == nil || IsNil(o.Country) {
+ var ret string
+ return ret
+ }
+ return *o.Country
+}
+
+// GetCountryOk returns a tuple with the Country field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetCountryOk() (*string, bool) {
+ if o == nil || IsNil(o.Country) {
+ return nil, false
+ }
+
+ return o.Country, true
+}
+
+// HasCountry returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasCountry() bool {
+ if o != nil && !IsNil(o.Country) {
+ return true
+ }
+
+ return false
+}
+
+// SetCountry gets a reference to the given string and assigns it to the Country field.
+func (o *GroupUserResponse) SetCountry(v string) {
+ o.Country = &v
+}
+
+// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise
+func (o *GroupUserResponse) GetCreatedAt() time.Time {
+ if o == nil || IsNil(o.CreatedAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.CreatedAt
+}
+
+// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetCreatedAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.CreatedAt) {
+ return nil, false
+ }
+
+ return o.CreatedAt, true
+}
+
+// HasCreatedAt returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasCreatedAt() bool {
+ if o != nil && !IsNil(o.CreatedAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
+func (o *GroupUserResponse) SetCreatedAt(v time.Time) {
+ o.CreatedAt = &v
+}
+
+// GetFirstName returns the FirstName field value if set, zero value otherwise
+func (o *GroupUserResponse) GetFirstName() string {
+ if o == nil || IsNil(o.FirstName) {
+ var ret string
+ return ret
+ }
+ return *o.FirstName
+}
+
+// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetFirstNameOk() (*string, bool) {
+ if o == nil || IsNil(o.FirstName) {
+ return nil, false
+ }
+
+ return o.FirstName, true
+}
+
+// HasFirstName returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasFirstName() bool {
+ if o != nil && !IsNil(o.FirstName) {
+ return true
+ }
+
+ return false
+}
+
+// SetFirstName gets a reference to the given string and assigns it to the FirstName field.
+func (o *GroupUserResponse) SetFirstName(v string) {
+ o.FirstName = &v
+}
+
+// GetLastAuth returns the LastAuth field value if set, zero value otherwise
+func (o *GroupUserResponse) GetLastAuth() time.Time {
+ if o == nil || IsNil(o.LastAuth) {
+ var ret time.Time
+ return ret
+ }
+ return *o.LastAuth
+}
+
+// GetLastAuthOk returns a tuple with the LastAuth field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetLastAuthOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.LastAuth) {
+ return nil, false
+ }
+
+ return o.LastAuth, true
+}
+
+// HasLastAuth returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasLastAuth() bool {
+ if o != nil && !IsNil(o.LastAuth) {
+ return true
+ }
+
+ return false
+}
+
+// SetLastAuth gets a reference to the given time.Time and assigns it to the LastAuth field.
+func (o *GroupUserResponse) SetLastAuth(v time.Time) {
+ o.LastAuth = &v
+}
+
+// GetLastName returns the LastName field value if set, zero value otherwise
+func (o *GroupUserResponse) GetLastName() string {
+ if o == nil || IsNil(o.LastName) {
+ var ret string
+ return ret
+ }
+ return *o.LastName
+}
+
+// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetLastNameOk() (*string, bool) {
+ if o == nil || IsNil(o.LastName) {
+ return nil, false
+ }
+
+ return o.LastName, true
+}
+
+// HasLastName returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasLastName() bool {
+ if o != nil && !IsNil(o.LastName) {
+ return true
+ }
+
+ return false
+}
+
+// SetLastName gets a reference to the given string and assigns it to the LastName field.
+func (o *GroupUserResponse) SetLastName(v string) {
+ o.LastName = &v
+}
+
+// GetMobileNumber returns the MobileNumber field value if set, zero value otherwise
+func (o *GroupUserResponse) GetMobileNumber() string {
+ if o == nil || IsNil(o.MobileNumber) {
+ var ret string
+ return ret
+ }
+ return *o.MobileNumber
+}
+
+// GetMobileNumberOk returns a tuple with the MobileNumber field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GroupUserResponse) GetMobileNumberOk() (*string, bool) {
+ if o == nil || IsNil(o.MobileNumber) {
+ return nil, false
+ }
+
+ return o.MobileNumber, true
+}
+
+// HasMobileNumber returns a boolean if a field has been set.
+func (o *GroupUserResponse) HasMobileNumber() bool {
+ if o != nil && !IsNil(o.MobileNumber) {
+ return true
+ }
+
+ return false
+}
+
+// SetMobileNumber gets a reference to the given string and assigns it to the MobileNumber field.
+func (o *GroupUserResponse) SetMobileNumber(v string) {
+ o.MobileNumber = &v
+}
diff --git a/admin/model_org_user_request.go b/admin/model_org_user_request.go
new file mode 100644
index 000000000..373751614
--- /dev/null
+++ b/admin/model_org_user_request.go
@@ -0,0 +1,114 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// OrgUserRequest struct for OrgUserRequest
+type OrgUserRequest struct {
+ Roles OrgUserRolesRequest `json:"roles"`
+ // List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
+ // Write only field.
+ TeamIds *[]string `json:"teamIds,omitempty"`
+ // Email address that represents the username of the MongoDB Cloud user.
+ // Write only field.
+ Username string `json:"username"`
+}
+
+// NewOrgUserRequest instantiates a new OrgUserRequest 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 NewOrgUserRequest(roles OrgUserRolesRequest, username string) *OrgUserRequest {
+ this := OrgUserRequest{}
+ this.Roles = roles
+ this.Username = username
+ return &this
+}
+
+// NewOrgUserRequestWithDefaults instantiates a new OrgUserRequest 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 NewOrgUserRequestWithDefaults() *OrgUserRequest {
+ this := OrgUserRequest{}
+ return &this
+}
+
+// GetRoles returns the Roles field value
+func (o *OrgUserRequest) GetRoles() OrgUserRolesRequest {
+ if o == nil {
+ var ret OrgUserRolesRequest
+ return ret
+ }
+
+ return o.Roles
+}
+
+// GetRolesOk returns a tuple with the Roles field value
+// and a boolean to check if the value has been set.
+func (o *OrgUserRequest) GetRolesOk() (*OrgUserRolesRequest, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Roles, true
+}
+
+// SetRoles sets field value
+func (o *OrgUserRequest) SetRoles(v OrgUserRolesRequest) {
+ o.Roles = v
+}
+
+// GetTeamIds returns the TeamIds field value if set, zero value otherwise
+func (o *OrgUserRequest) GetTeamIds() []string {
+ if o == nil || IsNil(o.TeamIds) {
+ var ret []string
+ return ret
+ }
+ return *o.TeamIds
+}
+
+// GetTeamIdsOk returns a tuple with the TeamIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserRequest) GetTeamIdsOk() (*[]string, bool) {
+ if o == nil || IsNil(o.TeamIds) {
+ return nil, false
+ }
+
+ return o.TeamIds, true
+}
+
+// HasTeamIds returns a boolean if a field has been set.
+func (o *OrgUserRequest) HasTeamIds() bool {
+ if o != nil && !IsNil(o.TeamIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetTeamIds gets a reference to the given []string and assigns it to the TeamIds field.
+func (o *OrgUserRequest) SetTeamIds(v []string) {
+ o.TeamIds = &v
+}
+
+// GetUsername returns the Username field value
+func (o *OrgUserRequest) GetUsername() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Username
+}
+
+// GetUsernameOk returns a tuple with the Username field value
+// and a boolean to check if the value has been set.
+func (o *OrgUserRequest) GetUsernameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Username, true
+}
+
+// SetUsername sets field value
+func (o *OrgUserRequest) SetUsername(v string) {
+ o.Username = v
+}
diff --git a/admin/model_org_user_response.go b/admin/model_org_user_response.go
new file mode 100644
index 000000000..448109209
--- /dev/null
+++ b/admin/model_org_user_response.go
@@ -0,0 +1,498 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+import (
+ "time"
+)
+
+// OrgUserResponse struct for OrgUserResponse
+type OrgUserResponse struct {
+ // Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user.
+ // Read only field.
+ Id string `json:"id"`
+ // String enum that indicates whether the MongoDB Cloud user has a pending invitation to join the organization or they are already active in the organization.
+ // Read only field.
+ OrgMembershipStatus string `json:"orgMembershipStatus"`
+ Roles OrgUserRolesResponse `json:"roles"`
+ // List of unique 24-hexadecimal digit strings that identifies the teams to which this MongoDB Cloud user belongs.
+ // Read only field.
+ TeamIds *[]string `json:"teamIds,omitempty"`
+ // Email address that represents the username of the MongoDB Cloud user.
+ // Read only field.
+ Username string `json:"username"`
+ // Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
+ // Read only field.
+ InvitationCreatedAt *time.Time `json:"invitationCreatedAt,omitempty"`
+ // Date and time when the invitation from MongoDB Cloud expires. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
+ // Read only field.
+ InvitationExpiresAt *time.Time `json:"invitationExpiresAt,omitempty"`
+ // Username of the MongoDB Cloud user who sent the invitation to join the organization.
+ // Read only field.
+ InviterUsername *string `json:"inviterUsername,omitempty"`
+ // Two-character alphabetical string that identifies the MongoDB Cloud user's geographic location. This parameter uses the ISO 3166-1a2 code format.
+ // Read only field.
+ Country *string `json:"country,omitempty"`
+ // Date and time when MongoDB Cloud created the current account. This value is in the ISO 8601 timestamp format in UTC.
+ // Read only field.
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ // First or given name that belongs to the MongoDB Cloud user.
+ // Read only field.
+ FirstName *string `json:"firstName,omitempty"`
+ // Date and time when the current account last authenticated. This value is in the ISO 8601 timestamp format in UTC.
+ // Read only field.
+ LastAuth *time.Time `json:"lastAuth,omitempty"`
+ // Last name, family name, or surname that belongs to the MongoDB Cloud user.
+ // Read only field.
+ LastName *string `json:"lastName,omitempty"`
+ // Mobile phone number that belongs to the MongoDB Cloud user.
+ // Read only field.
+ MobileNumber *string `json:"mobileNumber,omitempty"`
+}
+
+// NewOrgUserResponse instantiates a new OrgUserResponse 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 NewOrgUserResponse(id string, orgMembershipStatus string, roles OrgUserRolesResponse, username string) *OrgUserResponse {
+ this := OrgUserResponse{}
+ this.Id = id
+ this.OrgMembershipStatus = orgMembershipStatus
+ this.Roles = roles
+ this.Username = username
+ return &this
+}
+
+// NewOrgUserResponseWithDefaults instantiates a new OrgUserResponse 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 NewOrgUserResponseWithDefaults() *OrgUserResponse {
+ this := OrgUserResponse{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *OrgUserResponse) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *OrgUserResponse) SetId(v string) {
+ o.Id = v
+}
+
+// GetOrgMembershipStatus returns the OrgMembershipStatus field value
+func (o *OrgUserResponse) GetOrgMembershipStatus() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OrgMembershipStatus
+}
+
+// GetOrgMembershipStatusOk returns a tuple with the OrgMembershipStatus field value
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetOrgMembershipStatusOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrgMembershipStatus, true
+}
+
+// SetOrgMembershipStatus sets field value
+func (o *OrgUserResponse) SetOrgMembershipStatus(v string) {
+ o.OrgMembershipStatus = v
+}
+
+// GetRoles returns the Roles field value
+func (o *OrgUserResponse) GetRoles() OrgUserRolesResponse {
+ if o == nil {
+ var ret OrgUserRolesResponse
+ return ret
+ }
+
+ return o.Roles
+}
+
+// GetRolesOk returns a tuple with the Roles field value
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetRolesOk() (*OrgUserRolesResponse, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Roles, true
+}
+
+// SetRoles sets field value
+func (o *OrgUserResponse) SetRoles(v OrgUserRolesResponse) {
+ o.Roles = v
+}
+
+// GetTeamIds returns the TeamIds field value if set, zero value otherwise
+func (o *OrgUserResponse) GetTeamIds() []string {
+ if o == nil || IsNil(o.TeamIds) {
+ var ret []string
+ return ret
+ }
+ return *o.TeamIds
+}
+
+// GetTeamIdsOk returns a tuple with the TeamIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetTeamIdsOk() (*[]string, bool) {
+ if o == nil || IsNil(o.TeamIds) {
+ return nil, false
+ }
+
+ return o.TeamIds, true
+}
+
+// HasTeamIds returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasTeamIds() bool {
+ if o != nil && !IsNil(o.TeamIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetTeamIds gets a reference to the given []string and assigns it to the TeamIds field.
+func (o *OrgUserResponse) SetTeamIds(v []string) {
+ o.TeamIds = &v
+}
+
+// GetUsername returns the Username field value
+func (o *OrgUserResponse) GetUsername() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Username
+}
+
+// GetUsernameOk returns a tuple with the Username field value
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetUsernameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Username, true
+}
+
+// SetUsername sets field value
+func (o *OrgUserResponse) SetUsername(v string) {
+ o.Username = v
+}
+
+// GetInvitationCreatedAt returns the InvitationCreatedAt field value if set, zero value otherwise
+func (o *OrgUserResponse) GetInvitationCreatedAt() time.Time {
+ if o == nil || IsNil(o.InvitationCreatedAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.InvitationCreatedAt
+}
+
+// GetInvitationCreatedAtOk returns a tuple with the InvitationCreatedAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetInvitationCreatedAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.InvitationCreatedAt) {
+ return nil, false
+ }
+
+ return o.InvitationCreatedAt, true
+}
+
+// HasInvitationCreatedAt returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasInvitationCreatedAt() bool {
+ if o != nil && !IsNil(o.InvitationCreatedAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetInvitationCreatedAt gets a reference to the given time.Time and assigns it to the InvitationCreatedAt field.
+func (o *OrgUserResponse) SetInvitationCreatedAt(v time.Time) {
+ o.InvitationCreatedAt = &v
+}
+
+// GetInvitationExpiresAt returns the InvitationExpiresAt field value if set, zero value otherwise
+func (o *OrgUserResponse) GetInvitationExpiresAt() time.Time {
+ if o == nil || IsNil(o.InvitationExpiresAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.InvitationExpiresAt
+}
+
+// GetInvitationExpiresAtOk returns a tuple with the InvitationExpiresAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetInvitationExpiresAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.InvitationExpiresAt) {
+ return nil, false
+ }
+
+ return o.InvitationExpiresAt, true
+}
+
+// HasInvitationExpiresAt returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasInvitationExpiresAt() bool {
+ if o != nil && !IsNil(o.InvitationExpiresAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetInvitationExpiresAt gets a reference to the given time.Time and assigns it to the InvitationExpiresAt field.
+func (o *OrgUserResponse) SetInvitationExpiresAt(v time.Time) {
+ o.InvitationExpiresAt = &v
+}
+
+// GetInviterUsername returns the InviterUsername field value if set, zero value otherwise
+func (o *OrgUserResponse) GetInviterUsername() string {
+ if o == nil || IsNil(o.InviterUsername) {
+ var ret string
+ return ret
+ }
+ return *o.InviterUsername
+}
+
+// GetInviterUsernameOk returns a tuple with the InviterUsername field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetInviterUsernameOk() (*string, bool) {
+ if o == nil || IsNil(o.InviterUsername) {
+ return nil, false
+ }
+
+ return o.InviterUsername, true
+}
+
+// HasInviterUsername returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasInviterUsername() bool {
+ if o != nil && !IsNil(o.InviterUsername) {
+ return true
+ }
+
+ return false
+}
+
+// SetInviterUsername gets a reference to the given string and assigns it to the InviterUsername field.
+func (o *OrgUserResponse) SetInviterUsername(v string) {
+ o.InviterUsername = &v
+}
+
+// GetCountry returns the Country field value if set, zero value otherwise
+func (o *OrgUserResponse) GetCountry() string {
+ if o == nil || IsNil(o.Country) {
+ var ret string
+ return ret
+ }
+ return *o.Country
+}
+
+// GetCountryOk returns a tuple with the Country field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetCountryOk() (*string, bool) {
+ if o == nil || IsNil(o.Country) {
+ return nil, false
+ }
+
+ return o.Country, true
+}
+
+// HasCountry returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasCountry() bool {
+ if o != nil && !IsNil(o.Country) {
+ return true
+ }
+
+ return false
+}
+
+// SetCountry gets a reference to the given string and assigns it to the Country field.
+func (o *OrgUserResponse) SetCountry(v string) {
+ o.Country = &v
+}
+
+// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise
+func (o *OrgUserResponse) GetCreatedAt() time.Time {
+ if o == nil || IsNil(o.CreatedAt) {
+ var ret time.Time
+ return ret
+ }
+ return *o.CreatedAt
+}
+
+// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetCreatedAtOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.CreatedAt) {
+ return nil, false
+ }
+
+ return o.CreatedAt, true
+}
+
+// HasCreatedAt returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasCreatedAt() bool {
+ if o != nil && !IsNil(o.CreatedAt) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
+func (o *OrgUserResponse) SetCreatedAt(v time.Time) {
+ o.CreatedAt = &v
+}
+
+// GetFirstName returns the FirstName field value if set, zero value otherwise
+func (o *OrgUserResponse) GetFirstName() string {
+ if o == nil || IsNil(o.FirstName) {
+ var ret string
+ return ret
+ }
+ return *o.FirstName
+}
+
+// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetFirstNameOk() (*string, bool) {
+ if o == nil || IsNil(o.FirstName) {
+ return nil, false
+ }
+
+ return o.FirstName, true
+}
+
+// HasFirstName returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasFirstName() bool {
+ if o != nil && !IsNil(o.FirstName) {
+ return true
+ }
+
+ return false
+}
+
+// SetFirstName gets a reference to the given string and assigns it to the FirstName field.
+func (o *OrgUserResponse) SetFirstName(v string) {
+ o.FirstName = &v
+}
+
+// GetLastAuth returns the LastAuth field value if set, zero value otherwise
+func (o *OrgUserResponse) GetLastAuth() time.Time {
+ if o == nil || IsNil(o.LastAuth) {
+ var ret time.Time
+ return ret
+ }
+ return *o.LastAuth
+}
+
+// GetLastAuthOk returns a tuple with the LastAuth field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetLastAuthOk() (*time.Time, bool) {
+ if o == nil || IsNil(o.LastAuth) {
+ return nil, false
+ }
+
+ return o.LastAuth, true
+}
+
+// HasLastAuth returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasLastAuth() bool {
+ if o != nil && !IsNil(o.LastAuth) {
+ return true
+ }
+
+ return false
+}
+
+// SetLastAuth gets a reference to the given time.Time and assigns it to the LastAuth field.
+func (o *OrgUserResponse) SetLastAuth(v time.Time) {
+ o.LastAuth = &v
+}
+
+// GetLastName returns the LastName field value if set, zero value otherwise
+func (o *OrgUserResponse) GetLastName() string {
+ if o == nil || IsNil(o.LastName) {
+ var ret string
+ return ret
+ }
+ return *o.LastName
+}
+
+// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetLastNameOk() (*string, bool) {
+ if o == nil || IsNil(o.LastName) {
+ return nil, false
+ }
+
+ return o.LastName, true
+}
+
+// HasLastName returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasLastName() bool {
+ if o != nil && !IsNil(o.LastName) {
+ return true
+ }
+
+ return false
+}
+
+// SetLastName gets a reference to the given string and assigns it to the LastName field.
+func (o *OrgUserResponse) SetLastName(v string) {
+ o.LastName = &v
+}
+
+// GetMobileNumber returns the MobileNumber field value if set, zero value otherwise
+func (o *OrgUserResponse) GetMobileNumber() string {
+ if o == nil || IsNil(o.MobileNumber) {
+ var ret string
+ return ret
+ }
+ return *o.MobileNumber
+}
+
+// GetMobileNumberOk returns a tuple with the MobileNumber field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserResponse) GetMobileNumberOk() (*string, bool) {
+ if o == nil || IsNil(o.MobileNumber) {
+ return nil, false
+ }
+
+ return o.MobileNumber, true
+}
+
+// HasMobileNumber returns a boolean if a field has been set.
+func (o *OrgUserResponse) HasMobileNumber() bool {
+ if o != nil && !IsNil(o.MobileNumber) {
+ return true
+ }
+
+ return false
+}
+
+// SetMobileNumber gets a reference to the given string and assigns it to the MobileNumber field.
+func (o *OrgUserResponse) SetMobileNumber(v string) {
+ o.MobileNumber = &v
+}
diff --git a/admin/model_org_user_roles_request.go b/admin/model_org_user_roles_request.go
new file mode 100644
index 000000000..f8fd53f70
--- /dev/null
+++ b/admin/model_org_user_roles_request.go
@@ -0,0 +1,86 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// OrgUserRolesRequest Organization and project level roles to assign the MongoDB Cloud user within one organization.
+type OrgUserRolesRequest struct {
+ // List of project level role assignments to assign the MongoDB Cloud user.
+ GroupRoleAssignments *[]GroupRoleAssignment `json:"groupRoleAssignments,omitempty"`
+ // One or more organization level roles to assign the MongoDB Cloud user.
+ OrgRoles []string `json:"orgRoles"`
+}
+
+// NewOrgUserRolesRequest instantiates a new OrgUserRolesRequest 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 NewOrgUserRolesRequest(orgRoles []string) *OrgUserRolesRequest {
+ this := OrgUserRolesRequest{}
+ this.OrgRoles = orgRoles
+ return &this
+}
+
+// NewOrgUserRolesRequestWithDefaults instantiates a new OrgUserRolesRequest 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 NewOrgUserRolesRequestWithDefaults() *OrgUserRolesRequest {
+ this := OrgUserRolesRequest{}
+ return &this
+}
+
+// GetGroupRoleAssignments returns the GroupRoleAssignments field value if set, zero value otherwise
+func (o *OrgUserRolesRequest) GetGroupRoleAssignments() []GroupRoleAssignment {
+ if o == nil || IsNil(o.GroupRoleAssignments) {
+ var ret []GroupRoleAssignment
+ return ret
+ }
+ return *o.GroupRoleAssignments
+}
+
+// GetGroupRoleAssignmentsOk returns a tuple with the GroupRoleAssignments field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserRolesRequest) GetGroupRoleAssignmentsOk() (*[]GroupRoleAssignment, bool) {
+ if o == nil || IsNil(o.GroupRoleAssignments) {
+ return nil, false
+ }
+
+ return o.GroupRoleAssignments, true
+}
+
+// HasGroupRoleAssignments returns a boolean if a field has been set.
+func (o *OrgUserRolesRequest) HasGroupRoleAssignments() bool {
+ if o != nil && !IsNil(o.GroupRoleAssignments) {
+ return true
+ }
+
+ return false
+}
+
+// SetGroupRoleAssignments gets a reference to the given []GroupRoleAssignment and assigns it to the GroupRoleAssignments field.
+func (o *OrgUserRolesRequest) SetGroupRoleAssignments(v []GroupRoleAssignment) {
+ o.GroupRoleAssignments = &v
+}
+
+// GetOrgRoles returns the OrgRoles field value
+func (o *OrgUserRolesRequest) GetOrgRoles() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.OrgRoles
+}
+
+// GetOrgRolesOk returns a tuple with the OrgRoles field value
+// and a boolean to check if the value has been set.
+func (o *OrgUserRolesRequest) GetOrgRolesOk() (*[]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrgRoles, true
+}
+
+// SetOrgRoles sets field value
+func (o *OrgUserRolesRequest) SetOrgRoles(v []string) {
+ o.OrgRoles = v
+}
diff --git a/admin/model_org_user_roles_response.go b/admin/model_org_user_roles_response.go
new file mode 100644
index 000000000..2a0e020b6
--- /dev/null
+++ b/admin/model_org_user_roles_response.go
@@ -0,0 +1,94 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// OrgUserRolesResponse Organization- and project-level roles assigned to one MongoDB Cloud user within one organization.
+type OrgUserRolesResponse struct {
+ // List of project-level role assignments assigned to the MongoDB Cloud user.
+ GroupRoleAssignments *[]GroupRoleAssignment `json:"groupRoleAssignments,omitempty"`
+ // One or more organization-level roles assigned to the MongoDB Cloud user.
+ OrgRoles *[]string `json:"orgRoles,omitempty"`
+}
+
+// NewOrgUserRolesResponse instantiates a new OrgUserRolesResponse 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 NewOrgUserRolesResponse() *OrgUserRolesResponse {
+ this := OrgUserRolesResponse{}
+ return &this
+}
+
+// NewOrgUserRolesResponseWithDefaults instantiates a new OrgUserRolesResponse 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 NewOrgUserRolesResponseWithDefaults() *OrgUserRolesResponse {
+ this := OrgUserRolesResponse{}
+ return &this
+}
+
+// GetGroupRoleAssignments returns the GroupRoleAssignments field value if set, zero value otherwise
+func (o *OrgUserRolesResponse) GetGroupRoleAssignments() []GroupRoleAssignment {
+ if o == nil || IsNil(o.GroupRoleAssignments) {
+ var ret []GroupRoleAssignment
+ return ret
+ }
+ return *o.GroupRoleAssignments
+}
+
+// GetGroupRoleAssignmentsOk returns a tuple with the GroupRoleAssignments field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserRolesResponse) GetGroupRoleAssignmentsOk() (*[]GroupRoleAssignment, bool) {
+ if o == nil || IsNil(o.GroupRoleAssignments) {
+ return nil, false
+ }
+
+ return o.GroupRoleAssignments, true
+}
+
+// HasGroupRoleAssignments returns a boolean if a field has been set.
+func (o *OrgUserRolesResponse) HasGroupRoleAssignments() bool {
+ if o != nil && !IsNil(o.GroupRoleAssignments) {
+ return true
+ }
+
+ return false
+}
+
+// SetGroupRoleAssignments gets a reference to the given []GroupRoleAssignment and assigns it to the GroupRoleAssignments field.
+func (o *OrgUserRolesResponse) SetGroupRoleAssignments(v []GroupRoleAssignment) {
+ o.GroupRoleAssignments = &v
+}
+
+// GetOrgRoles returns the OrgRoles field value if set, zero value otherwise
+func (o *OrgUserRolesResponse) GetOrgRoles() []string {
+ if o == nil || IsNil(o.OrgRoles) {
+ var ret []string
+ return ret
+ }
+ return *o.OrgRoles
+}
+
+// GetOrgRolesOk returns a tuple with the OrgRoles field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserRolesResponse) GetOrgRolesOk() (*[]string, bool) {
+ if o == nil || IsNil(o.OrgRoles) {
+ return nil, false
+ }
+
+ return o.OrgRoles, true
+}
+
+// HasOrgRoles returns a boolean if a field has been set.
+func (o *OrgUserRolesResponse) HasOrgRoles() bool {
+ if o != nil && !IsNil(o.OrgRoles) {
+ return true
+ }
+
+ return false
+}
+
+// SetOrgRoles gets a reference to the given []string and assigns it to the OrgRoles field.
+func (o *OrgUserRolesResponse) SetOrgRoles(v []string) {
+ o.OrgRoles = &v
+}
diff --git a/admin/model_org_user_update_request.go b/admin/model_org_user_update_request.go
new file mode 100644
index 000000000..9044b4aa3
--- /dev/null
+++ b/admin/model_org_user_update_request.go
@@ -0,0 +1,94 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// OrgUserUpdateRequest struct for OrgUserUpdateRequest
+type OrgUserUpdateRequest struct {
+ Roles *OrgUserRolesRequest `json:"roles,omitempty"`
+ // List of unique 24-hexadecimal digit strings that identifies the teams to assign the MongoDB Cloud user.
+ // Write only field.
+ TeamIds *[]string `json:"teamIds,omitempty"`
+}
+
+// NewOrgUserUpdateRequest instantiates a new OrgUserUpdateRequest 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 NewOrgUserUpdateRequest() *OrgUserUpdateRequest {
+ this := OrgUserUpdateRequest{}
+ return &this
+}
+
+// NewOrgUserUpdateRequestWithDefaults instantiates a new OrgUserUpdateRequest 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 NewOrgUserUpdateRequestWithDefaults() *OrgUserUpdateRequest {
+ this := OrgUserUpdateRequest{}
+ return &this
+}
+
+// GetRoles returns the Roles field value if set, zero value otherwise
+func (o *OrgUserUpdateRequest) GetRoles() OrgUserRolesRequest {
+ if o == nil || IsNil(o.Roles) {
+ var ret OrgUserRolesRequest
+ return ret
+ }
+ return *o.Roles
+}
+
+// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserUpdateRequest) GetRolesOk() (*OrgUserRolesRequest, bool) {
+ if o == nil || IsNil(o.Roles) {
+ return nil, false
+ }
+
+ return o.Roles, true
+}
+
+// HasRoles returns a boolean if a field has been set.
+func (o *OrgUserUpdateRequest) HasRoles() bool {
+ if o != nil && !IsNil(o.Roles) {
+ return true
+ }
+
+ return false
+}
+
+// SetRoles gets a reference to the given OrgUserRolesRequest and assigns it to the Roles field.
+func (o *OrgUserUpdateRequest) SetRoles(v OrgUserRolesRequest) {
+ o.Roles = &v
+}
+
+// GetTeamIds returns the TeamIds field value if set, zero value otherwise
+func (o *OrgUserUpdateRequest) GetTeamIds() []string {
+ if o == nil || IsNil(o.TeamIds) {
+ var ret []string
+ return ret
+ }
+ return *o.TeamIds
+}
+
+// GetTeamIdsOk returns a tuple with the TeamIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgUserUpdateRequest) GetTeamIdsOk() (*[]string, bool) {
+ if o == nil || IsNil(o.TeamIds) {
+ return nil, false
+ }
+
+ return o.TeamIds, true
+}
+
+// HasTeamIds returns a boolean if a field has been set.
+func (o *OrgUserUpdateRequest) HasTeamIds() bool {
+ if o != nil && !IsNil(o.TeamIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetTeamIds gets a reference to the given []string and assigns it to the TeamIds field.
+func (o *OrgUserUpdateRequest) SetTeamIds(v []string) {
+ o.TeamIds = &v
+}
diff --git a/admin/model_paginated_api_versions.go b/admin/model_paginated_api_versions.go
new file mode 100644
index 000000000..d4f90a4f4
--- /dev/null
+++ b/admin/model_paginated_api_versions.go
@@ -0,0 +1,132 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// PaginatedApiVersions struct for PaginatedApiVersions
+type PaginatedApiVersions 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 provides when completing this request.
+ // Read only field.
+ Results *[]ApiVersion `json:"results,omitempty"`
+ // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. The total number is an estimate and may not be exact.
+ // Read only field.
+ TotalCount *int `json:"totalCount,omitempty"`
+}
+
+// NewPaginatedApiVersions instantiates a new PaginatedApiVersions 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 NewPaginatedApiVersions() *PaginatedApiVersions {
+ this := PaginatedApiVersions{}
+ return &this
+}
+
+// NewPaginatedApiVersionsWithDefaults instantiates a new PaginatedApiVersions 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 NewPaginatedApiVersionsWithDefaults() *PaginatedApiVersions {
+ this := PaginatedApiVersions{}
+ return &this
+}
+
+// GetLinks returns the Links field value if set, zero value otherwise
+func (o *PaginatedApiVersions) GetLinks() []Link {
+ if o == nil || IsNil(o.Links) {
+ var ret []Link
+ return ret
+ }
+ return *o.Links
+}
+
+// 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 *PaginatedApiVersions) GetLinksOk() (*[]Link, bool) {
+ if o == nil || IsNil(o.Links) {
+ return nil, false
+ }
+
+ return o.Links, true
+}
+
+// HasLinks returns a boolean if a field has been set.
+func (o *PaginatedApiVersions) HasLinks() bool {
+ if o != nil && !IsNil(o.Links) {
+ return true
+ }
+
+ return false
+}
+
+// SetLinks gets a reference to the given []Link and assigns it to the Links field.
+func (o *PaginatedApiVersions) SetLinks(v []Link) {
+ o.Links = &v
+}
+
+// GetResults returns the Results field value if set, zero value otherwise
+func (o *PaginatedApiVersions) GetResults() []ApiVersion {
+ if o == nil || IsNil(o.Results) {
+ var ret []ApiVersion
+ return ret
+ }
+ return *o.Results
+}
+
+// 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 *PaginatedApiVersions) GetResultsOk() (*[]ApiVersion, bool) {
+ if o == nil || IsNil(o.Results) {
+ return nil, false
+ }
+
+ return o.Results, true
+}
+
+// HasResults returns a boolean if a field has been set.
+func (o *PaginatedApiVersions) HasResults() bool {
+ if o != nil && !IsNil(o.Results) {
+ return true
+ }
+
+ return false
+}
+
+// SetResults gets a reference to the given []ApiVersion and assigns it to the Results field.
+func (o *PaginatedApiVersions) SetResults(v []ApiVersion) {
+ o.Results = &v
+}
+
+// GetTotalCount returns the TotalCount field value if set, zero value otherwise
+func (o *PaginatedApiVersions) GetTotalCount() int {
+ if o == nil || IsNil(o.TotalCount) {
+ var ret int
+ return ret
+ }
+ return *o.TotalCount
+}
+
+// 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 *PaginatedApiVersions) GetTotalCountOk() (*int, bool) {
+ if o == nil || IsNil(o.TotalCount) {
+ return nil, false
+ }
+
+ return o.TotalCount, true
+}
+
+// HasTotalCount returns a boolean if a field has been set.
+func (o *PaginatedApiVersions) HasTotalCount() bool {
+ if o != nil && !IsNil(o.TotalCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetTotalCount gets a reference to the given int and assigns it to the TotalCount field.
+func (o *PaginatedApiVersions) SetTotalCount(v int) {
+ o.TotalCount = &v
+}
diff --git a/admin/model_paginated_org_user.go b/admin/model_paginated_org_user.go
new file mode 100644
index 000000000..aecbdce4b
--- /dev/null
+++ b/admin/model_paginated_org_user.go
@@ -0,0 +1,132 @@
+// Code based on the AtlasAPI V2 OpenAPI file
+
+package admin
+
+// PaginatedOrgUser struct for PaginatedOrgUser
+type PaginatedOrgUser 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 provides when completing this request.
+ // Read only field.
+ Results *[]OrgUserResponse `json:"results,omitempty"`
+ // Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. The total number is an estimate and may not be exact.
+ // Read only field.
+ TotalCount *int `json:"totalCount,omitempty"`
+}
+
+// NewPaginatedOrgUser instantiates a new PaginatedOrgUser 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 NewPaginatedOrgUser() *PaginatedOrgUser {
+ this := PaginatedOrgUser{}
+ return &this
+}
+
+// NewPaginatedOrgUserWithDefaults instantiates a new PaginatedOrgUser 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 NewPaginatedOrgUserWithDefaults() *PaginatedOrgUser {
+ this := PaginatedOrgUser{}
+ return &this
+}
+
+// GetLinks returns the Links field value if set, zero value otherwise
+func (o *PaginatedOrgUser) GetLinks() []Link {
+ if o == nil || IsNil(o.Links) {
+ var ret []Link
+ return ret
+ }
+ return *o.Links
+}
+
+// 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 *PaginatedOrgUser) GetLinksOk() (*[]Link, bool) {
+ if o == nil || IsNil(o.Links) {
+ return nil, false
+ }
+
+ return o.Links, true
+}
+
+// HasLinks returns a boolean if a field has been set.
+func (o *PaginatedOrgUser) HasLinks() bool {
+ if o != nil && !IsNil(o.Links) {
+ return true
+ }
+
+ return false
+}
+
+// SetLinks gets a reference to the given []Link and assigns it to the Links field.
+func (o *PaginatedOrgUser) SetLinks(v []Link) {
+ o.Links = &v
+}
+
+// GetResults returns the Results field value if set, zero value otherwise
+func (o *PaginatedOrgUser) GetResults() []OrgUserResponse {
+ if o == nil || IsNil(o.Results) {
+ var ret []OrgUserResponse
+ return ret
+ }
+ return *o.Results
+}
+
+// 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 *PaginatedOrgUser) GetResultsOk() (*[]OrgUserResponse, bool) {
+ if o == nil || IsNil(o.Results) {
+ return nil, false
+ }
+
+ return o.Results, true
+}
+
+// HasResults returns a boolean if a field has been set.
+func (o *PaginatedOrgUser) HasResults() bool {
+ if o != nil && !IsNil(o.Results) {
+ return true
+ }
+
+ return false
+}
+
+// SetResults gets a reference to the given []OrgUserResponse and assigns it to the Results field.
+func (o *PaginatedOrgUser) SetResults(v []OrgUserResponse) {
+ o.Results = &v
+}
+
+// GetTotalCount returns the TotalCount field value if set, zero value otherwise
+func (o *PaginatedOrgUser) GetTotalCount() int {
+ if o == nil || IsNil(o.TotalCount) {
+ var ret int
+ return ret
+ }
+ return *o.TotalCount
+}
+
+// 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 *PaginatedOrgUser) GetTotalCountOk() (*int, bool) {
+ if o == nil || IsNil(o.TotalCount) {
+ return nil, false
+ }
+
+ return o.TotalCount, true
+}
+
+// HasTotalCount returns a boolean if a field has been set.
+func (o *PaginatedOrgUser) HasTotalCount() bool {
+ if o != nil && !IsNil(o.TotalCount) {
+ return true
+ }
+
+ return false
+}
+
+// SetTotalCount gets a reference to the given int and assigns it to the TotalCount field.
+func (o *PaginatedOrgUser) SetTotalCount(v int) {
+ o.TotalCount = &v
+}
diff --git a/admin/model_streams_private_link_connection.go b/admin/model_streams_private_link_connection.go
index 3a0f33fbe..d849350ea 100644
--- a/admin/model_streams_private_link_connection.go
+++ b/admin/model_streams_private_link_connection.go
@@ -5,12 +5,19 @@ package admin
// StreamsPrivateLinkConnection Container for metadata needed to create a Private Link connection.
type StreamsPrivateLinkConnection struct {
// The ID of the Private Link connection.
+ // Read only field.
Id *string `json:"_id,omitempty"`
+ // Amazon Resource Name (ARN).
+ Arn *string `json:"arn,omitempty"`
// Domain name of Privatelink connected cluster.
DnsDomain *string `json:"dnsDomain,omitempty"`
// Sub-Domain name of Confluent cluster. These are typically your availability zones.
DnsSubDomain *[]string `json:"dnsSubDomain,omitempty"`
+ // Error message if the state is FAILED.
+ // Read only field.
+ ErrorMessage *string `json:"errorMessage,omitempty"`
// Interface endpoint ID that is created from the service endpoint ID provided.
+ // Read only field.
InterfaceEndpointId *string `json:"interfaceEndpointId,omitempty"`
// 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.
@@ -22,6 +29,7 @@ type StreamsPrivateLinkConnection struct {
// Service Endpoint ID.
ServiceEndpointId *string `json:"serviceEndpointId,omitempty"`
// State the connection is in.
+ // Read only field.
State *string `json:"state,omitempty"`
// Vendor who manages the Kafka cluster.
Vendor *string `json:"vendor,omitempty"`
@@ -77,6 +85,39 @@ func (o *StreamsPrivateLinkConnection) SetId(v string) {
o.Id = &v
}
+// GetArn returns the Arn field value if set, zero value otherwise
+func (o *StreamsPrivateLinkConnection) GetArn() string {
+ if o == nil || IsNil(o.Arn) {
+ var ret string
+ return ret
+ }
+ return *o.Arn
+}
+
+// GetArnOk returns a tuple with the Arn field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *StreamsPrivateLinkConnection) GetArnOk() (*string, bool) {
+ if o == nil || IsNil(o.Arn) {
+ return nil, false
+ }
+
+ return o.Arn, true
+}
+
+// HasArn returns a boolean if a field has been set.
+func (o *StreamsPrivateLinkConnection) HasArn() bool {
+ if o != nil && !IsNil(o.Arn) {
+ return true
+ }
+
+ return false
+}
+
+// SetArn gets a reference to the given string and assigns it to the Arn field.
+func (o *StreamsPrivateLinkConnection) SetArn(v string) {
+ o.Arn = &v
+}
+
// GetDnsDomain returns the DnsDomain field value if set, zero value otherwise
func (o *StreamsPrivateLinkConnection) GetDnsDomain() string {
if o == nil || IsNil(o.DnsDomain) {
@@ -143,6 +184,39 @@ func (o *StreamsPrivateLinkConnection) SetDnsSubDomain(v []string) {
o.DnsSubDomain = &v
}
+// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise
+func (o *StreamsPrivateLinkConnection) GetErrorMessage() string {
+ if o == nil || IsNil(o.ErrorMessage) {
+ var ret string
+ return ret
+ }
+ return *o.ErrorMessage
+}
+
+// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *StreamsPrivateLinkConnection) GetErrorMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.ErrorMessage) {
+ return nil, false
+ }
+
+ return o.ErrorMessage, true
+}
+
+// HasErrorMessage returns a boolean if a field has been set.
+func (o *StreamsPrivateLinkConnection) HasErrorMessage() bool {
+ if o != nil && !IsNil(o.ErrorMessage) {
+ return true
+ }
+
+ return false
+}
+
+// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.
+func (o *StreamsPrivateLinkConnection) SetErrorMessage(v string) {
+ o.ErrorMessage = &v
+}
+
// GetInterfaceEndpointId returns the InterfaceEndpointId field value if set, zero value otherwise
func (o *StreamsPrivateLinkConnection) GetInterfaceEndpointId() string {
if o == nil || IsNil(o.InterfaceEndpointId) {
diff --git a/auth/clientcredentials/clientcredentials.go b/auth/clientcredentials/clientcredentials.go
index 47914cbbd..5d92c7c0f 100644
--- a/auth/clientcredentials/clientcredentials.go
+++ b/auth/clientcredentials/clientcredentials.go
@@ -10,8 +10,8 @@ import (
"net/url"
"strings"
- "go.mongodb.org/atlas-sdk/v20241113004/auth"
- "go.mongodb.org/atlas-sdk/v20241113004/internal/core"
+ "github.com/mongodb/atlas-sdk-go/auth"
+ "github.com/mongodb/atlas-sdk-go/internal/core"
"golang.org/x/oauth2/clientcredentials"
)
diff --git a/auth/clientcredentials/clientcredentials_test.go b/auth/clientcredentials/clientcredentials_test.go
index aeb034278..20f431fc7 100644
--- a/auth/clientcredentials/clientcredentials_test.go
+++ b/auth/clientcredentials/clientcredentials_test.go
@@ -8,7 +8,7 @@ import (
"time"
"github.com/stretchr/testify/assert"
- "go.mongodb.org/atlas-sdk/v20241113004/auth"
+ "github.com/mongodb/atlas-sdk-go/auth"
)
// mockOAuthRevokeEndpoint creates a mock OAuth revoke endpoint,
diff --git a/auth/code/device_flow.go b/auth/code/device_flow.go
index 51126a347..6d353bddb 100644
--- a/auth/code/device_flow.go
+++ b/auth/code/device_flow.go
@@ -22,7 +22,7 @@ import (
"strings"
"time"
- core "go.mongodb.org/atlas-sdk/v20241113004/internal/core"
+ core "github.com/mongodb/atlas-sdk-go/internal/core"
)
const authExpiredError = "DEVICE_AUTHORIZATION_EXPIRED"
diff --git a/auth/code/oauth.go b/auth/code/oauth.go
index 49efc0d6e..f9e4a9bd5 100644
--- a/auth/code/oauth.go
+++ b/auth/code/oauth.go
@@ -26,7 +26,7 @@ import (
"runtime"
"strings"
- "go.mongodb.org/atlas-sdk/v20241113004/internal/core"
+ "github.com/mongodb/atlas-sdk-go/internal/core"
)
const defaultBaseURL = "https://cloud.mongodb.com/"
diff --git a/auth/code/oauth_test.go b/auth/code/oauth_test.go
index 8a3e42bd1..1234427b1 100644
--- a/auth/code/oauth_test.go
+++ b/auth/code/oauth_test.go
@@ -24,7 +24,7 @@ import (
"reflect"
"testing"
- core "go.mongodb.org/atlas-sdk/v20241113004/internal/core"
+ core "github.com/mongodb/atlas-sdk-go/internal/core"
)
const (
diff --git a/examples/aws_cluster/aws.go b/examples/aws_cluster/aws.go
index 09170e5b4..c12a81352 100644
--- a/examples/aws_cluster/aws.go
+++ b/examples/aws_cluster/aws.go
@@ -10,8 +10,8 @@ import (
"context"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
- "go.mongodb.org/atlas-sdk/v20241113004/examples"
+ "github.com/mongodb/atlas-sdk-go/admin"
+ "github.com/mongodb/atlas-sdk-go/examples"
)
/*
diff --git a/examples/basic/basic.go b/examples/basic/basic.go
index d44ca7818..731342a99 100644
--- a/examples/basic/basic.go
+++ b/examples/basic/basic.go
@@ -7,8 +7,8 @@ import (
"context"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
- "go.mongodb.org/atlas-sdk/v20241113004/examples"
+ "github.com/mongodb/atlas-sdk-go/admin"
+ "github.com/mongodb/atlas-sdk-go/examples"
)
/*
diff --git a/examples/db_users/db_users.go b/examples/db_users/db_users.go
index ff3ee8d1a..0ba40cbd5 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/v20241113004/admin"
- "go.mongodb.org/atlas-sdk/v20241113004/examples"
+ "github.com/mongodb/atlas-sdk-go/admin"
+ "github.com/mongodb/atlas-sdk-go/examples"
)
const (
diff --git a/examples/download/downloadLogs.go b/examples/download/downloadLogs.go
index 707ca19e2..7b1ca274f 100644
--- a/examples/download/downloadLogs.go
+++ b/examples/download/downloadLogs.go
@@ -7,8 +7,8 @@ import (
"context"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
- "go.mongodb.org/atlas-sdk/v20241113004/examples"
+ "github.com/mongodb/atlas-sdk-go/admin"
+ "github.com/mongodb/atlas-sdk-go/examples"
)
/*
diff --git a/examples/errors.go b/examples/errors.go
index d004e4c02..7c6a28ad7 100644
--- a/examples/errors.go
+++ b/examples/errors.go
@@ -5,7 +5,7 @@ import (
"log"
"net/http"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ "github.com/mongodb/atlas-sdk-go/admin"
)
func HandleErr(err error, resp *http.Response) {
diff --git a/examples/go.mod b/examples/go.mod
index 1e60832ea..3655ff4a6 100644
--- a/examples/go.mod
+++ b/examples/go.mod
@@ -1,18 +1,20 @@
-module go.mongodb.org/atlas-sdk/v20241113004/examples
+module github.com/mongodb/atlas-sdk-go/examples
go 1.22.0
toolchain go1.23.1
-replace go.mongodb.org/atlas-sdk/v20241113004 => ../
+replace github.com/mongodb/atlas-sdk-go => ../
require (
github.com/hashicorp/go-retryablehttp v0.7.7
github.com/mongodb-forks/digest v1.1.0
- go.mongodb.org/atlas-sdk/v20241113004 v20241113004.1.0
)
-require golang.org/x/oauth2 v0.24.0 // indirect
+require (
+ github.com/mongodb/atlas-sdk-go v1.0.0 // indirect
+ golang.org/x/oauth2 v0.24.0 // indirect
+)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
diff --git a/examples/invoice/invoice.go b/examples/invoice/invoice.go
index 4041a7d35..f5e41b040 100644
--- a/examples/invoice/invoice.go
+++ b/examples/invoice/invoice.go
@@ -7,8 +7,8 @@ import (
"context"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
- "go.mongodb.org/atlas-sdk/v20241113004/examples"
+ "github.com/mongodb/atlas-sdk-go/admin"
+ "github.com/mongodb/atlas-sdk-go/examples"
)
func main() {
diff --git a/examples/mock/cluster_test.go b/examples/mock/cluster_test.go
index e98b0fcff..087433514 100644
--- a/examples/mock/cluster_test.go
+++ b/examples/mock/cluster_test.go
@@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
- "go.mongodb.org/atlas-sdk/v20241113004/mockadmin"
+ "github.com/mongodb/atlas-sdk-go/admin"
+ "github.com/mongodb/atlas-sdk-go/mockadmin"
)
func myFunctionCallingListClusters(clusterAPI admin.ClustersApi) (int, error) {
diff --git a/examples/regions/regions.go b/examples/regions/regions.go
index 4a6cac62d..25e110610 100644
--- a/examples/regions/regions.go
+++ b/examples/regions/regions.go
@@ -7,8 +7,8 @@ import (
"context"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
- "go.mongodb.org/atlas-sdk/v20241113004/examples"
+ "github.com/mongodb/atlas-sdk-go/admin"
+ "github.com/mongodb/atlas-sdk-go/examples"
)
/*
diff --git a/examples/retry/retry.go b/examples/retry/retry.go
index e9b6e64fc..420790b1c 100644
--- a/examples/retry/retry.go
+++ b/examples/retry/retry.go
@@ -8,7 +8,7 @@ import (
"context"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ "github.com/mongodb/atlas-sdk-go/admin"
retryablehttp "github.com/hashicorp/go-retryablehttp"
"github.com/mongodb-forks/digest"
diff --git a/examples/service_account_management/sa_management.go b/examples/service_account_management/sa_management.go
index eb701f9a3..25223b88c 100644
--- a/examples/service_account_management/sa_management.go
+++ b/examples/service_account_management/sa_management.go
@@ -6,7 +6,7 @@ import (
"log"
"os"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ "github.com/mongodb/atlas-sdk-go/admin"
)
// Example for Service Account Management API
diff --git a/examples/service_account_token_store/cached_token.go b/examples/service_account_token_store/cached_token.go
index fd83a4297..d11bead22 100644
--- a/examples/service_account_token_store/cached_token.go
+++ b/examples/service_account_token_store/cached_token.go
@@ -4,13 +4,13 @@ import (
"context"
"encoding/json"
"fmt"
- "go.mongodb.org/atlas-sdk/v20241113004/auth"
+ "github.com/mongodb/atlas-sdk-go/auth"
"log"
"os"
"strings"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
- "go.mongodb.org/atlas-sdk/v20241113004/auth/clientcredentials"
+ "github.com/mongodb/atlas-sdk-go/admin"
+ "github.com/mongodb/atlas-sdk-go/auth/clientcredentials"
)
// Variable provided as example.
diff --git a/go.mod b/go.mod
index 51d4a5444..1e528ac47 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module go.mongodb.org/atlas-sdk/v20241113004
+module github.com/mongodb/atlas-sdk-go
go 1.22.0
diff --git a/mockadmin/access_tracking_api.go b/mockadmin/access_tracking_api.go
index 6664b3c99..727d3feaf 100644
--- a/mockadmin/access_tracking_api.go
+++ b/mockadmin/access_tracking_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/alert_configurations_api.go b/mockadmin/alert_configurations_api.go
index 917b8313a..09d640271 100644
--- a/mockadmin/alert_configurations_api.go
+++ b/mockadmin/alert_configurations_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/alerts_api.go b/mockadmin/alerts_api.go
index 5779a75d3..dd7b998b4 100644
--- a/mockadmin/alerts_api.go
+++ b/mockadmin/alerts_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/atlas_search_api.go b/mockadmin/atlas_search_api.go
index 300804410..c4f6e606d 100644
--- a/mockadmin/atlas_search_api.go
+++ b/mockadmin/atlas_search_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/auditing_api.go b/mockadmin/auditing_api.go
index da522a81f..d76a7ec84 100644
--- a/mockadmin/auditing_api.go
+++ b/mockadmin/auditing_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/aws_clusters_dns_api.go b/mockadmin/aws_clusters_dns_api.go
index d8a1b3fda..6f8f303a1 100644
--- a/mockadmin/aws_clusters_dns_api.go
+++ b/mockadmin/aws_clusters_dns_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/cloud_backups_api.go b/mockadmin/cloud_backups_api.go
index 289fc98cc..fac63e119 100644
--- a/mockadmin/cloud_backups_api.go
+++ b/mockadmin/cloud_backups_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/cloud_migration_service_api.go b/mockadmin/cloud_migration_service_api.go
index 470295102..c67324cfd 100644
--- a/mockadmin/cloud_migration_service_api.go
+++ b/mockadmin/cloud_migration_service_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/cloud_provider_access_api.go b/mockadmin/cloud_provider_access_api.go
index dd205171d..5dcdb3d0e 100644
--- a/mockadmin/cloud_provider_access_api.go
+++ b/mockadmin/cloud_provider_access_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/cluster_outage_simulation_api.go b/mockadmin/cluster_outage_simulation_api.go
index 09d8d1c90..964087740 100644
--- a/mockadmin/cluster_outage_simulation_api.go
+++ b/mockadmin/cluster_outage_simulation_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/clusters_api.go b/mockadmin/clusters_api.go
index 5571bc913..81e472302 100644
--- a/mockadmin/clusters_api.go
+++ b/mockadmin/clusters_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/collection_level_metrics_api.go b/mockadmin/collection_level_metrics_api.go
index daf6e1bed..f4e5debc7 100644
--- a/mockadmin/collection_level_metrics_api.go
+++ b/mockadmin/collection_level_metrics_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/custom_database_roles_api.go b/mockadmin/custom_database_roles_api.go
index f1533e9b5..ed0cb9dbb 100644
--- a/mockadmin/custom_database_roles_api.go
+++ b/mockadmin/custom_database_roles_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/data_federation_api.go b/mockadmin/data_federation_api.go
index 728fc1b2f..72a4da14f 100644
--- a/mockadmin/data_federation_api.go
+++ b/mockadmin/data_federation_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/data_lake_pipelines_api.go b/mockadmin/data_lake_pipelines_api.go
index b1776b1af..f82e84c03 100644
--- a/mockadmin/data_lake_pipelines_api.go
+++ b/mockadmin/data_lake_pipelines_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/database_users_api.go b/mockadmin/database_users_api.go
index 19b71568a..ee2e2c8a4 100644
--- a/mockadmin/database_users_api.go
+++ b/mockadmin/database_users_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/encryption_at_rest_using_customer_key_management_api.go b/mockadmin/encryption_at_rest_using_customer_key_management_api.go
index 684fa917f..d380d4307 100644
--- a/mockadmin/encryption_at_rest_using_customer_key_management_api.go
+++ b/mockadmin/encryption_at_rest_using_customer_key_management_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/events_api.go b/mockadmin/events_api.go
index c81bdf12a..f4a8dc183 100644
--- a/mockadmin/events_api.go
+++ b/mockadmin/events_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/federated_authentication_api.go b/mockadmin/federated_authentication_api.go
index ad0ff226a..85b2fb59c 100644
--- a/mockadmin/federated_authentication_api.go
+++ b/mockadmin/federated_authentication_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/flex_clusters_api.go b/mockadmin/flex_clusters_api.go
index 7f34f9cdc..f82013d06 100644
--- a/mockadmin/flex_clusters_api.go
+++ b/mockadmin/flex_clusters_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/flex_restore_jobs_api.go b/mockadmin/flex_restore_jobs_api.go
index 0b23250db..c643a3965 100644
--- a/mockadmin/flex_restore_jobs_api.go
+++ b/mockadmin/flex_restore_jobs_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/flex_snapshots_api.go b/mockadmin/flex_snapshots_api.go
index 010475d86..c8e9f18a9 100644
--- a/mockadmin/flex_snapshots_api.go
+++ b/mockadmin/flex_snapshots_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/global_clusters_api.go b/mockadmin/global_clusters_api.go
index fd487fe03..3aad43d49 100644
--- a/mockadmin/global_clusters_api.go
+++ b/mockadmin/global_clusters_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/invoices_api.go b/mockadmin/invoices_api.go
index b45f8d08e..5c1b3eb18 100644
--- a/mockadmin/invoices_api.go
+++ b/mockadmin/invoices_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/ldap_configuration_api.go b/mockadmin/ldap_configuration_api.go
index 0e6a39e6c..c3e6a5669 100644
--- a/mockadmin/ldap_configuration_api.go
+++ b/mockadmin/ldap_configuration_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/legacy_backup_api.go b/mockadmin/legacy_backup_api.go
index fe4109042..3e941d5cc 100644
--- a/mockadmin/legacy_backup_api.go
+++ b/mockadmin/legacy_backup_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/maintenance_windows_api.go b/mockadmin/maintenance_windows_api.go
index a8a0a0b73..ec4bda7f9 100644
--- a/mockadmin/maintenance_windows_api.go
+++ b/mockadmin/maintenance_windows_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/mongo_db_cloud_users_api.go b/mockadmin/mongo_db_cloud_users_api.go
index 326e71207..dbcaa3488 100644
--- a/mockadmin/mongo_db_cloud_users_api.go
+++ b/mockadmin/mongo_db_cloud_users_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
@@ -25,76 +25,1698 @@ func (_m *MongoDBCloudUsersApi) EXPECT() *MongoDBCloudUsersApi_Expecter {
return &MongoDBCloudUsersApi_Expecter{mock: &_m.Mock}
}
+// AddOrganizationRole provides a mock function with given fields: ctx, orgId, userId, addOrRemoveOrgRole
+func (_m *MongoDBCloudUsersApi) AddOrganizationRole(ctx context.Context, orgId string, userId string, addOrRemoveOrgRole *admin.AddOrRemoveOrgRole) admin.AddOrganizationRoleApiRequest {
+ ret := _m.Called(ctx, orgId, userId, addOrRemoveOrgRole)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddOrganizationRole")
+ }
+
+ var r0 admin.AddOrganizationRoleApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string, *admin.AddOrRemoveOrgRole) admin.AddOrganizationRoleApiRequest); ok {
+ r0 = rf(ctx, orgId, userId, addOrRemoveOrgRole)
+ } else {
+ r0 = ret.Get(0).(admin.AddOrganizationRoleApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_AddOrganizationRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOrganizationRole'
+type MongoDBCloudUsersApi_AddOrganizationRole_Call struct {
+ *mock.Call
+}
+
+// AddOrganizationRole is a helper method to define mock.On call
+// - ctx context.Context
+// - orgId string
+// - userId string
+// - addOrRemoveOrgRole *admin.AddOrRemoveOrgRole
+func (_e *MongoDBCloudUsersApi_Expecter) AddOrganizationRole(ctx any, orgId any, userId any, addOrRemoveOrgRole any) *MongoDBCloudUsersApi_AddOrganizationRole_Call {
+ return &MongoDBCloudUsersApi_AddOrganizationRole_Call{Call: _e.mock.On("AddOrganizationRole", ctx, orgId, userId, addOrRemoveOrgRole)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRole_Call) Run(run func(ctx context.Context, orgId string, userId string, addOrRemoveOrgRole *admin.AddOrRemoveOrgRole)) *MongoDBCloudUsersApi_AddOrganizationRole_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*admin.AddOrRemoveOrgRole))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRole_Call) Return(_a0 admin.AddOrganizationRoleApiRequest) *MongoDBCloudUsersApi_AddOrganizationRole_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRole_Call) RunAndReturn(run func(context.Context, string, string, *admin.AddOrRemoveOrgRole) admin.AddOrganizationRoleApiRequest) *MongoDBCloudUsersApi_AddOrganizationRole_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddOrganizationRoleExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) AddOrganizationRoleExecute(r admin.AddOrganizationRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddOrganizationRoleExecute")
+ }
+
+ var r0 *admin.OrgUserResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.AddOrganizationRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.AddOrganizationRoleApiRequest) *admin.OrgUserResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.AddOrganizationRoleApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.AddOrganizationRoleApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOrganizationRoleExecute'
+type MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call struct {
+ *mock.Call
+}
+
+// AddOrganizationRoleExecute is a helper method to define mock.On call
+// - r admin.AddOrganizationRoleApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) AddOrganizationRoleExecute(r any) *MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call {
+ return &MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call{Call: _e.mock.On("AddOrganizationRoleExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call) Run(run func(r admin.AddOrganizationRoleApiRequest)) *MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.AddOrganizationRoleApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call) RunAndReturn(run func(admin.AddOrganizationRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_AddOrganizationRoleExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddOrganizationRoleWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) AddOrganizationRoleWithParams(ctx context.Context, args *admin.AddOrganizationRoleApiParams) admin.AddOrganizationRoleApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddOrganizationRoleWithParams")
+ }
+
+ var r0 admin.AddOrganizationRoleApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.AddOrganizationRoleApiParams) admin.AddOrganizationRoleApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.AddOrganizationRoleApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOrganizationRoleWithParams'
+type MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call struct {
+ *mock.Call
+}
+
+// AddOrganizationRoleWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.AddOrganizationRoleApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) AddOrganizationRoleWithParams(ctx any, args any) *MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call {
+ return &MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call{Call: _e.mock.On("AddOrganizationRoleWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call) Run(run func(ctx context.Context, args *admin.AddOrganizationRoleApiParams)) *MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.AddOrganizationRoleApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call) Return(_a0 admin.AddOrganizationRoleApiRequest) *MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call) RunAndReturn(run func(context.Context, *admin.AddOrganizationRoleApiParams) admin.AddOrganizationRoleApiRequest) *MongoDBCloudUsersApi_AddOrganizationRoleWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddProjectRole provides a mock function with given fields: ctx, groupId, userId, addOrRemoveGroupRole
+func (_m *MongoDBCloudUsersApi) AddProjectRole(ctx context.Context, groupId string, userId string, addOrRemoveGroupRole *admin.AddOrRemoveGroupRole) admin.AddProjectRoleApiRequest {
+ ret := _m.Called(ctx, groupId, userId, addOrRemoveGroupRole)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddProjectRole")
+ }
+
+ var r0 admin.AddProjectRoleApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string, *admin.AddOrRemoveGroupRole) admin.AddProjectRoleApiRequest); ok {
+ r0 = rf(ctx, groupId, userId, addOrRemoveGroupRole)
+ } else {
+ r0 = ret.Get(0).(admin.AddProjectRoleApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_AddProjectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProjectRole'
+type MongoDBCloudUsersApi_AddProjectRole_Call struct {
+ *mock.Call
+}
+
+// AddProjectRole is a helper method to define mock.On call
+// - ctx context.Context
+// - groupId string
+// - userId string
+// - addOrRemoveGroupRole *admin.AddOrRemoveGroupRole
+func (_e *MongoDBCloudUsersApi_Expecter) AddProjectRole(ctx any, groupId any, userId any, addOrRemoveGroupRole any) *MongoDBCloudUsersApi_AddProjectRole_Call {
+ return &MongoDBCloudUsersApi_AddProjectRole_Call{Call: _e.mock.On("AddProjectRole", ctx, groupId, userId, addOrRemoveGroupRole)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRole_Call) Run(run func(ctx context.Context, groupId string, userId string, addOrRemoveGroupRole *admin.AddOrRemoveGroupRole)) *MongoDBCloudUsersApi_AddProjectRole_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*admin.AddOrRemoveGroupRole))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRole_Call) Return(_a0 admin.AddProjectRoleApiRequest) *MongoDBCloudUsersApi_AddProjectRole_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRole_Call) RunAndReturn(run func(context.Context, string, string, *admin.AddOrRemoveGroupRole) admin.AddProjectRoleApiRequest) *MongoDBCloudUsersApi_AddProjectRole_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddProjectRoleExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) AddProjectRoleExecute(r admin.AddProjectRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddProjectRoleExecute")
+ }
+
+ var r0 *admin.OrgUserResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.AddProjectRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.AddProjectRoleApiRequest) *admin.OrgUserResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.AddProjectRoleApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.AddProjectRoleApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_AddProjectRoleExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProjectRoleExecute'
+type MongoDBCloudUsersApi_AddProjectRoleExecute_Call struct {
+ *mock.Call
+}
+
+// AddProjectRoleExecute is a helper method to define mock.On call
+// - r admin.AddProjectRoleApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) AddProjectRoleExecute(r any) *MongoDBCloudUsersApi_AddProjectRoleExecute_Call {
+ return &MongoDBCloudUsersApi_AddProjectRoleExecute_Call{Call: _e.mock.On("AddProjectRoleExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRoleExecute_Call) Run(run func(r admin.AddProjectRoleApiRequest)) *MongoDBCloudUsersApi_AddProjectRoleExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.AddProjectRoleApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRoleExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_AddProjectRoleExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRoleExecute_Call) RunAndReturn(run func(admin.AddProjectRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_AddProjectRoleExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddProjectRoleWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) AddProjectRoleWithParams(ctx context.Context, args *admin.AddProjectRoleApiParams) admin.AddProjectRoleApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddProjectRoleWithParams")
+ }
+
+ var r0 admin.AddProjectRoleApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.AddProjectRoleApiParams) admin.AddProjectRoleApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.AddProjectRoleApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_AddProjectRoleWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProjectRoleWithParams'
+type MongoDBCloudUsersApi_AddProjectRoleWithParams_Call struct {
+ *mock.Call
+}
+
+// AddProjectRoleWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.AddProjectRoleApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) AddProjectRoleWithParams(ctx any, args any) *MongoDBCloudUsersApi_AddProjectRoleWithParams_Call {
+ return &MongoDBCloudUsersApi_AddProjectRoleWithParams_Call{Call: _e.mock.On("AddProjectRoleWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRoleWithParams_Call) Run(run func(ctx context.Context, args *admin.AddProjectRoleApiParams)) *MongoDBCloudUsersApi_AddProjectRoleWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.AddProjectRoleApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRoleWithParams_Call) Return(_a0 admin.AddProjectRoleApiRequest) *MongoDBCloudUsersApi_AddProjectRoleWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectRoleWithParams_Call) RunAndReturn(run func(context.Context, *admin.AddProjectRoleApiParams) admin.AddProjectRoleApiRequest) *MongoDBCloudUsersApi_AddProjectRoleWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddProjectUser provides a mock function with given fields: ctx, groupId, groupUserRequest
+func (_m *MongoDBCloudUsersApi) AddProjectUser(ctx context.Context, groupId string, groupUserRequest *admin.GroupUserRequest) admin.AddProjectUserApiRequest {
+ ret := _m.Called(ctx, groupId, groupUserRequest)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddProjectUser")
+ }
+
+ var r0 admin.AddProjectUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, *admin.GroupUserRequest) admin.AddProjectUserApiRequest); ok {
+ r0 = rf(ctx, groupId, groupUserRequest)
+ } else {
+ r0 = ret.Get(0).(admin.AddProjectUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_AddProjectUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProjectUser'
+type MongoDBCloudUsersApi_AddProjectUser_Call struct {
+ *mock.Call
+}
+
+// AddProjectUser is a helper method to define mock.On call
+// - ctx context.Context
+// - groupId string
+// - groupUserRequest *admin.GroupUserRequest
+func (_e *MongoDBCloudUsersApi_Expecter) AddProjectUser(ctx any, groupId any, groupUserRequest any) *MongoDBCloudUsersApi_AddProjectUser_Call {
+ return &MongoDBCloudUsersApi_AddProjectUser_Call{Call: _e.mock.On("AddProjectUser", ctx, groupId, groupUserRequest)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUser_Call) Run(run func(ctx context.Context, groupId string, groupUserRequest *admin.GroupUserRequest)) *MongoDBCloudUsersApi_AddProjectUser_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(*admin.GroupUserRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUser_Call) Return(_a0 admin.AddProjectUserApiRequest) *MongoDBCloudUsersApi_AddProjectUser_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUser_Call) RunAndReturn(run func(context.Context, string, *admin.GroupUserRequest) admin.AddProjectUserApiRequest) *MongoDBCloudUsersApi_AddProjectUser_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddProjectUserExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) AddProjectUserExecute(r admin.AddProjectUserApiRequest) (*admin.GroupUserResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddProjectUserExecute")
+ }
+
+ var r0 *admin.GroupUserResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.AddProjectUserApiRequest) (*admin.GroupUserResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.AddProjectUserApiRequest) *admin.GroupUserResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.GroupUserResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.AddProjectUserApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.AddProjectUserApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_AddProjectUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProjectUserExecute'
+type MongoDBCloudUsersApi_AddProjectUserExecute_Call struct {
+ *mock.Call
+}
+
+// AddProjectUserExecute is a helper method to define mock.On call
+// - r admin.AddProjectUserApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) AddProjectUserExecute(r any) *MongoDBCloudUsersApi_AddProjectUserExecute_Call {
+ return &MongoDBCloudUsersApi_AddProjectUserExecute_Call{Call: _e.mock.On("AddProjectUserExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUserExecute_Call) Run(run func(r admin.AddProjectUserApiRequest)) *MongoDBCloudUsersApi_AddProjectUserExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.AddProjectUserApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUserExecute_Call) Return(_a0 *admin.GroupUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_AddProjectUserExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUserExecute_Call) RunAndReturn(run func(admin.AddProjectUserApiRequest) (*admin.GroupUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_AddProjectUserExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddProjectUserWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) AddProjectUserWithParams(ctx context.Context, args *admin.AddProjectUserApiParams) admin.AddProjectUserApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddProjectUserWithParams")
+ }
+
+ var r0 admin.AddProjectUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.AddProjectUserApiParams) admin.AddProjectUserApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.AddProjectUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_AddProjectUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProjectUserWithParams'
+type MongoDBCloudUsersApi_AddProjectUserWithParams_Call struct {
+ *mock.Call
+}
+
+// AddProjectUserWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.AddProjectUserApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) AddProjectUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_AddProjectUserWithParams_Call {
+ return &MongoDBCloudUsersApi_AddProjectUserWithParams_Call{Call: _e.mock.On("AddProjectUserWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUserWithParams_Call) Run(run func(ctx context.Context, args *admin.AddProjectUserApiParams)) *MongoDBCloudUsersApi_AddProjectUserWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.AddProjectUserApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUserWithParams_Call) Return(_a0 admin.AddProjectUserApiRequest) *MongoDBCloudUsersApi_AddProjectUserWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddProjectUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.AddProjectUserApiParams) admin.AddProjectUserApiRequest) *MongoDBCloudUsersApi_AddProjectUserWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddUserToTeam provides a mock function with given fields: ctx, orgId, teamId, addOrRemoveUserFromTeam
+func (_m *MongoDBCloudUsersApi) AddUserToTeam(ctx context.Context, orgId string, teamId string, addOrRemoveUserFromTeam *admin.AddOrRemoveUserFromTeam) admin.AddUserToTeamApiRequest {
+ ret := _m.Called(ctx, orgId, teamId, addOrRemoveUserFromTeam)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddUserToTeam")
+ }
+
+ var r0 admin.AddUserToTeamApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string, *admin.AddOrRemoveUserFromTeam) admin.AddUserToTeamApiRequest); ok {
+ r0 = rf(ctx, orgId, teamId, addOrRemoveUserFromTeam)
+ } else {
+ r0 = ret.Get(0).(admin.AddUserToTeamApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_AddUserToTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUserToTeam'
+type MongoDBCloudUsersApi_AddUserToTeam_Call struct {
+ *mock.Call
+}
+
+// AddUserToTeam is a helper method to define mock.On call
+// - ctx context.Context
+// - orgId string
+// - teamId string
+// - addOrRemoveUserFromTeam *admin.AddOrRemoveUserFromTeam
+func (_e *MongoDBCloudUsersApi_Expecter) AddUserToTeam(ctx any, orgId any, teamId any, addOrRemoveUserFromTeam any) *MongoDBCloudUsersApi_AddUserToTeam_Call {
+ return &MongoDBCloudUsersApi_AddUserToTeam_Call{Call: _e.mock.On("AddUserToTeam", ctx, orgId, teamId, addOrRemoveUserFromTeam)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeam_Call) Run(run func(ctx context.Context, orgId string, teamId string, addOrRemoveUserFromTeam *admin.AddOrRemoveUserFromTeam)) *MongoDBCloudUsersApi_AddUserToTeam_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*admin.AddOrRemoveUserFromTeam))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeam_Call) Return(_a0 admin.AddUserToTeamApiRequest) *MongoDBCloudUsersApi_AddUserToTeam_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeam_Call) RunAndReturn(run func(context.Context, string, string, *admin.AddOrRemoveUserFromTeam) admin.AddUserToTeamApiRequest) *MongoDBCloudUsersApi_AddUserToTeam_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddUserToTeamExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) AddUserToTeamExecute(r admin.AddUserToTeamApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddUserToTeamExecute")
+ }
+
+ var r0 *admin.OrgUserResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.AddUserToTeamApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.AddUserToTeamApiRequest) *admin.OrgUserResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.AddUserToTeamApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.AddUserToTeamApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_AddUserToTeamExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUserToTeamExecute'
+type MongoDBCloudUsersApi_AddUserToTeamExecute_Call struct {
+ *mock.Call
+}
+
+// AddUserToTeamExecute is a helper method to define mock.On call
+// - r admin.AddUserToTeamApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) AddUserToTeamExecute(r any) *MongoDBCloudUsersApi_AddUserToTeamExecute_Call {
+ return &MongoDBCloudUsersApi_AddUserToTeamExecute_Call{Call: _e.mock.On("AddUserToTeamExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeamExecute_Call) Run(run func(r admin.AddUserToTeamApiRequest)) *MongoDBCloudUsersApi_AddUserToTeamExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.AddUserToTeamApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeamExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_AddUserToTeamExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeamExecute_Call) RunAndReturn(run func(admin.AddUserToTeamApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_AddUserToTeamExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// AddUserToTeamWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) AddUserToTeamWithParams(ctx context.Context, args *admin.AddUserToTeamApiParams) admin.AddUserToTeamApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for AddUserToTeamWithParams")
+ }
+
+ var r0 admin.AddUserToTeamApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.AddUserToTeamApiParams) admin.AddUserToTeamApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.AddUserToTeamApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_AddUserToTeamWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUserToTeamWithParams'
+type MongoDBCloudUsersApi_AddUserToTeamWithParams_Call struct {
+ *mock.Call
+}
+
+// AddUserToTeamWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.AddUserToTeamApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) AddUserToTeamWithParams(ctx any, args any) *MongoDBCloudUsersApi_AddUserToTeamWithParams_Call {
+ return &MongoDBCloudUsersApi_AddUserToTeamWithParams_Call{Call: _e.mock.On("AddUserToTeamWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeamWithParams_Call) Run(run func(ctx context.Context, args *admin.AddUserToTeamApiParams)) *MongoDBCloudUsersApi_AddUserToTeamWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.AddUserToTeamApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeamWithParams_Call) Return(_a0 admin.AddUserToTeamApiRequest) *MongoDBCloudUsersApi_AddUserToTeamWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_AddUserToTeamWithParams_Call) RunAndReturn(run func(context.Context, *admin.AddUserToTeamApiParams) admin.AddUserToTeamApiRequest) *MongoDBCloudUsersApi_AddUserToTeamWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// CreateOrganizationUser provides a mock function with given fields: ctx, orgId, orgUserRequest
+func (_m *MongoDBCloudUsersApi) CreateOrganizationUser(ctx context.Context, orgId string, orgUserRequest *admin.OrgUserRequest) admin.CreateOrganizationUserApiRequest {
+ ret := _m.Called(ctx, orgId, orgUserRequest)
+
+ if len(ret) == 0 {
+ panic("no return value specified for CreateOrganizationUser")
+ }
+
+ var r0 admin.CreateOrganizationUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, *admin.OrgUserRequest) admin.CreateOrganizationUserApiRequest); ok {
+ r0 = rf(ctx, orgId, orgUserRequest)
+ } else {
+ r0 = ret.Get(0).(admin.CreateOrganizationUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_CreateOrganizationUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrganizationUser'
+type MongoDBCloudUsersApi_CreateOrganizationUser_Call struct {
+ *mock.Call
+}
+
+// CreateOrganizationUser is a helper method to define mock.On call
+// - ctx context.Context
+// - orgId string
+// - orgUserRequest *admin.OrgUserRequest
+func (_e *MongoDBCloudUsersApi_Expecter) CreateOrganizationUser(ctx any, orgId any, orgUserRequest any) *MongoDBCloudUsersApi_CreateOrganizationUser_Call {
+ return &MongoDBCloudUsersApi_CreateOrganizationUser_Call{Call: _e.mock.On("CreateOrganizationUser", ctx, orgId, orgUserRequest)}
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUser_Call) Run(run func(ctx context.Context, orgId string, orgUserRequest *admin.OrgUserRequest)) *MongoDBCloudUsersApi_CreateOrganizationUser_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(*admin.OrgUserRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUser_Call) Return(_a0 admin.CreateOrganizationUserApiRequest) *MongoDBCloudUsersApi_CreateOrganizationUser_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUser_Call) RunAndReturn(run func(context.Context, string, *admin.OrgUserRequest) admin.CreateOrganizationUserApiRequest) *MongoDBCloudUsersApi_CreateOrganizationUser_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// CreateOrganizationUserExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) CreateOrganizationUserExecute(r admin.CreateOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for CreateOrganizationUserExecute")
+ }
+
+ var r0 *admin.OrgUserResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.CreateOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.CreateOrganizationUserApiRequest) *admin.OrgUserResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.CreateOrganizationUserApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.CreateOrganizationUserApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrganizationUserExecute'
+type MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call struct {
+ *mock.Call
+}
+
+// CreateOrganizationUserExecute is a helper method to define mock.On call
+// - r admin.CreateOrganizationUserApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) CreateOrganizationUserExecute(r any) *MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call {
+ return &MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call{Call: _e.mock.On("CreateOrganizationUserExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call) Run(run func(r admin.CreateOrganizationUserApiRequest)) *MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.CreateOrganizationUserApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call) RunAndReturn(run func(admin.CreateOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_CreateOrganizationUserExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// CreateOrganizationUserWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) CreateOrganizationUserWithParams(ctx context.Context, args *admin.CreateOrganizationUserApiParams) admin.CreateOrganizationUserApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for CreateOrganizationUserWithParams")
+ }
+
+ var r0 admin.CreateOrganizationUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateOrganizationUserApiParams) admin.CreateOrganizationUserApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.CreateOrganizationUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrganizationUserWithParams'
+type MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call struct {
+ *mock.Call
+}
+
+// CreateOrganizationUserWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.CreateOrganizationUserApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) CreateOrganizationUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call {
+ return &MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call{Call: _e.mock.On("CreateOrganizationUserWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call) Run(run func(ctx context.Context, args *admin.CreateOrganizationUserApiParams)) *MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.CreateOrganizationUserApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call) Return(_a0 admin.CreateOrganizationUserApiRequest) *MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.CreateOrganizationUserApiParams) admin.CreateOrganizationUserApiRequest) *MongoDBCloudUsersApi_CreateOrganizationUserWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
// CreateUser provides a mock function with given fields: ctx, cloudAppUser
func (_m *MongoDBCloudUsersApi) CreateUser(ctx context.Context, cloudAppUser *admin.CloudAppUser) admin.CreateUserApiRequest {
ret := _m.Called(ctx, cloudAppUser)
if len(ret) == 0 {
- panic("no return value specified for CreateUser")
+ panic("no return value specified for CreateUser")
+ }
+
+ var r0 admin.CreateUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.CloudAppUser) admin.CreateUserApiRequest); ok {
+ r0 = rf(ctx, cloudAppUser)
+ } else {
+ r0 = ret.Get(0).(admin.CreateUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
+type MongoDBCloudUsersApi_CreateUser_Call struct {
+ *mock.Call
+}
+
+// CreateUser is a helper method to define mock.On call
+// - ctx context.Context
+// - cloudAppUser *admin.CloudAppUser
+func (_e *MongoDBCloudUsersApi_Expecter) CreateUser(ctx any, cloudAppUser any) *MongoDBCloudUsersApi_CreateUser_Call {
+ return &MongoDBCloudUsersApi_CreateUser_Call{Call: _e.mock.On("CreateUser", ctx, cloudAppUser)}
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUser_Call) Run(run func(ctx context.Context, cloudAppUser *admin.CloudAppUser)) *MongoDBCloudUsersApi_CreateUser_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.CloudAppUser))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUser_Call) Return(_a0 admin.CreateUserApiRequest) *MongoDBCloudUsersApi_CreateUser_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUser_Call) RunAndReturn(run func(context.Context, *admin.CloudAppUser) admin.CreateUserApiRequest) *MongoDBCloudUsersApi_CreateUser_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// CreateUserExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) CreateUserExecute(r admin.CreateUserApiRequest) (*admin.CloudAppUser, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for CreateUserExecute")
+ }
+
+ var r0 *admin.CloudAppUser
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.CreateUserApiRequest) (*admin.CloudAppUser, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.CreateUserApiRequest) *admin.CloudAppUser); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.CloudAppUser)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.CreateUserApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.CreateUserApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_CreateUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUserExecute'
+type MongoDBCloudUsersApi_CreateUserExecute_Call struct {
+ *mock.Call
+}
+
+// CreateUserExecute is a helper method to define mock.On call
+// - r admin.CreateUserApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) CreateUserExecute(r any) *MongoDBCloudUsersApi_CreateUserExecute_Call {
+ return &MongoDBCloudUsersApi_CreateUserExecute_Call{Call: _e.mock.On("CreateUserExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUserExecute_Call) Run(run func(r admin.CreateUserApiRequest)) *MongoDBCloudUsersApi_CreateUserExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.CreateUserApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUserExecute_Call) Return(_a0 *admin.CloudAppUser, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_CreateUserExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUserExecute_Call) RunAndReturn(run func(admin.CreateUserApiRequest) (*admin.CloudAppUser, *http.Response, error)) *MongoDBCloudUsersApi_CreateUserExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// CreateUserWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) CreateUserWithParams(ctx context.Context, args *admin.CreateUserApiParams) admin.CreateUserApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for CreateUserWithParams")
+ }
+
+ var r0 admin.CreateUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateUserApiParams) admin.CreateUserApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.CreateUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_CreateUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUserWithParams'
+type MongoDBCloudUsersApi_CreateUserWithParams_Call struct {
+ *mock.Call
+}
+
+// CreateUserWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.CreateUserApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) CreateUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_CreateUserWithParams_Call {
+ return &MongoDBCloudUsersApi_CreateUserWithParams_Call{Call: _e.mock.On("CreateUserWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUserWithParams_Call) Run(run func(ctx context.Context, args *admin.CreateUserApiParams)) *MongoDBCloudUsersApi_CreateUserWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.CreateUserApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUserWithParams_Call) Return(_a0 admin.CreateUserApiRequest) *MongoDBCloudUsersApi_CreateUserWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_CreateUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.CreateUserApiParams) admin.CreateUserApiRequest) *MongoDBCloudUsersApi_CreateUserWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetOrganizationUser provides a mock function with given fields: ctx, orgId, userId
+func (_m *MongoDBCloudUsersApi) GetOrganizationUser(ctx context.Context, orgId string, userId string) admin.GetOrganizationUserApiRequest {
+ ret := _m.Called(ctx, orgId, userId)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetOrganizationUser")
+ }
+
+ var r0 admin.GetOrganizationUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string) admin.GetOrganizationUserApiRequest); ok {
+ r0 = rf(ctx, orgId, userId)
+ } else {
+ r0 = ret.Get(0).(admin.GetOrganizationUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_GetOrganizationUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrganizationUser'
+type MongoDBCloudUsersApi_GetOrganizationUser_Call struct {
+ *mock.Call
+}
+
+// GetOrganizationUser is a helper method to define mock.On call
+// - ctx context.Context
+// - orgId string
+// - userId string
+func (_e *MongoDBCloudUsersApi_Expecter) GetOrganizationUser(ctx any, orgId any, userId any) *MongoDBCloudUsersApi_GetOrganizationUser_Call {
+ return &MongoDBCloudUsersApi_GetOrganizationUser_Call{Call: _e.mock.On("GetOrganizationUser", ctx, orgId, userId)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUser_Call) Run(run func(ctx context.Context, orgId string, userId string)) *MongoDBCloudUsersApi_GetOrganizationUser_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUser_Call) Return(_a0 admin.GetOrganizationUserApiRequest) *MongoDBCloudUsersApi_GetOrganizationUser_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUser_Call) RunAndReturn(run func(context.Context, string, string) admin.GetOrganizationUserApiRequest) *MongoDBCloudUsersApi_GetOrganizationUser_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetOrganizationUserExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) GetOrganizationUserExecute(r admin.GetOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetOrganizationUserExecute")
+ }
+
+ var r0 *admin.OrgUserResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.GetOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.GetOrganizationUserApiRequest) *admin.OrgUserResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.GetOrganizationUserApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.GetOrganizationUserApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_GetOrganizationUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrganizationUserExecute'
+type MongoDBCloudUsersApi_GetOrganizationUserExecute_Call struct {
+ *mock.Call
+}
+
+// GetOrganizationUserExecute is a helper method to define mock.On call
+// - r admin.GetOrganizationUserApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) GetOrganizationUserExecute(r any) *MongoDBCloudUsersApi_GetOrganizationUserExecute_Call {
+ return &MongoDBCloudUsersApi_GetOrganizationUserExecute_Call{Call: _e.mock.On("GetOrganizationUserExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUserExecute_Call) Run(run func(r admin.GetOrganizationUserApiRequest)) *MongoDBCloudUsersApi_GetOrganizationUserExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.GetOrganizationUserApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUserExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_GetOrganizationUserExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUserExecute_Call) RunAndReturn(run func(admin.GetOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_GetOrganizationUserExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetOrganizationUserWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) GetOrganizationUserWithParams(ctx context.Context, args *admin.GetOrganizationUserApiParams) admin.GetOrganizationUserApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetOrganizationUserWithParams")
+ }
+
+ var r0 admin.GetOrganizationUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.GetOrganizationUserApiParams) admin.GetOrganizationUserApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.GetOrganizationUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrganizationUserWithParams'
+type MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call struct {
+ *mock.Call
+}
+
+// GetOrganizationUserWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.GetOrganizationUserApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) GetOrganizationUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call {
+ return &MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call{Call: _e.mock.On("GetOrganizationUserWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call) Run(run func(ctx context.Context, args *admin.GetOrganizationUserApiParams)) *MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.GetOrganizationUserApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call) Return(_a0 admin.GetOrganizationUserApiRequest) *MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.GetOrganizationUserApiParams) admin.GetOrganizationUserApiRequest) *MongoDBCloudUsersApi_GetOrganizationUserWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetProjectUser provides a mock function with given fields: ctx, groupId, userId
+func (_m *MongoDBCloudUsersApi) GetProjectUser(ctx context.Context, groupId string, userId string) admin.GetProjectUserApiRequest {
+ ret := _m.Called(ctx, groupId, userId)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetProjectUser")
+ }
+
+ var r0 admin.GetProjectUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string) admin.GetProjectUserApiRequest); ok {
+ r0 = rf(ctx, groupId, userId)
+ } else {
+ r0 = ret.Get(0).(admin.GetProjectUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_GetProjectUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectUser'
+type MongoDBCloudUsersApi_GetProjectUser_Call struct {
+ *mock.Call
+}
+
+// GetProjectUser is a helper method to define mock.On call
+// - ctx context.Context
+// - groupId string
+// - userId string
+func (_e *MongoDBCloudUsersApi_Expecter) GetProjectUser(ctx any, groupId any, userId any) *MongoDBCloudUsersApi_GetProjectUser_Call {
+ return &MongoDBCloudUsersApi_GetProjectUser_Call{Call: _e.mock.On("GetProjectUser", ctx, groupId, userId)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUser_Call) Run(run func(ctx context.Context, groupId string, userId string)) *MongoDBCloudUsersApi_GetProjectUser_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUser_Call) Return(_a0 admin.GetProjectUserApiRequest) *MongoDBCloudUsersApi_GetProjectUser_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUser_Call) RunAndReturn(run func(context.Context, string, string) admin.GetProjectUserApiRequest) *MongoDBCloudUsersApi_GetProjectUser_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetProjectUserExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) GetProjectUserExecute(r admin.GetProjectUserApiRequest) (*admin.GroupUserResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetProjectUserExecute")
+ }
+
+ var r0 *admin.GroupUserResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.GetProjectUserApiRequest) (*admin.GroupUserResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.GetProjectUserApiRequest) *admin.GroupUserResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.GroupUserResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.GetProjectUserApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.GetProjectUserApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_GetProjectUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectUserExecute'
+type MongoDBCloudUsersApi_GetProjectUserExecute_Call struct {
+ *mock.Call
+}
+
+// GetProjectUserExecute is a helper method to define mock.On call
+// - r admin.GetProjectUserApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) GetProjectUserExecute(r any) *MongoDBCloudUsersApi_GetProjectUserExecute_Call {
+ return &MongoDBCloudUsersApi_GetProjectUserExecute_Call{Call: _e.mock.On("GetProjectUserExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUserExecute_Call) Run(run func(r admin.GetProjectUserApiRequest)) *MongoDBCloudUsersApi_GetProjectUserExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.GetProjectUserApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUserExecute_Call) Return(_a0 *admin.GroupUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_GetProjectUserExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUserExecute_Call) RunAndReturn(run func(admin.GetProjectUserApiRequest) (*admin.GroupUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_GetProjectUserExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetProjectUserWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) GetProjectUserWithParams(ctx context.Context, args *admin.GetProjectUserApiParams) admin.GetProjectUserApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetProjectUserWithParams")
+ }
+
+ var r0 admin.GetProjectUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.GetProjectUserApiParams) admin.GetProjectUserApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.GetProjectUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_GetProjectUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectUserWithParams'
+type MongoDBCloudUsersApi_GetProjectUserWithParams_Call struct {
+ *mock.Call
+}
+
+// GetProjectUserWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.GetProjectUserApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) GetProjectUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_GetProjectUserWithParams_Call {
+ return &MongoDBCloudUsersApi_GetProjectUserWithParams_Call{Call: _e.mock.On("GetProjectUserWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUserWithParams_Call) Run(run func(ctx context.Context, args *admin.GetProjectUserApiParams)) *MongoDBCloudUsersApi_GetProjectUserWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.GetProjectUserApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUserWithParams_Call) Return(_a0 admin.GetProjectUserApiRequest) *MongoDBCloudUsersApi_GetProjectUserWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetProjectUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.GetProjectUserApiParams) admin.GetProjectUserApiRequest) *MongoDBCloudUsersApi_GetProjectUserWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetUser provides a mock function with given fields: ctx, userId
+func (_m *MongoDBCloudUsersApi) GetUser(ctx context.Context, userId string) admin.GetUserApiRequest {
+ ret := _m.Called(ctx, userId)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetUser")
+ }
+
+ var r0 admin.GetUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string) admin.GetUserApiRequest); ok {
+ r0 = rf(ctx, userId)
+ } else {
+ r0 = ret.Get(0).(admin.GetUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'
+type MongoDBCloudUsersApi_GetUser_Call struct {
+ *mock.Call
+}
+
+// GetUser is a helper method to define mock.On call
+// - ctx context.Context
+// - userId string
+func (_e *MongoDBCloudUsersApi_Expecter) GetUser(ctx any, userId any) *MongoDBCloudUsersApi_GetUser_Call {
+ return &MongoDBCloudUsersApi_GetUser_Call{Call: _e.mock.On("GetUser", ctx, userId)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetUser_Call) Run(run func(ctx context.Context, userId string)) *MongoDBCloudUsersApi_GetUser_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUser_Call) Return(_a0 admin.GetUserApiRequest) *MongoDBCloudUsersApi_GetUser_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUser_Call) RunAndReturn(run func(context.Context, string) admin.GetUserApiRequest) *MongoDBCloudUsersApi_GetUser_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetUserByUsername provides a mock function with given fields: ctx, userName
+func (_m *MongoDBCloudUsersApi) GetUserByUsername(ctx context.Context, userName string) admin.GetUserByUsernameApiRequest {
+ ret := _m.Called(ctx, userName)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetUserByUsername")
+ }
+
+ var r0 admin.GetUserByUsernameApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string) admin.GetUserByUsernameApiRequest); ok {
+ r0 = rf(ctx, userName)
+ } else {
+ r0 = ret.Get(0).(admin.GetUserByUsernameApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_GetUserByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsername'
+type MongoDBCloudUsersApi_GetUserByUsername_Call struct {
+ *mock.Call
+}
+
+// GetUserByUsername is a helper method to define mock.On call
+// - ctx context.Context
+// - userName string
+func (_e *MongoDBCloudUsersApi_Expecter) GetUserByUsername(ctx any, userName any) *MongoDBCloudUsersApi_GetUserByUsername_Call {
+ return &MongoDBCloudUsersApi_GetUserByUsername_Call{Call: _e.mock.On("GetUserByUsername", ctx, userName)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsername_Call) Run(run func(ctx context.Context, userName string)) *MongoDBCloudUsersApi_GetUserByUsername_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsername_Call) Return(_a0 admin.GetUserByUsernameApiRequest) *MongoDBCloudUsersApi_GetUserByUsername_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsername_Call) RunAndReturn(run func(context.Context, string) admin.GetUserByUsernameApiRequest) *MongoDBCloudUsersApi_GetUserByUsername_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetUserByUsernameExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) GetUserByUsernameExecute(r admin.GetUserByUsernameApiRequest) (*admin.CloudAppUser, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetUserByUsernameExecute")
}
- var r0 admin.CreateUserApiRequest
- if rf, ok := ret.Get(0).(func(context.Context, *admin.CloudAppUser) admin.CreateUserApiRequest); ok {
- r0 = rf(ctx, cloudAppUser)
+ var r0 *admin.CloudAppUser
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.GetUserByUsernameApiRequest) (*admin.CloudAppUser, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.GetUserByUsernameApiRequest) *admin.CloudAppUser); ok {
+ r0 = rf(r)
} else {
- r0 = ret.Get(0).(admin.CreateUserApiRequest)
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.CloudAppUser)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.GetUserByUsernameApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.GetUserByUsernameApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_GetUserByUsernameExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsernameExecute'
+type MongoDBCloudUsersApi_GetUserByUsernameExecute_Call struct {
+ *mock.Call
+}
+
+// GetUserByUsernameExecute is a helper method to define mock.On call
+// - r admin.GetUserByUsernameApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) GetUserByUsernameExecute(r any) *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call {
+ return &MongoDBCloudUsersApi_GetUserByUsernameExecute_Call{Call: _e.mock.On("GetUserByUsernameExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call) Run(run func(r admin.GetUserByUsernameApiRequest)) *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.GetUserByUsernameApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call) Return(_a0 *admin.CloudAppUser, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call) RunAndReturn(run func(admin.GetUserByUsernameApiRequest) (*admin.CloudAppUser, *http.Response, error)) *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetUserByUsernameWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) GetUserByUsernameWithParams(ctx context.Context, args *admin.GetUserByUsernameApiParams) admin.GetUserByUsernameApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetUserByUsernameWithParams")
+ }
+
+ var r0 admin.GetUserByUsernameApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.GetUserByUsernameApiParams) admin.GetUserByUsernameApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.GetUserByUsernameApiRequest)
}
return r0
}
-// MongoDBCloudUsersApi_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
-type MongoDBCloudUsersApi_CreateUser_Call struct {
+// MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsernameWithParams'
+type MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call struct {
*mock.Call
}
-// CreateUser is a helper method to define mock.On call
+// GetUserByUsernameWithParams is a helper method to define mock.On call
// - ctx context.Context
-// - cloudAppUser *admin.CloudAppUser
-func (_e *MongoDBCloudUsersApi_Expecter) CreateUser(ctx any, cloudAppUser any) *MongoDBCloudUsersApi_CreateUser_Call {
- return &MongoDBCloudUsersApi_CreateUser_Call{Call: _e.mock.On("CreateUser", ctx, cloudAppUser)}
+// - args *admin.GetUserByUsernameApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) GetUserByUsernameWithParams(ctx any, args any) *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call {
+ return &MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call{Call: _e.mock.On("GetUserByUsernameWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call) Run(run func(ctx context.Context, args *admin.GetUserByUsernameApiParams)) *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.GetUserByUsernameApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call) Return(_a0 admin.GetUserByUsernameApiRequest) *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call) RunAndReturn(run func(context.Context, *admin.GetUserByUsernameApiParams) admin.GetUserByUsernameApiRequest) *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetUserExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) GetUserExecute(r admin.GetUserApiRequest) (*admin.CloudAppUser, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetUserExecute")
+ }
+
+ var r0 *admin.CloudAppUser
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.GetUserApiRequest) (*admin.CloudAppUser, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.GetUserApiRequest) *admin.CloudAppUser); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.CloudAppUser)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.GetUserApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.GetUserApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_GetUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserExecute'
+type MongoDBCloudUsersApi_GetUserExecute_Call struct {
+ *mock.Call
+}
+
+// GetUserExecute is a helper method to define mock.On call
+// - r admin.GetUserApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) GetUserExecute(r any) *MongoDBCloudUsersApi_GetUserExecute_Call {
+ return &MongoDBCloudUsersApi_GetUserExecute_Call{Call: _e.mock.On("GetUserExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserExecute_Call) Run(run func(r admin.GetUserApiRequest)) *MongoDBCloudUsersApi_GetUserExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.GetUserApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserExecute_Call) Return(_a0 *admin.CloudAppUser, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_GetUserExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserExecute_Call) RunAndReturn(run func(admin.GetUserApiRequest) (*admin.CloudAppUser, *http.Response, error)) *MongoDBCloudUsersApi_GetUserExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetUserWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) GetUserWithParams(ctx context.Context, args *admin.GetUserApiParams) admin.GetUserApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetUserWithParams")
+ }
+
+ var r0 admin.GetUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.GetUserApiParams) admin.GetUserApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.GetUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_GetUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserWithParams'
+type MongoDBCloudUsersApi_GetUserWithParams_Call struct {
+ *mock.Call
+}
+
+// GetUserWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.GetUserApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) GetUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_GetUserWithParams_Call {
+ return &MongoDBCloudUsersApi_GetUserWithParams_Call{Call: _e.mock.On("GetUserWithParams", ctx, args)}
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserWithParams_Call) Run(run func(ctx context.Context, args *admin.GetUserApiParams)) *MongoDBCloudUsersApi_GetUserWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.GetUserApiParams))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserWithParams_Call) Return(_a0 admin.GetUserApiRequest) *MongoDBCloudUsersApi_GetUserWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_GetUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.GetUserApiParams) admin.GetUserApiRequest) *MongoDBCloudUsersApi_GetUserWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// RemoveOrganizationRole provides a mock function with given fields: ctx, orgId, userId, addOrRemoveOrgRole
+func (_m *MongoDBCloudUsersApi) RemoveOrganizationRole(ctx context.Context, orgId string, userId string, addOrRemoveOrgRole *admin.AddOrRemoveOrgRole) admin.RemoveOrganizationRoleApiRequest {
+ ret := _m.Called(ctx, orgId, userId, addOrRemoveOrgRole)
+
+ if len(ret) == 0 {
+ panic("no return value specified for RemoveOrganizationRole")
+ }
+
+ var r0 admin.RemoveOrganizationRoleApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string, *admin.AddOrRemoveOrgRole) admin.RemoveOrganizationRoleApiRequest); ok {
+ r0 = rf(ctx, orgId, userId, addOrRemoveOrgRole)
+ } else {
+ r0 = ret.Get(0).(admin.RemoveOrganizationRoleApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_RemoveOrganizationRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveOrganizationRole'
+type MongoDBCloudUsersApi_RemoveOrganizationRole_Call struct {
+ *mock.Call
+}
+
+// RemoveOrganizationRole is a helper method to define mock.On call
+// - ctx context.Context
+// - orgId string
+// - userId string
+// - addOrRemoveOrgRole *admin.AddOrRemoveOrgRole
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveOrganizationRole(ctx any, orgId any, userId any, addOrRemoveOrgRole any) *MongoDBCloudUsersApi_RemoveOrganizationRole_Call {
+ return &MongoDBCloudUsersApi_RemoveOrganizationRole_Call{Call: _e.mock.On("RemoveOrganizationRole", ctx, orgId, userId, addOrRemoveOrgRole)}
}
-func (_c *MongoDBCloudUsersApi_CreateUser_Call) Run(run func(ctx context.Context, cloudAppUser *admin.CloudAppUser)) *MongoDBCloudUsersApi_CreateUser_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRole_Call) Run(run func(ctx context.Context, orgId string, userId string, addOrRemoveOrgRole *admin.AddOrRemoveOrgRole)) *MongoDBCloudUsersApi_RemoveOrganizationRole_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(context.Context), args[1].(*admin.CloudAppUser))
+ run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*admin.AddOrRemoveOrgRole))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_CreateUser_Call) Return(_a0 admin.CreateUserApiRequest) *MongoDBCloudUsersApi_CreateUser_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRole_Call) Return(_a0 admin.RemoveOrganizationRoleApiRequest) *MongoDBCloudUsersApi_RemoveOrganizationRole_Call {
_c.Call.Return(_a0)
return _c
}
-func (_c *MongoDBCloudUsersApi_CreateUser_Call) RunAndReturn(run func(context.Context, *admin.CloudAppUser) admin.CreateUserApiRequest) *MongoDBCloudUsersApi_CreateUser_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRole_Call) RunAndReturn(run func(context.Context, string, string, *admin.AddOrRemoveOrgRole) admin.RemoveOrganizationRoleApiRequest) *MongoDBCloudUsersApi_RemoveOrganizationRole_Call {
_c.Call.Return(run)
return _c
}
-// CreateUserExecute provides a mock function with given fields: r
-func (_m *MongoDBCloudUsersApi) CreateUserExecute(r admin.CreateUserApiRequest) (*admin.CloudAppUser, *http.Response, error) {
+// RemoveOrganizationRoleExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) RemoveOrganizationRoleExecute(r admin.RemoveOrganizationRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
ret := _m.Called(r)
if len(ret) == 0 {
- panic("no return value specified for CreateUserExecute")
+ panic("no return value specified for RemoveOrganizationRoleExecute")
}
- var r0 *admin.CloudAppUser
+ var r0 *admin.OrgUserResponse
var r1 *http.Response
var r2 error
- if rf, ok := ret.Get(0).(func(admin.CreateUserApiRequest) (*admin.CloudAppUser, *http.Response, error)); ok {
+ if rf, ok := ret.Get(0).(func(admin.RemoveOrganizationRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
return rf(r)
}
- if rf, ok := ret.Get(0).(func(admin.CreateUserApiRequest) *admin.CloudAppUser); ok {
+ if rf, ok := ret.Get(0).(func(admin.RemoveOrganizationRoleApiRequest) *admin.OrgUserResponse); ok {
r0 = rf(r)
} else {
if ret.Get(0) != nil {
- r0 = ret.Get(0).(*admin.CloudAppUser)
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
}
}
- if rf, ok := ret.Get(1).(func(admin.CreateUserApiRequest) *http.Response); ok {
+ if rf, ok := ret.Get(1).(func(admin.RemoveOrganizationRoleApiRequest) *http.Response); ok {
r1 = rf(r)
} else {
if ret.Get(1) != nil {
@@ -102,7 +1724,7 @@ func (_m *MongoDBCloudUsersApi) CreateUserExecute(r admin.CreateUserApiRequest)
}
}
- if rf, ok := ret.Get(2).(func(admin.CreateUserApiRequest) error); ok {
+ if rf, ok := ret.Get(2).(func(admin.RemoveOrganizationRoleApiRequest) error); ok {
r2 = rf(r)
} else {
r2 = ret.Error(2)
@@ -111,198 +1733,316 @@ func (_m *MongoDBCloudUsersApi) CreateUserExecute(r admin.CreateUserApiRequest)
return r0, r1, r2
}
-// MongoDBCloudUsersApi_CreateUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUserExecute'
-type MongoDBCloudUsersApi_CreateUserExecute_Call struct {
+// MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveOrganizationRoleExecute'
+type MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call struct {
*mock.Call
}
-// CreateUserExecute is a helper method to define mock.On call
-// - r admin.CreateUserApiRequest
-func (_e *MongoDBCloudUsersApi_Expecter) CreateUserExecute(r any) *MongoDBCloudUsersApi_CreateUserExecute_Call {
- return &MongoDBCloudUsersApi_CreateUserExecute_Call{Call: _e.mock.On("CreateUserExecute", r)}
+// RemoveOrganizationRoleExecute is a helper method to define mock.On call
+// - r admin.RemoveOrganizationRoleApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveOrganizationRoleExecute(r any) *MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call {
+ return &MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call{Call: _e.mock.On("RemoveOrganizationRoleExecute", r)}
}
-func (_c *MongoDBCloudUsersApi_CreateUserExecute_Call) Run(run func(r admin.CreateUserApiRequest)) *MongoDBCloudUsersApi_CreateUserExecute_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call) Run(run func(r admin.RemoveOrganizationRoleApiRequest)) *MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(admin.CreateUserApiRequest))
+ run(args[0].(admin.RemoveOrganizationRoleApiRequest))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_CreateUserExecute_Call) Return(_a0 *admin.CloudAppUser, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_CreateUserExecute_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call {
_c.Call.Return(_a0, _a1, _a2)
return _c
}
-func (_c *MongoDBCloudUsersApi_CreateUserExecute_Call) RunAndReturn(run func(admin.CreateUserApiRequest) (*admin.CloudAppUser, *http.Response, error)) *MongoDBCloudUsersApi_CreateUserExecute_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call) RunAndReturn(run func(admin.RemoveOrganizationRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_RemoveOrganizationRoleExecute_Call {
_c.Call.Return(run)
return _c
}
-// CreateUserWithParams provides a mock function with given fields: ctx, args
-func (_m *MongoDBCloudUsersApi) CreateUserWithParams(ctx context.Context, args *admin.CreateUserApiParams) admin.CreateUserApiRequest {
+// RemoveOrganizationRoleWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) RemoveOrganizationRoleWithParams(ctx context.Context, args *admin.RemoveOrganizationRoleApiParams) admin.RemoveOrganizationRoleApiRequest {
ret := _m.Called(ctx, args)
if len(ret) == 0 {
- panic("no return value specified for CreateUserWithParams")
+ panic("no return value specified for RemoveOrganizationRoleWithParams")
}
- var r0 admin.CreateUserApiRequest
- if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateUserApiParams) admin.CreateUserApiRequest); ok {
+ var r0 admin.RemoveOrganizationRoleApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.RemoveOrganizationRoleApiParams) admin.RemoveOrganizationRoleApiRequest); ok {
r0 = rf(ctx, args)
} else {
- r0 = ret.Get(0).(admin.CreateUserApiRequest)
+ r0 = ret.Get(0).(admin.RemoveOrganizationRoleApiRequest)
}
return r0
}
-// MongoDBCloudUsersApi_CreateUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUserWithParams'
-type MongoDBCloudUsersApi_CreateUserWithParams_Call struct {
+// MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveOrganizationRoleWithParams'
+type MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call struct {
*mock.Call
}
-// CreateUserWithParams is a helper method to define mock.On call
+// RemoveOrganizationRoleWithParams is a helper method to define mock.On call
// - ctx context.Context
-// - args *admin.CreateUserApiParams
-func (_e *MongoDBCloudUsersApi_Expecter) CreateUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_CreateUserWithParams_Call {
- return &MongoDBCloudUsersApi_CreateUserWithParams_Call{Call: _e.mock.On("CreateUserWithParams", ctx, args)}
+// - args *admin.RemoveOrganizationRoleApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveOrganizationRoleWithParams(ctx any, args any) *MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call {
+ return &MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call{Call: _e.mock.On("RemoveOrganizationRoleWithParams", ctx, args)}
}
-func (_c *MongoDBCloudUsersApi_CreateUserWithParams_Call) Run(run func(ctx context.Context, args *admin.CreateUserApiParams)) *MongoDBCloudUsersApi_CreateUserWithParams_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call) Run(run func(ctx context.Context, args *admin.RemoveOrganizationRoleApiParams)) *MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(context.Context), args[1].(*admin.CreateUserApiParams))
+ run(args[0].(context.Context), args[1].(*admin.RemoveOrganizationRoleApiParams))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_CreateUserWithParams_Call) Return(_a0 admin.CreateUserApiRequest) *MongoDBCloudUsersApi_CreateUserWithParams_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call) Return(_a0 admin.RemoveOrganizationRoleApiRequest) *MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call {
_c.Call.Return(_a0)
return _c
}
-func (_c *MongoDBCloudUsersApi_CreateUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.CreateUserApiParams) admin.CreateUserApiRequest) *MongoDBCloudUsersApi_CreateUserWithParams_Call {
+func (_c *MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call) RunAndReturn(run func(context.Context, *admin.RemoveOrganizationRoleApiParams) admin.RemoveOrganizationRoleApiRequest) *MongoDBCloudUsersApi_RemoveOrganizationRoleWithParams_Call {
_c.Call.Return(run)
return _c
}
-// GetUser provides a mock function with given fields: ctx, userId
-func (_m *MongoDBCloudUsersApi) GetUser(ctx context.Context, userId string) admin.GetUserApiRequest {
- ret := _m.Called(ctx, userId)
+// RemoveProjectRole provides a mock function with given fields: ctx, groupId, userId, addOrRemoveGroupRole
+func (_m *MongoDBCloudUsersApi) RemoveProjectRole(ctx context.Context, groupId string, userId string, addOrRemoveGroupRole *admin.AddOrRemoveGroupRole) admin.RemoveProjectRoleApiRequest {
+ ret := _m.Called(ctx, groupId, userId, addOrRemoveGroupRole)
if len(ret) == 0 {
- panic("no return value specified for GetUser")
+ panic("no return value specified for RemoveProjectRole")
}
- var r0 admin.GetUserApiRequest
- if rf, ok := ret.Get(0).(func(context.Context, string) admin.GetUserApiRequest); ok {
- r0 = rf(ctx, userId)
+ var r0 admin.RemoveProjectRoleApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string, *admin.AddOrRemoveGroupRole) admin.RemoveProjectRoleApiRequest); ok {
+ r0 = rf(ctx, groupId, userId, addOrRemoveGroupRole)
} else {
- r0 = ret.Get(0).(admin.GetUserApiRequest)
+ r0 = ret.Get(0).(admin.RemoveProjectRoleApiRequest)
}
return r0
}
-// MongoDBCloudUsersApi_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'
-type MongoDBCloudUsersApi_GetUser_Call struct {
+// MongoDBCloudUsersApi_RemoveProjectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveProjectRole'
+type MongoDBCloudUsersApi_RemoveProjectRole_Call struct {
*mock.Call
}
-// GetUser is a helper method to define mock.On call
+// RemoveProjectRole is a helper method to define mock.On call
// - ctx context.Context
+// - groupId string
// - userId string
-func (_e *MongoDBCloudUsersApi_Expecter) GetUser(ctx any, userId any) *MongoDBCloudUsersApi_GetUser_Call {
- return &MongoDBCloudUsersApi_GetUser_Call{Call: _e.mock.On("GetUser", ctx, userId)}
+// - addOrRemoveGroupRole *admin.AddOrRemoveGroupRole
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveProjectRole(ctx any, groupId any, userId any, addOrRemoveGroupRole any) *MongoDBCloudUsersApi_RemoveProjectRole_Call {
+ return &MongoDBCloudUsersApi_RemoveProjectRole_Call{Call: _e.mock.On("RemoveProjectRole", ctx, groupId, userId, addOrRemoveGroupRole)}
}
-func (_c *MongoDBCloudUsersApi_GetUser_Call) Run(run func(ctx context.Context, userId string)) *MongoDBCloudUsersApi_GetUser_Call {
+func (_c *MongoDBCloudUsersApi_RemoveProjectRole_Call) Run(run func(ctx context.Context, groupId string, userId string, addOrRemoveGroupRole *admin.AddOrRemoveGroupRole)) *MongoDBCloudUsersApi_RemoveProjectRole_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(context.Context), args[1].(string))
+ run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*admin.AddOrRemoveGroupRole))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUser_Call) Return(_a0 admin.GetUserApiRequest) *MongoDBCloudUsersApi_GetUser_Call {
+func (_c *MongoDBCloudUsersApi_RemoveProjectRole_Call) Return(_a0 admin.RemoveProjectRoleApiRequest) *MongoDBCloudUsersApi_RemoveProjectRole_Call {
_c.Call.Return(_a0)
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUser_Call) RunAndReturn(run func(context.Context, string) admin.GetUserApiRequest) *MongoDBCloudUsersApi_GetUser_Call {
+func (_c *MongoDBCloudUsersApi_RemoveProjectRole_Call) RunAndReturn(run func(context.Context, string, string, *admin.AddOrRemoveGroupRole) admin.RemoveProjectRoleApiRequest) *MongoDBCloudUsersApi_RemoveProjectRole_Call {
_c.Call.Return(run)
return _c
}
-// GetUserByUsername provides a mock function with given fields: ctx, userName
-func (_m *MongoDBCloudUsersApi) GetUserByUsername(ctx context.Context, userName string) admin.GetUserByUsernameApiRequest {
- ret := _m.Called(ctx, userName)
+// RemoveProjectRoleExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) RemoveProjectRoleExecute(r admin.RemoveProjectRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
+ ret := _m.Called(r)
if len(ret) == 0 {
- panic("no return value specified for GetUserByUsername")
+ panic("no return value specified for RemoveProjectRoleExecute")
}
- var r0 admin.GetUserByUsernameApiRequest
- if rf, ok := ret.Get(0).(func(context.Context, string) admin.GetUserByUsernameApiRequest); ok {
- r0 = rf(ctx, userName)
+ var r0 *admin.OrgUserResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.RemoveProjectRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.RemoveProjectRoleApiRequest) *admin.OrgUserResponse); ok {
+ r0 = rf(r)
} else {
- r0 = ret.Get(0).(admin.GetUserByUsernameApiRequest)
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.RemoveProjectRoleApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.RemoveProjectRoleApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveProjectRoleExecute'
+type MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call struct {
+ *mock.Call
+}
+
+// RemoveProjectRoleExecute is a helper method to define mock.On call
+// - r admin.RemoveProjectRoleApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveProjectRoleExecute(r any) *MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call {
+ return &MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call{Call: _e.mock.On("RemoveProjectRoleExecute", r)}
+}
+
+func (_c *MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call) Run(run func(r admin.RemoveProjectRoleApiRequest)) *MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.RemoveProjectRoleApiRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call) RunAndReturn(run func(admin.RemoveProjectRoleApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_RemoveProjectRoleExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// RemoveProjectRoleWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) RemoveProjectRoleWithParams(ctx context.Context, args *admin.RemoveProjectRoleApiParams) admin.RemoveProjectRoleApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for RemoveProjectRoleWithParams")
+ }
+
+ var r0 admin.RemoveProjectRoleApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.RemoveProjectRoleApiParams) admin.RemoveProjectRoleApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.RemoveProjectRoleApiRequest)
}
return r0
}
-// MongoDBCloudUsersApi_GetUserByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsername'
-type MongoDBCloudUsersApi_GetUserByUsername_Call struct {
+// MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveProjectRoleWithParams'
+type MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call struct {
*mock.Call
}
-// GetUserByUsername is a helper method to define mock.On call
+// RemoveProjectRoleWithParams is a helper method to define mock.On call
// - ctx context.Context
-// - userName string
-func (_e *MongoDBCloudUsersApi_Expecter) GetUserByUsername(ctx any, userName any) *MongoDBCloudUsersApi_GetUserByUsername_Call {
- return &MongoDBCloudUsersApi_GetUserByUsername_Call{Call: _e.mock.On("GetUserByUsername", ctx, userName)}
+// - args *admin.RemoveProjectRoleApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveProjectRoleWithParams(ctx any, args any) *MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call {
+ return &MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call{Call: _e.mock.On("RemoveProjectRoleWithParams", ctx, args)}
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsername_Call) Run(run func(ctx context.Context, userName string)) *MongoDBCloudUsersApi_GetUserByUsername_Call {
+func (_c *MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call) Run(run func(ctx context.Context, args *admin.RemoveProjectRoleApiParams)) *MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(context.Context), args[1].(string))
+ run(args[0].(context.Context), args[1].(*admin.RemoveProjectRoleApiParams))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsername_Call) Return(_a0 admin.GetUserByUsernameApiRequest) *MongoDBCloudUsersApi_GetUserByUsername_Call {
+func (_c *MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call) Return(_a0 admin.RemoveProjectRoleApiRequest) *MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call {
_c.Call.Return(_a0)
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsername_Call) RunAndReturn(run func(context.Context, string) admin.GetUserByUsernameApiRequest) *MongoDBCloudUsersApi_GetUserByUsername_Call {
+func (_c *MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call) RunAndReturn(run func(context.Context, *admin.RemoveProjectRoleApiParams) admin.RemoveProjectRoleApiRequest) *MongoDBCloudUsersApi_RemoveProjectRoleWithParams_Call {
_c.Call.Return(run)
return _c
}
-// GetUserByUsernameExecute provides a mock function with given fields: r
-func (_m *MongoDBCloudUsersApi) GetUserByUsernameExecute(r admin.GetUserByUsernameApiRequest) (*admin.CloudAppUser, *http.Response, error) {
+// RemoveUserFromTeam provides a mock function with given fields: ctx, orgId, teamId, addOrRemoveUserFromTeam
+func (_m *MongoDBCloudUsersApi) RemoveUserFromTeam(ctx context.Context, orgId string, teamId string, addOrRemoveUserFromTeam *admin.AddOrRemoveUserFromTeam) admin.RemoveUserFromTeamApiRequest {
+ ret := _m.Called(ctx, orgId, teamId, addOrRemoveUserFromTeam)
+
+ if len(ret) == 0 {
+ panic("no return value specified for RemoveUserFromTeam")
+ }
+
+ var r0 admin.RemoveUserFromTeamApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string, *admin.AddOrRemoveUserFromTeam) admin.RemoveUserFromTeamApiRequest); ok {
+ r0 = rf(ctx, orgId, teamId, addOrRemoveUserFromTeam)
+ } else {
+ r0 = ret.Get(0).(admin.RemoveUserFromTeamApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_RemoveUserFromTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUserFromTeam'
+type MongoDBCloudUsersApi_RemoveUserFromTeam_Call struct {
+ *mock.Call
+}
+
+// RemoveUserFromTeam is a helper method to define mock.On call
+// - ctx context.Context
+// - orgId string
+// - teamId string
+// - addOrRemoveUserFromTeam *admin.AddOrRemoveUserFromTeam
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveUserFromTeam(ctx any, orgId any, teamId any, addOrRemoveUserFromTeam any) *MongoDBCloudUsersApi_RemoveUserFromTeam_Call {
+ return &MongoDBCloudUsersApi_RemoveUserFromTeam_Call{Call: _e.mock.On("RemoveUserFromTeam", ctx, orgId, teamId, addOrRemoveUserFromTeam)}
+}
+
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeam_Call) Run(run func(ctx context.Context, orgId string, teamId string, addOrRemoveUserFromTeam *admin.AddOrRemoveUserFromTeam)) *MongoDBCloudUsersApi_RemoveUserFromTeam_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*admin.AddOrRemoveUserFromTeam))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeam_Call) Return(_a0 admin.RemoveUserFromTeamApiRequest) *MongoDBCloudUsersApi_RemoveUserFromTeam_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeam_Call) RunAndReturn(run func(context.Context, string, string, *admin.AddOrRemoveUserFromTeam) admin.RemoveUserFromTeamApiRequest) *MongoDBCloudUsersApi_RemoveUserFromTeam_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// RemoveUserFromTeamExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) RemoveUserFromTeamExecute(r admin.RemoveUserFromTeamApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
ret := _m.Called(r)
if len(ret) == 0 {
- panic("no return value specified for GetUserByUsernameExecute")
+ panic("no return value specified for RemoveUserFromTeamExecute")
}
- var r0 *admin.CloudAppUser
+ var r0 *admin.OrgUserResponse
var r1 *http.Response
var r2 error
- if rf, ok := ret.Get(0).(func(admin.GetUserByUsernameApiRequest) (*admin.CloudAppUser, *http.Response, error)); ok {
+ if rf, ok := ret.Get(0).(func(admin.RemoveUserFromTeamApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
return rf(r)
}
- if rf, ok := ret.Get(0).(func(admin.GetUserByUsernameApiRequest) *admin.CloudAppUser); ok {
+ if rf, ok := ret.Get(0).(func(admin.RemoveUserFromTeamApiRequest) *admin.OrgUserResponse); ok {
r0 = rf(r)
} else {
if ret.Get(0) != nil {
- r0 = ret.Get(0).(*admin.CloudAppUser)
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
}
}
- if rf, ok := ret.Get(1).(func(admin.GetUserByUsernameApiRequest) *http.Response); ok {
+ if rf, ok := ret.Get(1).(func(admin.RemoveUserFromTeamApiRequest) *http.Response); ok {
r1 = rf(r)
} else {
if ret.Get(1) != nil {
@@ -310,7 +2050,7 @@ func (_m *MongoDBCloudUsersApi) GetUserByUsernameExecute(r admin.GetUserByUserna
}
}
- if rf, ok := ret.Get(2).(func(admin.GetUserByUsernameApiRequest) error); ok {
+ if rf, ok := ret.Get(2).(func(admin.RemoveUserFromTeamApiRequest) error); ok {
r2 = rf(r)
} else {
r2 = ret.Error(2)
@@ -319,104 +2059,153 @@ func (_m *MongoDBCloudUsersApi) GetUserByUsernameExecute(r admin.GetUserByUserna
return r0, r1, r2
}
-// MongoDBCloudUsersApi_GetUserByUsernameExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsernameExecute'
-type MongoDBCloudUsersApi_GetUserByUsernameExecute_Call struct {
+// MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUserFromTeamExecute'
+type MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call struct {
*mock.Call
}
-// GetUserByUsernameExecute is a helper method to define mock.On call
-// - r admin.GetUserByUsernameApiRequest
-func (_e *MongoDBCloudUsersApi_Expecter) GetUserByUsernameExecute(r any) *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call {
- return &MongoDBCloudUsersApi_GetUserByUsernameExecute_Call{Call: _e.mock.On("GetUserByUsernameExecute", r)}
+// RemoveUserFromTeamExecute is a helper method to define mock.On call
+// - r admin.RemoveUserFromTeamApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveUserFromTeamExecute(r any) *MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call {
+ return &MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call{Call: _e.mock.On("RemoveUserFromTeamExecute", r)}
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call) Run(run func(r admin.GetUserByUsernameApiRequest)) *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call {
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call) Run(run func(r admin.RemoveUserFromTeamApiRequest)) *MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(admin.GetUserByUsernameApiRequest))
+ run(args[0].(admin.RemoveUserFromTeamApiRequest))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call) Return(_a0 *admin.CloudAppUser, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call {
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call {
_c.Call.Return(_a0, _a1, _a2)
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call) RunAndReturn(run func(admin.GetUserByUsernameApiRequest) (*admin.CloudAppUser, *http.Response, error)) *MongoDBCloudUsersApi_GetUserByUsernameExecute_Call {
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call) RunAndReturn(run func(admin.RemoveUserFromTeamApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_RemoveUserFromTeamExecute_Call {
_c.Call.Return(run)
return _c
}
-// GetUserByUsernameWithParams provides a mock function with given fields: ctx, args
-func (_m *MongoDBCloudUsersApi) GetUserByUsernameWithParams(ctx context.Context, args *admin.GetUserByUsernameApiParams) admin.GetUserByUsernameApiRequest {
+// RemoveUserFromTeamWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) RemoveUserFromTeamWithParams(ctx context.Context, args *admin.RemoveUserFromTeamApiParams) admin.RemoveUserFromTeamApiRequest {
ret := _m.Called(ctx, args)
if len(ret) == 0 {
- panic("no return value specified for GetUserByUsernameWithParams")
+ panic("no return value specified for RemoveUserFromTeamWithParams")
}
- var r0 admin.GetUserByUsernameApiRequest
- if rf, ok := ret.Get(0).(func(context.Context, *admin.GetUserByUsernameApiParams) admin.GetUserByUsernameApiRequest); ok {
+ var r0 admin.RemoveUserFromTeamApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.RemoveUserFromTeamApiParams) admin.RemoveUserFromTeamApiRequest); ok {
r0 = rf(ctx, args)
} else {
- r0 = ret.Get(0).(admin.GetUserByUsernameApiRequest)
+ r0 = ret.Get(0).(admin.RemoveUserFromTeamApiRequest)
}
return r0
}
-// MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsernameWithParams'
-type MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call struct {
+// MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUserFromTeamWithParams'
+type MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call struct {
*mock.Call
}
-// GetUserByUsernameWithParams is a helper method to define mock.On call
+// RemoveUserFromTeamWithParams is a helper method to define mock.On call
// - ctx context.Context
-// - args *admin.GetUserByUsernameApiParams
-func (_e *MongoDBCloudUsersApi_Expecter) GetUserByUsernameWithParams(ctx any, args any) *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call {
- return &MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call{Call: _e.mock.On("GetUserByUsernameWithParams", ctx, args)}
+// - args *admin.RemoveUserFromTeamApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) RemoveUserFromTeamWithParams(ctx any, args any) *MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call {
+ return &MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call{Call: _e.mock.On("RemoveUserFromTeamWithParams", ctx, args)}
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call) Run(run func(ctx context.Context, args *admin.GetUserByUsernameApiParams)) *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call {
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call) Run(run func(ctx context.Context, args *admin.RemoveUserFromTeamApiParams)) *MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(context.Context), args[1].(*admin.GetUserByUsernameApiParams))
+ run(args[0].(context.Context), args[1].(*admin.RemoveUserFromTeamApiParams))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call) Return(_a0 admin.GetUserByUsernameApiRequest) *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call {
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call) Return(_a0 admin.RemoveUserFromTeamApiRequest) *MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call {
_c.Call.Return(_a0)
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call) RunAndReturn(run func(context.Context, *admin.GetUserByUsernameApiParams) admin.GetUserByUsernameApiRequest) *MongoDBCloudUsersApi_GetUserByUsernameWithParams_Call {
+func (_c *MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call) RunAndReturn(run func(context.Context, *admin.RemoveUserFromTeamApiParams) admin.RemoveUserFromTeamApiRequest) *MongoDBCloudUsersApi_RemoveUserFromTeamWithParams_Call {
_c.Call.Return(run)
return _c
}
-// GetUserExecute provides a mock function with given fields: r
-func (_m *MongoDBCloudUsersApi) GetUserExecute(r admin.GetUserApiRequest) (*admin.CloudAppUser, *http.Response, error) {
+// UpdateOrganizationUser provides a mock function with given fields: ctx, orgId, userId, orgUserUpdateRequest
+func (_m *MongoDBCloudUsersApi) UpdateOrganizationUser(ctx context.Context, orgId string, userId string, orgUserUpdateRequest *admin.OrgUserUpdateRequest) admin.UpdateOrganizationUserApiRequest {
+ ret := _m.Called(ctx, orgId, userId, orgUserUpdateRequest)
+
+ if len(ret) == 0 {
+ panic("no return value specified for UpdateOrganizationUser")
+ }
+
+ var r0 admin.UpdateOrganizationUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string, *admin.OrgUserUpdateRequest) admin.UpdateOrganizationUserApiRequest); ok {
+ r0 = rf(ctx, orgId, userId, orgUserUpdateRequest)
+ } else {
+ r0 = ret.Get(0).(admin.UpdateOrganizationUserApiRequest)
+ }
+
+ return r0
+}
+
+// MongoDBCloudUsersApi_UpdateOrganizationUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateOrganizationUser'
+type MongoDBCloudUsersApi_UpdateOrganizationUser_Call struct {
+ *mock.Call
+}
+
+// UpdateOrganizationUser is a helper method to define mock.On call
+// - ctx context.Context
+// - orgId string
+// - userId string
+// - orgUserUpdateRequest *admin.OrgUserUpdateRequest
+func (_e *MongoDBCloudUsersApi_Expecter) UpdateOrganizationUser(ctx any, orgId any, userId any, orgUserUpdateRequest any) *MongoDBCloudUsersApi_UpdateOrganizationUser_Call {
+ return &MongoDBCloudUsersApi_UpdateOrganizationUser_Call{Call: _e.mock.On("UpdateOrganizationUser", ctx, orgId, userId, orgUserUpdateRequest)}
+}
+
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUser_Call) Run(run func(ctx context.Context, orgId string, userId string, orgUserUpdateRequest *admin.OrgUserUpdateRequest)) *MongoDBCloudUsersApi_UpdateOrganizationUser_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*admin.OrgUserUpdateRequest))
+ })
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUser_Call) Return(_a0 admin.UpdateOrganizationUserApiRequest) *MongoDBCloudUsersApi_UpdateOrganizationUser_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUser_Call) RunAndReturn(run func(context.Context, string, string, *admin.OrgUserUpdateRequest) admin.UpdateOrganizationUserApiRequest) *MongoDBCloudUsersApi_UpdateOrganizationUser_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// UpdateOrganizationUserExecute provides a mock function with given fields: r
+func (_m *MongoDBCloudUsersApi) UpdateOrganizationUserExecute(r admin.UpdateOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error) {
ret := _m.Called(r)
if len(ret) == 0 {
- panic("no return value specified for GetUserExecute")
+ panic("no return value specified for UpdateOrganizationUserExecute")
}
- var r0 *admin.CloudAppUser
+ var r0 *admin.OrgUserResponse
var r1 *http.Response
var r2 error
- if rf, ok := ret.Get(0).(func(admin.GetUserApiRequest) (*admin.CloudAppUser, *http.Response, error)); ok {
+ if rf, ok := ret.Get(0).(func(admin.UpdateOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error)); ok {
return rf(r)
}
- if rf, ok := ret.Get(0).(func(admin.GetUserApiRequest) *admin.CloudAppUser); ok {
+ if rf, ok := ret.Get(0).(func(admin.UpdateOrganizationUserApiRequest) *admin.OrgUserResponse); ok {
r0 = rf(r)
} else {
if ret.Get(0) != nil {
- r0 = ret.Get(0).(*admin.CloudAppUser)
+ r0 = ret.Get(0).(*admin.OrgUserResponse)
}
}
- if rf, ok := ret.Get(1).(func(admin.GetUserApiRequest) *http.Response); ok {
+ if rf, ok := ret.Get(1).(func(admin.UpdateOrganizationUserApiRequest) *http.Response); ok {
r1 = rf(r)
} else {
if ret.Get(1) != nil {
@@ -424,7 +2213,7 @@ func (_m *MongoDBCloudUsersApi) GetUserExecute(r admin.GetUserApiRequest) (*admi
}
}
- if rf, ok := ret.Get(2).(func(admin.GetUserApiRequest) error); ok {
+ if rf, ok := ret.Get(2).(func(admin.UpdateOrganizationUserApiRequest) error); ok {
r2 = rf(r)
} else {
r2 = ret.Error(2)
@@ -433,77 +2222,77 @@ func (_m *MongoDBCloudUsersApi) GetUserExecute(r admin.GetUserApiRequest) (*admi
return r0, r1, r2
}
-// MongoDBCloudUsersApi_GetUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserExecute'
-type MongoDBCloudUsersApi_GetUserExecute_Call struct {
+// MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateOrganizationUserExecute'
+type MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call struct {
*mock.Call
}
-// GetUserExecute is a helper method to define mock.On call
-// - r admin.GetUserApiRequest
-func (_e *MongoDBCloudUsersApi_Expecter) GetUserExecute(r any) *MongoDBCloudUsersApi_GetUserExecute_Call {
- return &MongoDBCloudUsersApi_GetUserExecute_Call{Call: _e.mock.On("GetUserExecute", r)}
+// UpdateOrganizationUserExecute is a helper method to define mock.On call
+// - r admin.UpdateOrganizationUserApiRequest
+func (_e *MongoDBCloudUsersApi_Expecter) UpdateOrganizationUserExecute(r any) *MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call {
+ return &MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call{Call: _e.mock.On("UpdateOrganizationUserExecute", r)}
}
-func (_c *MongoDBCloudUsersApi_GetUserExecute_Call) Run(run func(r admin.GetUserApiRequest)) *MongoDBCloudUsersApi_GetUserExecute_Call {
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call) Run(run func(r admin.UpdateOrganizationUserApiRequest)) *MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(admin.GetUserApiRequest))
+ run(args[0].(admin.UpdateOrganizationUserApiRequest))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserExecute_Call) Return(_a0 *admin.CloudAppUser, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_GetUserExecute_Call {
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call) Return(_a0 *admin.OrgUserResponse, _a1 *http.Response, _a2 error) *MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call {
_c.Call.Return(_a0, _a1, _a2)
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserExecute_Call) RunAndReturn(run func(admin.GetUserApiRequest) (*admin.CloudAppUser, *http.Response, error)) *MongoDBCloudUsersApi_GetUserExecute_Call {
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call) RunAndReturn(run func(admin.UpdateOrganizationUserApiRequest) (*admin.OrgUserResponse, *http.Response, error)) *MongoDBCloudUsersApi_UpdateOrganizationUserExecute_Call {
_c.Call.Return(run)
return _c
}
-// GetUserWithParams provides a mock function with given fields: ctx, args
-func (_m *MongoDBCloudUsersApi) GetUserWithParams(ctx context.Context, args *admin.GetUserApiParams) admin.GetUserApiRequest {
+// UpdateOrganizationUserWithParams provides a mock function with given fields: ctx, args
+func (_m *MongoDBCloudUsersApi) UpdateOrganizationUserWithParams(ctx context.Context, args *admin.UpdateOrganizationUserApiParams) admin.UpdateOrganizationUserApiRequest {
ret := _m.Called(ctx, args)
if len(ret) == 0 {
- panic("no return value specified for GetUserWithParams")
+ panic("no return value specified for UpdateOrganizationUserWithParams")
}
- var r0 admin.GetUserApiRequest
- if rf, ok := ret.Get(0).(func(context.Context, *admin.GetUserApiParams) admin.GetUserApiRequest); ok {
+ var r0 admin.UpdateOrganizationUserApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.UpdateOrganizationUserApiParams) admin.UpdateOrganizationUserApiRequest); ok {
r0 = rf(ctx, args)
} else {
- r0 = ret.Get(0).(admin.GetUserApiRequest)
+ r0 = ret.Get(0).(admin.UpdateOrganizationUserApiRequest)
}
return r0
}
-// MongoDBCloudUsersApi_GetUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserWithParams'
-type MongoDBCloudUsersApi_GetUserWithParams_Call struct {
+// MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateOrganizationUserWithParams'
+type MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call struct {
*mock.Call
}
-// GetUserWithParams is a helper method to define mock.On call
+// UpdateOrganizationUserWithParams is a helper method to define mock.On call
// - ctx context.Context
-// - args *admin.GetUserApiParams
-func (_e *MongoDBCloudUsersApi_Expecter) GetUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_GetUserWithParams_Call {
- return &MongoDBCloudUsersApi_GetUserWithParams_Call{Call: _e.mock.On("GetUserWithParams", ctx, args)}
+// - args *admin.UpdateOrganizationUserApiParams
+func (_e *MongoDBCloudUsersApi_Expecter) UpdateOrganizationUserWithParams(ctx any, args any) *MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call {
+ return &MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call{Call: _e.mock.On("UpdateOrganizationUserWithParams", ctx, args)}
}
-func (_c *MongoDBCloudUsersApi_GetUserWithParams_Call) Run(run func(ctx context.Context, args *admin.GetUserApiParams)) *MongoDBCloudUsersApi_GetUserWithParams_Call {
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call) Run(run func(ctx context.Context, args *admin.UpdateOrganizationUserApiParams)) *MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call {
_c.Call.Run(func(args mock.Arguments) {
- run(args[0].(context.Context), args[1].(*admin.GetUserApiParams))
+ run(args[0].(context.Context), args[1].(*admin.UpdateOrganizationUserApiParams))
})
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserWithParams_Call) Return(_a0 admin.GetUserApiRequest) *MongoDBCloudUsersApi_GetUserWithParams_Call {
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call) Return(_a0 admin.UpdateOrganizationUserApiRequest) *MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call {
_c.Call.Return(_a0)
return _c
}
-func (_c *MongoDBCloudUsersApi_GetUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.GetUserApiParams) admin.GetUserApiRequest) *MongoDBCloudUsersApi_GetUserWithParams_Call {
+func (_c *MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call) RunAndReturn(run func(context.Context, *admin.UpdateOrganizationUserApiParams) admin.UpdateOrganizationUserApiRequest) *MongoDBCloudUsersApi_UpdateOrganizationUserWithParams_Call {
_c.Call.Return(run)
return _c
}
diff --git a/mockadmin/monitoring_and_logs_api.go b/mockadmin/monitoring_and_logs_api.go
index 50a356b3b..537e8e117 100644
--- a/mockadmin/monitoring_and_logs_api.go
+++ b/mockadmin/monitoring_and_logs_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/network_peering_api.go b/mockadmin/network_peering_api.go
index 1934ccd95..d2b2c4835 100644
--- a/mockadmin/network_peering_api.go
+++ b/mockadmin/network_peering_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/online_archive_api.go b/mockadmin/online_archive_api.go
index 24f33f0b4..7a3806042 100644
--- a/mockadmin/online_archive_api.go
+++ b/mockadmin/online_archive_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/open_api_api.go b/mockadmin/open_api_api.go
new file mode 100644
index 000000000..242eed4ed
--- /dev/null
+++ b/mockadmin/open_api_api.go
@@ -0,0 +1,200 @@
+// Code generated by mockery. DO NOT EDIT.
+
+package mockadmin
+
+import (
+ context "context"
+
+ admin "github.com/mongodb/atlas-sdk-go/admin"
+
+ http "net/http"
+
+ mock "github.com/stretchr/testify/mock"
+)
+
+// OpenAPIApi is an autogenerated mock type for the OpenAPIApi type
+type OpenAPIApi struct {
+ mock.Mock
+}
+
+type OpenAPIApi_Expecter struct {
+ mock *mock.Mock
+}
+
+func (_m *OpenAPIApi) EXPECT() *OpenAPIApi_Expecter {
+ return &OpenAPIApi_Expecter{mock: &_m.Mock}
+}
+
+// GetApiVersions provides a mock function with given fields: ctx
+func (_m *OpenAPIApi) GetApiVersions(ctx context.Context) admin.GetApiVersionsApiRequest {
+ ret := _m.Called(ctx)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetApiVersions")
+ }
+
+ var r0 admin.GetApiVersionsApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context) admin.GetApiVersionsApiRequest); ok {
+ r0 = rf(ctx)
+ } else {
+ r0 = ret.Get(0).(admin.GetApiVersionsApiRequest)
+ }
+
+ return r0
+}
+
+// OpenAPIApi_GetApiVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApiVersions'
+type OpenAPIApi_GetApiVersions_Call struct {
+ *mock.Call
+}
+
+// GetApiVersions is a helper method to define mock.On call
+// - ctx context.Context
+func (_e *OpenAPIApi_Expecter) GetApiVersions(ctx any) *OpenAPIApi_GetApiVersions_Call {
+ return &OpenAPIApi_GetApiVersions_Call{Call: _e.mock.On("GetApiVersions", ctx)}
+}
+
+func (_c *OpenAPIApi_GetApiVersions_Call) Run(run func(ctx context.Context)) *OpenAPIApi_GetApiVersions_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context))
+ })
+ return _c
+}
+
+func (_c *OpenAPIApi_GetApiVersions_Call) Return(_a0 admin.GetApiVersionsApiRequest) *OpenAPIApi_GetApiVersions_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *OpenAPIApi_GetApiVersions_Call) RunAndReturn(run func(context.Context) admin.GetApiVersionsApiRequest) *OpenAPIApi_GetApiVersions_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetApiVersionsExecute provides a mock function with given fields: r
+func (_m *OpenAPIApi) GetApiVersionsExecute(r admin.GetApiVersionsApiRequest) (*admin.PaginatedApiVersions, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetApiVersionsExecute")
+ }
+
+ var r0 *admin.PaginatedApiVersions
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.GetApiVersionsApiRequest) (*admin.PaginatedApiVersions, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.GetApiVersionsApiRequest) *admin.PaginatedApiVersions); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.PaginatedApiVersions)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.GetApiVersionsApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.GetApiVersionsApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// OpenAPIApi_GetApiVersionsExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApiVersionsExecute'
+type OpenAPIApi_GetApiVersionsExecute_Call struct {
+ *mock.Call
+}
+
+// GetApiVersionsExecute is a helper method to define mock.On call
+// - r admin.GetApiVersionsApiRequest
+func (_e *OpenAPIApi_Expecter) GetApiVersionsExecute(r any) *OpenAPIApi_GetApiVersionsExecute_Call {
+ return &OpenAPIApi_GetApiVersionsExecute_Call{Call: _e.mock.On("GetApiVersionsExecute", r)}
+}
+
+func (_c *OpenAPIApi_GetApiVersionsExecute_Call) Run(run func(r admin.GetApiVersionsApiRequest)) *OpenAPIApi_GetApiVersionsExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.GetApiVersionsApiRequest))
+ })
+ return _c
+}
+
+func (_c *OpenAPIApi_GetApiVersionsExecute_Call) Return(_a0 *admin.PaginatedApiVersions, _a1 *http.Response, _a2 error) *OpenAPIApi_GetApiVersionsExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *OpenAPIApi_GetApiVersionsExecute_Call) RunAndReturn(run func(admin.GetApiVersionsApiRequest) (*admin.PaginatedApiVersions, *http.Response, error)) *OpenAPIApi_GetApiVersionsExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetApiVersionsWithParams provides a mock function with given fields: ctx, args
+func (_m *OpenAPIApi) GetApiVersionsWithParams(ctx context.Context, args *admin.GetApiVersionsApiParams) admin.GetApiVersionsApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetApiVersionsWithParams")
+ }
+
+ var r0 admin.GetApiVersionsApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.GetApiVersionsApiParams) admin.GetApiVersionsApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.GetApiVersionsApiRequest)
+ }
+
+ return r0
+}
+
+// OpenAPIApi_GetApiVersionsWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApiVersionsWithParams'
+type OpenAPIApi_GetApiVersionsWithParams_Call struct {
+ *mock.Call
+}
+
+// GetApiVersionsWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.GetApiVersionsApiParams
+func (_e *OpenAPIApi_Expecter) GetApiVersionsWithParams(ctx any, args any) *OpenAPIApi_GetApiVersionsWithParams_Call {
+ return &OpenAPIApi_GetApiVersionsWithParams_Call{Call: _e.mock.On("GetApiVersionsWithParams", ctx, args)}
+}
+
+func (_c *OpenAPIApi_GetApiVersionsWithParams_Call) Run(run func(ctx context.Context, args *admin.GetApiVersionsApiParams)) *OpenAPIApi_GetApiVersionsWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.GetApiVersionsApiParams))
+ })
+ return _c
+}
+
+func (_c *OpenAPIApi_GetApiVersionsWithParams_Call) Return(_a0 admin.GetApiVersionsApiRequest) *OpenAPIApi_GetApiVersionsWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *OpenAPIApi_GetApiVersionsWithParams_Call) RunAndReturn(run func(context.Context, *admin.GetApiVersionsApiParams) admin.GetApiVersionsApiRequest) *OpenAPIApi_GetApiVersionsWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// NewOpenAPIApi creates a new instance of OpenAPIApi. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
+// The first argument is typically a *testing.T value.
+func NewOpenAPIApi(t interface {
+ mock.TestingT
+ Cleanup(func())
+}) *OpenAPIApi {
+ mock := &OpenAPIApi{}
+ mock.Mock.Test(t)
+
+ t.Cleanup(func() { mock.AssertExpectations(t) })
+
+ return mock
+}
diff --git a/mockadmin/organizations_api.go b/mockadmin/organizations_api.go
index bfc7de56e..67ef780ba 100644
--- a/mockadmin/organizations_api.go
+++ b/mockadmin/organizations_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
@@ -1525,24 +1525,24 @@ func (_c *OrganizationsApi_ListOrganizationUsers_Call) RunAndReturn(run func(con
}
// ListOrganizationUsersExecute provides a mock function with given fields: r
-func (_m *OrganizationsApi) ListOrganizationUsersExecute(r admin.ListOrganizationUsersApiRequest) (*admin.PaginatedAppUser, *http.Response, error) {
+func (_m *OrganizationsApi) ListOrganizationUsersExecute(r admin.ListOrganizationUsersApiRequest) (*admin.PaginatedOrgUser, *http.Response, error) {
ret := _m.Called(r)
if len(ret) == 0 {
panic("no return value specified for ListOrganizationUsersExecute")
}
- var r0 *admin.PaginatedAppUser
+ var r0 *admin.PaginatedOrgUser
var r1 *http.Response
var r2 error
- if rf, ok := ret.Get(0).(func(admin.ListOrganizationUsersApiRequest) (*admin.PaginatedAppUser, *http.Response, error)); ok {
+ if rf, ok := ret.Get(0).(func(admin.ListOrganizationUsersApiRequest) (*admin.PaginatedOrgUser, *http.Response, error)); ok {
return rf(r)
}
- if rf, ok := ret.Get(0).(func(admin.ListOrganizationUsersApiRequest) *admin.PaginatedAppUser); ok {
+ if rf, ok := ret.Get(0).(func(admin.ListOrganizationUsersApiRequest) *admin.PaginatedOrgUser); ok {
r0 = rf(r)
} else {
if ret.Get(0) != nil {
- r0 = ret.Get(0).(*admin.PaginatedAppUser)
+ r0 = ret.Get(0).(*admin.PaginatedOrgUser)
}
}
@@ -1581,12 +1581,12 @@ func (_c *OrganizationsApi_ListOrganizationUsersExecute_Call) Run(run func(r adm
return _c
}
-func (_c *OrganizationsApi_ListOrganizationUsersExecute_Call) Return(_a0 *admin.PaginatedAppUser, _a1 *http.Response, _a2 error) *OrganizationsApi_ListOrganizationUsersExecute_Call {
+func (_c *OrganizationsApi_ListOrganizationUsersExecute_Call) Return(_a0 *admin.PaginatedOrgUser, _a1 *http.Response, _a2 error) *OrganizationsApi_ListOrganizationUsersExecute_Call {
_c.Call.Return(_a0, _a1, _a2)
return _c
}
-func (_c *OrganizationsApi_ListOrganizationUsersExecute_Call) RunAndReturn(run func(admin.ListOrganizationUsersApiRequest) (*admin.PaginatedAppUser, *http.Response, error)) *OrganizationsApi_ListOrganizationUsersExecute_Call {
+func (_c *OrganizationsApi_ListOrganizationUsersExecute_Call) RunAndReturn(run func(admin.ListOrganizationUsersApiRequest) (*admin.PaginatedOrgUser, *http.Response, error)) *OrganizationsApi_ListOrganizationUsersExecute_Call {
_c.Call.Return(run)
return _c
}
diff --git a/mockadmin/performance_advisor_api.go b/mockadmin/performance_advisor_api.go
index 1c5e561d8..f0f7f8653 100644
--- a/mockadmin/performance_advisor_api.go
+++ b/mockadmin/performance_advisor_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
@@ -803,6 +803,330 @@ func (_c *PerformanceAdvisorApi_ListClusterSuggestedIndexesWithParams_Call) RunA
return _c
}
+// ListDropIndexes provides a mock function with given fields: ctx, groupId, clusterName
+func (_m *PerformanceAdvisorApi) ListDropIndexes(ctx context.Context, groupId string, clusterName string) admin.ListDropIndexesApiRequest {
+ ret := _m.Called(ctx, groupId, clusterName)
+
+ if len(ret) == 0 {
+ panic("no return value specified for ListDropIndexes")
+ }
+
+ var r0 admin.ListDropIndexesApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string) admin.ListDropIndexesApiRequest); ok {
+ r0 = rf(ctx, groupId, clusterName)
+ } else {
+ r0 = ret.Get(0).(admin.ListDropIndexesApiRequest)
+ }
+
+ return r0
+}
+
+// PerformanceAdvisorApi_ListDropIndexes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDropIndexes'
+type PerformanceAdvisorApi_ListDropIndexes_Call struct {
+ *mock.Call
+}
+
+// ListDropIndexes is a helper method to define mock.On call
+// - ctx context.Context
+// - groupId string
+// - clusterName string
+func (_e *PerformanceAdvisorApi_Expecter) ListDropIndexes(ctx any, groupId any, clusterName any) *PerformanceAdvisorApi_ListDropIndexes_Call {
+ return &PerformanceAdvisorApi_ListDropIndexes_Call{Call: _e.mock.On("ListDropIndexes", ctx, groupId, clusterName)}
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexes_Call) Run(run func(ctx context.Context, groupId string, clusterName string)) *PerformanceAdvisorApi_ListDropIndexes_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string))
+ })
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexes_Call) Return(_a0 admin.ListDropIndexesApiRequest) *PerformanceAdvisorApi_ListDropIndexes_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexes_Call) RunAndReturn(run func(context.Context, string, string) admin.ListDropIndexesApiRequest) *PerformanceAdvisorApi_ListDropIndexes_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// ListDropIndexesExecute provides a mock function with given fields: r
+func (_m *PerformanceAdvisorApi) ListDropIndexesExecute(r admin.ListDropIndexesApiRequest) (*admin.PerformanceAdvisorResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for ListDropIndexesExecute")
+ }
+
+ var r0 *admin.PerformanceAdvisorResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.ListDropIndexesApiRequest) (*admin.PerformanceAdvisorResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.ListDropIndexesApiRequest) *admin.PerformanceAdvisorResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.PerformanceAdvisorResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.ListDropIndexesApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.ListDropIndexesApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// PerformanceAdvisorApi_ListDropIndexesExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDropIndexesExecute'
+type PerformanceAdvisorApi_ListDropIndexesExecute_Call struct {
+ *mock.Call
+}
+
+// ListDropIndexesExecute is a helper method to define mock.On call
+// - r admin.ListDropIndexesApiRequest
+func (_e *PerformanceAdvisorApi_Expecter) ListDropIndexesExecute(r any) *PerformanceAdvisorApi_ListDropIndexesExecute_Call {
+ return &PerformanceAdvisorApi_ListDropIndexesExecute_Call{Call: _e.mock.On("ListDropIndexesExecute", r)}
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexesExecute_Call) Run(run func(r admin.ListDropIndexesApiRequest)) *PerformanceAdvisorApi_ListDropIndexesExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.ListDropIndexesApiRequest))
+ })
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexesExecute_Call) Return(_a0 *admin.PerformanceAdvisorResponse, _a1 *http.Response, _a2 error) *PerformanceAdvisorApi_ListDropIndexesExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexesExecute_Call) RunAndReturn(run func(admin.ListDropIndexesApiRequest) (*admin.PerformanceAdvisorResponse, *http.Response, error)) *PerformanceAdvisorApi_ListDropIndexesExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// ListDropIndexesWithParams provides a mock function with given fields: ctx, args
+func (_m *PerformanceAdvisorApi) ListDropIndexesWithParams(ctx context.Context, args *admin.ListDropIndexesApiParams) admin.ListDropIndexesApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for ListDropIndexesWithParams")
+ }
+
+ var r0 admin.ListDropIndexesApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.ListDropIndexesApiParams) admin.ListDropIndexesApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.ListDropIndexesApiRequest)
+ }
+
+ return r0
+}
+
+// PerformanceAdvisorApi_ListDropIndexesWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDropIndexesWithParams'
+type PerformanceAdvisorApi_ListDropIndexesWithParams_Call struct {
+ *mock.Call
+}
+
+// ListDropIndexesWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.ListDropIndexesApiParams
+func (_e *PerformanceAdvisorApi_Expecter) ListDropIndexesWithParams(ctx any, args any) *PerformanceAdvisorApi_ListDropIndexesWithParams_Call {
+ return &PerformanceAdvisorApi_ListDropIndexesWithParams_Call{Call: _e.mock.On("ListDropIndexesWithParams", ctx, args)}
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexesWithParams_Call) Run(run func(ctx context.Context, args *admin.ListDropIndexesApiParams)) *PerformanceAdvisorApi_ListDropIndexesWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.ListDropIndexesApiParams))
+ })
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexesWithParams_Call) Return(_a0 admin.ListDropIndexesApiRequest) *PerformanceAdvisorApi_ListDropIndexesWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListDropIndexesWithParams_Call) RunAndReturn(run func(context.Context, *admin.ListDropIndexesApiParams) admin.ListDropIndexesApiRequest) *PerformanceAdvisorApi_ListDropIndexesWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// ListSchemaAdvice provides a mock function with given fields: ctx, groupId, clusterName
+func (_m *PerformanceAdvisorApi) ListSchemaAdvice(ctx context.Context, groupId string, clusterName string) admin.ListSchemaAdviceApiRequest {
+ ret := _m.Called(ctx, groupId, clusterName)
+
+ if len(ret) == 0 {
+ panic("no return value specified for ListSchemaAdvice")
+ }
+
+ var r0 admin.ListSchemaAdviceApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string, string) admin.ListSchemaAdviceApiRequest); ok {
+ r0 = rf(ctx, groupId, clusterName)
+ } else {
+ r0 = ret.Get(0).(admin.ListSchemaAdviceApiRequest)
+ }
+
+ return r0
+}
+
+// PerformanceAdvisorApi_ListSchemaAdvice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSchemaAdvice'
+type PerformanceAdvisorApi_ListSchemaAdvice_Call struct {
+ *mock.Call
+}
+
+// ListSchemaAdvice is a helper method to define mock.On call
+// - ctx context.Context
+// - groupId string
+// - clusterName string
+func (_e *PerformanceAdvisorApi_Expecter) ListSchemaAdvice(ctx any, groupId any, clusterName any) *PerformanceAdvisorApi_ListSchemaAdvice_Call {
+ return &PerformanceAdvisorApi_ListSchemaAdvice_Call{Call: _e.mock.On("ListSchemaAdvice", ctx, groupId, clusterName)}
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdvice_Call) Run(run func(ctx context.Context, groupId string, clusterName string)) *PerformanceAdvisorApi_ListSchemaAdvice_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string), args[2].(string))
+ })
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdvice_Call) Return(_a0 admin.ListSchemaAdviceApiRequest) *PerformanceAdvisorApi_ListSchemaAdvice_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdvice_Call) RunAndReturn(run func(context.Context, string, string) admin.ListSchemaAdviceApiRequest) *PerformanceAdvisorApi_ListSchemaAdvice_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// ListSchemaAdviceExecute provides a mock function with given fields: r
+func (_m *PerformanceAdvisorApi) ListSchemaAdviceExecute(r admin.ListSchemaAdviceApiRequest) (*admin.PerformanceAdvisorResponse, *http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for ListSchemaAdviceExecute")
+ }
+
+ var r0 *admin.PerformanceAdvisorResponse
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.ListSchemaAdviceApiRequest) (*admin.PerformanceAdvisorResponse, *http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.ListSchemaAdviceApiRequest) *admin.PerformanceAdvisorResponse); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*admin.PerformanceAdvisorResponse)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.ListSchemaAdviceApiRequest) *http.Response); ok {
+ r1 = rf(r)
+ } else {
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.ListSchemaAdviceApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
+ }
+
+ return r0, r1, r2
+}
+
+// PerformanceAdvisorApi_ListSchemaAdviceExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSchemaAdviceExecute'
+type PerformanceAdvisorApi_ListSchemaAdviceExecute_Call struct {
+ *mock.Call
+}
+
+// ListSchemaAdviceExecute is a helper method to define mock.On call
+// - r admin.ListSchemaAdviceApiRequest
+func (_e *PerformanceAdvisorApi_Expecter) ListSchemaAdviceExecute(r any) *PerformanceAdvisorApi_ListSchemaAdviceExecute_Call {
+ return &PerformanceAdvisorApi_ListSchemaAdviceExecute_Call{Call: _e.mock.On("ListSchemaAdviceExecute", r)}
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdviceExecute_Call) Run(run func(r admin.ListSchemaAdviceApiRequest)) *PerformanceAdvisorApi_ListSchemaAdviceExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.ListSchemaAdviceApiRequest))
+ })
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdviceExecute_Call) Return(_a0 *admin.PerformanceAdvisorResponse, _a1 *http.Response, _a2 error) *PerformanceAdvisorApi_ListSchemaAdviceExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdviceExecute_Call) RunAndReturn(run func(admin.ListSchemaAdviceApiRequest) (*admin.PerformanceAdvisorResponse, *http.Response, error)) *PerformanceAdvisorApi_ListSchemaAdviceExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// ListSchemaAdviceWithParams provides a mock function with given fields: ctx, args
+func (_m *PerformanceAdvisorApi) ListSchemaAdviceWithParams(ctx context.Context, args *admin.ListSchemaAdviceApiParams) admin.ListSchemaAdviceApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for ListSchemaAdviceWithParams")
+ }
+
+ var r0 admin.ListSchemaAdviceApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.ListSchemaAdviceApiParams) admin.ListSchemaAdviceApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.ListSchemaAdviceApiRequest)
+ }
+
+ return r0
+}
+
+// PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSchemaAdviceWithParams'
+type PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call struct {
+ *mock.Call
+}
+
+// ListSchemaAdviceWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.ListSchemaAdviceApiParams
+func (_e *PerformanceAdvisorApi_Expecter) ListSchemaAdviceWithParams(ctx any, args any) *PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call {
+ return &PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call{Call: _e.mock.On("ListSchemaAdviceWithParams", ctx, args)}
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call) Run(run func(ctx context.Context, args *admin.ListSchemaAdviceApiParams)) *PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.ListSchemaAdviceApiParams))
+ })
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call) Return(_a0 admin.ListSchemaAdviceApiRequest) *PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call) RunAndReturn(run func(context.Context, *admin.ListSchemaAdviceApiParams) admin.ListSchemaAdviceApiRequest) *PerformanceAdvisorApi_ListSchemaAdviceWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
// ListSlowQueries provides a mock function with given fields: ctx, groupId, processId
func (_m *PerformanceAdvisorApi) ListSlowQueries(ctx context.Context, groupId string, processId string) admin.ListSlowQueriesApiRequest {
ret := _m.Called(ctx, groupId, processId)
diff --git a/mockadmin/private_endpoint_services_api.go b/mockadmin/private_endpoint_services_api.go
index 41ec04133..99c1be4a9 100644
--- a/mockadmin/private_endpoint_services_api.go
+++ b/mockadmin/private_endpoint_services_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/programmatic_api_keys_api.go b/mockadmin/programmatic_api_keys_api.go
index 8b3bb5ef9..e12a3e6ac 100644
--- a/mockadmin/programmatic_api_keys_api.go
+++ b/mockadmin/programmatic_api_keys_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/project_ip_access_list_api.go b/mockadmin/project_ip_access_list_api.go
index cef008f7a..dcb9ffc1b 100644
--- a/mockadmin/project_ip_access_list_api.go
+++ b/mockadmin/project_ip_access_list_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/projects_api.go b/mockadmin/projects_api.go
index 223a15a2e..df7504929 100644
--- a/mockadmin/projects_api.go
+++ b/mockadmin/projects_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
@@ -2817,33 +2817,42 @@ func (_c *ProjectsApi_RemoveProjectUser_Call) RunAndReturn(run func(context.Cont
}
// RemoveProjectUserExecute provides a mock function with given fields: r
-func (_m *ProjectsApi) RemoveProjectUserExecute(r admin.RemoveProjectUserApiRequest) (*http.Response, error) {
+func (_m *ProjectsApi) RemoveProjectUserExecute(r admin.RemoveProjectUserApiRequest) (any, *http.Response, error) {
ret := _m.Called(r)
if len(ret) == 0 {
panic("no return value specified for RemoveProjectUserExecute")
}
- var r0 *http.Response
- var r1 error
- if rf, ok := ret.Get(0).(func(admin.RemoveProjectUserApiRequest) (*http.Response, error)); ok {
+ var r0 any
+ var r1 *http.Response
+ var r2 error
+ if rf, ok := ret.Get(0).(func(admin.RemoveProjectUserApiRequest) (any, *http.Response, error)); ok {
return rf(r)
}
- if rf, ok := ret.Get(0).(func(admin.RemoveProjectUserApiRequest) *http.Response); ok {
+ if rf, ok := ret.Get(0).(func(admin.RemoveProjectUserApiRequest) any); ok {
r0 = rf(r)
} else {
if ret.Get(0) != nil {
- r0 = ret.Get(0).(*http.Response)
+ r0 = ret.Get(0).(any)
}
}
- if rf, ok := ret.Get(1).(func(admin.RemoveProjectUserApiRequest) error); ok {
+ if rf, ok := ret.Get(1).(func(admin.RemoveProjectUserApiRequest) *http.Response); ok {
r1 = rf(r)
} else {
- r1 = ret.Error(1)
+ if ret.Get(1) != nil {
+ r1 = ret.Get(1).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(2).(func(admin.RemoveProjectUserApiRequest) error); ok {
+ r2 = rf(r)
+ } else {
+ r2 = ret.Error(2)
}
- return r0, r1
+ return r0, r1, r2
}
// ProjectsApi_RemoveProjectUserExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveProjectUserExecute'
@@ -2864,12 +2873,12 @@ func (_c *ProjectsApi_RemoveProjectUserExecute_Call) Run(run func(r admin.Remove
return _c
}
-func (_c *ProjectsApi_RemoveProjectUserExecute_Call) Return(_a0 *http.Response, _a1 error) *ProjectsApi_RemoveProjectUserExecute_Call {
- _c.Call.Return(_a0, _a1)
+func (_c *ProjectsApi_RemoveProjectUserExecute_Call) Return(_a0 any, _a1 *http.Response, _a2 error) *ProjectsApi_RemoveProjectUserExecute_Call {
+ _c.Call.Return(_a0, _a1, _a2)
return _c
}
-func (_c *ProjectsApi_RemoveProjectUserExecute_Call) RunAndReturn(run func(admin.RemoveProjectUserApiRequest) (*http.Response, error)) *ProjectsApi_RemoveProjectUserExecute_Call {
+func (_c *ProjectsApi_RemoveProjectUserExecute_Call) RunAndReturn(run func(admin.RemoveProjectUserApiRequest) (any, *http.Response, error)) *ProjectsApi_RemoveProjectUserExecute_Call {
_c.Call.Return(run)
return _c
}
diff --git a/mockadmin/push_based_log_export_api.go b/mockadmin/push_based_log_export_api.go
index 68b0069b3..d752b72a4 100644
--- a/mockadmin/push_based_log_export_api.go
+++ b/mockadmin/push_based_log_export_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/resource_policies_api.go b/mockadmin/resource_policies_api.go
index 1022cb154..c0f01c298 100644
--- a/mockadmin/resource_policies_api.go
+++ b/mockadmin/resource_policies_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/rolling_index_api.go b/mockadmin/rolling_index_api.go
index e29be9f4e..5076d6676 100644
--- a/mockadmin/rolling_index_api.go
+++ b/mockadmin/rolling_index_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/root_api.go b/mockadmin/root_api.go
index 840b0c631..9428ed577 100644
--- a/mockadmin/root_api.go
+++ b/mockadmin/root_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/serverless_instances_api.go b/mockadmin/serverless_instances_api.go
index 3afec0e0c..73358896b 100644
--- a/mockadmin/serverless_instances_api.go
+++ b/mockadmin/serverless_instances_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/serverless_private_endpoints_api.go b/mockadmin/serverless_private_endpoints_api.go
index 471f8fb7e..f96c0b0ef 100644
--- a/mockadmin/serverless_private_endpoints_api.go
+++ b/mockadmin/serverless_private_endpoints_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/service_accounts_api.go b/mockadmin/service_accounts_api.go
index 48805ce18..da5ed6ba8 100644
--- a/mockadmin/service_accounts_api.go
+++ b/mockadmin/service_accounts_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/shared_tier_restore_jobs_api.go b/mockadmin/shared_tier_restore_jobs_api.go
index e9c2e396b..f461bff4f 100644
--- a/mockadmin/shared_tier_restore_jobs_api.go
+++ b/mockadmin/shared_tier_restore_jobs_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/shared_tier_snapshots_api.go b/mockadmin/shared_tier_snapshots_api.go
index 13fb000b6..5575cd234 100644
--- a/mockadmin/shared_tier_snapshots_api.go
+++ b/mockadmin/shared_tier_snapshots_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/streams_api.go b/mockadmin/streams_api.go
index 99580e253..2d24b032d 100644
--- a/mockadmin/streams_api.go
+++ b/mockadmin/streams_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
@@ -2128,6 +2128,158 @@ func (_c *StreamsApi_GetAccountDetailsWithParams_Call) RunAndReturn(run func(con
return _c
}
+// GetActiveVpcPeeringConnections provides a mock function with given fields: ctx, groupId
+func (_m *StreamsApi) GetActiveVpcPeeringConnections(ctx context.Context, groupId string) admin.GetActiveVpcPeeringConnectionsApiRequest {
+ ret := _m.Called(ctx, groupId)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetActiveVpcPeeringConnections")
+ }
+
+ var r0 admin.GetActiveVpcPeeringConnectionsApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, string) admin.GetActiveVpcPeeringConnectionsApiRequest); ok {
+ r0 = rf(ctx, groupId)
+ } else {
+ r0 = ret.Get(0).(admin.GetActiveVpcPeeringConnectionsApiRequest)
+ }
+
+ return r0
+}
+
+// StreamsApi_GetActiveVpcPeeringConnections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActiveVpcPeeringConnections'
+type StreamsApi_GetActiveVpcPeeringConnections_Call struct {
+ *mock.Call
+}
+
+// GetActiveVpcPeeringConnections is a helper method to define mock.On call
+// - ctx context.Context
+// - groupId string
+func (_e *StreamsApi_Expecter) GetActiveVpcPeeringConnections(ctx any, groupId any) *StreamsApi_GetActiveVpcPeeringConnections_Call {
+ return &StreamsApi_GetActiveVpcPeeringConnections_Call{Call: _e.mock.On("GetActiveVpcPeeringConnections", ctx, groupId)}
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnections_Call) Run(run func(ctx context.Context, groupId string)) *StreamsApi_GetActiveVpcPeeringConnections_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(string))
+ })
+ return _c
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnections_Call) Return(_a0 admin.GetActiveVpcPeeringConnectionsApiRequest) *StreamsApi_GetActiveVpcPeeringConnections_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnections_Call) RunAndReturn(run func(context.Context, string) admin.GetActiveVpcPeeringConnectionsApiRequest) *StreamsApi_GetActiveVpcPeeringConnections_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetActiveVpcPeeringConnectionsExecute provides a mock function with given fields: r
+func (_m *StreamsApi) GetActiveVpcPeeringConnectionsExecute(r admin.GetActiveVpcPeeringConnectionsApiRequest) (*http.Response, error) {
+ ret := _m.Called(r)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetActiveVpcPeeringConnectionsExecute")
+ }
+
+ var r0 *http.Response
+ var r1 error
+ if rf, ok := ret.Get(0).(func(admin.GetActiveVpcPeeringConnectionsApiRequest) (*http.Response, error)); ok {
+ return rf(r)
+ }
+ if rf, ok := ret.Get(0).(func(admin.GetActiveVpcPeeringConnectionsApiRequest) *http.Response); ok {
+ r0 = rf(r)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*http.Response)
+ }
+ }
+
+ if rf, ok := ret.Get(1).(func(admin.GetActiveVpcPeeringConnectionsApiRequest) error); ok {
+ r1 = rf(r)
+ } else {
+ r1 = ret.Error(1)
+ }
+
+ return r0, r1
+}
+
+// StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActiveVpcPeeringConnectionsExecute'
+type StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call struct {
+ *mock.Call
+}
+
+// GetActiveVpcPeeringConnectionsExecute is a helper method to define mock.On call
+// - r admin.GetActiveVpcPeeringConnectionsApiRequest
+func (_e *StreamsApi_Expecter) GetActiveVpcPeeringConnectionsExecute(r any) *StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call {
+ return &StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call{Call: _e.mock.On("GetActiveVpcPeeringConnectionsExecute", r)}
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call) Run(run func(r admin.GetActiveVpcPeeringConnectionsApiRequest)) *StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(admin.GetActiveVpcPeeringConnectionsApiRequest))
+ })
+ return _c
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call) Return(_a0 *http.Response, _a1 error) *StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call {
+ _c.Call.Return(_a0, _a1)
+ return _c
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call) RunAndReturn(run func(admin.GetActiveVpcPeeringConnectionsApiRequest) (*http.Response, error)) *StreamsApi_GetActiveVpcPeeringConnectionsExecute_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
+// GetActiveVpcPeeringConnectionsWithParams provides a mock function with given fields: ctx, args
+func (_m *StreamsApi) GetActiveVpcPeeringConnectionsWithParams(ctx context.Context, args *admin.GetActiveVpcPeeringConnectionsApiParams) admin.GetActiveVpcPeeringConnectionsApiRequest {
+ ret := _m.Called(ctx, args)
+
+ if len(ret) == 0 {
+ panic("no return value specified for GetActiveVpcPeeringConnectionsWithParams")
+ }
+
+ var r0 admin.GetActiveVpcPeeringConnectionsApiRequest
+ if rf, ok := ret.Get(0).(func(context.Context, *admin.GetActiveVpcPeeringConnectionsApiParams) admin.GetActiveVpcPeeringConnectionsApiRequest); ok {
+ r0 = rf(ctx, args)
+ } else {
+ r0 = ret.Get(0).(admin.GetActiveVpcPeeringConnectionsApiRequest)
+ }
+
+ return r0
+}
+
+// StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActiveVpcPeeringConnectionsWithParams'
+type StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call struct {
+ *mock.Call
+}
+
+// GetActiveVpcPeeringConnectionsWithParams is a helper method to define mock.On call
+// - ctx context.Context
+// - args *admin.GetActiveVpcPeeringConnectionsApiParams
+func (_e *StreamsApi_Expecter) GetActiveVpcPeeringConnectionsWithParams(ctx any, args any) *StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call {
+ return &StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call{Call: _e.mock.On("GetActiveVpcPeeringConnectionsWithParams", ctx, args)}
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call) Run(run func(ctx context.Context, args *admin.GetActiveVpcPeeringConnectionsApiParams)) *StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call {
+ _c.Call.Run(func(args mock.Arguments) {
+ run(args[0].(context.Context), args[1].(*admin.GetActiveVpcPeeringConnectionsApiParams))
+ })
+ return _c
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call) Return(_a0 admin.GetActiveVpcPeeringConnectionsApiRequest) *StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call {
+ _c.Call.Return(_a0)
+ return _c
+}
+
+func (_c *StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call) RunAndReturn(run func(context.Context, *admin.GetActiveVpcPeeringConnectionsApiParams) admin.GetActiveVpcPeeringConnectionsApiRequest) *StreamsApi_GetActiveVpcPeeringConnectionsWithParams_Call {
+ _c.Call.Return(run)
+ return _c
+}
+
// GetPrivateLinkConnection provides a mock function with given fields: ctx, groupId, connectionId
func (_m *StreamsApi) GetPrivateLinkConnection(ctx context.Context, groupId string, connectionId string) admin.GetPrivateLinkConnectionApiRequest {
ret := _m.Called(ctx, groupId, connectionId)
diff --git a/mockadmin/teams_api.go b/mockadmin/teams_api.go
index 4b5f3097c..bb1052652 100644
--- a/mockadmin/teams_api.go
+++ b/mockadmin/teams_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
@@ -1369,24 +1369,24 @@ func (_c *TeamsApi_ListTeamUsers_Call) RunAndReturn(run func(context.Context, st
}
// ListTeamUsersExecute provides a mock function with given fields: r
-func (_m *TeamsApi) ListTeamUsersExecute(r admin.ListTeamUsersApiRequest) (*admin.PaginatedAppUser, *http.Response, error) {
+func (_m *TeamsApi) ListTeamUsersExecute(r admin.ListTeamUsersApiRequest) (*admin.PaginatedOrgUser, *http.Response, error) {
ret := _m.Called(r)
if len(ret) == 0 {
panic("no return value specified for ListTeamUsersExecute")
}
- var r0 *admin.PaginatedAppUser
+ var r0 *admin.PaginatedOrgUser
var r1 *http.Response
var r2 error
- if rf, ok := ret.Get(0).(func(admin.ListTeamUsersApiRequest) (*admin.PaginatedAppUser, *http.Response, error)); ok {
+ if rf, ok := ret.Get(0).(func(admin.ListTeamUsersApiRequest) (*admin.PaginatedOrgUser, *http.Response, error)); ok {
return rf(r)
}
- if rf, ok := ret.Get(0).(func(admin.ListTeamUsersApiRequest) *admin.PaginatedAppUser); ok {
+ if rf, ok := ret.Get(0).(func(admin.ListTeamUsersApiRequest) *admin.PaginatedOrgUser); ok {
r0 = rf(r)
} else {
if ret.Get(0) != nil {
- r0 = ret.Get(0).(*admin.PaginatedAppUser)
+ r0 = ret.Get(0).(*admin.PaginatedOrgUser)
}
}
@@ -1425,12 +1425,12 @@ func (_c *TeamsApi_ListTeamUsersExecute_Call) Run(run func(r admin.ListTeamUsers
return _c
}
-func (_c *TeamsApi_ListTeamUsersExecute_Call) Return(_a0 *admin.PaginatedAppUser, _a1 *http.Response, _a2 error) *TeamsApi_ListTeamUsersExecute_Call {
+func (_c *TeamsApi_ListTeamUsersExecute_Call) Return(_a0 *admin.PaginatedOrgUser, _a1 *http.Response, _a2 error) *TeamsApi_ListTeamUsersExecute_Call {
_c.Call.Return(_a0, _a1, _a2)
return _c
}
-func (_c *TeamsApi_ListTeamUsersExecute_Call) RunAndReturn(run func(admin.ListTeamUsersApiRequest) (*admin.PaginatedAppUser, *http.Response, error)) *TeamsApi_ListTeamUsersExecute_Call {
+func (_c *TeamsApi_ListTeamUsersExecute_Call) RunAndReturn(run func(admin.ListTeamUsersApiRequest) (*admin.PaginatedOrgUser, *http.Response, error)) *TeamsApi_ListTeamUsersExecute_Call {
_c.Call.Return(run)
return _c
}
diff --git a/mockadmin/third_party_integrations_api.go b/mockadmin/third_party_integrations_api.go
index cc5677245..3ee1dfa76 100644
--- a/mockadmin/third_party_integrations_api.go
+++ b/mockadmin/third_party_integrations_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/mockadmin/x509_authentication_api.go b/mockadmin/x509_authentication_api.go
index bab8bac25..ed79d3147 100644
--- a/mockadmin/x509_authentication_api.go
+++ b/mockadmin/x509_authentication_api.go
@@ -5,7 +5,7 @@ package mockadmin
import (
context "context"
- admin "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ admin "github.com/mongodb/atlas-sdk-go/admin"
http "net/http"
diff --git a/openapi/atlas-api-transformed.yaml b/openapi/atlas-api-transformed.yaml
index 9f7610b1c..1f309f22a 100644
--- a/openapi/atlas-api-transformed.yaml
+++ b/openapi/atlas-api-transformed.yaml
@@ -12,7 +12,7 @@ info:
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" \
--digest \
- --header "Accept: application/vnd.atlas.2024-11-13+json" \
+ --header "Accept: application/vnd.atlas.2043-01-01+json" \
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dbAccessHistory/clusters/{clusterName}?pretty=true"
```
@@ -27,7 +27,7 @@ info:
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
title: MongoDB Atlas Administration API
version: "2.0"
- x-xgen-sha: b30dca0a1318cf8279cab906a13fd2bfa4889cea
+ x-xgen-sha: d1bc966b16b166740f7b2d42f6512255a6316d90
servers:
- url: https://cloud.mongodb.com
security:
@@ -299,6 +299,8 @@ paths:
summary: Get All Alert Configuration Matchers Field Names
tags:
- Alert Configurations
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/clusters:
get:
description: Returns the details for all clusters in all projects to which you
@@ -972,6 +974,8 @@ paths:
summary: Revoke the JWKS from One OIDC Identity Provider
tags:
- Federated Authentication
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/federationSettings/{federationSettingsId}/identityProviders/{identityProviderId}/metadata.xml":
get:
description: Returns the metadata of one identity provider in the specified
@@ -1116,6 +1120,8 @@ paths:
summary: Return One Project using Its Name
tags:
- Projects
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}":
delete:
description: Removes the specified project. Projects group clusters into logical
@@ -1245,6 +1251,8 @@ paths:
summary: Add One MongoDB Cloud User to One Project
tags:
- Projects
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/accessList":
get:
description: Returns all access list entries from the specified project's IP
@@ -2037,6 +2045,8 @@ paths:
summary: Create and Assign One Organization API Key to One Project
tags:
- Programmatic API Keys
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/apiKeys/{apiUserId}":
delete:
description: Removes one organization API key from the specified project. To use
@@ -2375,12 +2385,14 @@ paths:
summary: Create One Snapshot Export Bucket
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/backup/exportBuckets/{exportBucketId}":
delete:
description: Deletes an Export Bucket. Auto export must be disabled on all
clusters in this Project exporting to this Export Bucket before revoking
access. To use this resource, the requesting API Key must have the
- Project Owner role.
+ Project Backup Manager role.
operationId: deleteExportBucket
parameters:
- $ref: "#/components/parameters/groupId"
@@ -2472,6 +2484,8 @@ paths:
summary: Return One Snapshot Export Bucket
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/backupCompliancePolicy":
delete:
description: Disables the Backup Compliance Policy settings with the specified
@@ -2662,6 +2676,8 @@ paths:
summary: Deauthorize One Cloud Provider Access Role
tags:
- Cloud Provider Access
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/cloudProviderAccess/{roleId}":
get:
description: Returns the access role with the specified id and with access to
@@ -2940,6 +2956,8 @@ paths:
summary: Return All Cloud Provider Regions
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/tenantUpgrade":
post:
description: Upgrades a shared-tier cluster to a dedicated cluster (M10+) in the
@@ -2979,6 +2997,9 @@ paths:
summary: Upgrade One Shared-tier Cluster
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/tenantUpgradeToServerless":
post:
description: Upgrades a shared-tier cluster to a serverless instance in the
@@ -3017,6 +3038,9 @@ paths:
summary: Upgrades One Shared-Tier Cluster to the Serverless Instance
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}":
delete:
description: "Removes one cluster from the specified project. The cluster must
@@ -3231,6 +3255,8 @@ paths:
summary: Create One Snapshot Export Job
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/exports/{exportId}":
get:
description: Returns one Cloud Backup Snapshot Export Job associated with the
@@ -3274,11 +3300,13 @@ paths:
summary: Return One Snapshot Export Job
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/restoreJobs":
get:
description: Returns all cloud backup restore jobs for one cluster from the
specified project. To use this resource, the requesting API Key must
- have the Project Owner role.
+ have the Project Backup Manager role.
operationId: listBackupRestoreJobs
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3318,7 +3346,7 @@ paths:
**inProgress** exists, before taking another snapshot, wait until Atlas
completes completes processing the previously taken on-demand snapshot.
- To use this resource, the requesting API Key must have the Project Owner role.
+ To use this resource, the requesting API Key must have the Project Backup Manager role.
operationId: createBackupRestoreJob
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3359,11 +3387,13 @@ paths:
summary: Restore One Snapshot of One Cluster
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/restoreJobs/{restoreJobId}":
delete:
description: Cancels one cloud backup restore job of one cluster from the
specified project. To use this resource, the requesting API Key must
- have the Project Owner role.
+ have the Project Backup Manager role.
operationId: cancelBackupRestoreJob
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3406,7 +3436,7 @@ paths:
get:
description: Returns one cloud backup restore job for one cluster from the
specified project. To use this resource, the requesting API Key must
- have the Project Owner role.
+ have the Project Backup Manager role.
operationId: getBackupRestoreJob
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3445,6 +3475,8 @@ paths:
summary: Return One Restore Job of One Cluster
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/schedule":
delete:
description: "Removes all cloud backup schedules for the specified cluster. This
@@ -3561,11 +3593,13 @@ paths:
summary: Update Cloud Backup Schedule for One Cluster
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/snapshots":
get:
description: Returns all snapshots of one cluster from the specified project. To
use this resource, the requesting API Key must have the Project Read
- Only role.
+ Only role or Project Backup Manager role.
operationId: listReplicaSetBackups
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3606,7 +3640,7 @@ paths:
**inProgress** exists, before taking another snapshot, wait until Atlas
completes completes processing the previously taken on-demand snapshot.
- To use this resource, the requesting API Key must have the Project Owner role.
+ To use this resource, the requesting API Key must have the Project Backup Manager role.
operationId: takeSnapshot
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3643,11 +3677,13 @@ paths:
summary: Take One On-Demand Snapshot
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/snapshots/shardedCluster/{snapshotId}":
delete:
description: Removes one snapshot of one sharded cluster from the specified
project. To use this resource, the requesting API Key must have the
- Project Owner role.
+ Project Backup Manager role.
operationId: deleteShardedClusterBackup
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3688,7 +3724,7 @@ paths:
get:
description: Returns one snapshot of one sharded cluster from the specified
project. To use this resource, the requesting API Key must have the
- Project Read Only role.
+ Project Read Only role or Project Backup Manager role.
operationId: getShardedClusterBackup
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3728,11 +3764,13 @@ paths:
summary: Return One Sharded Cluster Cloud Backup
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/snapshots/shardedClusters":
get:
description: Returns all snapshots of one sharded cluster from the specified
project. To use this resource, the requesting API Key must have the
- Project Read Only role.
+ Project Read Only role or Project Backup Manager role.
operationId: listShardedClusterBackups
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3762,10 +3800,12 @@ paths:
summary: Return All Sharded Cluster Cloud Backups
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/snapshots/{snapshotId}":
delete:
description: Removes the specified snapshot. To use this resource, the
- requesting API Key must have the Project Owner role.
+ requesting API Key must have the Project Backup Manager role.
operationId: deleteReplicaSetBackup
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3807,7 +3847,8 @@ paths:
- Cloud Backups
get:
description: Returns one snapshot from the specified cluster. To use this
- resource, the requesting API Key must have the Project Read Only role.
+ resource, the requesting API Key must have the Project Read Only role or
+ Project Backup Manager role.
operationId: getReplicaSetBackup
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3849,7 +3890,8 @@ paths:
- Cloud Backups
patch:
description: Changes the expiration date for one cloud backup snapshot for one
- cluster in the specified project.
+ cluster in the specified project, the requesting API Key must have the
+ Project Backup Manager role.
operationId: updateSnapshotRetention
parameters:
- $ref: "#/components/parameters/groupId"
@@ -3897,6 +3939,8 @@ paths:
summary: Change Expiration Date for One Cloud Backup
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/download":
post:
description: Requests one snapshot for the specified shared cluster. This
@@ -3946,6 +3990,9 @@ paths:
summary: Download One M2 or M5 Cluster Snapshot
tags:
- Shared-Tier Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/restore":
post:
description: Restores the specified cluster. MongoDB Cloud limits which clusters
@@ -3995,6 +4042,9 @@ paths:
summary: Create One Restore Job from One M2 or M5 Cluster
tags:
- Shared-Tier Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/restores":
get:
description: Returns all restore jobs for the specified M2 or M5 cluster.
@@ -4029,6 +4079,8 @@ paths:
summary: Return All Restore Jobs for One M2 or M5 Cluster
tags:
- Shared-Tier Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/restores/{restoreId}":
get:
description: Returns the specified restore job. To use this resource, the
@@ -4072,6 +4124,8 @@ paths:
summary: Return One Restore Job for One M2 or M5 Cluster
tags:
- Shared-Tier Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/snapshots":
get:
description: Returns details for all snapshots for the specified shared cluster.
@@ -4106,6 +4160,8 @@ paths:
summary: Return All Snapshots for One M2 or M5 Cluster
tags:
- Shared-Tier Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/snapshots/{snapshotId}":
get:
description: Returns details for one snapshot for the specified shared cluster.
@@ -4150,6 +4206,8 @@ paths:
summary: Return One Snapshot for One M2 or M5 Cluster
tags:
- Shared-Tier Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backupCheckpoints":
get:
deprecated: true
@@ -4374,6 +4432,8 @@ paths:
summary: Pin Namespaces
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/collStats/unpin":
patch:
description: Unpin provided list of namespaces for collection-level latency
@@ -4418,6 +4478,9 @@ paths:
summary: Unpin namespaces
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes":
post:
deprecated: true
@@ -4469,6 +4532,8 @@ paths:
tags:
- Atlas Search
x-sunset: 2025-06-01
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{databaseName}/{collectionName}":
get:
deprecated: true
@@ -4524,6 +4589,8 @@ paths:
tags:
- Atlas Search
x-sunset: 2025-06-01
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{indexId}":
delete:
deprecated: true
@@ -4691,6 +4758,8 @@ paths:
tags:
- Atlas Search
x-sunset: 2025-06-01
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites":
get:
description: "Returns one managed namespace within the specified global cluster.
@@ -4814,6 +4883,9 @@ paths:
summary: Add One Entry to One Custom Zone Mapping
tags:
- Global Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces":
delete:
description: "Removes one managed namespace within the specified global cluster.
@@ -4914,6 +4986,9 @@ paths:
summary: Create One Managed Namespace in One Global Cluster
tags:
- Global Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/index":
post:
description: Creates an index on the cluster identified by its name in a rolling
@@ -5025,6 +5100,8 @@ paths:
summary: Create One Rolling Index
tags:
- Rolling Index
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives":
get:
description: Returns details of all online archives. This archive stores data
@@ -5194,6 +5271,8 @@ paths:
summary: Download Online Archive Query Logs
tags:
- Online Archive
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/{archiveId}":
delete:
description: Removes one online archive. This archive stores data from one
@@ -5468,6 +5547,85 @@ paths:
summary: Start an Outage Simulation
tags:
- Cluster Outage Simulation
+ x-xgen-IPA-exception:
+ xgen-IPA-113-singleton-must-not-have-id: API predates IPA validation
+ "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/dropIndexSuggestions":
+ get:
+ description: Returns the indexes that the Performance Advisor suggests to drop.
+ The Performance Advisor suggests dropping unused, redundant, and hidden
+ indexes to improve write performance and increase storage space. To use
+ this resource, the requesting API Key must have the Project Read Only
+ role.
+ operationId: listDropIndexes
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - description: Human-readable label that identifies the cluster.
+ in: path
+ name: clusterName
+ required: true
+ schema:
+ type: string
+ maxLength: 64
+ minLength: 1
+ pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*$
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2024-08-05+json:
+ schema:
+ $ref: "#/components/schemas/PerformanceAdvisorResponse"
+ x-xgen-version: 2024-08-05
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Returns Suggested Indexes to Drop
+ tags:
+ - Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/schemaAdvice":
+ get:
+ description: Returns the schema suggestions that the Performance Advisor
+ detects. The Performance Advisor provides holistic schema
+ recommendations for your cluster by sampling documents in your most
+ active collections and collections with slow-running queries. To use
+ this resource, the requesting API Key must have the Project Read Only
+ role.
+ operationId: listSchemaAdvice
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - description: Human-readable label that identifies the cluster.
+ in: path
+ name: clusterName
+ required: true
+ schema:
+ type: string
+ maxLength: 64
+ minLength: 1
+ pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*$
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2024-08-05+json:
+ schema:
+ $ref: "#/components/schemas/PerformanceAdvisorResponse"
+ x-xgen-version: 2024-08-05
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Return Schema Advice
+ tags:
+ - Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/suggestedIndexes":
get:
description: Returns the indexes that the Performance Advisor suggests. The
@@ -5564,6 +5722,8 @@ paths:
summary: Return Suggested Indexes
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs":
get:
description: "Returns the advanced configuration details for one cluster in the
@@ -5692,6 +5852,8 @@ paths:
summary: Test Failover for One Cluster
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restoreJobs":
get:
deprecated: true
@@ -5998,6 +6160,9 @@ paths:
summary: Create Search Nodes
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-113-singleton-must-not-have-id: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes":
get:
description: Returns all Atlas Search indexes on the specified cluster. Atlas
@@ -6093,6 +6258,8 @@ paths:
summary: Create One Atlas Search Index
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{databaseName}/{collectionName}":
get:
description: Returns all Atlas Search indexes on the specified collection. Atlas
@@ -6154,6 +6321,8 @@ paths:
summary: Return All Atlas Search Indexes for One Collection
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{databaseName}/{collectionName}/{indexName}":
delete:
description: Removes one Atlas Search index that you identified with its
@@ -6340,6 +6509,8 @@ paths:
summary: Update One Atlas Search Index By Name
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{indexId}":
delete:
description: Removes one Atlas Search index that you identified with its unique
@@ -6509,6 +6680,8 @@ paths:
summary: Update One Atlas Search Index By ID
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/snapshotSchedule":
get:
deprecated: true
@@ -6626,6 +6799,8 @@ paths:
schema:
type: string
default: "true"
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
responses:
"200":
content:
@@ -6877,6 +7052,8 @@ paths:
summary: Return Ranked Namespaces from a Cluster
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/{clusterView}/{databaseName}/{collectionName}/collStats/measurements":
get:
description: Get a list of the Coll Stats Latency cluster-level measurements for
@@ -6938,6 +7115,8 @@ paths:
summary: Return Cluster-Level Query Latency
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}:grantMongoDBEmployeeAccess":
post:
description: Grants MongoDB employee cluster access for the given duration and
@@ -6983,6 +7162,8 @@ paths:
summary: Grant MongoDB employee cluster access for one cluster.
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-109-custom-method-must-use-camel-case: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}:pinFeatureCompatibilityVersion":
post:
description: Pins the Feature Compatibility Version (FCV) to the current MongoDB
@@ -7065,6 +7246,8 @@ paths:
summary: Revoke granted MongoDB employee cluster access for one cluster.
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-109-custom-method-must-use-camel-case: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}:unpinFeatureCompatibilityVersion":
post:
description: Unpins the current fixed Feature Compatibility Version (FCV). This
@@ -7142,6 +7325,8 @@ paths:
externalDocs:
description: Set up Database Auditing
url: https://docs.atlas.mongodb.com/database-auditing/
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
- description: Specifies the date and time for the ending point of the range of
log messages to retrieve, in the number of seconds that have elapsed
since the UNIX epoch. This value will default to 24 hours after the
@@ -7190,6 +7375,8 @@ paths:
summary: Download Logs for One Cluster Host in One Project
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/collStats/metrics":
get:
description: Returns all available Coll Stats Latency metric names and their
@@ -7216,6 +7403,8 @@ paths:
summary: Return all metric names
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/containers":
get:
description: Returns details about all network peering containers in the
@@ -7322,6 +7511,8 @@ paths:
summary: Return All Network Peering Containers in One Project
tags:
- Network Peering
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/containers/{containerId}":
delete:
description: Removes one network peering container in the specified project. To
@@ -7471,7 +7662,9 @@ paths:
- Custom Database Roles
post:
description: Creates one custom role in the specified project. To use this
- resource, the requesting API Key must have the Project Owner role.
+ resource, the requesting API Key must have the Project Owner role,
+ Project Stream Processing Owner role, or the Project Database Access
+ Admin role.
operationId: createCustomDatabaseRole
parameters:
- $ref: "#/components/parameters/groupId"
@@ -7505,13 +7698,16 @@ paths:
summary: Create One Custom Role
tags:
- Custom Database Roles
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/customDBRoles/roles/{roleName}":
delete:
description: Removes one custom role from the specified project. You can't
remove a custom role that would leave one or more child roles with no
parent roles or actions. You also can't remove a custom role that would
leave one or more database users without roles. To use this resource,
- the requesting API Key must have the Project Atlas Admin role.
+ the requesting API Key must have the Project Owner role, Project Stream
+ Processing Owner role, or the Project Database Access Admin role.
operationId: deleteCustomDatabaseRole
parameters:
- $ref: "#/components/parameters/groupId"
@@ -7573,7 +7769,9 @@ paths:
- Custom Database Roles
patch:
description: Updates one custom role in the specified project. To use this
- resource, the requesting API Key must have the Project Owner role.
+ resource, the requesting API Key must have the Project Owner role, the
+ Project Stream Processing Owner role, or the Project Database Access
+ Admin role.
operationId: updateCustomDatabaseRole
parameters:
- $ref: "#/components/parameters/groupId"
@@ -7614,6 +7812,8 @@ paths:
summary: Update One Custom Role in One Project
tags:
- Custom Database Roles
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/dataFederation":
get:
description: Returns the details of all federated database instances in the
@@ -7865,6 +8065,8 @@ paths:
required: true
schema:
type: string
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
responses:
"204":
content:
@@ -7915,6 +8117,8 @@ paths:
required: true
schema:
type: string
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
responses:
"200":
content:
@@ -7965,6 +8169,8 @@ paths:
required: true
schema:
type: string
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
requestBody:
content:
application/vnd.atlas.2023-01-01+json:
@@ -8085,8 +8291,9 @@ paths:
Cloud supports a maximum of 100 database users per project. If you
require more than 100 database users on a project, contact
[Support](https://cloud.mongodb.com/support). To use this resource, the
- requesting API Key must have the Project Owner or Project Charts Admin
- roles.
+ requesting API Key must have the Project Owner role, the Project Charts
+ Admin role, Project Stream Processing Owner role, or the Project
+ Database Access Admin role.
operationId: createDatabaseUser
parameters:
- $ref: "#/components/parameters/groupId"
@@ -8214,7 +8421,9 @@ paths:
"/api/atlas/v2/groups/{groupId}/databaseUsers/{databaseName}/{username}":
delete:
description: Removes one database user from the specified project. To use this
- resource, the requesting API Key must have the Project Owner role.
+ resource, the requesting API Key must have the Project Owner role, the
+ Project Stream Processing Owner role, or the Project Database Access
+ Admin role.
operationId: deleteDatabaseUser
parameters:
- $ref: "#/components/parameters/groupId"
@@ -8359,8 +8568,9 @@ paths:
- Database Users
patch:
description: Updates one database user that belongs to the specified project. To
- use this resource, the requesting API Key must have the Project Owner or
- Project Charts Admin roles.
+ use this resource, the requesting API Key must have the Project Owner
+ role, Project Charts Admin role, Project Stream Processing Owner role,
+ or the Project Database Access Admin role.
operationId: updateDatabaseUser
parameters:
- $ref: "#/components/parameters/groupId"
@@ -8442,6 +8652,8 @@ paths:
summary: Update One Database User in One Project
tags:
- Database Users
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/databaseUsers/{username}/certs":
get:
description: Returns all unexpired X.509 certificates for the specified MongoDB
@@ -8542,7 +8754,7 @@ paths:
name. Access logs contain a list of authentication requests made against
your cluster. You can't use this feature on tenant-tier clusters (M0,
M2, M5). To use this resource, the requesting API Key must have the
- Project Monitoring Admin role.
+ Project Monitoring Admin role or the Project Database Access Admin role.
externalDocs:
description: Database Access History
url: https://docs.atlas.mongodb.com/access-tracking/
@@ -8613,13 +8825,16 @@ paths:
summary: Return Database Access History for One Cluster using Its Cluster Name
tags:
- Access Tracking
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/dbAccessHistory/processes/{hostname}":
get:
description: Returns the access logs of one cluster identified by the cluster's
hostname. Access logs contain a list of authentication requests made
against your clusters. You can't use this feature on tenant-tier
clusters (M0, M2, M5). To use this resource, the requesting API Key must
- have the Project Monitoring Admin role.
+ have the Project Monitoring Admin role or the Project Database Access
+ Admin role.
externalDocs:
description: Database Access History
url: https://docs.atlas.mongodb.com/access-tracking/
@@ -8688,6 +8903,8 @@ paths:
summary: Return Database Access History for One Cluster using Its Hostname
tags:
- Access Tracking
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/encryptionAtRest":
get:
description: >-
@@ -9284,6 +9501,9 @@ paths:
summary: Download One Flex Cluster Snapshot
tags:
- Flex Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/restoreJobs":
get:
description: Returns all restore jobs for one flex cluster from the specified
@@ -9366,6 +9586,8 @@ paths:
summary: Restore One Snapshot of One Flex Cluster
tags:
- Flex Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/restoreJobs/{restoreJobId}":
get:
description: Returns one restore job for one flex cluster from the specified
@@ -9410,6 +9632,8 @@ paths:
summary: Return One Restore Job for One Flex Cluster
tags:
- Flex Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/snapshots":
get:
description: Returns all snapshots of one flex cluster from the specified
@@ -9447,6 +9671,8 @@ paths:
summary: Return All Snapshots of One Flex Cluster
tags:
- Flex Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/snapshots/{snapshotId}":
get:
description: Returns one snapshot of one flex cluster from the specified
@@ -9492,6 +9718,8 @@ paths:
summary: Return One Snapshot of One Flex Cluster
tags:
- Flex Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/flexClusters:tenantUpgrade":
post:
description: Upgrades a flex cluster to a dedicated cluster (M10+) in the
@@ -9556,6 +9784,8 @@ paths:
summary: Return All Atlas Search Metric Types for One Process
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/hosts/{processId}/fts/metrics/indexes/{databaseName}/{collectionName}/measurements":
get:
description: Returns the Atlas Search index metrics within the specified time
@@ -9601,6 +9831,8 @@ paths:
summary: Return All Atlas Search Index Metrics for One Namespace
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/hosts/{processId}/fts/metrics/indexes/{databaseName}/{collectionName}/{indexName}/measurements":
get:
description: Returns the Atlas Search metrics data series within the provided
@@ -9649,6 +9881,8 @@ paths:
summary: Return Atlas Search Metrics for One Index in One Specified Namespace
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/hosts/{processId}/fts/metrics/measurements":
get:
description: Returns the Atlas Search hardware and status data series within the
@@ -9698,6 +9932,8 @@ paths:
summary: Return Atlas Search Hardware and Status Metrics
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/integrations":
get:
description: Returns the settings that permit integrations with all configured
@@ -10214,6 +10450,8 @@ paths:
required: true
schema:
type: string
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
- $ref: "#/components/parameters/groupId"
responses:
"204":
@@ -10277,6 +10515,8 @@ paths:
required: true
schema:
type: string
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
- $ref: "#/components/parameters/groupId"
responses:
"200":
@@ -10346,6 +10586,8 @@ paths:
required: true
schema:
type: string
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
- $ref: "#/components/parameters/groupId"
requestBody:
content:
@@ -10456,6 +10698,8 @@ paths:
summary: Validate One Migration Request
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/liveMigrations/validate/{validationId}":
get:
description: Return the status of one migration validation job. Your API Key
@@ -10496,6 +10740,8 @@ paths:
summary: Return One Migration Validation Job
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/liveMigrations/{liveMigrationId}":
get:
description: Return details of one cluster migration job. Each push live
@@ -10554,6 +10800,8 @@ paths:
summary: Cut Over the Migrated Cluster
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/maintenanceWindow":
delete:
description: Resets the maintenance window for the specified project. To use
@@ -10676,6 +10924,9 @@ paths:
summary: Toggle Automatic Deferral of Maintenance for One Project
tags:
- Maintenance Windows
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/maintenanceWindow/defer":
post:
description: Defers the maintenance window for the specified project. Urgent
@@ -10707,6 +10958,9 @@ paths:
summary: Defer One Maintenance Window for One Project
tags:
- Maintenance Windows
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/managedSlowMs":
get:
description: Get whether the Managed Slow MS feature is enabled.
@@ -10758,6 +11012,9 @@ paths:
summary: Disable Managed Slow Operation Threshold
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/managedSlowMs/enable":
post:
description: Enables MongoDB Cloud to use its slow operation threshold for the
@@ -10788,6 +11045,9 @@ paths:
summary: Enable Managed Slow Operation Threshold
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/mongoDBVersions":
get:
description: Returns the MongoDB Long Term Support Major Versions available to
@@ -11337,6 +11597,8 @@ paths:
tags:
- Data Lake Pipelines
x-sunset: 2025-09-09
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/pipelines/{pipelineName}/resume":
post:
deprecated: true
@@ -11373,6 +11635,8 @@ paths:
tags:
- Data Lake Pipelines
x-sunset: 2025-09-09
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/pipelines/{pipelineName}/runs":
get:
deprecated: true
@@ -11551,6 +11815,8 @@ paths:
tags:
- Data Lake Pipelines
x-sunset: 2025-09-09
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/privateEndpoint/endpointService":
post:
description: Creates one private endpoint service for the specified cloud
@@ -11589,6 +11855,9 @@ paths:
summary: Create One Private Endpoint Service for One Provider
tags:
- Private Endpoint Services
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/privateEndpoint/regionalMode":
get:
description: Checks whether each region in the specified cloud service provider
@@ -11653,6 +11922,8 @@ paths:
summary: Toggle Regionalized Private Endpoint Status
tags:
- Private Endpoint Services
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/privateEndpoint/serverless/instance/{instanceName}/endpoint":
get:
description: Returns all private endpoints for one serverless instance. You must
@@ -11735,6 +12006,8 @@ paths:
summary: Create One Private Endpoint for One Serverless Instance
tags:
- Serverless Private Endpoints
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/privateEndpoint/serverless/instance/{instanceName}/endpoint/{endpointId}":
delete:
description: Remove one private endpoint from one serverless instance. To use
@@ -11870,6 +12143,8 @@ paths:
summary: Update One Private Endpoint for One Serverless Instance
tags:
- Serverless Private Endpoints
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/privateEndpoint/{cloudProvider}/endpointService":
get:
description: Returns the name, interfaces, and state of all private endpoint
@@ -12300,6 +12575,8 @@ paths:
Endpoint for One Project
tags:
- Data Federation
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/privateNetworkSettings/endpointIds/{endpointId}":
delete:
description: Removes one private endpoint for Federated Database Instances and
@@ -12376,6 +12653,8 @@ paths:
Endpoint in One Project
tags:
- Data Federation
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/processes":
get:
description: Returns details of all processes for the specified project. A
@@ -12464,6 +12743,8 @@ paths:
summary: Return Ranked Namespaces from a Host
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/processes/{processId}/databases":
get:
description: Returns the list of databases running on the specified host for the
@@ -12913,6 +13194,8 @@ paths:
summary: Return All Namespaces for One Host
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/processes/{processId}/performanceAdvisor/slowQueryLogs":
get:
description: Returns log lines for slow queries that the Performance Advisor and
@@ -12921,7 +13204,8 @@ paths:
performance. MongoDB Cloud bases the threshold for slow queries on the
average time of operations on your cluster. This enables
workload-relevant recommendations. To use this resource, the requesting
- API Key must have the Project Data Access Read Write role.
+ API Key must have any Project Data Access role or the Project
+ Observability Viewer role.
operationId: listSlowQueries
parameters:
- $ref: "#/components/parameters/groupId"
@@ -13003,6 +13287,8 @@ paths:
summary: Return Slow Queries
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/processes/{processId}/performanceAdvisor/suggestedIndexes":
get:
description: Returns the indexes that the Performance Advisor suggests. The
@@ -13098,6 +13384,8 @@ paths:
summary: Return Suggested Indexes
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/processes/{processId}/{databaseName}/{collectionName}/collStats/measurements":
get:
description: Get a list of the Coll Stats Latency process-level measurements for
@@ -13141,6 +13429,8 @@ paths:
summary: Return Host-Level Query Latency
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/pushBasedLogExport":
delete:
description: Disables the push-based log export feature by resetting the project
@@ -13471,6 +13761,8 @@ paths:
summary: Restore One Snapshot of One Serverless Instance
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/serverless/{clusterName}/backup/restoreJobs/{restoreJobId}":
get:
description: Returns one restore job for one serverless instance from the
@@ -13515,6 +13807,8 @@ paths:
summary: Return One Restore Job for One Serverless Instance
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/serverless/{clusterName}/backup/snapshots":
get:
description: Returns all snapshots of one serverless instance from the specified
@@ -13552,6 +13846,8 @@ paths:
summary: Return All Snapshots of One Serverless Instance
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/serverless/{clusterName}/backup/snapshots/{snapshotId}":
get:
description: Returns one snapshot of one serverless instance from the specified
@@ -13597,6 +13893,8 @@ paths:
summary: Return One Snapshot of One Serverless Instance
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/serverless/{clusterName}/performanceAdvisor/autoIndexing":
get:
description: Get whether the Serverless Auto Indexing feature is enabled.
@@ -13662,6 +13960,8 @@ paths:
summary: Set Serverless Auto Indexing
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/serverless/{name}":
delete:
description: Removes one serverless instance from the specified project. The
@@ -14020,6 +14320,8 @@ paths:
summary: Add Access List entries for one Project Service Account
tags:
- Service Accounts
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/accessList/{ipAddress}":
delete:
description: Removes the specified access list entry from the specified Service
@@ -14102,6 +14404,8 @@ paths:
summary: Create one Project Service Account Secret
tags:
- Service Accounts
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/secrets/{secretId}":
delete:
description: Deletes the specified Service Account secret. Available as a
@@ -14337,6 +14641,31 @@ paths:
specified.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ "/api/atlas/v2/groups/{groupId}/streams/activeVpcPeeringConnections":
+ get:
+ description: Returns a list of active incoming VPC Peering Connections.
+ operationId: getActiveVpcPeeringConnections
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - $ref: "#/components/parameters/itemsPerPage"
+ - $ref: "#/components/parameters/pageNum"
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2024-11-13+json:
+ x-xgen-version: 2024-11-13
+ description: OK
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Returns all the active incoming VPC Peering Connections.
+ tags:
+ - Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/streams/privateLinkConnections":
get:
description: Returns all Private Link connections for the specified project.To
@@ -14404,6 +14733,8 @@ paths:
x-xgen-changelog:
2024-10-02: The MongoDB Atlas Streams Processing Private Link API is now exposed
as part of private preview, but is subject to change until GA.
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/streams/privateLinkConnections/{connectionId}":
delete:
description: Deletes one Private Link in the specified project. To use this
@@ -14473,6 +14804,8 @@ paths:
x-xgen-changelog:
2024-10-02: The MongoDB Atlas Streams Processing Private Link API is now exposed
as part of private preview, but is subject to change until GA.
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/streams/vpcPeeringConnections":
get:
description: Returns a list of incoming VPC Peering Connections.
@@ -14500,6 +14833,9 @@ paths:
summary: Return All VPC Peering Connections.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/streams/vpcPeeringConnections/{id}":
delete:
description: Deletes an incoming VPC Peering connection.
@@ -14531,6 +14867,8 @@ paths:
summary: Deletes an incoming VPC Peering connection.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/streams/vpcPeeringConnections/{id}:accept":
post:
description: Requests the acceptance of an incoming VPC Peering connection.
@@ -14570,6 +14908,8 @@ paths:
summary: Requests the acceptance of an incoming VPC Peering connection.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/streams/vpcPeeringConnections/{id}:reject":
post:
description: Requests the rejection of an incoming VPC Peering connection.
@@ -14601,6 +14941,8 @@ paths:
summary: Requests the rejection of an incoming VPC Peering connection.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/streams/{tenantName}":
delete:
description: Delete one stream instance in the specified project. To use this
@@ -15387,6 +15729,8 @@ paths:
summary: Add One or More Teams to One Project
tags:
- Teams
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/teams/{teamId}":
delete:
description: Removes one team specified using its unique 24-hexadecimal digit
@@ -15560,6 +15904,9 @@ paths:
summary: Disable Customer-Managed X.509
tags:
- X.509 Authentication
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/userSecurity/ldap/userToDNMapping":
delete:
description: Removes the current LDAP Distinguished Name mapping captured in the
@@ -15584,6 +15931,9 @@ paths:
summary: Remove the Current LDAP User to DN Mapping
tags:
- LDAP Configuration
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/userSecurity/ldap/verify":
post:
description: Verifies the LDAP configuration for the specified project. To use
@@ -15616,6 +15966,8 @@ paths:
summary: Verify the LDAP Configuration in One Project
tags:
- LDAP Configuration
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/userSecurity/ldap/verify/{requestId}":
get:
description: Returns the status of one request to verify one LDAP configuration
@@ -15650,6 +16002,8 @@ paths:
summary: Return the Status of One Verify LDAP Configuration Request
tags:
- LDAP Configuration
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/groups/{groupId}/users":
get:
deprecated: true
@@ -15711,10 +16065,55 @@ paths:
tags:
- Projects
x-sunset: 2044-01-01
+ post:
+ description: >
+ Adds one MongoDB Cloud user to one project. To use this resource, the
+ requesting API Key must have the Project Owner role.
+
+ - If the user has a pending invitation to join the project's organization, MongoDB Cloud modifies it and grants project access.
+
+ - If the user doesn't have an invitation to join the organization, MongoDB Cloud sends a new invitation that grants the user organization and project access.
+
+ - If the user is already active in the project's organization, MongoDB Cloud grants access to the project.
+ operationId: addProjectUser
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/GroupUserRequest"
+ description: The active or pending MongoDB Cloud user that you want to add to
+ the specified project.
+ required: true
+ responses:
+ "201":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/GroupUserResponse"
+ x-xgen-version: 2043-01-01
+ description: Created
+ "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"
+ summary: Add One MongoDB Cloud User to One Project
+ tags:
+ - MongoDB Cloud Users
"/api/atlas/v2/groups/{groupId}/users/{userId}":
delete:
- description: Removes the specified user from the specified project. To use this
+ description: "Removes the specified user from the specified project. To use this
resource, the requesting API Key must have the Project Owner role.
+ Deprecated versions: v2-{2023-01-01}"
operationId: removeProjectUser
parameters:
- $ref: "#/components/parameters/groupId"
@@ -15733,8 +16132,10 @@ paths:
responses:
"204":
content:
- application/vnd.atlas.2023-01-01+json:
- x-xgen-version: 2023-01-01
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/NoBody"
+ x-xgen-version: 2043-01-01
description: This endpoint does not return a response body.
"400":
$ref: "#/components/responses/badRequest"
@@ -15747,6 +16148,53 @@ paths:
summary: Remove One User from One Project
tags:
- Projects
+ get:
+ description: >-
+ Returns information about the specified MongoDB Cloud user within the
+ context of the specified project. To use this resource, the requesting
+ API Key must have the Project Read Only role.
+
+
+ **Note**: You can only use this resource to fetch information about MongoDB Cloud human users. To return information about an API Key, use the [Return One Organization API Key](#tag/Programmatic-API-Keys/operation/getApiKey) endpoint.
+
+
+ **Note**: This resource does not return information about pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: getProjectUser
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - description: Unique 24-hexadecimal digit string that identifies the pending or
+ active user in the project. If you need to lookup a user's userId or
+ verify a user's status in the organization, use the Return All
+ MongoDB Cloud Users in One Project resource and filter by username.
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/GroupUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Return One MongoDB Cloud User in One Project
+ tags:
+ - MongoDB Cloud Users
"/api/atlas/v2/groups/{groupId}/users/{userId}/roles":
put:
description: Updates the roles of the specified user in the specified project.
@@ -15792,6 +16240,120 @@ paths:
summary: Update Project Roles for One MongoDB Cloud User
tags:
- Projects
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
+ "/api/atlas/v2/groups/{groupId}/users/{userId}:addRole":
+ post:
+ description: >-
+ Adds one project-level role to the MongoDB Cloud user. You can add a
+ role to an active user or a user that has been invited to join the
+ project. To use this resource, the requesting API Key must have the
+ Project Owner role.
+
+
+ **Note**: This resource cannot be used to add a role to users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: addProjectRole
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - description: Unique 24-hexadecimal digit string that identifies the pending or
+ active user in the project. If you need to lookup a user's userId or
+ verify a user's status in the organization, use the Return All
+ MongoDB Cloud Users in One Project resource and filter by username.
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveGroupRole"
+ description: Project-level role to assign to the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-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"
+ summary: Add One Project Role to One MongoDB Cloud User
+ tags:
+ - MongoDB Cloud Users
+ "/api/atlas/v2/groups/{groupId}/users/{userId}:removeRole":
+ post:
+ description: >-
+ Removes one project-level role from the MongoDB Cloud user. You can
+ remove a role from an active user or a user that has been invited to
+ join the project. To replace a user's only role, add the new role before
+ removing the old role. A user must have at least one role at all times.
+ To use this resource, the requesting API Key must have the Project Owner
+ role.
+
+
+ **Note**: This resource cannot be used to remove a role from users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: removeProjectRole
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - description: Unique 24-hexadecimal digit string that identifies the pending or
+ active user in the project. If you need to lookup a user's userId or
+ verify a user's status in the organization, use the Return All
+ MongoDB Cloud Users in One Project resource and filter by username.
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveGroupRole"
+ description: Project-level role to remove from the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-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"
+ summary: Remove One Project Role from One MongoDB Cloud User
+ tags:
+ - MongoDB Cloud Users
"/api/atlas/v2/groups/{groupId}:migrate":
post:
description: Migrates a project from its current organization to another
@@ -16416,6 +16978,8 @@ paths:
summary: Create Cost Explorer query process
tags:
- Invoices
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token}":
get:
description: Returns the usage details for a Cost Explorer query, if the query
@@ -16460,6 +17024,8 @@ paths:
results are not ready yet.
tags:
- Invoices
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/events":
get:
description: >-
@@ -16513,7 +17079,6 @@ paths:
schema:
type: string
format: date-time
- example: 2021-11-17T23:15:00.06Z
responses:
"200":
content:
@@ -16606,6 +17171,8 @@ paths:
summary: Return Federation Settings for One Organization
tags:
- Federated Authentication
+ x-xgen-IPA-exception:
+ xgen-IPA-113-singleton-must-not-have-id: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/groups":
get:
description: >-
@@ -16943,6 +17510,8 @@ paths:
schema:
type: string
default: desc
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
responses:
"200":
content:
@@ -16988,6 +17557,8 @@ paths:
summary: Return All Pending Invoices for One Organization
tags:
- Invoices
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}":
get:
description: >-
@@ -17157,6 +17728,8 @@ paths:
summary: Return All Projects Available for Migration
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/liveMigrations/linkTokens":
delete:
description: Remove one organization link and its associated public API key.
@@ -17217,6 +17790,9 @@ paths:
summary: Create One Link-Token
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/nonCompliantResources":
get:
description: Return all non-compliant resources for an org.
@@ -17732,6 +18308,8 @@ paths:
summary: Add Access List entries for one Organization Service Account
tags:
- Service Accounts
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/accessList/{ipAddress}":
delete:
description: Removes the specified access list entry from the specified Service
@@ -17848,6 +18426,8 @@ paths:
summary: Create one Organization Service Account Secret
tags:
- Service Accounts
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/secrets/{secretId}":
delete:
description: Deletes the specified Service Account secret. Available as a
@@ -18056,6 +18636,8 @@ paths:
summary: Return One Team using its Name
tags:
- Teams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/teams/{teamId}":
delete:
description: Removes one team specified using its unique 24-hexadecimal digit
@@ -18188,11 +18770,11 @@ paths:
- Teams
"/api/atlas/v2/orgs/{orgId}/teams/{teamId}/users":
get:
- description: Returns all MongoDB Cloud users assigned to the team specified
+ description: "Returns all MongoDB Cloud users assigned to the team specified
using its unique 24-hexadecimal digit identifier. This team belongs to
one organization. Teams enable you to grant project access roles to
MongoDB Cloud users. To use this resource, the requesting API Key must
- have the Organization Member role.
+ have the Organization Member role. Deprecated versions: v2-{2023-01-01}"
externalDocs:
description: Manage Organization Teams
url: https://docs.atlas.mongodb.com/access/manage-teams-in-orgs/#std-label-manage-teams
@@ -18214,10 +18796,10 @@ paths:
responses:
"200":
content:
- application/vnd.atlas.2023-01-01+json:
+ application/vnd.atlas.2043-01-01+json:
schema:
- $ref: "#/components/schemas/PaginatedAppUser"
- x-xgen-version: 2023-01-01
+ $ref: "#/components/schemas/PaginatedOrgUser"
+ x-xgen-version: 2043-01-01
description: OK
"400":
$ref: "#/components/responses/badRequest"
@@ -18285,6 +18867,8 @@ paths:
summary: Assign MongoDB Cloud Users from One Organization to One Team
tags:
- Teams
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
"/api/atlas/v2/orgs/{orgId}/teams/{teamId}/users/{userId}":
delete:
description: Removes one MongoDB Cloud user from the specified team. This team
@@ -18334,13 +18918,117 @@ paths:
summary: Remove One MongoDB Cloud User from One Team
tags:
- Teams
+ "/api/atlas/v2/orgs/{orgId}/teams/{teamId}:addUser":
+ post:
+ description: >-
+ Adds one MongoDB Cloud user to one team. You can add an active user or a
+ user that has not yet accepted the invitation to join the organization.
+ To use this resource, the requesting API Key must have the Organization
+ Owner role.
+
+
+ **Note**: This resource cannot be used to add a user invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: addUserToTeam
+ parameters:
+ - $ref: "#/components/parameters/orgId"
+ - description: Unique 24-hexadecimal digit string that identifies the team to add
+ the MongoDB Cloud user to.
+ in: path
+ name: teamId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveUserFromTeam"
+ description: The active or pending MongoDB Cloud user that you want to add to
+ the specified team.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Add One MongoDB Cloud User to One Team
+ tags:
+ - MongoDB Cloud Users
+ "/api/atlas/v2/orgs/{orgId}/teams/{teamId}:removeUser":
+ post:
+ description: >-
+ Removes one MongoDB Cloud user from one team. You can remove an active
+ user or a user that has not yet accepted the invitation to join the
+ organization. To use this resource, the requesting API Key must have the
+ Organization Owner role.
+
+
+ **Note**: This resource cannot be used to remove a user invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: removeUserFromTeam
+ parameters:
+ - $ref: "#/components/parameters/orgId"
+ - description: Unique 24-hexadecimal digit string that identifies the team to
+ remove the MongoDB user from.
+ in: path
+ name: teamId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveUserFromTeam"
+ description: The id of the active or pending MongoDB Cloud user that you want to
+ remove from the specified team.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Remove One MongoDB Cloud User from One Team
+ tags:
+ - MongoDB Cloud Users
"/api/atlas/v2/orgs/{orgId}/users":
get:
- description: Returns details about the MongoDB Cloud users associated with the
+ description: "Returns details about the MongoDB Cloud users associated with the
specified organization. Each MongoDB Cloud user returned must belong to
the specified organization or to a project within the specified
organization. To use this resource, the requesting API Key must have the
- Organization Member role.
+ Organization Member role. Deprecated versions: v2-{2023-01-01}"
operationId: listOrganizationUsers
parameters:
- $ref: "#/components/parameters/orgId"
@@ -18350,10 +19038,10 @@ paths:
responses:
"200":
content:
- application/vnd.atlas.2023-01-01+json:
+ application/vnd.atlas.2043-01-01+json:
schema:
- $ref: "#/components/schemas/PaginatedAppUser"
- x-xgen-version: 2023-01-01
+ $ref: "#/components/schemas/PaginatedOrgUser"
+ x-xgen-version: 2043-01-01
description: OK
"400":
$ref: "#/components/responses/badRequest"
@@ -18366,11 +19054,54 @@ paths:
summary: Return All MongoDB Cloud Users in One Organization
tags:
- Organizations
+ post:
+ description: >-
+ Invites one new or existing MongoDB Cloud user to join the organization.
+ The invitation to join the organization will be sent to the username
+ provided and must be accepted within 30 days. To use this resource, the
+ requesting API Key must have the Organization Owner role.
+
+
+ **Note**: If the user does not have an existing MongoDB Cloud account, they will be prompted to finish setting up an account upon accepting the invitation. If the user already has an account, they will still receive an invitation to access the organization.
+ operationId: createOrganizationUser
+ parameters:
+ - $ref: "#/components/parameters/orgId"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserRequest"
+ description: Represents the MongoDB Cloud user to be created within the
+ organization.
+ required: true
+ responses:
+ "201":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: Created
+ "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"
+ summary: Add One MongoDB Cloud User to One Organization
+ tags:
+ - MongoDB Cloud Users
"/api/atlas/v2/orgs/{orgId}/users/{userId}":
delete:
- description: Removes one MongoDB Cloud user from the specified organization. To
+ description: "Removes one MongoDB Cloud user from the specified organization. To
use this resource, the requesting API Key must have the Organization
- User Admin role.
+ User Admin role. Deprecated versions: v2-{2023-01-01}"
operationId: removeOrganizationUser
parameters:
- $ref: "#/components/parameters/orgId"
@@ -18387,10 +19118,10 @@ paths:
responses:
"204":
content:
- application/vnd.atlas.2023-01-01+json:
+ application/vnd.atlas.2043-01-01+json:
schema:
$ref: "#/components/schemas/NoBody"
- x-xgen-version: 2023-01-01
+ x-xgen-version: 2043-01-01
description: This endpoint does not return a response body.
"400":
$ref: "#/components/responses/badRequest"
@@ -18405,6 +19136,110 @@ paths:
summary: Remove One MongoDB Cloud User From One Organization
tags:
- Organizations
+ get:
+ description: >-
+ Returns information about the specified MongoDB Cloud user within the
+ context of the specified organization. To use this resource, the
+ requesting API Key must have the Organization Member role.
+
+
+ **Note**: This resource can only be used to fetch information about MongoDB Cloud human users. To return information about an API Key, use the [Return One Organization API Key](#tag/Programmatic-API-Keys/operation/getApiKey) endpoint.
+
+
+ **Note**: This resource does not return information about pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: getOrganizationUser
+ parameters:
+ - $ref: "#/components/parameters/orgId"
+ - description: Unique 24-hexadecimal digit string that identifies the pending or
+ active user in the organization. If you need to lookup a user's
+ userId or verify a user's status in the organization, use the Return
+ All MongoDB Cloud Users in One Organization resource and filter by
+ username.
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Return One MongoDB Cloud User in One Organization
+ tags:
+ - MongoDB Cloud Users
+ patch:
+ description: >-
+ Updates one MongoDB Cloud user in the specified organization. You can
+ update an active user or a user that has not yet accepted the invitation
+ to join the organization. To use this resource, the requesting API Key
+ must have the Organization Owner role.
+
+
+ **Note**: Only include the fields you wish to update in the request body. Supplying a field with an empty value will reset that field on the user.
+
+
+ **Note**: This resource cannot be used to update pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: updateOrganizationUser
+ parameters:
+ - $ref: "#/components/parameters/orgId"
+ - description: Unique 24-hexadecimal digit string that identifies the pending or
+ active user in the organization. If you need to lookup a user's
+ userId or verify a user's status in the organization, use the Return
+ All MongoDB Cloud Users in One Organization resource and filter by
+ username.
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserUpdateRequest"
+ description: Represents the roles and teams to assign the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Update One MongoDB Cloud User in One Organization
+ tags:
+ - MongoDB Cloud Users
"/api/atlas/v2/orgs/{orgId}/users/{userId}/roles":
put:
description: Updates the roles of the specified user in the specified
@@ -18451,6 +19286,126 @@ paths:
summary: Update Organization Roles for One MongoDB Cloud User
tags:
- Organizations
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
+ "/api/atlas/v2/orgs/{orgId}/users/{userId}:addRole":
+ post:
+ description: >-
+ Adds one organization-level role to the MongoDB Cloud user. You can add
+ a role to an active user or a user that has not yet accepted the
+ invitation to join the organization. To use this resource, the
+ requesting API Key must have the Organization Owner role.
+
+
+ **Note**: This operation is atomic.
+
+
+ **Note**: This resource cannot be used to add a role to users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: addOrganizationRole
+ parameters:
+ - $ref: "#/components/parameters/orgId"
+ - description: Unique 24-hexadecimal digit string that identifies the pending or
+ active user in the organization. If you need to lookup a user's
+ userId or verify a user's status in the organization, use the Return
+ All MongoDB Cloud Users in One Organization resource and filter by
+ username.
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveOrgRole"
+ description: Organization-level role to assign to the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-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"
+ summary: Add One Organization Role to One MongoDB Cloud User
+ tags:
+ - MongoDB Cloud Users
+ "/api/atlas/v2/orgs/{orgId}/users/{userId}:removeRole":
+ post:
+ description: >-
+ Removes one organization-level role from the MongoDB Cloud user. You can
+ remove a role from an active user or a user that has not yet accepted
+ the invitation to join the organization. To replace a user's only role,
+ add the new role before removing the old role. A user must have at least
+ one role at all times. To use this resource, the requesting API Key must
+ have the Organization Owner role.
+
+
+ **Note**: This operation is atomic.
+
+
+ **Note**: This resource cannot be used to remove a role from users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: removeOrganizationRole
+ parameters:
+ - $ref: "#/components/parameters/orgId"
+ - description: Unique 24-hexadecimal digit string that identifies the pending or
+ active user in the organization. If you need to lookup a user's
+ userId or verify a user's status in the organization, use the Return
+ All MongoDB Cloud Users in One Organization resource and filter by
+ username.
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveOrgRole"
+ description: Organization-level role to remove from the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Remove One Organization Role from One MongoDB Cloud User
+ tags:
+ - MongoDB Cloud Users
/api/atlas/v2/unauth/controlPlaneIPAddresses:
get:
description: Returns all control plane IP addresses.
@@ -18470,6 +19425,42 @@ paths:
summary: Return All Control Plane IP Addresses
tags:
- Root
+ /api/atlas/v2/unauth/openapi/versions:
+ get:
+ description: API that provides a list of available versionsfor a given environment.
+ operationId: getApiVersions
+ parameters:
+ - $ref: "#/components/parameters/itemsPerPage"
+ - $ref: "#/components/parameters/pageNum"
+ - description: The environment to get the versions from. If not provided, it
+ returnsthe versions for the given MongoDB URL. (E.g. prod for
+ cloud.mongodb.com)
+ in: query
+ name: env
+ schema:
+ type: string
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2024-08-05+json:
+ schema:
+ $ref: "#/components/schemas/PaginatedApiVersions"
+ x-xgen-version: 2024-08-05
+ application/vnd.atlas.2024-08-05+yaml:
+ schema:
+ $ref: "#/components/schemas/PaginatedApiVersions"
+ x-xgen-version: 2024-08-05
+ description: OK
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ security: []
+ summary: Provides a list of versions for a given environment.
+ tags:
+ - OpenAPI
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/users:
post:
description: >-
@@ -18544,6 +19535,8 @@ paths:
summary: Return One MongoDB Cloud User using Their Username
tags:
- MongoDB Cloud Users
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
"/api/atlas/v2/users/{userId}":
get:
description: Returns the details for one MongoDB Cloud user account with the
@@ -18965,6 +19958,10 @@ components:
region, create the connection first. Deploy the cluster after the
connection starts.
title: AWS Regions
+ requirePrivateNetworking:
+ type: boolean
+ description: Enable connection to your Amazon Web Services (AWS) Key Management
+ Service (KMS) over private networking.
roleId:
type: string
description: Unique 24-hexadecimal digit string that identifies an Amazon Web
@@ -19026,6 +20023,36 @@ components:
alert. By default this value is set to false. If set to true, it
will override the acknowledgedUntil parameter.
title: Acknowledge Alert
+ AddOrRemoveGroupRole:
+ type: object
+ properties:
+ groupRole:
+ type: string
+ description: Project-level role.
+ required:
+ - groupRole
+ AddOrRemoveOrgRole:
+ type: object
+ properties:
+ orgRole:
+ type: string
+ description: Organization-level role.
+ required:
+ - orgRole
+ AddOrRemoveUserFromTeam:
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies the MongoDB
+ Cloud user.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ writeOnly: true
+ required:
+ - id
AddUserToTeam:
type: object
properties:
@@ -19329,13 +20356,12 @@ components:
datadogRegion:
type: string
default: US
- description: >-
- Datadog region that indicates which API Uniform Resource Locator
+ description: 'Datadog region that indicates which API Uniform Resource Locator
(URL) to use. The resource requires this parameter when
- `"notifications.[n].typeName" : "DATADOG"`.
-
-
- To learn more about Datadog's regions, see Datadog Sites.
+ `"notifications.[n].typeName" : "DATADOG"`.'
+ externalDocs:
+ description: Datadog regions
+ url: https://docs.datadoghq.com/getting_started/site/
delayMin:
type: integer
format: int32
@@ -19591,6 +20617,7 @@ components:
example: test routing
webhookSecret:
type: string
+ format: password
description: >-
Authentication secret for a webhook-based alert.
@@ -19599,11 +20626,13 @@ components:
* You set `notification.[n].webhookSecret` to a non-empty string
- * You set a default webhookSecret either on the [Integrations](https://www.mongodb.com/docs/atlas/tutorial/third-party-service-integrations/#std-label-third-party-integrations) page, or with the [Integrations API](#tag/Third-Party-Service-Integrations/operation/createIntegration)
+ * You set a default webhookSecret either on the Integrations page, or with the [Integrations API](#tag/Third-Party-Service-Integrations/operation/createIntegration)
**NOTE**: When you view or edit the alert for a webhook notification, the secret appears completely redacted.
- example: "******"
+ externalDocs:
+ description: Integrations page
+ url: https://www.mongodb.com/docs/atlas/tutorial/third-party-service-integrations/#std-label-third-party-integrations
webhookUrl:
type: string
description: >-
@@ -19962,6 +20991,12 @@ components:
type: string
description: Specify the sort order (ascending / descending) used to specify how
to sort query results. Defaults to descending.
+ ApiVersion:
+ type: object
+ properties:
+ version:
+ type: string
+ description: Object representing a version of the Atlas Admin API.
AtlasClusterOutageSimulationOutageFilter:
type: object
properties:
@@ -20554,6 +21589,8 @@ components:
type: string
description: Human-readable label that identifies the frequency type associated
with the backup policy.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies this backup
@@ -20566,6 +21603,8 @@ components:
retentionUnit:
type: string
description: Unit of time in which MongoDB Cloud measures snapshot retention.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
retentionValue:
type: integer
format: int32
@@ -20611,6 +21650,8 @@ components:
type: string
description: Human-readable label that identifies the frequency type associated
with the backup policy.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies this backup
@@ -20623,6 +21664,8 @@ components:
retentionUnit:
type: string
description: Unit of time in which MongoDB Cloud measures Snapshot retention.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
retentionValue:
type: integer
format: int32
@@ -22210,6 +23253,8 @@ components:
nodes in the cluster can be accessed, `unavailable` when the cluster
can't be accessed, or `dead` when the cluster has been deactivated.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
backupEnabled:
type: boolean
description: Flag that indicates whether the cluster can perform backups. If set
@@ -22283,6 +23328,8 @@ components:
IAM, x.509, LDAP, or OIDC Workload this value should be `$external`.
If the user authenticates with SCRAM-SHA or OIDC Workforce, this
value should be `admin`.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
deleteAfterDate:
type: string
format: date-time
@@ -24081,6 +25128,8 @@ components:
type:
type: string
description: Type of the index. Default type is search.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
analyzer:
type: string
default: lucene.standard
@@ -24109,6 +25158,8 @@ components:
externalDocs:
description: Atlas Search Analyzers
url: https://dochub.mongodb.org/core/analyzers--fts
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
analyzers:
type: array
description: List of user-defined methods to convert database field text into
@@ -24124,6 +25175,8 @@ components:
type: string
default: lucene.standard
description: Method applied to identify words when searching this index.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
storedSource:
type: object
description: Flag that indicates whether to store all fields (true) on Atlas
@@ -24221,6 +25274,8 @@ components:
| `"non-ignorable"` | Yes |
| `"shifted"` | No. MongoDB Cloud distinguishes these characters when `"strength" > 3`. |
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
backwards:
type: boolean
default: false
@@ -24247,6 +25302,8 @@ components:
| `"upper"` | Uppercase sorts before lowercase. |
| `"lower"` | Lowercase sorts before uppercase. |
| `"off"` | Similar to "lower" with slight differences. |
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
caseLevel:
type: boolean
default: false
@@ -24265,6 +25322,8 @@ components:
description: 'International Components for Unicode (ICU) code that represents a
localized language. To specify simple binary comparison, set
`"locale" : "simple"`.'
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
maxVariable:
type: string
description: >
@@ -24278,6 +25337,8 @@ components:
| `"punct"` | Both whitespace and punctuation |
| `"space"` | Whitespace |
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
normalization:
type: boolean
default: false
@@ -24452,6 +25513,8 @@ components:
type: string
description: The dimension to group the returned usage results by. At least one
filter value needs to be provided for a dimension to be used.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
includePartialMatches:
type: boolean
description: Flag to control whether usage that matches the filter criteria, but
@@ -24486,6 +25549,8 @@ components:
- Atlas Data Federation
items:
type: string
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
startDate:
type: string
format: date
@@ -25376,6 +26441,12 @@ components:
readOnly: true
storage:
$ref: "#/components/schemas/DataLakeStorage"
+ DataMetricUnits:
+ type: string
+ description: Element used to express the quantity. This can be an element of
+ time, storage capacity, and the like.
+ example: BYTES
+ title: Data Metric Units
DataProtectionSettings20231001:
type: object
properties:
@@ -25608,6 +26679,8 @@ components:
description: Human-readable label that identifies a group of privileges assigned
to a database user. This value can either be a built-in role or a
custom role.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
required:
- databaseName
- roleName
@@ -25794,6 +26867,8 @@ components:
type: string
description: Human-readable label that identifies the frequency type associated
with the backup policy.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies this backup
@@ -25806,6 +26881,8 @@ components:
retentionUnit:
type: string
description: Unit of time in which MongoDB Cloud measures Snapshot retention.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
retentionValue:
type: integer
format: int32
@@ -25934,6 +27011,8 @@ components:
type: string
description: State of the Export Job.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
stateReason:
$ref: "#/components/schemas/StateReason"
required:
@@ -26064,6 +27143,8 @@ components:
description: Human-readable label that identifies how often this snapshot
triggers.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies the snapshot.
@@ -26117,11 +27198,15 @@ components:
type: string
description: Human-readable label that identifies when this snapshot triggers.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
status:
type: string
description: Human-readable label that indicates the stage of the backup process
for this snapshot.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
storageSizeBytes:
type: integer
format: int64
@@ -26132,6 +27217,8 @@ components:
description: Human-readable label that categorizes the cluster as a replica set
or sharded cluster.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
title: Replica Set Snapshot
DiskBackupRestoreMember:
type: object
@@ -26190,6 +27277,8 @@ components:
description: Human-readable label that identifies how often this snapshot
triggers.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies the snapshot.
@@ -26263,11 +27352,15 @@ components:
type: string
description: Human-readable label that identifies when this snapshot triggers.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
status:
type: string
description: Human-readable label that indicates the stage of the backup process
for this snapshot.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
storageSizeBytes:
type: integer
format: int64
@@ -26278,6 +27371,8 @@ components:
description: Human-readable label that categorizes the cluster as a replica set
or sharded cluster.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
title: Sharded Cluster Snapshot
DiskBackupShardedClusterSnapshotMember:
type: object
@@ -26332,6 +27427,8 @@ components:
description: Human-readable label that identifies how often this snapshot
triggers.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies the snapshot.
@@ -26379,11 +27476,15 @@ components:
type: string
description: Human-readable label that identifies when this snapshot triggers.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
status:
type: string
description: Human-readable label that indicates the stage of the backup process
for this snapshot.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
storageSizeBytes:
type: integer
format: int64
@@ -26394,6 +27495,8 @@ components:
description: Human-readable label that categorizes the cluster as a replica set
or sharded cluster.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
cloudProvider:
type: string
description: 'Human-readable label that identifies the cloud provider that
@@ -26593,6 +27696,8 @@ components:
deliveryType:
type: string
description: Human-readable label that categorizes the restore job to create.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
deliveryUrl:
type: array
description: 'One or more Uniform Resource Locators (URLs) that point to the
@@ -27161,6 +28266,15 @@ components:
: "DATA_EXPLORER"`.'
example: insertDocument
readOnly: true
+ sessionId:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies the Data
+ Explorer session associated with the event.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ readOnly: true
deskLocation:
type: string
description: Desk location of MongoDB employee associated with the event.
@@ -27612,10 +28726,14 @@ components:
description: SAML Authentication Request Protocol HTTP method binding (POST or
REDIRECT) that Federated Authentication uses to send the
authentication request.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
responseSignatureAlgorithm:
type: string
description: Signature algorithm that Federated Authentication uses to encrypt
the identity provider signature.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
slug:
type: string
description: Custom SSO Url for the identity provider.
@@ -27692,10 +28810,14 @@ components:
description: SAML Authentication Request Protocol HTTP method binding (POST or
REDIRECT) that Federated Authentication uses to send the
authentication request.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
responseSignatureAlgorithm:
type: string
description: Signature algorithm that Federated Authentication uses to encrypt
the identity provider signature.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
slug:
type: string
description: Custom SSO Url for the identity provider.
@@ -28390,6 +29512,33 @@ components:
the cluster. If set to `true`, MongoDB Cloud won't delete the
cluster. If set to `false`, MongoDB Cloud will delete the cluster.
title: Flex Cluster Description Update
+ FlexClusterMetricThreshold:
+ type: object
+ description: Threshold for the metric that, when exceeded, triggers an alert.
+ The metric threshold pertains to event types which reflects changes of
+ measurements and metrics about the serverless database.
+ properties:
+ metricName:
+ type: string
+ description: Human-readable label that identifies the metric against which
+ MongoDB Cloud checks the configured **metricThreshold.threshold**.
+ mode:
+ type: string
+ description: MongoDB Cloud computes the current metric value as an average.
+ operator:
+ type: string
+ description: Comparison operator to apply when checking the current metric value.
+ threshold:
+ type: number
+ format: double
+ description: Value of metric that, when exceeded, triggers an alert.
+ units:
+ $ref: "#/components/schemas/DataMetricUnits"
+ description: Element used to express the quantity. This can be an element of
+ time, storage capacity, and the like.
+ required:
+ - metricName
+ title: Flex Cluster Metric Threshold
FlexConnectionStrings20241113:
type: object
description: Collection of Uniform Resource Locators that point to the MongoDB
@@ -28712,9 +29861,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format
+ in UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -28769,12 +29920,14 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format
+ in UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
metricThreshold:
- $ref: "#/components/schemas/ServerlessMetricThreshold"
+ $ref: "#/components/schemas/FlexClusterMetricThreshold"
threshold:
$ref: "#/components/schemas/GreaterThanRawThreshold"
GroupIPAddresses:
@@ -29019,6 +30172,24 @@ components:
* GROUP_STREAM_PROCESSING_OWNER
+ GroupRoleAssignment:
+ type: object
+ properties:
+ groupId:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies the project to
+ which these roles belong.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ groupRoles:
+ type: array
+ description: One or more project-level roles assigned to the MongoDB Cloud user.
+ items:
+ type: string
+ description: Project-level role.
+ uniqueItems: true
GroupService:
type: object
description: List of IP addresses in a project categorized by services.
@@ -29176,6 +30347,116 @@ components:
url: https://www.mongodb.com/docs/atlas/tags
items:
$ref: "#/components/schemas/ResourceTag"
+ GroupUserRequest:
+ type: object
+ properties:
+ roles:
+ type: array
+ description: One or more project-level roles to assign the MongoDB Cloud user.
+ items:
+ type: string
+ description: Project-level role.
+ minItems: 1
+ uniqueItems: true
+ writeOnly: true
+ username:
+ type: string
+ format: email
+ description: Email address that represents the username of the MongoDB Cloud user.
+ writeOnly: true
+ required:
+ - roles
+ - username
+ GroupUserResponse:
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies the MongoDB
+ Cloud user.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ readOnly: true
+ orgMembershipStatus:
+ type: string
+ description: String enum that indicates whether the MongoDB Cloud user has a
+ pending invitation to join the organization or they are already
+ active in the organization.
+ readOnly: true
+ roles:
+ type: array
+ description: One or more project-level roles assigned to the MongoDB Cloud user.
+ items:
+ type: string
+ description: Project-level role.
+ readOnly: true
+ uniqueItems: true
+ username:
+ type: string
+ format: email
+ description: Email address that represents the username of the MongoDB Cloud user.
+ readOnly: true
+ invitationCreatedAt:
+ type: string
+ format: date-time
+ description: Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud
+ represents this timestamp in ISO 8601 format in UTC.
+ readOnly: true
+ invitationExpiresAt:
+ type: string
+ format: date-time
+ description: Date and time when the invitation from MongoDB Cloud expires.
+ MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
+ readOnly: true
+ inviterUsername:
+ type: string
+ format: email
+ description: Username of the MongoDB Cloud user who sent the invitation to join
+ the organization.
+ readOnly: true
+ country:
+ type: string
+ description: Two-character alphabetical string that identifies the MongoDB Cloud
+ user's geographic location. This parameter uses the ISO 3166-1a2
+ code format.
+ example: US
+ pattern: ^([A-Z]{2})$
+ readOnly: true
+ createdAt:
+ type: string
+ format: date-time
+ description: Date and time when MongoDB Cloud created the current account. This
+ value is in the ISO 8601 timestamp format in UTC.
+ readOnly: true
+ firstName:
+ type: string
+ description: First or given name that belongs to the MongoDB Cloud user.
+ example: John
+ readOnly: true
+ lastAuth:
+ type: string
+ format: date-time
+ description: Date and time when the current account last authenticated. This
+ value is in the ISO 8601 timestamp format in UTC.
+ readOnly: true
+ lastName:
+ type: string
+ description: Last name, family name, or surname that belongs to the MongoDB
+ Cloud user.
+ example: Doe
+ readOnly: true
+ mobileNumber:
+ type: string
+ description: Mobile phone number that belongs to the MongoDB Cloud user.
+ pattern: (?:(?:\\+?1\\s*(?:[.-]\\s*)?)?(?:(\\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\\s*)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\\s*(?:[.-]\\s*)?)([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\\s*(?:[.-]\\s*)?([0-9]{4})$
+ readOnly: true
+ required:
+ - id
+ - orgMembershipStatus
+ - roles
+ - username
HardwareSpec20240805:
type: object
description: Hardware specifications for all electable nodes deployed in the
@@ -31458,6 +32739,8 @@ components:
default: collection
description: Human-readable label that identifies the type of namespace.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
readOnly: true
Namespaces:
type: object
@@ -31803,6 +33086,187 @@ components:
items:
type: string
description: Organization roles available for Service Accounts.
+ OrgUserRequest:
+ type: object
+ properties:
+ roles:
+ $ref: "#/components/schemas/OrgUserRolesRequest"
+ teamIds:
+ type: array
+ description: List of unique 24-hexadecimal digit strings that identifies the
+ teams to which this MongoDB Cloud user belongs.
+ items:
+ type: string
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ uniqueItems: true
+ writeOnly: true
+ username:
+ type: string
+ format: email
+ description: Email address that represents the username of the MongoDB Cloud user.
+ writeOnly: true
+ required:
+ - roles
+ - username
+ OrgUserResponse:
+ type: object
+ properties:
+ id:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies the MongoDB
+ Cloud user.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ readOnly: true
+ orgMembershipStatus:
+ type: string
+ description: String enum that indicates whether the MongoDB Cloud user has a
+ pending invitation to join the organization or they are already
+ active in the organization.
+ readOnly: true
+ roles:
+ $ref: "#/components/schemas/OrgUserRolesResponse"
+ teamIds:
+ type: array
+ description: List of unique 24-hexadecimal digit strings that identifies the
+ teams to which this MongoDB Cloud user belongs.
+ items:
+ type: string
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ readOnly: true
+ uniqueItems: true
+ username:
+ type: string
+ format: email
+ description: Email address that represents the username of the MongoDB Cloud user.
+ readOnly: true
+ invitationCreatedAt:
+ type: string
+ format: date-time
+ description: Date and time when MongoDB Cloud sent the invitation. MongoDB Cloud
+ represents this timestamp in ISO 8601 format in UTC.
+ readOnly: true
+ invitationExpiresAt:
+ type: string
+ format: date-time
+ description: Date and time when the invitation from MongoDB Cloud expires.
+ MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
+ readOnly: true
+ inviterUsername:
+ type: string
+ format: email
+ description: Username of the MongoDB Cloud user who sent the invitation to join
+ the organization.
+ readOnly: true
+ country:
+ type: string
+ description: Two-character alphabetical string that identifies the MongoDB Cloud
+ user's geographic location. This parameter uses the ISO 3166-1a2
+ code format.
+ example: US
+ pattern: ^([A-Z]{2})$
+ readOnly: true
+ createdAt:
+ type: string
+ format: date-time
+ description: Date and time when MongoDB Cloud created the current account. This
+ value is in the ISO 8601 timestamp format in UTC.
+ readOnly: true
+ firstName:
+ type: string
+ description: First or given name that belongs to the MongoDB Cloud user.
+ example: John
+ readOnly: true
+ lastAuth:
+ type: string
+ format: date-time
+ description: Date and time when the current account last authenticated. This
+ value is in the ISO 8601 timestamp format in UTC.
+ readOnly: true
+ lastName:
+ type: string
+ description: Last name, family name, or surname that belongs to the MongoDB
+ Cloud user.
+ example: Doe
+ readOnly: true
+ mobileNumber:
+ type: string
+ description: Mobile phone number that belongs to the MongoDB Cloud user.
+ pattern: (?:(?:\\+?1\\s*(?:[.-]\\s*)?)?(?:(\\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\\s*)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\\s*(?:[.-]\\s*)?)([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\\s*(?:[.-]\\s*)?([0-9]{4})$
+ readOnly: true
+ required:
+ - id
+ - orgMembershipStatus
+ - roles
+ - username
+ OrgUserRolesRequest:
+ type: object
+ description: Organization and project level roles to assign the MongoDB Cloud
+ user within one organization.
+ properties:
+ groupRoleAssignments:
+ type: array
+ description: List of project level role assignments to assign the MongoDB Cloud
+ user.
+ items:
+ $ref: "#/components/schemas/GroupRoleAssignment"
+ orgRoles:
+ type: array
+ description: One or more organization level roles to assign the MongoDB Cloud
+ user.
+ items:
+ type: string
+ description: Organization-level role.
+ minItems: 1
+ uniqueItems: true
+ required:
+ - orgRoles
+ writeOnly: true
+ OrgUserRolesResponse:
+ type: object
+ description: Organization- and project-level roles assigned to one MongoDB Cloud
+ user within one organization.
+ properties:
+ groupRoleAssignments:
+ type: array
+ description: List of project-level role assignments assigned to the MongoDB
+ Cloud user.
+ items:
+ $ref: "#/components/schemas/GroupRoleAssignment"
+ orgRoles:
+ type: array
+ description: One or more organization-level roles assigned to the MongoDB Cloud
+ user.
+ items:
+ type: string
+ description: Organization-level role.
+ uniqueItems: true
+ readOnly: true
+ OrgUserUpdateRequest:
+ type: object
+ properties:
+ roles:
+ $ref: "#/components/schemas/OrgUserRolesRequest"
+ teamIds:
+ type: array
+ description: List of unique 24-hexadecimal digit strings that identifies the
+ teams to assign the MongoDB Cloud user.
+ items:
+ type: string
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: ^([a-f0-9]{24})$
+ uniqueItems: true
+ writeOnly: true
OrganizationInvitation:
type: object
properties:
@@ -32082,6 +33546,35 @@ components:
readOnly: true
readOnly: true
title: Outbound Control Plane IP Addresses By Cloud Provider
+ PaginatedApiVersions:
+ type: object
+ properties:
+ 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
+ results:
+ type: array
+ description: List of returned documents that MongoDB Cloud provides when
+ completing this request.
+ items:
+ $ref: "#/components/schemas/ApiVersion"
+ readOnly: true
+ totalCount:
+ type: integer
+ format: int32
+ description: Total number of documents available. MongoDB Cloud omits this value
+ if `includeCount` is set to `false`. The total number is an estimate
+ and may not be exact.
+ minimum: 0
+ readOnly: true
PaginatedClusterDescription20240805:
type: object
properties:
@@ -33029,6 +34522,8 @@ components:
type:
type: string
description: Type of the index. The default type is search.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
definition:
$ref: "#/components/schemas/BaseSearchIndexCreateRequestDefinition"
required:
@@ -33101,6 +34596,8 @@ components:
type:
type: string
description: Type of the index. The default type is search.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
synonymMappingStatus:
type: string
description: Status that describes this index's synonym mappings. This status
@@ -33150,6 +34647,8 @@ components:
externalDocs:
description: Atlas Search Analyzers
url: https://dochub.mongodb.org/core/analyzers--fts
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
analyzers:
type: array
description: List of user-defined methods to convert database field text into
@@ -33171,6 +34670,8 @@ components:
type: string
default: lucene.standard
description: Method applied to identify words when searching this index.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
storedSource:
type: object
description: Flag that indicates whether to store all fields (true) on Atlas
@@ -33235,6 +34736,8 @@ components:
type: string
description: Specific pre-defined method chosen to apply to the synonyms to be
searched.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
name:
type: string
description: Label that identifies the synonym definition. Each **synonym.name**
@@ -33256,6 +34759,8 @@ components:
deliveryType:
type: string
description: Human-readable label that categorizes the restore job to create.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
deliveryUrl:
type: array
description: 'One or more Uniform Resource Locators (URLs) that point to the
@@ -33390,6 +34895,8 @@ components:
description: Human-readable label that identifies how often this snapshot
triggers.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies the snapshot.
@@ -33426,11 +34933,15 @@ components:
type: string
description: Human-readable label that identifies when this snapshot triggers.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
status:
type: string
description: Human-readable label that indicates the stage of the backup process
for this snapshot.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
storageSizeBytes:
type: integer
format: int64
@@ -33644,39 +35155,6 @@ components:
delete the serverless instance. If set to `false`, MongoDB Cloud
will delete the serverless instance.
title: Serverless Instance Description Update
- ServerlessMetricThreshold:
- type: object
- description: Threshold for the metric that, when exceeded, triggers an alert.
- The metric threshold pertains to event types which reflects changes of
- measurements and metrics about the serverless database.
- properties:
- metricName:
- type: string
- description: Human-readable label that identifies the metric against which
- MongoDB Cloud checks the configured **metricThreshold.threshold**.
- mode:
- type: string
- description: MongoDB Cloud computes the current metric value as an average.
- operator:
- type: string
- description: Comparison operator to apply when checking the current metric value.
- threshold:
- type: number
- format: double
- description: Value of metric that, when exceeded, triggers an alert.
- units:
- $ref: "#/components/schemas/ServerlessMetricUnits"
- description: Element used to express the quantity. This can be an element of
- time, storage capacity, and the like.
- required:
- - metricName
- title: Serverless Metric Threshold
- ServerlessMetricUnits:
- type: string
- description: Element used to express the quantity. This can be an element of
- time, storage capacity, and the like.
- example: RPU
- title: Serverless Metric Units
ServerlessProviderSettings:
type: object
description: Group of cloud provider settings that configure the provisioned
@@ -34071,6 +35549,8 @@ components:
type:
type: string
description: Type of the connection. Can be either Cluster or Kafka.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
clusterName:
type: string
description: Name of the cluster configured for this connection.
@@ -34367,6 +35847,10 @@ components:
description: The ID of the Private Link connection.
example: 32b6e34b3d91647abb20e7b8
pattern: ^([a-f0-9]{24})$
+ readOnly: true
+ arn:
+ type: string
+ description: Amazon Resource Name (ARN).
dnsDomain:
type: string
description: Domain name of Privatelink connected cluster.
@@ -34376,10 +35860,15 @@ components:
availability zones.
items:
type: string
+ errorMessage:
+ type: string
+ description: Error message if the state is FAILED.
+ readOnly: true
interfaceEndpointId:
type: string
description: Interface endpoint ID that is created from the service endpoint ID
provided.
+ readOnly: true
links:
type: array
description: List of one or more Uniform Resource Locators (URLs) that point to
@@ -34403,6 +35892,7 @@ components:
state:
type: string
description: State the connection is in.
+ readOnly: true
vendor:
type: string
description: Vendor who manages the Kafka cluster.
@@ -34607,6 +36097,8 @@ components:
description: Human-readable label that identifies the service from which you
requested this response.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
build:
type: string
description: Unique 40-hexadecimal digit hash that identifies the latest git
@@ -34978,6 +36470,8 @@ components:
serviceDiscovery:
type: string
description: Desired method to discover the Prometheus service.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
username:
type: string
description: Human-readable label that identifies your Prometheus incoming
@@ -35019,13 +36513,13 @@ components:
example: test routing
secret:
type: string
+ format: password
description: >-
An optional field returned if your webhook is configured with a
secret.
**NOTE**: When you view or edit the alert for a webhook notification, the secret appears completely redacted.
- example: "******"
url:
type: string
description: >-
@@ -35188,6 +36682,8 @@ components:
items:
type: string
uniqueItems: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
usageEndDate:
type: string
format: date
@@ -35686,6 +37182,8 @@ components:
externalDocs:
description: Atlas Search Analyzers
url: https://dochub.mongodb.org/core/analyzers--fts
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
analyzers:
type: array
description: List of user-defined methods to convert database field text into
@@ -35707,6 +37205,8 @@ components:
type: string
default: lucene.standard
description: Method applied to identify words when searching this index.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
storedSource:
type: object
description: Flag that indicates whether to store all fields (true) on Atlas
@@ -35769,6 +37269,8 @@ components:
externalDocs:
description: Atlas Search Analyzers
url: https://dochub.mongodb.org/core/analyzers--fts
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
analyzers:
type: array
description: List of user-defined methods to convert database field text into
@@ -35790,6 +37292,8 @@ components:
type: string
default: lucene.standard
description: Method applied to identify words when searching this index.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
storedSource:
type: object
description: Flag that indicates whether to store all fields (true) on Atlas
@@ -36310,7 +37814,10 @@ components:
properties:
specs:
type: array
- description: List of settings that configure the Search Nodes for your cluster.
+ description: |-
+ List of settings that configure the Search Nodes for your cluster.
+
+ **NOTE**: We accept a single configuration for all nodes currently.
items:
$ref: "#/components/schemas/ApiSearchDeploymentSpec"
maxItems: 1
@@ -36340,6 +37847,7 @@ components:
specs:
type: array
description: List of settings that configure the Search Nodes for your cluster.
+ The configuration will be returned for each region and shard.
items:
$ref: "#/components/schemas/ApiSearchDeploymentSpec"
readOnly: true
@@ -36380,6 +37888,8 @@ components:
type: string
description: Human-readable label that indicates the rate at which the export
policy item occurs.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
title: export
CollStatsRankedNamespaces:
type: object
@@ -37689,6 +39199,35 @@ components:
and may not be exact.
minimum: 0
readOnly: true
+ PaginatedOrgUser:
+ type: object
+ properties:
+ 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
+ results:
+ type: array
+ description: List of returned documents that MongoDB Cloud provides when
+ completing this request.
+ items:
+ $ref: "#/components/schemas/OrgUserResponse"
+ readOnly: true
+ totalCount:
+ type: integer
+ format: int32
+ description: Total number of documents available. MongoDB Cloud omits this value
+ if `includeCount` is set to `false`. The total number is an estimate
+ and may not be exact.
+ minimum: 0
+ readOnly: true
PaginatedOrganization:
type: object
properties:
@@ -38115,6 +39654,8 @@ components:
MongoDB Cloud skips partition parameters of type UUID with subtype
3.
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
order:
type: integer
format: int32
@@ -38282,6 +39823,8 @@ components:
type:
type: string
description: Human-readable label that identifies this tokenizer type.
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
group:
type: integer
description: Index of the character group within the matching expression to
diff --git a/openapi/atlas-api.yaml b/openapi/atlas-api.yaml
index d46dcae9b..68f8f2c0c 100644
--- a/openapi/atlas-api.yaml
+++ b/openapi/atlas-api.yaml
@@ -8,7 +8,7 @@ info:
```
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" \
--digest \
- --header "Accept: application/vnd.atlas.2024-11-13+json" \
+ --header "Accept: application/vnd.atlas.2043-01-01+json" \
-X GET "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/dbAccessHistory/clusters/{clusterName}?pretty=true"
```
@@ -21,7 +21,7 @@ info:
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
title: MongoDB Atlas Administration API
version: "2.0"
- x-xgen-sha: b30dca0a1318cf8279cab906a13fd2bfa4889cea
+ x-xgen-sha: d1bc966b16b166740f7b2d42f6512255a6316d90
servers:
- url: https://cloud.mongodb.com
security:
@@ -274,6 +274,8 @@ paths:
summary: Get All Alert Configuration Matchers Field Names
tags:
- Alert Configurations
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/clusters:
get:
description: "Returns the details for all clusters in all projects to which\
@@ -959,6 +961,8 @@ paths:
summary: Revoke the JWKS from One OIDC Identity Provider
tags:
- Federated Authentication
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/federationSettings/{federationSettingsId}/identityProviders/{identityProviderId}/metadata.xml:
get:
description: "Returns the metadata of one identity provider in the specified\
@@ -1108,6 +1112,8 @@ paths:
summary: Return One Project using Its Name
tags:
- Projects
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}:
delete:
description: "Removes the specified project. Projects group clusters into logical\
@@ -1244,6 +1250,8 @@ paths:
summary: Add One MongoDB Cloud User to One Project
tags:
- Projects
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/accessList:
get:
description: "Returns all access list entries from the specified project's IP\
@@ -2010,6 +2018,8 @@ paths:
summary: Create and Assign One Organization API Key to One Project
tags:
- Programmatic API Keys
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/apiKeys/{apiUserId}:
delete:
description: "Removes one organization API key from the specified project. To\
@@ -2366,12 +2376,14 @@ paths:
summary: Create One Snapshot Export Bucket
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/backup/exportBuckets/{exportBucketId}:
delete:
description: "Deletes an Export Bucket. Auto export must be disabled on all\
\ clusters in this Project exporting to this Export Bucket before revoking\
\ access. To use this resource, the requesting API Key must have the Project\
- \ Owner role."
+ \ Backup Manager role."
operationId: deleteExportBucket
parameters:
- $ref: "#/components/parameters/envelope"
@@ -2465,6 +2477,8 @@ paths:
summary: Return One Snapshot Export Bucket
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/backupCompliancePolicy:
delete:
description: "Disables the Backup Compliance Policy settings with the specified\
@@ -2670,6 +2684,8 @@ paths:
summary: Deauthorize One Cloud Provider Access Role
tags:
- Cloud Provider Access
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/cloudProviderAccess/{roleId}:
get:
description: "Returns the access role with the specified id and with access\
@@ -2957,6 +2973,8 @@ paths:
summary: Return All Cloud Provider Regions
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/tenantUpgrade:
post:
description: "Upgrades a shared-tier cluster to a dedicated cluster (M10+) in\
@@ -2997,6 +3015,9 @@ paths:
summary: Upgrade One Shared-tier Cluster
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/tenantUpgradeToServerless:
post:
description: "Upgrades a shared-tier cluster to a serverless instance in the\
@@ -3037,6 +3058,9 @@ paths:
summary: Upgrades One Shared-Tier Cluster to the Serverless Instance
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}:
delete:
description: "Removes one cluster from the specified project. The cluster must\
@@ -3259,6 +3283,8 @@ paths:
summary: Create One Snapshot Export Job
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/exports/{exportId}:
get:
description: "Returns one Cloud Backup Snapshot Export Job associated with the\
@@ -3303,11 +3329,13 @@ paths:
summary: Return One Snapshot Export Job
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/restoreJobs:
get:
description: "Returns all cloud backup restore jobs for one cluster from the\
\ specified project. To use this resource, the requesting API Key must have\
- \ the Project Owner role."
+ \ the Project Backup Manager role."
operationId: listBackupRestoreJobs
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3345,7 +3373,7 @@ paths:
description: |-
Restores one snapshot of one cluster from the specified project. Atlas takes on-demand snapshots immediately and scheduled snapshots at regular intervals. If an on-demand snapshot with a status of **queued** or **inProgress** exists, before taking another snapshot, wait until Atlas completes completes processing the previously taken on-demand snapshot.
- To use this resource, the requesting API Key must have the Project Owner role.
+ To use this resource, the requesting API Key must have the Project Backup Manager role.
operationId: createBackupRestoreJob
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3388,11 +3416,13 @@ paths:
summary: Restore One Snapshot of One Cluster
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/restoreJobs/{restoreJobId}:
delete:
description: "Cancels one cloud backup restore job of one cluster from the specified\
\ project. To use this resource, the requesting API Key must have the Project\
- \ Owner role."
+ \ Backup Manager role."
operationId: cancelBackupRestoreJob
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3437,7 +3467,7 @@ paths:
get:
description: "Returns one cloud backup restore job for one cluster from the\
\ specified project. To use this resource, the requesting API Key must have\
- \ the Project Owner role."
+ \ the Project Backup Manager role."
operationId: getBackupRestoreJob
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3478,6 +3508,8 @@ paths:
summary: Return One Restore Job of One Cluster
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/schedule:
delete:
description: "Removes all cloud backup schedules for the specified cluster.\
@@ -3595,11 +3627,13 @@ paths:
summary: Update Cloud Backup Schedule for One Cluster
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/snapshots:
get:
description: "Returns all snapshots of one cluster from the specified project.\
\ To use this resource, the requesting API Key must have the Project Read\
- \ Only role."
+ \ Only role or Project Backup Manager role."
operationId: listReplicaSetBackups
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3638,7 +3672,7 @@ paths:
description: |-
Takes one on-demand snapshot for the specified cluster. Atlas takes on-demand snapshots immediately and scheduled snapshots at regular intervals. If an on-demand snapshot with a status of **queued** or **inProgress** exists, before taking another snapshot, wait until Atlas completes completes processing the previously taken on-demand snapshot.
- To use this resource, the requesting API Key must have the Project Owner role.
+ To use this resource, the requesting API Key must have the Project Backup Manager role.
operationId: takeSnapshot
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3677,11 +3711,13 @@ paths:
summary: Take One On-Demand Snapshot
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/snapshots/shardedCluster/{snapshotId}:
delete:
description: "Removes one snapshot of one sharded cluster from the specified\
\ project. To use this resource, the requesting API Key must have the Project\
- \ Owner role."
+ \ Backup Manager role."
operationId: deleteShardedClusterBackup
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3724,7 +3760,7 @@ paths:
get:
description: "Returns one snapshot of one sharded cluster from the specified\
\ project. To use this resource, the requesting API Key must have the Project\
- \ Read Only role."
+ \ Read Only role or Project Backup Manager role."
operationId: getShardedClusterBackup
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3766,11 +3802,13 @@ paths:
summary: Return One Sharded Cluster Cloud Backup
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/snapshots/shardedClusters:
get:
description: "Returns all snapshots of one sharded cluster from the specified\
\ project. To use this resource, the requesting API Key must have the Project\
- \ Read Only role."
+ \ Read Only role or Project Backup Manager role."
operationId: listShardedClusterBackups
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3802,10 +3840,12 @@ paths:
summary: Return All Sharded Cluster Cloud Backups
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/snapshots/{snapshotId}:
delete:
description: "Removes the specified snapshot. To use this resource, the requesting\
- \ API Key must have the Project Owner role."
+ \ API Key must have the Project Backup Manager role."
operationId: deleteReplicaSetBackup
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3849,7 +3889,8 @@ paths:
- Cloud Backups
get:
description: "Returns one snapshot from the specified cluster. To use this resource,\
- \ the requesting API Key must have the Project Read Only role."
+ \ the requesting API Key must have the Project Read Only role or Project Backup\
+ \ Manager role."
operationId: getReplicaSetBackup
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3892,8 +3933,9 @@ paths:
tags:
- Cloud Backups
patch:
- description: Changes the expiration date for one cloud backup snapshot for one
- cluster in the specified project.
+ description: "Changes the expiration date for one cloud backup snapshot for\
+ \ one cluster in the specified project, the requesting API Key must have the\
+ \ Project Backup Manager role."
operationId: updateSnapshotRetention
parameters:
- $ref: "#/components/parameters/envelope"
@@ -3943,6 +3985,8 @@ paths:
summary: Change Expiration Date for One Cloud Backup
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/download:
post:
description: "Requests one snapshot for the specified shared cluster. This resource\
@@ -3994,6 +4038,9 @@ paths:
summary: Download One M2 or M5 Cluster Snapshot
tags:
- Shared-Tier Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/restore:
post:
description: "Restores the specified cluster. MongoDB Cloud limits which clusters\
@@ -4044,6 +4091,9 @@ paths:
summary: Create One Restore Job from One M2 or M5 Cluster
tags:
- Shared-Tier Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/restores:
get:
description: "Returns all restore jobs for the specified M2 or M5 cluster. Restore\
@@ -4080,6 +4130,8 @@ paths:
summary: Return All Restore Jobs for One M2 or M5 Cluster
tags:
- Shared-Tier Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/restores/{restoreId}:
get:
description: "Returns the specified restore job. To use this resource, the requesting\
@@ -4125,6 +4177,8 @@ paths:
summary: Return One Restore Job for One M2 or M5 Cluster
tags:
- Shared-Tier Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/snapshots:
get:
description: "Returns details for all snapshots for the specified shared cluster.\
@@ -4161,6 +4215,8 @@ paths:
summary: Return All Snapshots for One M2 or M5 Cluster
tags:
- Shared-Tier Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backup/tenant/snapshots/{snapshotId}:
get:
description: "Returns details for one snapshot for the specified shared cluster.\
@@ -4207,6 +4263,8 @@ paths:
summary: Return One Snapshot for One M2 or M5 Cluster
tags:
- Shared-Tier Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/backupCheckpoints:
get:
deprecated: true
@@ -4435,6 +4493,8 @@ paths:
summary: Pin Namespaces
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/collStats/unpin:
patch:
description: Unpin provided list of namespaces for collection-level latency
@@ -4480,6 +4540,9 @@ paths:
summary: Unpin namespaces
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes:
post:
deprecated: true
@@ -4533,6 +4596,8 @@ paths:
tags:
- Atlas Search
x-sunset: 2025-06-01
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{databaseName}/{collectionName}:
get:
deprecated: true
@@ -4590,6 +4655,8 @@ paths:
tags:
- Atlas Search
x-sunset: 2025-06-01
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/fts/indexes/{indexId}:
delete:
deprecated: true
@@ -4758,6 +4825,8 @@ paths:
tags:
- Atlas Search
x-sunset: 2025-06-01
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites:
get:
description: "Returns one managed namespace within the specified global cluster.\
@@ -4886,6 +4955,9 @@ paths:
summary: Add One Entry to One Custom Zone Mapping
tags:
- Global Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/globalWrites/managedNamespaces:
delete:
description: "Removes one managed namespace within the specified global cluster.\
@@ -4990,6 +5062,9 @@ paths:
summary: Create One Managed Namespace in One Global Cluster
tags:
- Global Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/index:
post:
description: "Creates an index on the cluster identified by its name in a rolling\
@@ -5103,6 +5178,8 @@ paths:
summary: Create One Rolling Index
tags:
- Rolling Index
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives:
get:
description: "Returns details of all online archives. This archive stores data\
@@ -5274,6 +5351,8 @@ paths:
summary: Download Online Archive Query Logs
tags:
- Online Archive
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/onlineArchives/{archiveId}:
delete:
description: "Removes one online archive. This archive stores data from one\
@@ -5558,6 +5637,83 @@ paths:
summary: Start an Outage Simulation
tags:
- Cluster Outage Simulation
+ x-xgen-IPA-exception:
+ xgen-IPA-113-singleton-must-not-have-id: API predates IPA validation
+ /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/dropIndexSuggestions:
+ get:
+ description: "Returns the indexes that the Performance Advisor suggests to drop.\
+ \ The Performance Advisor suggests dropping unused, redundant, and hidden\
+ \ indexes to improve write performance and increase storage space. To use\
+ \ this resource, the requesting API Key must have the Project Read Only role."
+ operationId: listDropIndexes
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - description: Human-readable label that identifies the cluster.
+ in: path
+ name: clusterName
+ required: true
+ schema:
+ type: string
+ maxLength: 64
+ minLength: 1
+ pattern: "^[a-zA-Z0-9][a-zA-Z0-9-]*$"
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2024-08-05+json:
+ schema:
+ $ref: "#/components/schemas/PerformanceAdvisorResponse"
+ x-xgen-version: 2024-08-05
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Returns Suggested Indexes to Drop
+ tags:
+ - Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/schemaAdvice:
+ get:
+ description: "Returns the schema suggestions that the Performance Advisor detects.\
+ \ The Performance Advisor provides holistic schema recommendations for your\
+ \ cluster by sampling documents in your most active collections and collections\
+ \ with slow-running queries. To use this resource, the requesting API Key\
+ \ must have the Project Read Only role."
+ operationId: listSchemaAdvice
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - description: Human-readable label that identifies the cluster.
+ in: path
+ name: clusterName
+ required: true
+ schema:
+ type: string
+ maxLength: 64
+ minLength: 1
+ pattern: "^[a-zA-Z0-9][a-zA-Z0-9-]*$"
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2024-08-05+json:
+ schema:
+ $ref: "#/components/schemas/PerformanceAdvisorResponse"
+ x-xgen-version: 2024-08-05
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Return Schema Advice
+ tags:
+ - Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/suggestedIndexes:
get:
description: "Returns the indexes that the Performance Advisor suggests. The\
@@ -5643,6 +5799,8 @@ paths:
summary: Return Suggested Indexes
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/processArgs:
get:
description: "Returns the advanced configuration details for one cluster in\
@@ -5774,6 +5932,8 @@ paths:
summary: Test Failover for One Cluster
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/restoreJobs:
get:
deprecated: true
@@ -6090,6 +6250,9 @@ paths:
summary: Create Search Nodes
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-113-singleton-must-not-have-id: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes:
get:
description: "Returns all Atlas Search indexes on the specified cluster. Atlas\
@@ -6189,6 +6352,8 @@ paths:
summary: Create One Atlas Search Index
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{databaseName}/{collectionName}:
get:
description: "Returns all Atlas Search indexes on the specified collection.\
@@ -6252,6 +6417,8 @@ paths:
summary: Return All Atlas Search Indexes for One Collection
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{databaseName}/{collectionName}/{indexName}:
delete:
description: "Removes one Atlas Search index that you identified with its database,\
@@ -6443,6 +6610,8 @@ paths:
summary: Update One Atlas Search Index By Name
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/search/indexes/{indexId}:
delete:
description: "Removes one Atlas Search index that you identified with its unique\
@@ -6613,6 +6782,8 @@ paths:
summary: Update One Atlas Search Index By ID
tags:
- Atlas Search
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/snapshotSchedule:
get:
deprecated: true
@@ -6735,6 +6906,9 @@ paths:
- all
- "true"
- "false"
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
responses:
"200":
content:
@@ -6994,6 +7168,8 @@ paths:
summary: Return Ranked Namespaces from a Cluster
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/{clusterView}/{databaseName}/{collectionName}/collStats/measurements:
get:
description: Get a list of the Coll Stats Latency cluster-level measurements
@@ -7085,6 +7261,8 @@ paths:
summary: Return Cluster-Level Query Latency
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}:grantMongoDBEmployeeAccess:
post:
description: Grants MongoDB employee cluster access for the given duration and
@@ -7132,6 +7310,8 @@ paths:
summary: Grant MongoDB employee cluster access for one cluster.
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-109-custom-method-must-use-camel-case: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}:pinFeatureCompatibilityVersion:
post:
description: "Pins the Feature Compatibility Version (FCV) to the current MongoDB\
@@ -7218,6 +7398,8 @@ paths:
summary: Revoke granted MongoDB employee cluster access for one cluster.
tags:
- Clusters
+ x-xgen-IPA-exception:
+ xgen-IPA-109-custom-method-must-use-camel-case: API predates IPA validation
/api/atlas/v2/groups/{groupId}/clusters/{clusterName}:unpinFeatureCompatibilityVersion:
post:
description: Unpins the current fixed Feature Compatibility Version (FCV). This
@@ -7302,6 +7484,9 @@ paths:
externalDocs:
description: Set up Database Auditing
url: https://docs.atlas.mongodb.com/database-auditing/
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
- description: "Specifies the date and time for the ending point of the range\
\ of log messages to retrieve, in the number of seconds that have elapsed\
\ since the UNIX epoch. This value will default to 24 hours after the start\
@@ -7350,6 +7535,8 @@ paths:
summary: Download Logs for One Cluster Host in One Project
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/collStats/metrics:
get:
description: Returns all available Coll Stats Latency metric names and their
@@ -7377,6 +7564,8 @@ paths:
summary: Return all metric names
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/containers:
get:
description: "Returns details about all network peering containers in the specified\
@@ -7492,6 +7681,8 @@ paths:
summary: Return All Network Peering Containers in One Project
tags:
- Network Peering
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/containers/{containerId}:
delete:
description: "Removes one network peering container in the specified project.\
@@ -7649,7 +7840,8 @@ paths:
- Custom Database Roles
post:
description: "Creates one custom role in the specified project. To use this\
- \ resource, the requesting API Key must have the Project Owner role."
+ \ resource, the requesting API Key must have the Project Owner role, Project\
+ \ Stream Processing Owner role, or the Project Database Access Admin role."
operationId: createCustomDatabaseRole
parameters:
- $ref: "#/components/parameters/envelope"
@@ -7685,13 +7877,16 @@ paths:
summary: Create One Custom Role
tags:
- Custom Database Roles
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/customDBRoles/roles/{roleName}:
delete:
description: "Removes one custom role from the specified project. You can't\
\ remove a custom role that would leave one or more child roles with no parent\
\ roles or actions. You also can't remove a custom role that would leave one\
\ or more database users without roles. To use this resource, the requesting\
- \ API Key must have the Project Atlas Admin role."
+ \ API Key must have the Project Owner role, Project Stream Processing Owner\
+ \ role, or the Project Database Access Admin role."
operationId: deleteCustomDatabaseRole
parameters:
- $ref: "#/components/parameters/envelope"
@@ -7757,7 +7952,8 @@ paths:
- Custom Database Roles
patch:
description: "Updates one custom role in the specified project. To use this\
- \ resource, the requesting API Key must have the Project Owner role."
+ \ resource, the requesting API Key must have the Project Owner role, the Project\
+ \ Stream Processing Owner role, or the Project Database Access Admin role."
operationId: updateCustomDatabaseRole
parameters:
- $ref: "#/components/parameters/envelope"
@@ -7800,6 +7996,8 @@ paths:
summary: Update One Custom Role in One Project
tags:
- Custom Database Roles
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/dataFederation:
get:
description: "Returns the details of all federated database instances in the\
@@ -8063,6 +8261,9 @@ paths:
- bytesProcessed.daily
- bytesProcessed.weekly
- bytesProcessed.monthly
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
responses:
"204":
content:
@@ -8113,6 +8314,9 @@ paths:
- bytesProcessed.daily
- bytesProcessed.weekly
- bytesProcessed.monthly
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
responses:
"200":
content:
@@ -8162,6 +8366,9 @@ paths:
- bytesProcessed.daily
- bytesProcessed.weekly
- bytesProcessed.monthly
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
requestBody:
content:
application/vnd.atlas.2023-01-01+json:
@@ -8285,7 +8492,8 @@ paths:
\ Cloud supports a maximum of 100 database users per project. If you require\
\ more than 100 database users on a project, contact [Support](https://cloud.mongodb.com/support).\
\ To use this resource, the requesting API Key must have the Project Owner\
- \ or Project Charts Admin roles."
+ \ role, the Project Charts Admin role, Project Stream Processing Owner role,\
+ \ or the Project Database Access Admin role."
operationId: createDatabaseUser
parameters:
- $ref: "#/components/parameters/envelope"
@@ -8415,7 +8623,8 @@ paths:
/api/atlas/v2/groups/{groupId}/databaseUsers/{databaseName}/{username}:
delete:
description: "Removes one database user from the specified project. To use this\
- \ resource, the requesting API Key must have the Project Owner role."
+ \ resource, the requesting API Key must have the Project Owner role, the Project\
+ \ Stream Processing Owner role, or the Project Database Access Admin role."
operationId: deleteDatabaseUser
parameters:
- $ref: "#/components/parameters/envelope"
@@ -8533,7 +8742,8 @@ paths:
patch:
description: "Updates one database user that belongs to the specified project.\
\ To use this resource, the requesting API Key must have the Project Owner\
- \ or Project Charts Admin roles."
+ \ role, Project Charts Admin role, Project Stream Processing Owner role, or\
+ \ the Project Database Access Admin role."
operationId: updateDatabaseUser
parameters:
- $ref: "#/components/parameters/envelope"
@@ -8601,6 +8811,8 @@ paths:
summary: Update One Database User in One Project
tags:
- Database Users
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/databaseUsers/{username}/certs:
get:
description: "Returns all unexpired X.509 certificates for the specified MongoDB\
@@ -8700,7 +8912,7 @@ paths:
\ name. Access logs contain a list of authentication requests made against\
\ your cluster. You can't use this feature on tenant-tier clusters (M0, M2,\
\ M5). To use this resource, the requesting API Key must have the Project\
- \ Monitoring Admin role."
+ \ Monitoring Admin role or the Project Database Access Admin role."
externalDocs:
description: Database Access History
url: https://docs.atlas.mongodb.com/access-tracking/
@@ -8773,13 +8985,15 @@ paths:
summary: Return Database Access History for One Cluster using Its Cluster Name
tags:
- Access Tracking
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/dbAccessHistory/processes/{hostname}:
get:
description: "Returns the access logs of one cluster identified by the cluster's\
\ hostname. Access logs contain a list of authentication requests made against\
\ your clusters. You can't use this feature on tenant-tier clusters (M0, M2,\
\ M5). To use this resource, the requesting API Key must have the Project\
- \ Monitoring Admin role."
+ \ Monitoring Admin role or the Project Database Access Admin role."
externalDocs:
description: Database Access History
url: https://docs.atlas.mongodb.com/access-tracking/
@@ -8850,6 +9064,8 @@ paths:
summary: Return Database Access History for One Cluster using Its Hostname
tags:
- Access Tracking
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/encryptionAtRest:
get:
description: |-
@@ -8946,6 +9162,7 @@ paths:
type: string
enum:
- AZURE
+ - AWS
responses:
"200":
content:
@@ -8979,6 +9196,7 @@ paths:
type: string
enum:
- AZURE
+ - AWS
requestBody:
content:
application/vnd.atlas.2023-01-01+json:
@@ -9020,6 +9238,7 @@ paths:
type: string
enum:
- AZURE
+ - AWS
- description: Unique 24-hexadecimal digit string that identifies the private
endpoint to delete.
in: path
@@ -9062,6 +9281,7 @@ paths:
type: string
enum:
- AZURE
+ - AWS
- description: Unique 24-hexadecimal digit string that identifies the private
endpoint.
in: path
@@ -9455,6 +9675,9 @@ paths:
summary: Download One Flex Cluster Snapshot
tags:
- Flex Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/restoreJobs:
get:
description: "Returns all restore jobs for one flex cluster from the specified\
@@ -9542,6 +9765,8 @@ paths:
summary: Restore One Snapshot of One Flex Cluster
tags:
- Flex Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/restoreJobs/{restoreJobId}:
get:
description: "Returns one restore job for one flex cluster from the specified\
@@ -9588,6 +9813,8 @@ paths:
summary: Return One Restore Job for One Flex Cluster
tags:
- Flex Restore Jobs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/snapshots:
get:
description: "Returns all snapshots of one flex cluster from the specified project.\
@@ -9627,6 +9854,8 @@ paths:
summary: Return All Snapshots of One Flex Cluster
tags:
- Flex Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/flexClusters/{name}/backup/snapshots/{snapshotId}:
get:
description: "Returns one snapshot of one flex cluster from the specified project.\
@@ -9673,6 +9902,8 @@ paths:
summary: Return One Snapshot of One Flex Cluster
tags:
- Flex Snapshots
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/flexClusters:tenantUpgrade:
post:
description: "Upgrades a flex cluster to a dedicated cluster (M10+) in the specified\
@@ -9740,6 +9971,8 @@ paths:
summary: Return All Atlas Search Metric Types for One Process
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/hosts/{processId}/fts/metrics/indexes/{databaseName}/{collectionName}/measurements:
get:
description: Returns the Atlas Search index metrics within the specified time
@@ -9797,6 +10030,8 @@ paths:
summary: Return All Atlas Search Index Metrics for One Namespace
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/hosts/{processId}/fts/metrics/indexes/{databaseName}/{collectionName}/{indexName}/measurements:
get:
description: Returns the Atlas Search metrics data series within the provided
@@ -9857,6 +10092,8 @@ paths:
summary: Return Atlas Search Metrics for One Index in One Specified Namespace
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/hosts/{processId}/fts/metrics/measurements:
get:
description: Returns the Atlas Search hardware and status data series within
@@ -9919,6 +10156,8 @@ paths:
summary: Return Atlas Search Hardware and Status Metrics
tags:
- Monitoring and Logs
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/integrations:
get:
description: "Returns the settings that permit integrations with all configured\
@@ -10503,6 +10742,9 @@ paths:
- atlas.project.deployment.privateServiceConnectionsPerRegionGroup
- atlas.project.deployment.privateServiceConnectionsSubnetMask
- atlas.project.deployment.salesSoldM0s
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
- $ref: "#/components/parameters/envelope"
- $ref: "#/components/parameters/groupId"
- $ref: "#/components/parameters/pretty"
@@ -10568,6 +10810,9 @@ paths:
- atlas.project.deployment.privateServiceConnectionsPerRegionGroup
- atlas.project.deployment.privateServiceConnectionsSubnetMask
- atlas.project.deployment.salesSoldM0s
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
- $ref: "#/components/parameters/envelope"
- $ref: "#/components/parameters/groupId"
- $ref: "#/components/parameters/pretty"
@@ -10637,6 +10882,9 @@ paths:
- atlas.project.deployment.privateServiceConnectionsPerRegionGroup
- atlas.project.deployment.privateServiceConnectionsSubnetMask
- atlas.project.deployment.salesSoldM0s
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
- $ref: "#/components/parameters/envelope"
- $ref: "#/components/parameters/groupId"
- $ref: "#/components/parameters/pretty"
@@ -10753,6 +11001,8 @@ paths:
summary: Validate One Migration Request
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/liveMigrations/validate/{validationId}:
get:
description: Return the status of one migration validation job. Your API Key
@@ -10793,6 +11043,8 @@ paths:
summary: Return One Migration Validation Job
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/liveMigrations/{liveMigrationId}:
get:
description: Return details of one cluster migration job. Each push live migration
@@ -10855,6 +11107,8 @@ paths:
summary: Cut Over the Migrated Cluster
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/maintenanceWindow:
delete:
description: "Resets the maintenance window for the specified project. To use\
@@ -10980,6 +11234,9 @@ paths:
summary: Toggle Automatic Deferral of Maintenance for One Project
tags:
- Maintenance Windows
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/maintenanceWindow/defer:
post:
description: "Defers the maintenance window for the specified project. Urgent\
@@ -11011,6 +11268,9 @@ paths:
summary: Defer One Maintenance Window for One Project
tags:
- Maintenance Windows
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/managedSlowMs:
get:
description: Get whether the Managed Slow MS feature is enabled.
@@ -11065,6 +11325,9 @@ paths:
summary: Disable Managed Slow Operation Threshold
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/managedSlowMs/enable:
post:
description: "Enables MongoDB Cloud to use its slow operation threshold for\
@@ -11096,6 +11359,9 @@ paths:
summary: Enable Managed Slow Operation Threshold
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/mongoDBVersions:
get:
description: Returns the MongoDB Long Term Support Major Versions available
@@ -11680,6 +11946,8 @@ paths:
tags:
- Data Lake Pipelines
x-sunset: 2025-09-09
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/pipelines/{pipelineName}/resume:
post:
deprecated: true
@@ -11718,6 +11986,8 @@ paths:
tags:
- Data Lake Pipelines
x-sunset: 2025-09-09
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/pipelines/{pipelineName}/runs:
get:
deprecated: true
@@ -11905,6 +12175,8 @@ paths:
tags:
- Data Lake Pipelines
x-sunset: 2025-09-09
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/privateEndpoint/endpointService:
post:
description: "Creates one private endpoint service for the specified cloud service\
@@ -11946,6 +12218,9 @@ paths:
summary: Create One Private Endpoint Service for One Provider
tags:
- Private Endpoint Services
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/privateEndpoint/regionalMode:
get:
description: "Checks whether each region in the specified cloud service provider\
@@ -12013,6 +12288,8 @@ paths:
summary: Toggle Regionalized Private Endpoint Status
tags:
- Private Endpoint Services
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/privateEndpoint/serverless/instance/{instanceName}/endpoint:
get:
description: Returns all private endpoints for one serverless instance. You
@@ -12096,6 +12373,8 @@ paths:
summary: Create One Private Endpoint for One Serverless Instance
tags:
- Serverless Private Endpoints
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/privateEndpoint/serverless/instance/{instanceName}/endpoint/{endpointId}:
delete:
description: "Remove one private endpoint from one serverless instance. To use\
@@ -12234,6 +12513,8 @@ paths:
summary: Update One Private Endpoint for One Serverless Instance
tags:
- Serverless Private Endpoints
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/privateEndpoint/{cloudProvider}/endpointService:
get:
description: "Returns the name, interfaces, and state of all private endpoint\
@@ -12701,6 +12982,8 @@ paths:
for One Project
tags:
- Data Federation
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/privateNetworkSettings/endpointIds/{endpointId}:
delete:
description: "Removes one private endpoint for Federated Database Instances\
@@ -12781,6 +13064,8 @@ paths:
in One Project
tags:
- Data Federation
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/processes:
get:
description: "Returns details of all processes for the specified project. A\
@@ -12875,6 +13160,8 @@ paths:
summary: Return Ranked Namespaces from a Host
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/processes/{processId}/databases:
get:
description: "Returns the list of databases running on the specified host for\
@@ -13306,7 +13593,7 @@ paths:
- MAX_PROCESS_NORMALIZED_CPU_KERNEL
- MAX_PROCESS_NORMALIZED_CPU_USER
- MAX_SWAP_USAGE_FREE
- - 'MAX_SWAP_USAGE_USED '
+ - MAX_SWAP_USAGE_USED
- MAX_SYSTEM_CPU_GUEST
- MAX_SYSTEM_CPU_IOWAIT
- MAX_SYSTEM_CPU_IRQ
@@ -13490,6 +13777,8 @@ paths:
summary: Return All Namespaces for One Host
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/processes/{processId}/performanceAdvisor/slowQueryLogs:
get:
description: "Returns log lines for slow queries that the Performance Advisor\
@@ -13497,8 +13786,8 @@ paths:
\ that MongoDB considers slow and suggests new indexes to improve query performance.\
\ MongoDB Cloud bases the threshold for slow queries on the average time of\
\ operations on your cluster. This enables workload-relevant recommendations.\
- \ To use this resource, the requesting API Key must have the Project Data\
- \ Access Read Write role."
+ \ To use this resource, the requesting API Key must have any Project Data\
+ \ Access role or the Project Observability Viewer role."
operationId: listSlowQueries
parameters:
- $ref: "#/components/parameters/envelope"
@@ -13572,6 +13861,8 @@ paths:
summary: Return Slow Queries
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/processes/{processId}/performanceAdvisor/suggestedIndexes:
get:
description: "Returns the indexes that the Performance Advisor suggests. The\
@@ -13659,6 +13950,8 @@ paths:
summary: Return Suggested Indexes
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/processes/{processId}/{databaseName}/{collectionName}/collStats/measurements:
get:
description: Get a list of the Coll Stats Latency process-level measurements
@@ -13728,6 +14021,8 @@ paths:
summary: Return Host-Level Query Latency
tags:
- Collection Level Metrics
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/pushBasedLogExport:
delete:
description: Disables the push-based log export feature by resetting the project
@@ -14077,6 +14372,8 @@ paths:
summary: Restore One Snapshot of One Serverless Instance
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/serverless/{clusterName}/backup/restoreJobs/{restoreJobId}:
get:
description: "Returns one restore job for one serverless instance from the specified\
@@ -14123,6 +14420,8 @@ paths:
summary: Return One Restore Job for One Serverless Instance
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/serverless/{clusterName}/backup/snapshots:
get:
description: "Returns all snapshots of one serverless instance from the specified\
@@ -14162,6 +14461,8 @@ paths:
summary: Return All Snapshots of One Serverless Instance
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/serverless/{clusterName}/backup/snapshots/{snapshotId}:
get:
description: "Returns one snapshot of one serverless instance from the specified\
@@ -14208,6 +14509,8 @@ paths:
summary: Return One Snapshot of One Serverless Instance
tags:
- Cloud Backups
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/serverless/{clusterName}/performanceAdvisor/autoIndexing:
get:
description: Get whether the Serverless Auto Indexing feature is enabled.
@@ -14276,6 +14579,8 @@ paths:
summary: Set Serverless Auto Indexing
tags:
- Performance Advisor
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/serverless/{name}:
delete:
description: "Removes one serverless instance from the specified project. The\
@@ -14652,6 +14957,8 @@ paths:
summary: Add Access List entries for one Project Service Account
tags:
- Service Accounts
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/accessList/{ipAddress}:
delete:
description: Removes the specified access list entry from the specified Service
@@ -14739,6 +15046,8 @@ paths:
summary: Create one Project Service Account Secret
tags:
- Service Accounts
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/serviceAccounts/{clientId}/secrets/{secretId}:
delete:
description: Deletes the specified Service Account secret. Available as a preview
@@ -14986,6 +15295,33 @@ paths:
summary: "Returns the Account ID, and the VPC ID for the group and region specified."
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ /api/atlas/v2/groups/{groupId}/streams/activeVpcPeeringConnections:
+ get:
+ description: Returns a list of active incoming VPC Peering Connections.
+ operationId: getActiveVpcPeeringConnections
+ parameters:
+ - $ref: "#/components/parameters/groupId"
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/itemsPerPage"
+ - $ref: "#/components/parameters/pageNum"
+ - $ref: "#/components/parameters/pretty"
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2024-11-13+json:
+ x-xgen-version: 2024-11-13
+ description: OK
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Returns all the active incoming VPC Peering Connections.
+ tags:
+ - Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/streams/privateLinkConnections:
get:
description: "Returns all Private Link connections for the specified project.To\
@@ -15057,6 +15393,8 @@ paths:
x-xgen-changelog:
"2024-10-02": "The MongoDB Atlas Streams Processing Private Link API is now\
\ exposed as part of private preview, but is subject to change until GA."
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/streams/privateLinkConnections/{connectionId}:
delete:
description: "Deletes one Private Link in the specified project. To use this\
@@ -15129,6 +15467,8 @@ paths:
x-xgen-changelog:
"2024-10-02": "The MongoDB Atlas Streams Processing Private Link API is now\
\ exposed as part of private preview, but is subject to change until GA."
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/streams/vpcPeeringConnections:
get:
description: Returns a list of incoming VPC Peering Connections.
@@ -15158,6 +15498,9 @@ paths:
summary: Return All VPC Peering Connections.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/streams/vpcPeeringConnections/{id}:
delete:
description: Deletes an incoming VPC Peering connection.
@@ -15190,6 +15533,8 @@ paths:
summary: Deletes an incoming VPC Peering connection.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/streams/vpcPeeringConnections/{id}:accept:
post:
description: Requests the acceptance of an incoming VPC Peering connection.
@@ -15230,6 +15575,8 @@ paths:
summary: Requests the acceptance of an incoming VPC Peering connection.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/streams/vpcPeeringConnections/{id}:reject:
post:
description: Requests the rejection of an incoming VPC Peering connection.
@@ -15262,6 +15609,8 @@ paths:
summary: Requests the rejection of an incoming VPC Peering connection.
tags:
- Streams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/streams/{tenantName}:
delete:
description: "Delete one stream instance in the specified project. To use this\
@@ -16084,6 +16433,8 @@ paths:
summary: Add One or More Teams to One Project
tags:
- Teams
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/teams/{teamId}:
delete:
description: "Removes one team specified using its unique 24-hexadecimal digit\
@@ -16262,6 +16613,9 @@ paths:
summary: Disable Customer-Managed X.509
tags:
- X.509 Authentication
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/userSecurity/ldap/userToDNMapping:
delete:
description: "Removes the current LDAP Distinguished Name mapping captured in\
@@ -16288,6 +16642,9 @@ paths:
summary: Remove the Current LDAP User to DN Mapping
tags:
- LDAP Configuration
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/groups/{groupId}/userSecurity/ldap/verify:
post:
description: "Verifies the LDAP configuration for the specified project. To\
@@ -16322,6 +16679,8 @@ paths:
summary: Verify the LDAP Configuration in One Project
tags:
- LDAP Configuration
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/userSecurity/ldap/verify/{requestId}:
get:
description: "Returns the status of one request to verify one LDAP configuration\
@@ -16357,6 +16716,8 @@ paths:
summary: Return the Status of One Verify LDAP Configuration Request
tags:
- LDAP Configuration
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/groups/{groupId}/users:
get:
deprecated: true
@@ -16418,10 +16779,56 @@ paths:
tags:
- Projects
x-sunset: 2044-01-01
+ post:
+ description: "Adds one MongoDB Cloud user to one project. To use this resource,\
+ \ the requesting API Key must have the Project Owner role. \n- If the user\
+ \ has a pending invitation to join the project's organization, MongoDB Cloud\
+ \ modifies it and grants project access. \n- If the user doesn't have an invitation\
+ \ to join the organization, MongoDB Cloud sends a new invitation that grants\
+ \ the user organization and project access. \n- If the user is already active\
+ \ in the project's organization, MongoDB Cloud grants access to the project.\
+ \ \n"
+ operationId: addProjectUser
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/groupId"
+ - $ref: "#/components/parameters/pretty"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/GroupUserRequest"
+ description: The active or pending MongoDB Cloud user that you want to add
+ to the specified project.
+ required: true
+ responses:
+ "201":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/GroupUserResponse"
+ x-xgen-version: 2043-01-01
+ description: Created
+ "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"
+ summary: Add One MongoDB Cloud User to One Project
+ tags:
+ - MongoDB Cloud Users
/api/atlas/v2/groups/{groupId}/users/{userId}:
delete:
description: "Removes the specified user from the specified project. To use\
- \ this resource, the requesting API Key must have the Project Owner role."
+ \ this resource, the requesting API Key must have the Project Owner role.\
+ \ Deprecated versions: v2-{2023-01-01}"
operationId: removeProjectUser
parameters:
- $ref: "#/components/parameters/envelope"
@@ -16442,8 +16849,10 @@ paths:
responses:
"204":
content:
- application/vnd.atlas.2023-01-01+json:
- x-xgen-version: 2023-01-01
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/NoBody"
+ x-xgen-version: 2043-01-01
description: This endpoint does not return a response body.
"400":
$ref: "#/components/responses/badRequest"
@@ -16456,6 +16865,51 @@ paths:
summary: Remove One User from One Project
tags:
- Projects
+ get:
+ description: |-
+ Returns information about the specified MongoDB Cloud user within the context of the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
+
+ **Note**: You can only use this resource to fetch information about MongoDB Cloud human users. To return information about an API Key, use the [Return One Organization API Key](#tag/Programmatic-API-Keys/operation/getApiKey) endpoint.
+
+ **Note**: This resource does not return information about pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: getProjectUser
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/groupId"
+ - $ref: "#/components/parameters/pretty"
+ - description: "Unique 24-hexadecimal digit string that identifies the pending\
+ \ or active user in the project. If you need to lookup a user's userId or\
+ \ verify a user's status in the organization, use the Return All MongoDB\
+ \ Cloud Users in One Project resource and filter by username."
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/GroupUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Return One MongoDB Cloud User in One Project
+ tags:
+ - MongoDB Cloud Users
/api/atlas/v2/groups/{groupId}/users/{userId}/roles:
put:
description: "Updates the roles of the specified user in the specified project.\
@@ -16503,6 +16957,114 @@ paths:
summary: Update Project Roles for One MongoDB Cloud User
tags:
- Projects
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
+ /api/atlas/v2/groups/{groupId}/users/{userId}:addRole:
+ post:
+ description: |-
+ Adds one project-level role to the MongoDB Cloud user. You can add a role to an active user or a user that has been invited to join the project. To use this resource, the requesting API Key must have the Project Owner role.
+
+ **Note**: This resource cannot be used to add a role to users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: addProjectRole
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/groupId"
+ - $ref: "#/components/parameters/pretty"
+ - description: "Unique 24-hexadecimal digit string that identifies the pending\
+ \ or active user in the project. If you need to lookup a user's userId or\
+ \ verify a user's status in the organization, use the Return All MongoDB\
+ \ Cloud Users in One Project resource and filter by username."
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveGroupRole"
+ description: Project-level role to assign to the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-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"
+ summary: Add One Project Role to One MongoDB Cloud User
+ tags:
+ - MongoDB Cloud Users
+ /api/atlas/v2/groups/{groupId}/users/{userId}:removeRole:
+ post:
+ description: |-
+ Removes one project-level role from the MongoDB Cloud user. You can remove a role from an active user or a user that has been invited to join the project. To replace a user's only role, add the new role before removing the old role. A user must have at least one role at all times. To use this resource, the requesting API Key must have the Project Owner role.
+
+ **Note**: This resource cannot be used to remove a role from users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: removeProjectRole
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/groupId"
+ - $ref: "#/components/parameters/pretty"
+ - description: "Unique 24-hexadecimal digit string that identifies the pending\
+ \ or active user in the project. If you need to lookup a user's userId or\
+ \ verify a user's status in the organization, use the Return All MongoDB\
+ \ Cloud Users in One Project resource and filter by username."
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveGroupRole"
+ description: Project-level role to remove from the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-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"
+ summary: Remove One Project Role from One MongoDB Cloud User
+ tags:
+ - MongoDB Cloud Users
/api/atlas/v2/groups/{groupId}:migrate:
post:
description: "Migrates a project from its current organization to another organization.\
@@ -17148,6 +17710,8 @@ paths:
summary: Create Cost Explorer query process
tags:
- Invoices
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/billing/costExplorer/usage/{token}:
get:
description: "Returns the usage details for a Cost Explorer query, if the query\
@@ -17193,6 +17757,8 @@ paths:
\ results are not ready yet."
tags:
- Invoices
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/events:
get:
description: |-
@@ -17243,7 +17809,6 @@ paths:
schema:
type: string
format: date-time
- example: 2021-11-17T23:15:00.06Z
responses:
"200":
content:
@@ -17335,6 +17900,8 @@ paths:
summary: Return Federation Settings for One Organization
tags:
- Federated Authentication
+ x-xgen-IPA-exception:
+ xgen-IPA-113-singleton-must-not-have-id: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/groups:
get:
description: |-
@@ -17688,6 +18255,9 @@ paths:
enum:
- desc
- asc
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
responses:
"200":
content:
@@ -17735,6 +18305,8 @@ paths:
summary: Return All Pending Invoices for One Organization
tags:
- Invoices
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}:
get:
description: |-
@@ -17894,6 +18466,8 @@ paths:
summary: Return All Projects Available for Migration
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/liveMigrations/linkTokens:
delete:
description: Remove one organization link and its associated public API key.
@@ -17957,6 +18531,9 @@ paths:
summary: Create One Link-Token
tags:
- Cloud Migration Service
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/nonCompliantResources:
get:
description: Return all non-compliant resources for an org.
@@ -18499,6 +19076,8 @@ paths:
summary: Add Access List entries for one Organization Service Account
tags:
- Service Accounts
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/accessList/{ipAddress}:
delete:
description: Removes the specified access list entry from the specified Service
@@ -18622,6 +19201,8 @@ paths:
summary: Create one Organization Service Account Secret
tags:
- Service Accounts
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/serviceAccounts/{clientId}/secrets/{secretId}:
delete:
description: Deletes the specified Service Account secret. Available as a preview
@@ -18841,6 +19422,8 @@ paths:
summary: Return One Team using its Name
tags:
- Teams
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/teams/{teamId}:
delete:
description: "Removes one team specified using its unique 24-hexadecimal digit\
@@ -18982,7 +19565,7 @@ paths:
\ using its unique 24-hexadecimal digit identifier. This team belongs to one\
\ organization. Teams enable you to grant project access roles to MongoDB\
\ Cloud users. To use this resource, the requesting API Key must have the\
- \ Organization Member role."
+ \ Organization Member role. Deprecated versions: v2-{2023-01-01}"
externalDocs:
description: Manage Organization Teams
url: https://docs.atlas.mongodb.com/access/manage-teams-in-orgs/#std-label-manage-teams
@@ -19006,10 +19589,10 @@ paths:
responses:
"200":
content:
- application/vnd.atlas.2023-01-01+json:
+ application/vnd.atlas.2043-01-01+json:
schema:
- $ref: "#/components/schemas/PaginatedAppUserView"
- x-xgen-version: 2023-01-01
+ $ref: "#/components/schemas/PaginatedOrgUserView"
+ x-xgen-version: 2043-01-01
description: OK
"400":
$ref: "#/components/responses/badRequest"
@@ -19079,6 +19662,8 @@ paths:
summary: Assign MongoDB Cloud Users from One Organization to One Team
tags:
- Teams
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
/api/atlas/v2/orgs/{orgId}/teams/{teamId}/users/{userId}:
delete:
description: "Removes one MongoDB Cloud user from the specified team. This team\
@@ -19130,13 +19715,113 @@ paths:
summary: Remove One MongoDB Cloud User from One Team
tags:
- Teams
+ /api/atlas/v2/orgs/{orgId}/teams/{teamId}:addUser:
+ post:
+ description: |-
+ Adds one MongoDB Cloud user to one team. You can add an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: This resource cannot be used to add a user invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: addUserToTeam
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/orgId"
+ - $ref: "#/components/parameters/pretty"
+ - description: Unique 24-hexadecimal digit string that identifies the team to
+ add the MongoDB Cloud user to.
+ in: path
+ name: teamId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveUserFromTeam"
+ description: The active or pending MongoDB Cloud user that you want to add
+ to the specified team.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Add One MongoDB Cloud User to One Team
+ tags:
+ - MongoDB Cloud Users
+ /api/atlas/v2/orgs/{orgId}/teams/{teamId}:removeUser:
+ post:
+ description: |-
+ Removes one MongoDB Cloud user from one team. You can remove an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: This resource cannot be used to remove a user invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: removeUserFromTeam
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/orgId"
+ - $ref: "#/components/parameters/pretty"
+ - description: Unique 24-hexadecimal digit string that identifies the team to
+ remove the MongoDB user from.
+ in: path
+ name: teamId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveUserFromTeam"
+ description: The id of the active or pending MongoDB Cloud user that you want
+ to remove from the specified team.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Remove One MongoDB Cloud User from One Team
+ tags:
+ - MongoDB Cloud Users
/api/atlas/v2/orgs/{orgId}/users:
get:
description: "Returns details about the MongoDB Cloud users associated with\
\ the specified organization. Each MongoDB Cloud user returned must belong\
\ to the specified organization or to a project within the specified organization.\
\ To use this resource, the requesting API Key must have the Organization\
- \ Member role."
+ \ Member role. Deprecated versions: v2-{2023-01-01}"
operationId: listOrganizationUsers
parameters:
- $ref: "#/components/parameters/envelope"
@@ -19148,10 +19833,10 @@ paths:
responses:
"200":
content:
- application/vnd.atlas.2023-01-01+json:
+ application/vnd.atlas.2043-01-01+json:
schema:
- $ref: "#/components/schemas/PaginatedAppUserView"
- x-xgen-version: 2023-01-01
+ $ref: "#/components/schemas/PaginatedOrgUserView"
+ x-xgen-version: 2043-01-01
description: OK
"400":
$ref: "#/components/responses/badRequest"
@@ -19164,11 +19849,51 @@ paths:
summary: Return All MongoDB Cloud Users in One Organization
tags:
- Organizations
+ post:
+ description: |-
+ Invites one new or existing MongoDB Cloud user to join the organization. The invitation to join the organization will be sent to the username provided and must be accepted within 30 days. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: If the user does not have an existing MongoDB Cloud account, they will be prompted to finish setting up an account upon accepting the invitation. If the user already has an account, they will still receive an invitation to access the organization.
+ operationId: createOrganizationUser
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/orgId"
+ - $ref: "#/components/parameters/pretty"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserRequest"
+ description: Represents the MongoDB Cloud user to be created within the organization.
+ required: true
+ responses:
+ "201":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: Created
+ "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"
+ summary: Add One MongoDB Cloud User to One Organization
+ tags:
+ - MongoDB Cloud Users
/api/atlas/v2/orgs/{orgId}/users/{userId}:
delete:
description: "Removes one MongoDB Cloud user from the specified organization.\
\ To use this resource, the requesting API Key must have the Organization\
- \ User Admin role."
+ \ User Admin role. Deprecated versions: v2-{2023-01-01}"
operationId: removeOrganizationUser
parameters:
- $ref: "#/components/parameters/envelope"
@@ -19187,10 +19912,10 @@ paths:
responses:
"204":
content:
- application/vnd.atlas.2023-01-01+json:
+ application/vnd.atlas.2043-01-01+json:
schema:
$ref: "#/components/schemas/NoBody"
- x-xgen-version: 2023-01-01
+ x-xgen-version: 2043-01-01
description: This endpoint does not return a response body.
"400":
$ref: "#/components/responses/badRequest"
@@ -19205,6 +19930,103 @@ paths:
summary: Remove One MongoDB Cloud User From One Organization
tags:
- Organizations
+ get:
+ description: |-
+ Returns information about the specified MongoDB Cloud user within the context of the specified organization. To use this resource, the requesting API Key must have the Organization Member role.
+
+ **Note**: This resource can only be used to fetch information about MongoDB Cloud human users. To return information about an API Key, use the [Return One Organization API Key](#tag/Programmatic-API-Keys/operation/getApiKey) endpoint.
+
+ **Note**: This resource does not return information about pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: getOrganizationUser
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/orgId"
+ - $ref: "#/components/parameters/pretty"
+ - description: "Unique 24-hexadecimal digit string that identifies the pending\
+ \ or active user in the organization. If you need to lookup a user's userId\
+ \ or verify a user's status in the organization, use the Return All MongoDB\
+ \ Cloud Users in One Organization resource and filter by username."
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Return One MongoDB Cloud User in One Organization
+ tags:
+ - MongoDB Cloud Users
+ patch:
+ description: |-
+ Updates one MongoDB Cloud user in the specified organization. You can update an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: Only include the fields you wish to update in the request body. Supplying a field with an empty value will reset that field on the user.
+
+ **Note**: This resource cannot be used to update pending users invited via the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: updateOrganizationUser
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/orgId"
+ - $ref: "#/components/parameters/pretty"
+ - description: "Unique 24-hexadecimal digit string that identifies the pending\
+ \ or active user in the organization. If you need to lookup a user's userId\
+ \ or verify a user's status in the organization, use the Return All MongoDB\
+ \ Cloud Users in One Organization resource and filter by username."
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserUpdateRequest"
+ description: Represents the roles and teams to assign the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Update One MongoDB Cloud User in One Organization
+ tags:
+ - MongoDB Cloud Users
/api/atlas/v2/orgs/{orgId}/users/{userId}/roles:
put:
description: "Updates the roles of the specified user in the specified organization.\
@@ -19252,6 +20074,116 @@ paths:
summary: Update Organization Roles for One MongoDB Cloud User
tags:
- Organizations
+ x-xgen-IPA-exception:
+ xgen-IPA-104-resource-has-GET: API predates IPA validation
+ /api/atlas/v2/orgs/{orgId}/users/{userId}:addRole:
+ post:
+ description: |-
+ Adds one organization-level role to the MongoDB Cloud user. You can add a role to an active user or a user that has not yet accepted the invitation to join the organization. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: This operation is atomic.
+
+ **Note**: This resource cannot be used to add a role to users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: addOrganizationRole
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/orgId"
+ - $ref: "#/components/parameters/pretty"
+ - description: "Unique 24-hexadecimal digit string that identifies the pending\
+ \ or active user in the organization. If you need to lookup a user's userId\
+ \ or verify a user's status in the organization, use the Return All MongoDB\
+ \ Cloud Users in One Organization resource and filter by username."
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveOrgRole"
+ description: Organization-level role to assign to the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-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"
+ summary: Add One Organization Role to One MongoDB Cloud User
+ tags:
+ - MongoDB Cloud Users
+ /api/atlas/v2/orgs/{orgId}/users/{userId}:removeRole:
+ post:
+ description: |-
+ Removes one organization-level role from the MongoDB Cloud user. You can remove a role from an active user or a user that has not yet accepted the invitation to join the organization. To replace a user's only role, add the new role before removing the old role. A user must have at least one role at all times. To use this resource, the requesting API Key must have the Organization Owner role.
+
+ **Note**: This operation is atomic.
+
+ **Note**: This resource cannot be used to remove a role from users invited using the deprecated [Invite One MongoDB Cloud User to Join One Project](#tag/Projects/operation/createProjectInvitation) endpoint.
+ operationId: removeOrganizationRole
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/orgId"
+ - $ref: "#/components/parameters/pretty"
+ - description: "Unique 24-hexadecimal digit string that identifies the pending\
+ \ or active user in the organization. If you need to lookup a user's userId\
+ \ or verify a user's status in the organization, use the Return All MongoDB\
+ \ Cloud Users in One Organization resource and filter by username."
+ in: path
+ name: userId
+ required: true
+ schema:
+ type: string
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ requestBody:
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/AddOrRemoveOrgRole"
+ description: Organization-level role to remove from the MongoDB Cloud user.
+ required: true
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2043-01-01+json:
+ schema:
+ $ref: "#/components/schemas/OrgUserResponse"
+ x-xgen-version: 2043-01-01
+ description: OK
+ "400":
+ $ref: "#/components/responses/badRequest"
+ "401":
+ $ref: "#/components/responses/unauthorized"
+ "403":
+ $ref: "#/components/responses/forbidden"
+ "404":
+ $ref: "#/components/responses/notFound"
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ summary: Remove One Organization Role from One MongoDB Cloud User
+ tags:
+ - MongoDB Cloud Users
/api/atlas/v2/unauth/controlPlaneIPAddresses:
get:
description: Returns all control plane IP addresses.
@@ -19272,6 +20204,49 @@ paths:
summary: Return All Control Plane IP Addresses
tags:
- Root
+ /api/atlas/v2/unauth/openapi/versions:
+ get:
+ description: API that provides a list of available versionsfor a given environment.
+ operationId: getApiVersions
+ parameters:
+ - $ref: "#/components/parameters/envelope"
+ - $ref: "#/components/parameters/itemsPerPage"
+ - $ref: "#/components/parameters/pageNum"
+ - $ref: "#/components/parameters/pretty"
+ - description: "The environment to get the versions from. If not provided, it\
+ \ returnsthe versions for the given MongoDB URL. (E.g. prod for cloud.mongodb.com)"
+ in: query
+ name: env
+ schema:
+ type: string
+ enum:
+ - dev
+ - qa
+ - prod
+ - stage
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
+ responses:
+ "200":
+ content:
+ application/vnd.atlas.2024-08-05+json:
+ schema:
+ $ref: "#/components/schemas/PaginatedApiVersions"
+ x-xgen-version: 2024-08-05
+ application/vnd.atlas.2024-08-05+yaml:
+ schema:
+ $ref: "#/components/schemas/PaginatedApiVersions"
+ x-xgen-version: 2024-08-05
+ description: OK
+ "500":
+ $ref: "#/components/responses/internalServerError"
+ security: []
+ summary: Provides a list of versions for a given environment.
+ tags:
+ - OpenAPI
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/users:
post:
description: |-
@@ -19345,6 +20320,8 @@ paths:
summary: Return One MongoDB Cloud User using Their Username
tags:
- MongoDB Cloud Users
+ x-xgen-IPA-exception:
+ xgen-IPA-102-path-alternate-resource-name-path-param: API predates IPA validation
/api/atlas/v2/users/{userId}:
get:
description: "Returns the details for one MongoDB Cloud user account with the\
@@ -20323,6 +21300,10 @@ components:
- CA_WEST_1
- GLOBAL
title: AWS Regions
+ requirePrivateNetworking:
+ type: boolean
+ description: Enable connection to your Amazon Web Services (AWS) Key Management
+ Service (KMS) over private networking.
roleId:
type: string
description: Unique 24-hexadecimal digit string that identifies an Amazon
@@ -20344,6 +21325,147 @@ components:
description: Flag that indicates whether the Amazon Web Services (AWS) Key
Management Service (KMS) encryption key can encrypt and decrypt data.
readOnly: true
+ AWSKMSEARPrivateEndpoint:
+ type: object
+ description: AWS Key Management Service Encryption At Rest Private Endpoint.
+ properties:
+ cloudProvider:
+ type: string
+ description: Human-readable label that identifies the cloud provider for
+ the Encryption At Rest private endpoint.
+ enum:
+ - AZURE
+ - AWS
+ readOnly: true
+ errorMessage:
+ type: string
+ description: Error message for failures associated with the Encryption At
+ Rest private endpoint.
+ readOnly: true
+ id:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies the Private
+ Endpoint Service.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ readOnly: true
+ regionName:
+ type: object
+ description: Cloud provider region in which the Encryption At Rest private
+ endpoint is located.
+ oneOf:
+ - type: string
+ description: Microsoft Azure Regions.
+ enum:
+ - US_CENTRAL
+ - US_EAST
+ - US_EAST_2
+ - US_NORTH_CENTRAL
+ - US_WEST
+ - US_SOUTH_CENTRAL
+ - EUROPE_NORTH
+ - EUROPE_WEST
+ - US_WEST_CENTRAL
+ - US_WEST_2
+ - US_WEST_3
+ - CANADA_EAST
+ - CANADA_CENTRAL
+ - BRAZIL_SOUTH
+ - BRAZIL_SOUTHEAST
+ - AUSTRALIA_CENTRAL
+ - AUSTRALIA_CENTRAL_2
+ - AUSTRALIA_EAST
+ - AUSTRALIA_SOUTH_EAST
+ - GERMANY_CENTRAL
+ - GERMANY_NORTH_EAST
+ - GERMANY_WEST_CENTRAL
+ - GERMANY_NORTH
+ - SWEDEN_CENTRAL
+ - SWEDEN_SOUTH
+ - SWITZERLAND_NORTH
+ - SWITZERLAND_WEST
+ - UK_SOUTH
+ - UK_WEST
+ - NORWAY_EAST
+ - NORWAY_WEST
+ - INDIA_CENTRAL
+ - INDIA_SOUTH
+ - INDIA_WEST
+ - CHINA_EAST
+ - CHINA_NORTH
+ - ASIA_EAST
+ - JAPAN_EAST
+ - JAPAN_WEST
+ - ASIA_SOUTH_EAST
+ - KOREA_CENTRAL
+ - KOREA_SOUTH
+ - FRANCE_CENTRAL
+ - FRANCE_SOUTH
+ - SOUTH_AFRICA_NORTH
+ - SOUTH_AFRICA_WEST
+ - UAE_CENTRAL
+ - UAE_NORTH
+ - QATAR_CENTRAL
+ title: Azure Regions
+ - type: string
+ description: "Physical location where MongoDB Cloud deploys your AWS-hosted\
+ \ MongoDB cluster nodes. The region you choose can affect network latency\
+ \ for clients accessing your databases. When MongoDB Cloud deploys a\
+ \ dedicated cluster, it checks if a VPC or VPC connection exists for\
+ \ that provider and region. If not, MongoDB Cloud creates them as part\
+ \ of the deployment. MongoDB Cloud assigns the VPC a CIDR block. To\
+ \ limit a new VPC peering connection to one CIDR block and region, create\
+ \ the connection first. Deploy the cluster after the connection starts."
+ enum:
+ - US_GOV_WEST_1
+ - US_GOV_EAST_1
+ - US_EAST_1
+ - US_EAST_2
+ - US_WEST_1
+ - US_WEST_2
+ - CA_CENTRAL_1
+ - EU_NORTH_1
+ - EU_WEST_1
+ - EU_WEST_2
+ - EU_WEST_3
+ - EU_CENTRAL_1
+ - EU_CENTRAL_2
+ - AP_EAST_1
+ - AP_NORTHEAST_1
+ - AP_NORTHEAST_2
+ - AP_NORTHEAST_3
+ - AP_SOUTHEAST_1
+ - AP_SOUTHEAST_2
+ - AP_SOUTHEAST_3
+ - AP_SOUTHEAST_4
+ - AP_SOUTH_1
+ - AP_SOUTH_2
+ - SA_EAST_1
+ - CN_NORTH_1
+ - CN_NORTHWEST_1
+ - ME_SOUTH_1
+ - ME_CENTRAL_1
+ - AF_SOUTH_1
+ - EU_SOUTH_1
+ - EU_SOUTH_2
+ - IL_CENTRAL_1
+ - CA_WEST_1
+ - GLOBAL
+ title: AWS Regions
+ status:
+ type: string
+ description: State of the Encryption At Rest private endpoint.
+ enum:
+ - INITIATING
+ - PENDING_ACCEPTANCE
+ - ACTIVE
+ - FAILED
+ - PENDING_RECREATION
+ - DELETING
+ readOnly: true
+ title: AWS Key Management Service EAR Private Endpoint
AWSPrivateLinkConnection:
type: object
description: Group of Private Endpoint Service settings.
@@ -20510,6 +21632,9 @@ components:
- GROUP_DATA_ACCESS_READ_ONLY
- GROUP_READ_ONLY
- GROUP_SEARCH_INDEX_EDITOR
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
+ - GROUP_DATABASE_ACCESS_ADMIN
required:
- groupRole
AddOrRemoveOrgRole:
@@ -21124,9 +22249,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -21179,9 +22306,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- notifications
@@ -21441,6 +22570,9 @@ components:
- thousand
- million
- billion
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
title: Threshold
AlertsToggle:
type: object
@@ -22473,7 +23605,10 @@ components:
properties:
specs:
type: array
- description: List of settings that configure the Search Nodes for your cluster.
+ description: |-
+ List of settings that configure the Search Nodes for your cluster.
+
+ **NOTE**: We accept a single configuration for all nodes currently.
items:
$ref: "#/components/schemas/ApiSearchDeploymentSpecView"
maxItems: 1
@@ -22504,6 +23639,7 @@ components:
specs:
type: array
description: List of settings that configure the Search Nodes for your cluster.
+ The configuration will be returned for each region and shard.
items:
$ref: "#/components/schemas/ApiSearchDeploymentSpecView"
readOnly: true
@@ -22543,6 +23679,11 @@ components:
- S130_LOWCPU_NVME
- S135_LOWCPU_NVME
- S140_LOWCPU_NVME
+ - S40_STORAGE_NVME
+ - S50_STORAGE_NVME
+ - S60_STORAGE_NVME
+ - S80_STORAGE_NVME
+ - S90_STORAGE_NVME
nodeCount:
type: integer
format: int32
@@ -22576,6 +23717,8 @@ components:
- westus
- eastus2
- westeurope
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
ApiUserEventTypeViewForNdsGroup:
type: string
description: Unique identifier of event type.
@@ -22837,9 +23980,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -22894,9 +24039,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -23154,9 +24301,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -23213,9 +24362,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -23356,6 +24507,9 @@ components:
- thousand
- million
- billion
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- metricName
title: App Services Metric Threshold
@@ -23957,6 +25111,9 @@ components:
enum:
- monthly
- yearly
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
title: export
AutomationConfigEventTypeView:
type: string
@@ -24754,6 +25911,7 @@ components:
the Encryption At Rest private endpoint.
enum:
- AZURE
+ - AWS
readOnly: true
errorMessage:
type: string
@@ -24831,6 +25989,51 @@ components:
- UAE_NORTH
- QATAR_CENTRAL
title: Azure Regions
+ - type: string
+ description: "Physical location where MongoDB Cloud deploys your AWS-hosted\
+ \ MongoDB cluster nodes. The region you choose can affect network latency\
+ \ for clients accessing your databases. When MongoDB Cloud deploys a\
+ \ dedicated cluster, it checks if a VPC or VPC connection exists for\
+ \ that provider and region. If not, MongoDB Cloud creates them as part\
+ \ of the deployment. MongoDB Cloud assigns the VPC a CIDR block. To\
+ \ limit a new VPC peering connection to one CIDR block and region, create\
+ \ the connection first. Deploy the cluster after the connection starts."
+ enum:
+ - US_GOV_WEST_1
+ - US_GOV_EAST_1
+ - US_EAST_1
+ - US_EAST_2
+ - US_WEST_1
+ - US_WEST_2
+ - CA_CENTRAL_1
+ - EU_NORTH_1
+ - EU_WEST_1
+ - EU_WEST_2
+ - EU_WEST_3
+ - EU_CENTRAL_1
+ - EU_CENTRAL_2
+ - AP_EAST_1
+ - AP_NORTHEAST_1
+ - AP_NORTHEAST_2
+ - AP_NORTHEAST_3
+ - AP_SOUTHEAST_1
+ - AP_SOUTHEAST_2
+ - AP_SOUTHEAST_3
+ - AP_SOUTHEAST_4
+ - AP_SOUTH_1
+ - AP_SOUTH_2
+ - SA_EAST_1
+ - CN_NORTH_1
+ - CN_NORTHWEST_1
+ - ME_SOUTH_1
+ - ME_CENTRAL_1
+ - AF_SOUTH_1
+ - EU_SOUTH_1
+ - EU_SOUTH_2
+ - IL_CENTRAL_1
+ - CA_WEST_1
+ - GLOBAL
+ title: AWS Regions
status:
type: string
description: State of the Encryption At Rest private endpoint.
@@ -25122,6 +26325,9 @@ components:
with the backup policy.
enum:
- ondemand
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies this backup
@@ -25139,6 +26345,9 @@ components:
- weeks
- months
- years
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
retentionValue:
type: integer
format: int32
@@ -25210,6 +26419,9 @@ components:
- weekly
- monthly
- yearly
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies this backup
@@ -25227,6 +26439,9 @@ components:
- weeks
- months
- years
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
retentionValue:
type: integer
format: int32
@@ -26981,9 +28196,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -27037,9 +28254,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -27236,6 +28455,9 @@ components:
- unavailable
- warning
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
backupEnabled:
type: boolean
description: "Flag that indicates whether the cluster can perform backups.\
@@ -27318,6 +28540,9 @@ components:
enum:
- admin
- $external
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
deleteAfterDate:
type: string
format: date-time
@@ -28720,9 +29945,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -28777,9 +30004,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -29505,6 +30734,9 @@ components:
externalDocs:
description: This option corresponds to the global default read concern.
url: https://docs.mongodb.com/manual/reference/read-concern/
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
defaultWriteConcern:
type: string
description: Default level of acknowledgment requested from MongoDB for
@@ -30183,6 +31415,9 @@ components:
enum:
- search
- vectorSearch
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- collectionName
- database
@@ -30270,6 +31505,9 @@ components:
enum:
- non-ignorable
- shifted
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
backwards:
type: boolean
default: false
@@ -30295,6 +31533,9 @@ components:
- lower
- "off"
- upper
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
caseLevel:
type: boolean
default: false
@@ -30422,6 +31663,9 @@ components:
- yo
- zu
- simple
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
maxVariable:
type: string
description: |
@@ -30434,6 +31678,9 @@ components:
enum:
- punct
- space
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
normalization:
type: boolean
default: false
@@ -30603,6 +31850,9 @@ components:
- projects
- clusters
- services
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
includePartialMatches:
type: boolean
description: "Flag to control whether usage that matches the filter criteria,\
@@ -30656,6 +31906,9 @@ components:
- Flex Consulting
- Support
- Credits
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
startDate:
type: string
format: date
@@ -30696,9 +31949,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -30752,9 +32007,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -30841,6 +32098,8 @@ components:
- GROUP_CLUSTER_MANAGER
- GROUP_SEARCH_INDEX_EDITOR
- GROUP_STREAM_PROCESSING_OWNER
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
minItems: 1
required:
- desc
@@ -31359,6 +32618,128 @@ components:
- eventTypeName
- id
title: Data Explorer Accessed Events
+ DataExplorerEvent:
+ type: object
+ description: Data Explorer event tracks different Data Explorer operations.
+ 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/DataExplorerEventTypeView"
+ 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
+ sessionId:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies the Data
+ Explorer session associated with the event.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ 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: Data Explorer Events
+ DataExplorerEventTypeView:
+ type: string
+ description: Unique identifier of event type.
+ enum:
+ - DATA_EXPLORER_SESSION_CREATED
+ example: DATA_EXPLORER_SESSION_CREATED
+ title: Data Explorer Event Types
DataFederationAzureCloudProviderConfig:
type: object
description: Configuration for running Data Federation in Azure.
@@ -33248,6 +34629,9 @@ components:
- readWrite
- readWriteAnyDatabase
-
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- databaseName
- roleName
@@ -33274,10 +34658,8 @@ components:
nullable: true
region:
type: string
- description: |-
- Two-letter code that indicates which regional URL MongoDB uses to access the Datadog API.
-
- To learn more about Datadog's regions, see Datadog Sites.
+ description: Two-letter code that indicates which regional URL MongoDB uses
+ to access the Datadog API.
enum:
- US
- EU
@@ -33285,6 +34667,9 @@ components:
- US5
- AP1
- US1_FED
+ externalDocs:
+ description: Datadog regions
+ url: https://docs.datadoghq.com/getting_started/site/
sendCollectionLatencyMetrics:
type: boolean
default: false
@@ -33325,10 +34710,9 @@ components:
datadogRegion:
type: string
default: US
- description: |-
- Datadog region that indicates which API Uniform Resource Locator (URL) to use. The resource requires this parameter when `"notifications.[n].typeName" : "DATADOG"`.
-
- To learn more about Datadog's regions, see Datadog Sites.
+ description: "Datadog region that indicates which API Uniform Resource Locator\
+ \ (URL) to use. The resource requires this parameter when `\"notifications.[n].typeName\"\
+ \ : \"DATADOG\"`."
enum:
- US
- EU
@@ -33336,6 +34720,9 @@ components:
- US5
- AP1
- US1_FED
+ externalDocs:
+ description: Datadog regions
+ url: https://docs.datadoghq.com/getting_started/site/
delayMin:
type: integer
format: int32
@@ -33485,9 +34872,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -33640,9 +35029,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -33779,6 +35170,10 @@ components:
enum:
- OUTSIDE_SERVERLESS_METRIC_THRESHOLD
title: Serverless Event Types
+ - type: string
+ enum:
+ - OUTSIDE_FLEX_METRIC_THRESHOLD
+ title: Flex Metric Event Types
- type: string
enum:
- JOINED_GROUP
@@ -34170,6 +35565,11 @@ components:
- INSIDE_SERVERLESS_METRIC_THRESHOLD
- OUTSIDE_SERVERLESS_METRIC_THRESHOLD
title: Serverless Event Types
+ - type: string
+ enum:
+ - INSIDE_FLEX_METRIC_THRESHOLD
+ - OUTSIDE_FLEX_METRIC_THRESHOLD
+ title: Flex Metric Event Types
- type: string
enum:
- SETUP_SERVERLESS_INITIATED
@@ -34687,6 +36087,9 @@ components:
- monthly
- yearly
- ondemand
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies this backup
@@ -34704,6 +36107,9 @@ components:
- weeks
- months
- years
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
retentionValue:
type: integer
format: int32
@@ -34889,6 +36295,9 @@ components:
- Queued
- Successful
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
stateReason:
$ref: "#/components/schemas/StateReason"
required:
@@ -35027,6 +36436,9 @@ components:
- monthly
- yearly
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies the snapshot.
@@ -35084,6 +36496,9 @@ components:
- onDemand
- scheduled
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
status:
type: string
description: Human-readable label that indicates the stage of the backup
@@ -35094,6 +36509,9 @@ components:
- completed
- failed
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
storageSizeBytes:
type: integer
format: int64
@@ -35107,6 +36525,9 @@ components:
- replicaSet
- shardedCluster
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
title: Replica Set Snapshot
DiskBackupRestoreMember:
type: object
@@ -35172,6 +36593,9 @@ components:
- monthly
- yearly
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies the snapshot.
@@ -35248,6 +36672,9 @@ components:
- onDemand
- scheduled
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
status:
type: string
description: Human-readable label that indicates the stage of the backup
@@ -35258,6 +36685,9 @@ components:
- completed
- failed
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
storageSizeBytes:
type: integer
format: int64
@@ -35271,6 +36701,9 @@ components:
- replicaSet
- shardedCluster
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
title: Sharded Cluster Snapshot
DiskBackupShardedClusterSnapshotMember:
type: object
@@ -35339,6 +36772,9 @@ components:
- monthly
- yearly
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies the snapshot.
@@ -35390,6 +36826,9 @@ components:
- onDemand
- scheduled
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
status:
type: string
description: Human-readable label that indicates the stage of the backup
@@ -35400,6 +36839,9 @@ components:
- completed
- failed
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
storageSizeBytes:
type: integer
format: int64
@@ -35413,6 +36855,9 @@ components:
- replicaSet
- shardedCluster
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
DiskBackupSnapshotAWSExportBucketRequest:
type: object
allOf:
@@ -35669,6 +37114,9 @@ components:
- automated
- download
- pointInTime
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
deliveryUrl:
type: array
description: "One or more Uniform Resource Locators (URLs) that point to\
@@ -35998,6 +37446,7 @@ components:
description: Encryption At Rest Private Endpoint.
oneOf:
- $ref: "#/components/schemas/AzureKeyVaultEARPrivateEndpoint"
+ - $ref: "#/components/schemas/AWSKMSEARPrivateEndpoint"
properties:
cloudProvider:
type: string
@@ -36005,6 +37454,7 @@ components:
the Encryption At Rest private endpoint.
enum:
- AZURE
+ - AWS
readOnly: true
errorMessage:
type: string
@@ -36078,6 +37528,51 @@ components:
- UAE_NORTH
- QATAR_CENTRAL
title: Azure Regions
+ - type: string
+ description: "Physical location where MongoDB Cloud deploys your AWS-hosted\
+ \ MongoDB cluster nodes. The region you choose can affect network latency\
+ \ for clients accessing your databases. When MongoDB Cloud deploys a\
+ \ dedicated cluster, it checks if a VPC or VPC connection exists for\
+ \ that provider and region. If not, MongoDB Cloud creates them as part\
+ \ of the deployment. MongoDB Cloud assigns the VPC a CIDR block. To\
+ \ limit a new VPC peering connection to one CIDR block and region, create\
+ \ the connection first. Deploy the cluster after the connection starts."
+ enum:
+ - US_GOV_WEST_1
+ - US_GOV_EAST_1
+ - US_EAST_1
+ - US_EAST_2
+ - US_WEST_1
+ - US_WEST_2
+ - CA_CENTRAL_1
+ - EU_NORTH_1
+ - EU_WEST_1
+ - EU_WEST_2
+ - EU_WEST_3
+ - EU_CENTRAL_1
+ - EU_CENTRAL_2
+ - AP_EAST_1
+ - AP_NORTHEAST_1
+ - AP_NORTHEAST_2
+ - AP_NORTHEAST_3
+ - AP_SOUTHEAST_1
+ - AP_SOUTHEAST_2
+ - AP_SOUTHEAST_3
+ - AP_SOUTHEAST_4
+ - AP_SOUTH_1
+ - AP_SOUTH_2
+ - SA_EAST_1
+ - CN_NORTH_1
+ - CN_NORTHWEST_1
+ - ME_SOUTH_1
+ - ME_CENTRAL_1
+ - AF_SOUTH_1
+ - EU_SOUTH_1
+ - EU_SOUTH_2
+ - IL_CENTRAL_1
+ - CA_WEST_1
+ - GLOBAL
+ title: AWS Regions
status:
type: string
description: State of the Encryption At Rest private endpoint.
@@ -36182,9 +37677,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -36238,9 +37735,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -36465,6 +37964,10 @@ components:
- DATA_EXPLORER_CRUD_ERROR
- DATA_EXPLORER_CRUD
title: Data Explorer Accessed Event Types
+ - type: string
+ enum:
+ - DATA_EXPLORER_SESSION_CREATED
+ title: Data Explorer Event Types
- type: string
enum:
- CPS_DATA_PROTECTION_ENABLE_REQUESTED
@@ -36584,6 +38087,7 @@ components:
- SSH_KEY_NDS_HOST_ACCESS_ATTEMPT
- SSH_KEY_NDS_HOST_ACCESS_GRANTED
- HOST_SSH_SESSION_ENDED
+ - HOST_X509_CERTIFICATE_CERTIFICATE_GENERATED_FOR_SUPPORT_ACCESS
title: Host Event Types
- type: string
enum:
@@ -36953,6 +38457,11 @@ components:
- INSIDE_SERVERLESS_METRIC_THRESHOLD
- OUTSIDE_SERVERLESS_METRIC_THRESHOLD
title: Serverless Event Types
+ - type: string
+ enum:
+ - INSIDE_FLEX_METRIC_THRESHOLD
+ - OUTSIDE_FLEX_METRIC_THRESHOLD
+ title: Flex Metric Event Types
- type: string
enum:
- SETUP_SERVERLESS_INITIATED
@@ -37321,6 +38830,7 @@ components:
- $ref: "#/components/schemas/BillingEventViewForNdsGroup"
- $ref: "#/components/schemas/ClusterEventViewForNdsGroup"
- $ref: "#/components/schemas/DataExplorerAccessedEventView"
+ - $ref: "#/components/schemas/DataExplorerEvent"
- $ref: "#/components/schemas/FTSIndexAuditView"
- $ref: "#/components/schemas/HostEventViewForNdsGroup"
- $ref: "#/components/schemas/HostMetricEvent"
@@ -38250,6 +39760,9 @@ components:
enum:
- HTTP-POST
- HTTP-REDIRECT
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
responseSignatureAlgorithm:
type: string
description: Signature algorithm that Federated Authentication uses to encrypt
@@ -38257,6 +39770,9 @@ components:
enum:
- SHA-1
- SHA-256
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
slug:
type: string
description: Custom SSO Url for the identity provider.
@@ -38331,6 +39847,9 @@ components:
enum:
- HTTP-POST
- HTTP-REDIRECT
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
responseSignatureAlgorithm:
type: string
description: Signature algorithm that Federated Authentication uses to encrypt
@@ -38338,6 +39857,9 @@ components:
enum:
- SHA-1
- SHA-256
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
slug:
type: string
description: Custom SSO Url for the identity provider.
@@ -38911,6 +40433,93 @@ components:
\ on the cluster. If set to `true`, MongoDB Cloud won't delete the cluster.\
\ If set to `false`, MongoDB Cloud will delete the cluster."
title: Flex Cluster Description Update
+ FlexClusterMetricThreshold:
+ type: object
+ description: "Threshold for the metric that, when exceeded, triggers an alert.\
+ \ The metric threshold pertains to event types which reflects changes of measurements\
+ \ and metrics about the serverless database."
+ discriminator:
+ mapping:
+ FLEX_AVG_COMMAND_EXECUTION_TIME: "#/components/schemas/TimeMetricThresholdView"
+ FLEX_AVG_READ_EXECUTION_TIME: "#/components/schemas/TimeMetricThresholdView"
+ FLEX_AVG_WRITE_EXECUTION_TIME: "#/components/schemas/TimeMetricThresholdView"
+ FLEX_CONNECTIONS: "#/components/schemas/RawMetricThresholdView"
+ FLEX_CONNECTIONS_PERCENT: "#/components/schemas/RawMetricThresholdView"
+ FLEX_DATA_SIZE_TOTAL: "#/components/schemas/DataMetricThresholdView"
+ FLEX_NETWORK_BYTES_IN: "#/components/schemas/DataMetricThresholdView"
+ FLEX_NETWORK_BYTES_OUT: "#/components/schemas/DataMetricThresholdView"
+ FLEX_NETWORK_NUM_REQUESTS: "#/components/schemas/RawMetricThresholdView"
+ FLEX_OPCOUNTER_CMD: "#/components/schemas/RawMetricThresholdView"
+ FLEX_OPCOUNTER_DELETE: "#/components/schemas/RawMetricThresholdView"
+ FLEX_OPCOUNTER_GETMORE: "#/components/schemas/RawMetricThresholdView"
+ FLEX_OPCOUNTER_INSERT: "#/components/schemas/RawMetricThresholdView"
+ FLEX_OPCOUNTER_QUERY: "#/components/schemas/RawMetricThresholdView"
+ FLEX_OPCOUNTER_UPDATE: "#/components/schemas/RawMetricThresholdView"
+ propertyName: metricName
+ properties:
+ metricName:
+ type: string
+ description: Human-readable label that identifies the metric against which
+ MongoDB Cloud checks the configured **metricThreshold.threshold**.
+ mode:
+ type: string
+ description: MongoDB Cloud computes the current metric value as an average.
+ enum:
+ - AVERAGE
+ operator:
+ type: string
+ description: Comparison operator to apply when checking the current metric
+ value.
+ enum:
+ - LESS_THAN
+ - GREATER_THAN
+ threshold:
+ type: number
+ format: double
+ description: "Value of metric that, when exceeded, triggers an alert."
+ units:
+ type: string
+ description: "Element used to express the quantity. This can be an element\
+ \ of time, storage capacity, and the like."
+ enum:
+ - bits
+ - Kbits
+ - Mbits
+ - Gbits
+ - bytes
+ - KB
+ - MB
+ - GB
+ - TB
+ - PB
+ - nsec
+ - msec
+ - sec
+ - min
+ - hours
+ - million minutes
+ - days
+ - requests
+ - 1000 requests
+ - GB seconds
+ - GB hours
+ - GB days
+ - RPU
+ - thousand RPU
+ - million RPU
+ - WPU
+ - thousand WPU
+ - million WPU
+ - count
+ - thousand
+ - million
+ - billion
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
+ required:
+ - metricName
+ title: Flex Cluster Metric Threshold
FlexConnectionStrings20241113:
type: object
description: Collection of Uniform Resource Locators that point to the MongoDB
@@ -38937,6 +40546,90 @@ components:
readOnly: true
readOnly: true
title: Flex Cluster Connection Strings
+ FlexMetricAlertConfigViewForNdsGroup:
+ type: object
+ description: Flex metric alert configuration allows to select which Flex database
+ metrics trigger alerts and how users are notified.
+ properties:
+ created:
+ type: string
+ format: date-time
+ description: Date and time when MongoDB Cloud created the alert configuration.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
+ readOnly: true
+ enabled:
+ type: boolean
+ default: false
+ description: Flag that indicates whether someone enabled this alert configuration
+ for the specified project.
+ eventTypeName:
+ $ref: "#/components/schemas/FlexMetricEventTypeViewAlertable"
+ groupId:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies the project
+ that owns this alert configuration.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ readOnly: true
+ id:
+ type: string
+ description: Unique 24-hexadecimal digit string that identifies this alert
+ configuration.
+ example: 32b6e34b3d91647abb20e7b8
+ maxLength: 24
+ minLength: 24
+ pattern: "^([a-f0-9]{24})$"
+ 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
+ matchers:
+ type: array
+ description: Matching conditions for target resources.
+ items:
+ $ref: "#/components/schemas/AlertMatcher"
+ metricThreshold:
+ $ref: "#/components/schemas/FlexClusterMetricThreshold"
+ notifications:
+ type: array
+ description: List that contains the targets that MongoDB Cloud sends notifications.
+ items:
+ $ref: "#/components/schemas/AlertsNotificationRootForGroup"
+ updated:
+ type: string
+ format: date-time
+ description: Date and time when someone last updated this alert configuration.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
+ readOnly: true
+ required:
+ - eventTypeName
+ - notifications
+ title: Flex Alert Configuration
+ FlexMetricEventTypeViewAlertable:
+ type: string
+ description: Event type that triggers an alert.
+ enum:
+ - OUTSIDE_FLEX_METRIC_THRESHOLD
+ example: OUTSIDE_FLEX_METRIC_THRESHOLD
+ title: Flex Metric Event Types
FlexProviderSettings20241113:
type: object
description: Group of cloud provider settings that configure the provisioned
@@ -39732,9 +41425,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -39791,9 +41486,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -39971,6 +41668,7 @@ components:
- $ref: "#/components/schemas/ReplicaSetAlertConfigViewForNdsGroup"
- $ref: "#/components/schemas/ReplicaSetThresholdAlertConfigViewForNdsGroup"
- $ref: "#/components/schemas/ServerlessMetricAlertConfigViewForNdsGroup"
+ - $ref: "#/components/schemas/FlexMetricAlertConfigViewForNdsGroup"
- $ref: "#/components/schemas/StreamProcessorAlertConfigViewForNdsGroup"
GroupIPAddresses:
type: object
@@ -40387,6 +42085,9 @@ components:
- GROUP_DATA_ACCESS_READ_ONLY
- GROUP_READ_ONLY
- GROUP_SEARCH_INDEX_EDITOR
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
+ - GROUP_DATABASE_ACCESS_ADMIN
uniqueItems: true
GroupService:
type: object
@@ -40433,6 +42134,8 @@ components:
- GROUP_CLUSTER_MANAGER
- GROUP_SEARCH_INDEX_EDITOR
- GROUP_STREAM_PROCESSING_OWNER
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
uniqueItems: true
secrets:
type: array
@@ -40471,6 +42174,8 @@ components:
- GROUP_CLUSTER_MANAGER
- GROUP_SEARCH_INDEX_EDITOR
- GROUP_STREAM_PROCESSING_OWNER
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
secretExpiresAfterHours:
type: integer
format: int32
@@ -40502,6 +42207,8 @@ components:
- GROUP_CLUSTER_MANAGER
- GROUP_SEARCH_INDEX_EDITOR
- GROUP_STREAM_PROCESSING_OWNER
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
uniqueItems: true
required:
- roles
@@ -40536,6 +42243,8 @@ components:
- GROUP_CLUSTER_MANAGER
- GROUP_SEARCH_INDEX_EDITOR
- GROUP_STREAM_PROCESSING_OWNER
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
GroupSettings:
type: object
description: Collection of settings that configures the project.
@@ -40600,6 +42309,9 @@ components:
- GROUP_DATA_ACCESS_READ_ONLY
- GROUP_READ_ONLY
- GROUP_SEARCH_INDEX_EDITOR
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
+ - GROUP_DATABASE_ACCESS_ADMIN
minItems: 1
uniqueItems: true
writeOnly: true
@@ -40657,6 +42369,9 @@ components:
- GROUP_DATA_ACCESS_READ_ONLY
- GROUP_READ_ONLY
- GROUP_SEARCH_INDEX_EDITOR
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
+ - GROUP_DATABASE_ACCESS_ADMIN
readOnly: true
uniqueItems: true
username:
@@ -40772,9 +42487,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -40829,9 +42546,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -41008,6 +42727,7 @@ components:
- SSH_KEY_NDS_HOST_ACCESS_ATTEMPT
- SSH_KEY_NDS_HOST_ACCESS_GRANTED
- HOST_SSH_SESSION_ENDED
+ - HOST_X509_CERTIFICATE_CERTIFICATE_GENERATED_FOR_SUPPORT_ACCESS
example: HOST_DOWN
title: Host Event Types
HostEventTypeViewForNdsGroupAlertable:
@@ -41529,9 +43249,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -41588,9 +43310,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -42140,6 +43864,9 @@ components:
- thousand
- million
- billion
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- metricName
title: Host Metric Threshold
@@ -42193,6 +43920,9 @@ components:
- million
- billion
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
readOnly: true
InboundControlPlaneCloudProviderIPAddresses:
type: object
@@ -44083,9 +45813,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -44142,9 +45874,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -46069,9 +47803,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -46125,9 +47861,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -46159,6 +47897,9 @@ components:
enum:
- collection
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
readOnly: true
Namespaces:
type: object
@@ -46736,6 +48477,8 @@ components:
enum:
- <
- '>'
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA validation
OpsGenie:
type: object
description: Details to integrate one Opsgenie account with one MongoDB Cloud
@@ -49888,6 +51631,9 @@ components:
- string
- uuid
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
order:
type: integer
format: int32
@@ -50425,6 +52171,9 @@ components:
enum:
- http
- file
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
type:
type: string
description: Human-readable label that identifies the service to which you
@@ -50962,9 +52711,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -51021,9 +52772,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -51295,9 +53048,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -51354,9 +53109,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -52122,6 +53879,9 @@ components:
externalDocs:
description: Atlas Search Analyzers
url: https://dochub.mongodb.org/core/analyzers--fts
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
analyzers:
type: array
description: List of user-defined methods to convert database field text
@@ -52184,6 +53944,9 @@ components:
- lucene.thai
- lucene.turkish
- lucene.ukrainian
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
storedSource:
type: object
description: "Flag that indicates whether to store all fields (true) on\
@@ -52236,6 +53999,9 @@ components:
enum:
- search
- vectorSearch
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- collectionName
- database
@@ -52333,6 +54099,9 @@ components:
enum:
- search
- vectorSearch
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
title: Search Index Response
SearchIndexUpdateRequest:
type: object
@@ -52503,6 +54272,9 @@ components:
- lucene.thai
- lucene.turkish
- lucene.ukrainian
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
name:
type: string
description: Label that identifies the synonym definition. Each **synonym.name**
@@ -52689,6 +54461,9 @@ components:
- automated
- download
- pointInTime
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
deliveryUrl:
type: array
description: "One or more Uniform Resource Locators (URLs) that point to\
@@ -52828,6 +54603,9 @@ components:
- weekly
- monthly
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
id:
type: string
description: Unique 24-hexadecimal digit string that identifies the snapshot.
@@ -52867,6 +54645,9 @@ components:
- onDemand
- scheduled
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
status:
type: string
description: Human-readable label that indicates the stage of the backup
@@ -52877,6 +54658,9 @@ components:
- completed
- failed
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
storageSizeBytes:
type: integer
format: int64
@@ -53123,9 +54907,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -53179,9 +54965,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -53270,6 +55058,9 @@ components:
- thousand
- million
- billion
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- metricName
title: Serverless Metric Threshold
@@ -54027,9 +55818,11 @@ components:
type: string
format: date-time
description: Date and time when MongoDB Cloud created the alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
enabled:
type: boolean
@@ -54082,9 +55875,11 @@ components:
type: string
format: date-time
description: Date and time when someone last updated this alert configuration.
- This parameter expresses its value in the ISO 8601 timestamp format
- in UTC.
+ This parameter expresses its value in the ISO 8601 timestamp format in
+ UTC.
+ externalDocs:
+ description: ISO 8601
+ url: https://en.wikipedia.org/wiki/ISO_8601
readOnly: true
required:
- eventTypeName
@@ -54390,6 +56185,9 @@ components:
- Cluster
- Sample
- Https
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
readOnly: true
StreamsDLQ:
type: object
@@ -54785,6 +56583,10 @@ components:
description: The ID of the Private Link connection.
example: 32b6e34b3d91647abb20e7b8
pattern: "^([a-f0-9]{24})$"
+ readOnly: true
+ arn:
+ type: string
+ description: Amazon Resource Name (ARN).
dnsDomain:
type: string
description: Domain name of Privatelink connected cluster.
@@ -54794,10 +56596,15 @@ components:
availability zones.
items:
type: string
+ errorMessage:
+ type: string
+ description: Error message if the state is FAILED.
+ readOnly: true
interfaceEndpointId:
type: string
description: Interface endpoint ID that is created from the service endpoint
ID provided.
+ readOnly: true
links:
type: array
description: "List of one or more Uniform Resource Locators (URLs) that\
@@ -54821,6 +56628,7 @@ components:
state:
type: string
description: State the connection is in.
+ readOnly: true
vendor:
type: string
description: Vendor who manages the Kafka cluster.
@@ -55098,6 +56906,9 @@ components:
enum:
- MongoDB Atlas
readOnly: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
build:
type: string
description: Unique 40-hexadecimal digit hash that identifies the latest
@@ -55912,6 +57723,9 @@ components:
externalDocs:
description: Atlas Search Analyzers
url: https://dochub.mongodb.org/core/analyzers--fts
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
analyzers:
type: array
description: List of user-defined methods to convert database field text
@@ -55980,6 +57794,9 @@ components:
- lucene.thai
- lucene.turkish
- lucene.ukrainian
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
storedSource:
type: object
description: "Flag that indicates whether to store all fields (true) on\
@@ -56482,6 +58299,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- englishPossessive
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: englishPossessive
@@ -56496,6 +58316,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- flattenGraph
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: flattenGraph
@@ -56510,6 +58333,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- porterStemming
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: porterStemming
@@ -56522,6 +58348,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- spanishPluralStemming
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: spanishPluralStemming
@@ -56538,6 +58367,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- stempel
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: stempel
@@ -56618,6 +58450,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- wordDelimiterGraph
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: wordDelimiterGraph
@@ -56631,6 +58466,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- kStemming
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: kStemming
@@ -56850,6 +58688,9 @@ components:
- Support
- Credits
uniqueItems: true
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
usageEndDate:
type: string
format: date
@@ -56955,6 +58796,8 @@ components:
- GROUP_STREAM_PROCESSING_OWNER
- GROUP_OWNER
- GROUP_READ_ONLY
+ - GROUP_BACKUP_MANAGER
+ - GROUP_OBSERVABILITY_VIEWER
userId:
type: string
description: Unique 24-hexadecimal digit string that identifies the organization
@@ -57689,11 +59532,11 @@ components:
nullable: true
secret:
type: string
+ format: password
description: |-
An optional field returned if your webhook is configured with a secret.
**NOTE**: When you view or edit the alert for a webhook notification, the secret appears completely redacted.
- example: '******'
type:
type: string
description: Human-readable label that identifies the service to which you
@@ -57748,15 +59591,18 @@ components:
- WEBHOOK
webhookSecret:
type: string
+ format: password
description: |-
Authentication secret for a webhook-based alert.
Atlas returns this value if you set `"notifications.[n].typeName" :"WEBHOOK"` and either:
* You set `notification.[n].webhookSecret` to a non-empty string
- * You set a default webhookSecret either on the [Integrations](https://www.mongodb.com/docs/atlas/tutorial/third-party-service-integrations/#std-label-third-party-integrations) page, or with the [Integrations API](#tag/Third-Party-Service-Integrations/operation/createIntegration)
+ * You set a default webhookSecret either on the Integrations page, or with the [Integrations API](#tag/Third-Party-Service-Integrations/operation/createIntegration)
**NOTE**: When you view or edit the alert for a webhook notification, the secret appears completely redacted.
- example: '******'
+ externalDocs:
+ description: Integrations page
+ url: https://www.mongodb.com/docs/atlas/tutorial/third-party-service-integrations/#std-label-third-party-integrations
webhookUrl:
type: string
description: |-
@@ -57885,6 +59731,9 @@ components:
type.
enum:
- htmlStrip
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: htmlStrip
@@ -57902,6 +59751,9 @@ components:
type.
enum:
- icuNormalize
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: icuNormalize
@@ -57925,6 +59777,9 @@ components:
type.
enum:
- mapping
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- mappings
- type
@@ -57943,6 +59798,9 @@ components:
type.
enum:
- persian
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: persian
@@ -58046,11 +59904,17 @@ components:
enum:
- omit
- include
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
type:
type: string
description: Human-readable label that identifies this token filter type.
enum:
- asciiFolding
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: asciiFolding
@@ -58079,11 +59943,17 @@ components:
enum:
- omit
- include
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
type:
type: string
description: Human-readable label that identifies this token filter type.
enum:
- daitchMokotoffSoundex
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: daitchMokotoffSoundex
@@ -58109,11 +59979,17 @@ components:
enum:
- omit
- include
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
type:
type: string
description: Human-readable label that identifies this token filter type.
enum:
- edgeGram
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- maxGram
- minGram
@@ -58132,6 +60008,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- icuFolding
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: icuFolding
@@ -58152,11 +60031,17 @@ components:
- nfc
- nfkd
- nfkc
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
type:
type: string
description: Human-readable label that identifies this token filter type.
enum:
- icuNormalizer
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: icuNormalizer
@@ -58179,6 +60064,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- length
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: length
@@ -58191,6 +60079,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- lowercase
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: lowercase
@@ -58215,11 +60106,17 @@ components:
enum:
- omit
- include
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
type:
type: string
description: Human-readable label that identifies this token filter type.
enum:
- nGram
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- maxGram
- minGram
@@ -58237,6 +60134,9 @@ components:
enum:
- all
- first
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
pattern:
type: string
description: Regular expression pattern to apply to each token.
@@ -58249,6 +60149,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- regex
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- matches
- pattern
@@ -58264,6 +60167,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- reverse
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: reverse
@@ -58286,6 +60192,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- shingle
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- maxShingleSize
- minShingleSize
@@ -58327,11 +60236,17 @@ components:
- spanish
- swedish
- turkish
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
type:
type: string
description: Human-readable label that identifies this token filter type.
enum:
- snowballStemming
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- stemmerName
- type
@@ -58357,6 +60272,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- stopword
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- tokens
- type
@@ -58370,6 +60288,9 @@ components:
description: Human-readable label that identifies this token filter type.
enum:
- trim
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: trim
@@ -58392,6 +60313,9 @@ components:
description: Human-readable label that identifies this tokenizer type.
enum:
- edgeGram
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- maxGram
- minGram
@@ -58406,6 +60330,9 @@ components:
description: Human-readable label that identifies this tokenizer type.
enum:
- keyword
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: keyword
@@ -58428,6 +60355,9 @@ components:
description: Human-readable label that identifies this tokenizer type.
enum:
- edgeGram
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- maxGram
- minGram
@@ -58449,6 +60379,9 @@ components:
description: Human-readable label that identifies this tokenizer type.
enum:
- regexCaptureGroup
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- group
- pattern
@@ -58466,6 +60399,9 @@ components:
description: Human-readable label that identifies this tokenizer type.
enum:
- regexSplit
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- pattern
- type
@@ -58488,6 +60424,9 @@ components:
description: Human-readable label that identifies this tokenizer type.
enum:
- standard
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: standard
@@ -58512,6 +60451,9 @@ components:
description: Human-readable label that identifies this tokenizer type.
enum:
- uaxUrlEmail
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: uaxUrlEmail
@@ -58530,6 +60472,9 @@ components:
description: Human-readable label that identifies this tokenizer type.
enum:
- whitespace
+ x-xgen-IPA-exception:
+ xgen-IPA-123-enum-values-must-be-upper-snake-case: Schema predates IPA
+ validation
required:
- type
title: whitespace
diff --git a/openapi/versions.json b/openapi/versions.json
index 791fa200c..2cd8cb25a 100644
--- a/openapi/versions.json
+++ b/openapi/versions.json
@@ -1 +1 @@
-{"versions":{"2.0":["2023-01-01","2023-02-01","2023-10-01","2023-11-15","2024-05-30","2024-08-05","2024-10-23","2024-11-13"],"major":["1.0","2.0"]}}
\ No newline at end of file
+{"versions":{"2.0":["2023-01-01","2023-02-01","2023-10-01","2023-11-15","2024-05-30","2024-08-05","2024-10-23","2024-11-13","2043-01-01"],"major":["1.0","2.0"]}}
\ No newline at end of file
diff --git a/test/example_client_test.go b/test/example_client_test.go
index ed83a6605..917271429 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/v20241113004/admin"
+ "github.com/mongodb/atlas-sdk-go/admin"
)
func ExampleNewClient() {
diff --git a/test/utils_test.go b/test/utils_test.go
index 1279a066c..b82641136 100644
--- a/test/utils_test.go
+++ b/test/utils_test.go
@@ -4,7 +4,7 @@ import (
"testing"
"time"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ "github.com/mongodb/atlas-sdk-go/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 aec068e14..320722f45 100644
--- a/tools/config/go-templates/api_doc.mustache
+++ b/tools/config/go-templates/api_doc.mustache
@@ -29,7 +29,7 @@ import (
"fmt"
"os"
- "go.mongodb.org/atlas-sdk/v20241113004/admin"
+ "github.com/mongodb/atlas-sdk-go/admin"
)
func main() {
diff --git a/tools/config/go-templates/atlas_client.mustache b/tools/config/go-templates/atlas_client.mustache
index 99c4a2a9b..1c1b2af41 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/v20241113004/admin"
+{{! X-XGEN-CUSTOM }}package {{packageName}} // import "github.com/mongodb/atlas-sdk-go/admin"
import (
"errors"
@@ -6,9 +6,9 @@ import (
"strings"
"github.com/mongodb-forks/digest"
- "go.mongodb.org/atlas-sdk/v20241113004/auth"
- "go.mongodb.org/atlas-sdk/v20241113004/auth/clientcredentials"
- "go.mongodb.org/atlas-sdk/v20241113004/internal/core"
+ "github.com/mongodb/atlas-sdk-go/auth"
+ "github.com/mongodb/atlas-sdk-go/auth/clientcredentials"
+ "github.com/mongodb/atlas-sdk-go/internal/core"
)
const (