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

Adding Cloud Backup endpoints. #51

Merged
merged 5 commits into from
Apr 8, 2024
Merged

Conversation

rsmartins78
Copy link
Contributor

@rsmartins78 rsmartins78 commented Apr 5, 2024

Added:

  • Ability to list all snapshots.
  • Get one snapshot by ID.
  • Request a restore of the snapshot to a target.

Sorry for any mistake, I'm not JS specialist.

@@ -0,0 +1,54 @@
const {getQueryStringFromOptions} = require("mongodb-atlas-api-client/src/helper");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be const {getQueryStringFromOptions} = require("./helper");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

}
export type CreateRestoreSnapshotJobResponse = GetClusterResponse;

export interface Cluster {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be Cluster of Cloudbackup?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@montumodi
Copy link
Owner

Thanks for raising the PR. Could you please update following

  • Readme : with the new method names and links
  • Tests - At the moment code coverage is below 100% and hence it is failing. You can follow tests written for other classes as a ref.

@rsmartins78
Copy link
Contributor Author

Thanks for raising the PR. Could you please update following

  • Readme : with the new method names and links
  • Tests - At the moment code coverage is below 100% and hence it is failing. You can follow tests written for other classes as a ref.

Wrote the readme. I'll check the tests.

@rsmartins78
Copy link
Contributor Author

Thanks for raising the PR. Could you please update following

  • Readme : with the new method names and links
  • Tests - At the moment code coverage is below 100% and hence it is failing. You can follow tests written for other classes as a ref.

added tests

@montumodi
Copy link
Owner

Looks good to me. Will merge and publish a new minor version soon.

@montumodi montumodi merged commit d9e77ee into montumodi:master Apr 8, 2024
3 checks passed
@montumodi
Copy link
Owner

Pushed a new minor version.

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.

2 participants