ccin2p3 / go-freeipa

A generated golang client for the FreeIPA API.
Other
7 stars 15 forks source link

Dnsrecordfind does not seem to work #18

Open kamilner opened 4 months ago

kamilner commented 4 months ago

I am trying to use DnsrecordFind, with no success irrespective of how I try to use it. I have tried the following:

res, err := c.DnsrecordFind("", &freeipa.DnsrecordFindArgs{}, &freeipa.DnsrecordFindOptionalArgs{ Sizelimit: freeipa.Int(0), })

This returns the error:

2024/07/31 16:07:35 RequirementError (3007): 'dnszoneidnsname' is required

That's fair enough.

If I try:

res, err := c.DnsrecordFind("example.com", &freeipa.DnsrecordFindArgs{}, &freeipa.DnsrecordFindOptionalArgs{ Sizelimit: freeipa.Int(0), })

I get the error:

2024/07/31 16:09:19 unexpected value for field Idnsname: [map[__dns_name__:@]] ([]interface {})

If I try:

res, err := c.DnsrecordFind("", &freeipa.DnsrecordFindArgs{}, &freeipa.DnsrecordFindOptionalArgs{
        Dnszoneidnsname: freeipa.String("example.com"),
        Sizelimit:       freeipa.Int(0),
    })

I get the error:

2024/07/31 16:10:53 OverlapError (3006): overlapping arguments and options: ['dnszoneidnsname']

Any pointers?