Commit Graph

218 Commits

Author SHA1 Message Date
dependabot[bot]
f525ca7975 Bump actions/checkout from 2 to 3.1.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 15:38:14 -04:00
github-actions[bot]
2f1f5b51da [create-pull-request] automated change (#92)
Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
2022-09-15 13:37:19 +10:00
Joshua Spence
830972a518 Fix lint 2022-08-10 11:34:44 +10:00
jeanluc
1ac863de1f Fix type of lte_ext_ant/lte_poe fields (#89) 2022-08-10 11:34:05 +10:00
dependabot[bot]
dd7be9a4f1 Bump golang.org/x/tools from 0.1.11 to 0.1.12 (#87)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.11...v0.1.12)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-10 11:08:30 +10:00
github-actions[bot]
8f0bac78f6 [create-pull-request] automated change (#90)
Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
2022-08-10 11:06:46 +10:00
github-actions[bot]
adcc9a2556 [create-pull-request] automated change (#86)
Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
2022-07-27 11:31:42 +10:00
dependabot[bot]
541d8799ae Bump golang.org/x/tools from 0.1.10 to 0.1.11
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.10...v0.1.11)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-03 10:37:39 -04:00
dependabot[bot]
5fe1cc1b15 Bump github.com/hashicorp/go-version from 1.5.0 to 1.6.0
Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/hashicorp/go-version/releases)
- [Changelog](https://github.com/hashicorp/go-version/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-version/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-version
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-03 10:37:30 -04:00
dependabot[bot]
9452eb5091 Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-03 10:37:21 -04:00
Paul Tyng
4d251731a7 Adjust for 7.1 error handling 2022-07-02 20:13:01 -04:00
dependabot[bot]
6bb9559473 Bump github.com/stretchr/testify from 1.7.4 to 1.7.5 (#81)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.4 to 1.7.5.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.4...v1.7.5)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-25 09:05:33 +10:00
dependabot[bot]
ad74e147a1 Bump github.com/stretchr/testify from 1.7.1 to 1.7.4 (#80)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-25 08:36:38 +10:00
dependabot[bot]
b4ce5a0d5e Bump github.com/hashicorp/go-version from 1.4.0 to 1.5.0 (#76)
Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/hashicorp/go-version/releases)
- [Changelog](https://github.com/hashicorp/go-version/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-version/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-version
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 17:38:29 +10:00
github-actions[bot]
7bb0095ae7 [create-pull-request] automated change (#77)
Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
2022-05-25 17:16:18 +10:00
Joshua Spence
d2cc2013b7 Forgot to run go generate (#75) 2022-05-16 14:48:27 +10:00
Joshua Spence
621d0e78f7 Don't set omitempty on mdns_enabled (#74) 2022-05-16 14:43:17 +10:00
Joshua Spence
09e0556344 Add back mdns_enabled (#73) 2022-05-16 13:56:45 +10:00
github-actions[bot]
85a08e202e [create-pull-request] automated change (#72)
Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
2022-05-13 10:32:05 +10:00
Joshua Spence
d2a3d064ac Fix SettingGlobalAp (#71)
Variable names (or struct fields) cannot start with a number.
2022-05-12 13:48:20 +10:00
github-actions[bot]
0e0a9746aa [create-pull-request] automated change (#70)
Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
2022-05-12 11:52:41 +10:00
dependabot[bot]
a42eb6a918 Bump actions/setup-go from 2 to 3 (#69)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-12 11:51:48 +10:00
dependabot[bot]
0cad300755 Bump actions/cache from 2 to 3 (#66)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-29 12:09:17 +11:00
github-actions[bot]
4bad87d590 [create-pull-request] automated change (#68)
Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
2022-03-29 12:09:06 +11:00
dependabot[bot]
4ac948956e Bump peter-evans/create-pull-request from 3 to 4 (#67)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 13:56:56 +11:00
dependabot[bot]
156c4a8ebe Bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#65)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-17 14:17:53 +11:00
dependabot[bot]
562ad5b798 Bump golang.org/x/tools from 0.1.9 to 0.1.10 (#64)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.9...v0.1.10)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-17 14:17:36 +11:00
github-actions[bot]
9d4150d235 [create-pull-request] automated change (#63)
Co-authored-by: joshuaspence <joshuaspence@users.noreply.github.com>
2022-03-06 09:47:34 +11:00
Joshua Spence
ca31cda3ad Automatically update the controller version (#57)
Create a new GitHub Actions workflow to submit a pull request for new controller versions.
2022-03-06 09:42:24 +11:00
dependabot[bot]
a8ee65a4b5 Bump actions/checkout from 2 to 3 (#62)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 13:00:07 +11:00
dependabot[bot]
a0bb4120d8 Bump golangci/golangci-lint-action from 2 to 3 (#61)
* Bump golangci/golangci-lint-action from 2 to 3

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 2 to 3.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Run `go get` before `golangci-lint`

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Spence <josh@spence.com.au>
2022-02-28 13:49:11 +11:00
Oskar
3e7bd072ea Omit empty NetworkID in account resource (#59)
* Omit empty NetworkID in account

* Run `go generate`

* Fix tests

Co-authored-by: Joshua Spence <josh@joshuaspence.com>
2022-01-31 15:58:42 +11:00
dependabot[bot]
5351452eca Bump golang.org/x/tools from 0.1.8 to 0.1.9 (#60)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.8 to 0.1.9.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.8...v0.1.9)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-31 15:41:37 +11:00
dependabot[bot]
e1fe310f6d Bump github.com/hashicorp/go-version from 1.3.0 to 1.4.0 (#58)
Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/hashicorp/go-version/releases)
- [Changelog](https://github.com/hashicorp/go-version/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-version/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-version
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-06 12:33:34 +11:00
dependabot[bot]
1ad6a13fab Bump golang.org/x/tools from 0.1.7 to 0.1.8 (#56)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.7 to 0.1.8.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.7...v0.1.8)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-21 11:45:47 +11:00
Paul Tyng
bb319b44af Fix generate to use tool 2021-11-21 10:56:54 -05:00
dependabot[bot]
3d8a23e785 Bump golang.org/x/tools from 0.1.6 to 0.1.7 (#51)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.6...v0.1.7)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-29 09:48:10 +10:00
Joshua Spence
ff2854e943 Implement Stringer interface for DeviceState (#49)
* Implement `Stringer` interface for `DeviceState`

If device adoption fails the error message isn't very readable at the moment.

```
Error: unexpected state '10', wanted target '2'.
```

* Use `stringer`
2021-09-24 13:55:12 +10:00
Joshua Spence
124f349da4 Format generated golang with go/format (#48) 2021-09-24 13:17:25 +10: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
Joshua Spence
0cb7d3e514 Add AdoptDevice and ForgetDevice methods (#45)
* Add `AdoptDevice` and `ForgetDevice` methods

* Address comments
2021-09-17 11:16:56 +10:00
Paul Tyng
13d5677bf3 Add controller version to generated files 2021-08-31 09:02:23 -04:00
Johannes Heck
4e9d935af2 fix Ht fieldType for device import 2021-08-18 16:10:47 -04:00
Joshua Spence
a9d0f1de5a Use --latest 2021-08-11 11:40:15 +10:00
Joshua Spence
e27afc6e32 Add --latest flag
Allow using the latest version of the Unifi controller with `--latest`.
2021-08-11 11:40:15 +10:00
Joshua Spence
8f8e19eb2a Don't commit intermediate files
Don't commit the extracted JSON files as well only need the generated `*.generated.go` files.
2021-08-11 11:40:15 +10:00
dependabot[bot]
7ebb3b204f Bump github.com/iancoleman/strcase from 0.1.3 to 0.2.0 (#42)
Bumps [github.com/iancoleman/strcase](https://github.com/iancoleman/strcase) from 0.1.3 to 0.2.0.
- [Release notes](https://github.com/iancoleman/strcase/releases)
- [Commits](https://github.com/iancoleman/strcase/compare/v0.1.3...v0.2.0)

---
updated-dependencies:
- dependency-name: github.com/iancoleman/strcase
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-14 09:32:12 +10:00
Kurt McAlpine
7081791f4f Export fields on SettingMgmtXSshKeys (#41) 2021-07-05 14:51:44 +10:00
Joshua Spence
f06d3401ae Run go generate 2021-06-29 17:43:00 -04:00