Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLOUDP-126267: Add 'Upgrade One Shared Tier Cluster' endpoint to atlas go client #301

Merged
merged 1 commit into from Jun 29, 2022

Conversation

Razeer123
Copy link
Contributor

Description

I added "Upgrade One Shared Tier Cluster" endpoint to Atlas Go Client, and a test to check the correctness of the implementation.

How to use the endpoint

After creating a cluster that we want to upgrade, the upgrade request should be sent to the following endpoint: https://cloud-dev.mongodb.com/api/atlas/v1.0/groups/{GROUP-ID}/clusters/tenantUpgrade. In the body of the request, there should be an upgraded cluster object. Example body:

{
    "name": "tenantCluster",
    "diskSizeGB": 100,
    "numShards": 1,
    "providerSettings": {
    "providerName": "AWS",
    "instanceSizeName": "M40",
    "regionName": "US_EAST_1"
    },
    "clusterType" : "REPLICASET",
    "replicationFactor": 3,
    "replicationSpecs": [{
    "numShards": 1,
    "regionsConfig": {
        "US_EAST_1": {
        "analyticsNodes": 0,
        "electableNodes": 3,
        "priority": 7,
        "readOnlyNodes": 0
        }
    },
    "zoneName": "Zone 1"
    }],
    "backupEnabled": false,
    "providerBackupEnabled" : true,
    "autoScaling": {
    "diskGBEnabled": true
    }
}

On success, the endpoint should return 200 code with entity containing the result of the upgrade.

Type of change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Required Checklist:

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

@Razeer123 Razeer123 requested a review from a team as a code owner June 29, 2022 09:56
@Razeer123 Razeer123 merged commit a2c8358 into master Jun 29, 2022
@Razeer123 Razeer123 deleted the CLOUDP-126267 branch June 29, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants