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

Allow Rename and Tag update calls to specify a ResourceType #35

Closed
wants to merge 1 commit into from
Closed

Conversation

cometfish
Copy link

The Rename() and Tag() api calls were locked to ResourceType.Image (since they were using ApiUrlImgUpV).

I've added a new ResourceType parameter to their respective Params classes (used same code as is already used in DeletionParams), defaulted to ResourceType.Image for backwards compatibility.
The ResourceType parameter is then used when creating the API call for Rename/Tag action.

Hope I've submitted this correctly - I've been using Git for a while, but this is my first attempt at a pull request :)

@tocker
Copy link
Contributor

tocker commented Nov 21, 2017

Changed added manually.
Thanks for the pull request!

@tocker tocker closed this Nov 21, 2017
@cometfish
Copy link
Author

Thanks, I see that you've added it in for Rename, but the Tag call is still stuck on Images only.

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

2 participants