-
Notifications
You must be signed in to change notification settings - Fork 77
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 generic CRUD metadata by href functions #454
Conversation
Signed-off-by: abarreiro <abarreiro@vmware.com>
…ctor into add-metadata-by-href
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing changelog entry.
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Approved!
Signed-off-by: abarreiro <abarreiro@vmware.com>
…ctor into add-metadata-by-href Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro abarreiro@vmware.com
This PR relates to vmware/terraform-provider-vcd#372, as the goal is to provide CRUD functions for metadata to resources that don't have an associated type, like Storage profiles.
The functions just retrieve an HREF instead, and perform the metadata operation on it.
Another way of doing this would be changing the signature to:
But I followed the approach of having this method associated to
VCDClient
instead. (This is, of course, open to discussion).