Mateusz Filipowicz
dca894e8e7
feat: use Client interface instead of client struct when interacting with UniFi SDK ( #21 )
...
* feat: use Client interface instead of client struct when interacting with UniFi SDK
Breaking change!
* chore: linting
* chore: linting
2025-02-17 09:38:41 +01:00
Mateusz Filipowicz
d79f581c1f
chore: apply linter fixes
2025-02-09 01:51:47 +01:00
Mateusz Filipowicz
f79f21c4ad
feat: new, more customizable client supporting API Key and user/password authentication
2025-02-09 01:51:47 +01:00
Joshua Spence
8d4ca5f389
Revert "Add controller version to generated files" ( #47 )
...
This reverts commit 13d5677bf3 .
2021-09-24 07:21:34 +10:00
Joshua Spence
7d87194aef
Update to latest controller version ( #46 )
...
* Update to latest controller version
* Fix tests
2021-09-21 23:26:12 +10:00
Paul Tyng
13d5677bf3
Add controller version to generated files
2021-08-31 09:02:23 -04:00
Hendrik "T4cC0re" Meyer
4aed7d703d
Generate UnmarshalJSON to handle emptyStringInt types
...
This commit changes the code generator to generate a `UnmarshalJSON` for each
struct, so that if unmarshalled it properly handles UniFis varying integer values
via the `emptyStringInt` type.
Structs not including a field of `int` type will still have the function generated,
but it will effectively do nothing.
Fixes #18
2021-01-03 13:21:53 -05:00
Paul Tyng
d076e78005
Add context support
2020-03-26 16:12:52 -04:00
Paul Tyng
435ecf9d6f
Initial version
...
Extracted from paultyng/terraform-provider-unifi@ef25893f14
2020-01-10 14:31:12 -05:00