diff --git a/go.mod b/go.mod index 09546017..cd4ade14 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.20 require ( github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 - github.com/vultr/govultr/v3 v3.6.2 + github.com/vultr/govultr/v3 v3.6.3 golang.org/x/oauth2 v0.17.0 ) diff --git a/go.sum b/go.sum index 14facac9..365777a0 100644 --- a/go.sum +++ b/go.sum @@ -138,8 +138,8 @@ github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IU github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/vultr/govultr/v3 v3.6.2 h1:BlEhb0F8iqQ0LZKF+yhGq8OznVLG6ZI8rhLIh4OkbIU= -github.com/vultr/govultr/v3 v3.6.2/go.mod h1:rt9v2x114jZmmLAE/h5N5jnxTmsK9ewwS2oQZ0UBQzM= +github.com/vultr/govultr/v3 v3.6.3 h1:KYrF39nH+3xmAJ5Zx3nScoXK2I1GKQc74h4fhDEcq/0= +github.com/vultr/govultr/v3 v3.6.3/go.mod h1:rt9v2x114jZmmLAE/h5N5jnxTmsK9ewwS2oQZ0UBQzM= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zclconf/go-cty v1.14.2 h1:kTG7lqmBou0Zkx35r6HJHUQTvaRPr5bIAf3AoHS0izI= diff --git a/vendor/github.com/vultr/govultr/v3/CHANGELOG.md b/vendor/github.com/vultr/govultr/v3/CHANGELOG.md index 401641fc..e5e514fc 100644 --- a/vendor/github.com/vultr/govultr/v3/CHANGELOG.md +++ b/vendor/github.com/vultr/govultr/v3/CHANGELOG.md @@ -1,4 +1,12 @@ # Change Log +## [3.6.3]( https://github.com/vultr/govultr/compare/v3.6.2...v3.6.3) (2024-02-29) +### Bug Fixes +* All: add a json struct tag for the meta links field [PR 298](https://github.com/vultr/govultr/pull/298) +* Startup Scripts: allow empty values in create/update request struct [PR 299](https://github.com/vultr/govultr/pull/299) + +### Automation +* Update codeql runner from v1 to v2 [PR 300](https://github.com/vultr/govultr/pull/300) + ## [v3.6.2](https://github.com/vultr/govultr/compare/v3.6.1...v3.6.2) (2024-02-20) ### Enhancement * Kubernetes: add support for nodepool labels [PR 296](https://github.com/vultr/govultr/pull/296) diff --git a/vendor/github.com/vultr/govultr/v3/govultr.go b/vendor/github.com/vultr/govultr/v3/govultr.go index ebcbe932..11b159c5 100644 --- a/vendor/github.com/vultr/govultr/v3/govultr.go +++ b/vendor/github.com/vultr/govultr/v3/govultr.go @@ -19,7 +19,7 @@ import ( ) const ( - version = "3.6.2" + version = "3.6.3" defaultBase = "https://api.vultr.com" userAgent = "govultr/" + version rateLimit = 500 * time.Millisecond diff --git a/vendor/github.com/vultr/govultr/v3/meta.go b/vendor/github.com/vultr/govultr/v3/meta.go index c361bf95..2b1098a2 100644 --- a/vendor/github.com/vultr/govultr/v3/meta.go +++ b/vendor/github.com/vultr/govultr/v3/meta.go @@ -2,8 +2,8 @@ package govultr // Meta represents the available pagination information type Meta struct { - Total int `json:"total"` - Links *Links + Total int `json:"total"` + Links *Links `json:"links"` } // Links represent the next/previous cursor in your pagination calls diff --git a/vendor/github.com/vultr/govultr/v3/startup_script.go b/vendor/github.com/vultr/govultr/v3/startup_script.go index cacc70b6..4b9900ae 100644 --- a/vendor/github.com/vultr/govultr/v3/startup_script.go +++ b/vendor/github.com/vultr/govultr/v3/startup_script.go @@ -37,9 +37,9 @@ type StartupScript struct { // StartupScriptReq is the user struct for create and update calls type StartupScriptReq struct { - Name string `json:"name"` - Type string `json:"type"` - Script string `json:"script"` + Name string `json:"name,omitempty"` + Type string `json:"type,omitempty"` + Script string `json:"script,omitempty"` } type startupScriptsBase struct { diff --git a/vendor/modules.txt b/vendor/modules.txt index 79b12d1e..0bf4e8b4 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -236,7 +236,7 @@ github.com/vmihailenco/msgpack/v5/msgpcode github.com/vmihailenco/tagparser/v2 github.com/vmihailenco/tagparser/v2/internal github.com/vmihailenco/tagparser/v2/internal/parser -# github.com/vultr/govultr/v3 v3.6.2 +# github.com/vultr/govultr/v3 v3.6.3 ## explicit; go 1.20 github.com/vultr/govultr/v3 # github.com/zclconf/go-cty v1.14.2