Closed richardlock closed 8 years ago
Adding fields preserves backwards compatibility and you've added them to just the objects that support them. We still use go-infoblox in production, but our use is mostly limited to ipv4 host records. Thank you for using and testing the others!
Hi,
Is it possible to add some extra fields to some of the Record Objects, such as View, Comment, etc? I'm using the Create function by supplying a body parameter (e.g.
client.RecordA().Create(values, opts, body)
) and creating the body using a struct:I thought I could supply both a values and a body parameter in the API call, but it will only accept one or the other. If the structs also had the extra fields, it would allow the whole record creation to be done using JSON based on the struct. I think you can only create host records using a body parameter because you can't pass a list of ipv4addrs in the url values. So the RecordAObject struct would look like:
Comment and view are common to the other resources. The RecordHostObject would look like:
I can submit a PR if that would help.
Thanks, Richard