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

Add provisioning api #343

Merged
merged 25 commits into from
Feb 27, 2020
Merged

Add provisioning api #343

merged 25 commits into from
Feb 27, 2020

Conversation

patrick-tolosa
Copy link
Contributor

  • Implement the Provisioning API.
  • Test coverage 100% of required arguments - (did not implement a test for all optional arguments)
  • Created CRUD apis for USERS, SUB_ACCOUNTS and USER_GROUPS
  • Happy to add more tests if needed

lib/config.js Outdated Show resolved Hide resolved
lib/config.js Outdated Show resolved Hide resolved
lib/config.js Show resolved Hide resolved
lib/network/call_account_api.js Outdated Show resolved Hide resolved
Copy link

@const-cloudinary const-cloudinary left a comment

Choose a reason for hiding this comment

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

See my comments

lib/account.js Outdated Show resolved Hide resolved
.eslintrc.js Outdated Show resolved Hide resolved
lib/api.js Outdated Show resolved Hide resolved
lib/config.js Show resolved Hide resolved
lib/config.js Outdated Show resolved Hide resolved
lib/network/call_account_api.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/network/call_account_api.js Outdated Show resolved Hide resolved
lib/network/call_account_api.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/api_client/execute_request.js Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
@const-cloudinary const-cloudinary changed the title Feature/provisioning api Add provisioning api Feb 25, 2020
Copy link

@jackieros jackieros left a comment

Choose a reason for hiding this comment

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

@patrick-tolosa Even just skimming, a few new issues jumped out at me. After implementing these (assuming you agree with all), feel free to merge. (No need for another review :-)

lib/provisioning/account.js Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
lib/provisioning/account.js Outdated Show resolved Hide resolved
* @param sub_account_id {string} - The ID of the sub-account.
* @param [name] {string} - The display name as shown in the management console.
* @param [cloud_name] {string} - A case-insensitive cloud name comprised of alphanumeric and underscore characters.
* Use with caution - generates an error if the cloud name is not unique across all

Choose a reason for hiding this comment

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

Suggested change
* Use with caution - generates an error if the cloud name is not unique across all

Choose a reason for hiding this comment

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

This is from @MeirFeinberg , he wanted to emphasise since it returns strange error, but yeah can be removed

lib/provisioning/account.js Show resolved Hide resolved
Comment on lines +349 to +350
provisioning_api_key: string;
provisioning_api_secret: string;
Copy link

Choose a reason for hiding this comment

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

Hi @patrick-tolosa! Why these two are required? My type checking start complaining about them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi,

Thanks for bringing this up, I've opened #451 to address it.

Copy link

Choose a reason for hiding this comment

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

thank you!

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

6 participants