From 7be04bb08023fcdb8f8adafe4034518ef63e620b Mon Sep 17 00:00:00 2001 From: Toni Kangas Date: Wed, 14 Feb 2024 13:44:01 +0200 Subject: [PATCH] chore: prepare 7.0.0 release (#296) --- CHANGELOG.md | 5 ++++- examples/upcloud-cli/main.go | 8 ++++---- go.mod | 2 +- upcloud/client/client.go | 2 +- upcloud/request/account.go | 2 +- upcloud/request/account_test.go | 2 +- upcloud/request/firewall.go | 2 +- upcloud/request/firewall_test.go | 2 +- upcloud/request/gateway.go | 2 +- upcloud/request/gateway_test.go | 2 +- upcloud/request/ip_address.go | 2 +- upcloud/request/ip_address_test.go | 2 +- upcloud/request/kubernetes.go | 2 +- upcloud/request/kubernetes_test.go | 2 +- upcloud/request/label.go | 2 +- upcloud/request/load_balancer.go | 2 +- upcloud/request/load_balancer_helpers.go | 2 +- upcloud/request/load_balancer_helpers_test.go | 2 +- upcloud/request/load_balancer_test.go | 2 +- upcloud/request/managed_database.go | 2 +- upcloud/request/managed_database_test.go | 2 +- upcloud/request/managed_object_storage.go | 2 +- upcloud/request/network.go | 2 +- upcloud/request/network_peering.go | 2 +- upcloud/request/network_peering_test.go | 2 +- upcloud/request/network_test.go | 2 +- upcloud/request/permission.go | 2 +- upcloud/request/permission_test.go | 2 +- upcloud/request/request_test.go | 2 +- upcloud/request/server.go | 2 +- upcloud/request/server_group.go | 2 +- upcloud/request/server_group_test.go | 2 +- upcloud/request/server_test.go | 2 +- upcloud/request/storage.go | 2 +- upcloud/request/storage_test.go | 2 +- upcloud/request/tag.go | 2 +- upcloud/request/tag_test.go | 2 +- upcloud/service/account.go | 4 ++-- upcloud/service/account_test.go | 6 +++--- upcloud/service/cloud.go | 2 +- upcloud/service/cloud_test.go | 2 +- upcloud/service/firewall.go | 4 ++-- upcloud/service/firewall_test.go | 4 ++-- upcloud/service/gateway.go | 4 ++-- upcloud/service/gateway_test.go | 4 ++-- upcloud/service/hosts.go | 4 ++-- upcloud/service/hosts_test.go | 2 +- upcloud/service/ip_address.go | 4 ++-- upcloud/service/ip_address_test.go | 4 ++-- upcloud/service/kubernetes.go | 4 ++-- upcloud/service/kubernetes_test.go | 6 +++--- upcloud/service/load_balancer.go | 4 ++-- upcloud/service/load_balancer_test.go | 4 ++-- upcloud/service/managed_database.go | 4 ++-- upcloud/service/managed_database_test.go | 4 ++-- upcloud/service/managed_object_storage.go | 4 ++-- upcloud/service/managed_object_storage_test.go | 4 ++-- upcloud/service/network.go | 4 ++-- upcloud/service/network_peering.go | 4 ++-- upcloud/service/network_peering_test.go | 6 +++--- upcloud/service/network_test.go | 6 +++--- upcloud/service/object_storage.go | 4 ++-- upcloud/service/object_storage_test.go | 4 ++-- upcloud/service/permission.go | 4 ++-- upcloud/service/permission_test.go | 4 ++-- upcloud/service/server.go | 4 ++-- upcloud/service/server_group.go | 4 ++-- upcloud/service/server_group_test.go | 4 ++-- upcloud/service/server_test.go | 4 ++-- upcloud/service/service.go | 4 ++-- upcloud/service/service_test.go | 4 ++-- upcloud/service/storage.go | 4 ++-- upcloud/service/storage_test.go | 4 ++-- upcloud/service/tag.go | 4 ++-- upcloud/service/tag_test.go | 4 ++-- upcloud/service/utils_test.go | 6 +++--- 76 files changed, 123 insertions(+), 120 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 093b3dbb..e133de4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] +## [7.0.0] + ### Added - Managed Load Balancer: `MaintenanceDOW` and `MaintenanceTime` fields for controlling maintenance window occurrence - Kubernetes: support for cluster labels. @@ -414,7 +416,8 @@ See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/) First stable release -[Unreleased]: https://github.com/UpCloudLtd/upcloud-go-api/compare/v6.12.0...HEAD +[Unreleased]: https://github.com/UpCloudLtd/upcloud-go-api/compare/v7.0.0...HEAD +[7.0.0]: https://github.com/UpCloudLtd/upcloud-go-api/compare/v6.12.0...v7.0.0 [6.12.0]: https://github.com/UpCloudLtd/upcloud-go-api/compare/v6.11.0...v6.12.0 [6.11.0]: https://github.com/UpCloudLtd/upcloud-go-api/compare/v6.10.0...v6.11.0 [6.10.0]: https://github.com/UpCloudLtd/upcloud-go-api/compare/v6.9.0...v6.10.0 diff --git a/examples/upcloud-cli/main.go b/examples/upcloud-cli/main.go index 45bbc92c..62665b7c 100644 --- a/examples/upcloud-cli/main.go +++ b/examples/upcloud-cli/main.go @@ -7,10 +7,10 @@ import ( "fmt" "os" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/client" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/service" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/client" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/service" "github.com/davecgh/go-spew/spew" ) diff --git a/go.mod b/go.mod index 6cfae8c4..81382ee0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/UpCloudLtd/upcloud-go-api/v6 +module github.com/UpCloudLtd/upcloud-go-api/v7 go 1.19 diff --git a/upcloud/client/client.go b/upcloud/client/client.go index b53cbe80..b9bb6572 100644 --- a/upcloud/client/client.go +++ b/upcloud/client/client.go @@ -15,7 +15,7 @@ import ( ) const ( - Version string = "6.12.0" + Version string = "7.0.0" APIVersion string = "1.3" APIBaseURL string = "https://api.upcloud.com" diff --git a/upcloud/request/account.go b/upcloud/request/account.go index 27a4ae84..7b8cb51a 100644 --- a/upcloud/request/account.go +++ b/upcloud/request/account.go @@ -3,7 +3,7 @@ package request import ( "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) // CreateSubaccount represents data required to create a sub account diff --git a/upcloud/request/account_test.go b/upcloud/request/account_test.go index 1bd9f25e..c57d9796 100644 --- a/upcloud/request/account_test.go +++ b/upcloud/request/account_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/firewall.go b/upcloud/request/firewall.go index 9e2658fb..2cce550e 100644 --- a/upcloud/request/firewall.go +++ b/upcloud/request/firewall.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) // GetFirewallRulesRequest represents a request for retrieving the firewall rules for a specific server diff --git a/upcloud/request/firewall_test.go b/upcloud/request/firewall_test.go index da8a013f..ee3159ae 100644 --- a/upcloud/request/firewall_test.go +++ b/upcloud/request/firewall_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/gateway.go b/upcloud/request/gateway.go index 03fec48c..dce1373e 100644 --- a/upcloud/request/gateway.go +++ b/upcloud/request/gateway.go @@ -3,7 +3,7 @@ package request import ( "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) const gatewayBaseURL string = "/gateway" diff --git a/upcloud/request/gateway_test.go b/upcloud/request/gateway_test.go index 0e848d76..9782c5a4 100644 --- a/upcloud/request/gateway_test.go +++ b/upcloud/request/gateway_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/upcloud/request/ip_address.go b/upcloud/request/ip_address.go index 615113af..b9211cce 100644 --- a/upcloud/request/ip_address.go +++ b/upcloud/request/ip_address.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) // GetIPAddressDetailsRequest represents a request to retrieve details about a specific IP address diff --git a/upcloud/request/ip_address_test.go b/upcloud/request/ip_address_test.go index f0cc1ff5..646fa511 100644 --- a/upcloud/request/ip_address_test.go +++ b/upcloud/request/ip_address_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/kubernetes.go b/upcloud/request/kubernetes.go index 87cb64dc..d76f98d0 100644 --- a/upcloud/request/kubernetes.go +++ b/upcloud/request/kubernetes.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) const ( diff --git a/upcloud/request/kubernetes_test.go b/upcloud/request/kubernetes_test.go index d2338e2d..fcfeebd6 100644 --- a/upcloud/request/kubernetes_test.go +++ b/upcloud/request/kubernetes_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/label.go b/upcloud/request/label.go index d3761179..e097a209 100644 --- a/upcloud/request/label.go +++ b/upcloud/request/label.go @@ -3,7 +3,7 @@ package request import ( "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) type FilterLabel struct { diff --git a/upcloud/request/load_balancer.go b/upcloud/request/load_balancer.go index 527d11bb..2ddd64dc 100644 --- a/upcloud/request/load_balancer.go +++ b/upcloud/request/load_balancer.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) const loadBalancerCertificateBundleBaseURL string = "/load-balancer/certificate-bundles" diff --git a/upcloud/request/load_balancer_helpers.go b/upcloud/request/load_balancer_helpers.go index 77c8efa2..6678cad3 100644 --- a/upcloud/request/load_balancer_helpers.go +++ b/upcloud/request/load_balancer_helpers.go @@ -1,7 +1,7 @@ package request import ( - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) func NewLoadBalancerTCPRejectAction() upcloud.LoadBalancerAction { diff --git a/upcloud/request/load_balancer_helpers_test.go b/upcloud/request/load_balancer_helpers_test.go index b67fbc49..3a9d3220 100644 --- a/upcloud/request/load_balancer_helpers_test.go +++ b/upcloud/request/load_balancer_helpers_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/load_balancer_test.go b/upcloud/request/load_balancer_test.go index 548b255d..c388313e 100644 --- a/upcloud/request/load_balancer_test.go +++ b/upcloud/request/load_balancer_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/upcloud/request/managed_database.go b/upcloud/request/managed_database.go index 704cd8b0..a3394314 100644 --- a/upcloud/request/managed_database.go +++ b/upcloud/request/managed_database.go @@ -7,7 +7,7 @@ import ( "strconv" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) /* Service Management */ diff --git a/upcloud/request/managed_database_test.go b/upcloud/request/managed_database_test.go index c346a3b5..23a79713 100644 --- a/upcloud/request/managed_database_test.go +++ b/upcloud/request/managed_database_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/managed_object_storage.go b/upcloud/request/managed_object_storage.go index ef215893..e575497d 100644 --- a/upcloud/request/managed_object_storage.go +++ b/upcloud/request/managed_object_storage.go @@ -3,7 +3,7 @@ package request import ( "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) const ( diff --git a/upcloud/request/network.go b/upcloud/request/network.go index 657e6c10..ee6b3587 100644 --- a/upcloud/request/network.go +++ b/upcloud/request/network.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) // GetNetworksRequest represents a rwquest to get all networks diff --git a/upcloud/request/network_peering.go b/upcloud/request/network_peering.go index 20e233cf..0a4ff495 100644 --- a/upcloud/request/network_peering.go +++ b/upcloud/request/network_peering.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) const networkPeeringBaseURL string = "/network-peering" diff --git a/upcloud/request/network_peering_test.go b/upcloud/request/network_peering_test.go index a34ad3c0..de240c6a 100644 --- a/upcloud/request/network_peering_test.go +++ b/upcloud/request/network_peering_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/upcloud/request/network_test.go b/upcloud/request/network_test.go index 12bca2ff..127723a1 100644 --- a/upcloud/request/network_test.go +++ b/upcloud/request/network_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) func TestMarshalGetNetworks(t *testing.T) { diff --git a/upcloud/request/permission.go b/upcloud/request/permission.go index 5910dd8c..36a239f6 100644 --- a/upcloud/request/permission.go +++ b/upcloud/request/permission.go @@ -1,6 +1,6 @@ package request -import "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" +import "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" // GetPermissionsRequest represents a request to get permissions type GetPermissionsRequest struct{} diff --git a/upcloud/request/permission_test.go b/upcloud/request/permission_test.go index dd4510c7..5557f1fe 100644 --- a/upcloud/request/permission_test.go +++ b/upcloud/request/permission_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/request_test.go b/upcloud/request/request_test.go index 261a1ac3..a2c58c43 100644 --- a/upcloud/request/request_test.go +++ b/upcloud/request/request_test.go @@ -3,7 +3,7 @@ package request import ( "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/server.go b/upcloud/request/server.go index bc672263..4973a479 100644 --- a/upcloud/request/server.go +++ b/upcloud/request/server.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) // Constants diff --git a/upcloud/request/server_group.go b/upcloud/request/server_group.go index fd876c0d..54fae0a5 100644 --- a/upcloud/request/server_group.go +++ b/upcloud/request/server_group.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) const ( diff --git a/upcloud/request/server_group_test.go b/upcloud/request/server_group_test.go index 29922938..46ec0046 100644 --- a/upcloud/request/server_group_test.go +++ b/upcloud/request/server_group_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/server_test.go b/upcloud/request/server_test.go index 502dcde6..0d248b65 100644 --- a/upcloud/request/server_test.go +++ b/upcloud/request/server_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/storage.go b/upcloud/request/storage.go index 4befaa69..60f0df99 100644 --- a/upcloud/request/storage.go +++ b/upcloud/request/storage.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) type DeleteStorageBackupsMode string diff --git a/upcloud/request/storage_test.go b/upcloud/request/storage_test.go index 61a7aa35..7054fb5f 100644 --- a/upcloud/request/storage_test.go +++ b/upcloud/request/storage_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/request/tag.go b/upcloud/request/tag.go index cba5d07b..9327baa0 100644 --- a/upcloud/request/tag.go +++ b/upcloud/request/tag.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) // CreateTagRequest represents a request to create a tag and assign it to zero or more servers diff --git a/upcloud/request/tag_test.go b/upcloud/request/tag_test.go index 46bfc7cb..15194161 100644 --- a/upcloud/request/tag_test.go +++ b/upcloud/request/tag_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/service/account.go b/upcloud/service/account.go index d8ada157..d35694ff 100644 --- a/upcloud/service/account.go +++ b/upcloud/service/account.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Account interface { diff --git a/upcloud/service/account_test.go b/upcloud/service/account_test.go index 9ec437ba..fcb4d928 100644 --- a/upcloud/service/account_test.go +++ b/upcloud/service/account_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/client" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/client" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/cassette" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" diff --git a/upcloud/service/cloud.go b/upcloud/service/cloud.go index dfa63dd2..210c2ec0 100644 --- a/upcloud/service/cloud.go +++ b/upcloud/service/cloud.go @@ -3,7 +3,7 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) type Cloud interface { diff --git a/upcloud/service/cloud_test.go b/upcloud/service/cloud_test.go index 79047fa3..1070a837 100644 --- a/upcloud/service/cloud_test.go +++ b/upcloud/service/cloud_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" ) const testFiHel1Zone string = "fi-hel1" diff --git a/upcloud/service/firewall.go b/upcloud/service/firewall.go index 5852f5af..0d5fcc85 100644 --- a/upcloud/service/firewall.go +++ b/upcloud/service/firewall.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Firewall interface { diff --git a/upcloud/service/firewall_test.go b/upcloud/service/firewall_test.go index 701dac7d..75f2bfc9 100644 --- a/upcloud/service/firewall_test.go +++ b/upcloud/service/firewall_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/upcloud/service/gateway.go b/upcloud/service/gateway.go index 90c232d0..2d2d5ad6 100644 --- a/upcloud/service/gateway.go +++ b/upcloud/service/gateway.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Gateway interface { diff --git a/upcloud/service/gateway_test.go b/upcloud/service/gateway_test.go index 15018747..ef8cae40 100644 --- a/upcloud/service/gateway_test.go +++ b/upcloud/service/gateway_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/service/hosts.go b/upcloud/service/hosts.go index b78db24d..24c7532e 100644 --- a/upcloud/service/hosts.go +++ b/upcloud/service/hosts.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Host interface { diff --git a/upcloud/service/hosts_test.go b/upcloud/service/hosts_test.go index 64314bda..0e93890e 100644 --- a/upcloud/service/hosts_test.go +++ b/upcloud/service/hosts_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) // TestGetModifyHosts tests host functionality works correctly with context. diff --git a/upcloud/service/ip_address.go b/upcloud/service/ip_address.go index fc377ef5..1097ae5b 100644 --- a/upcloud/service/ip_address.go +++ b/upcloud/service/ip_address.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type IPAddress interface { diff --git a/upcloud/service/ip_address_test.go b/upcloud/service/ip_address_test.go index 80001d28..bdc7cef4 100644 --- a/upcloud/service/ip_address_test.go +++ b/upcloud/service/ip_address_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/upcloud/service/kubernetes.go b/upcloud/service/kubernetes.go index b124f55c..0ec4bc01 100644 --- a/upcloud/service/kubernetes.go +++ b/upcloud/service/kubernetes.go @@ -7,8 +7,8 @@ import ( "log" "net/http" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Kubernetes interface { diff --git a/upcloud/service/kubernetes_test.go b/upcloud/service/kubernetes_test.go index bfbb0827..34687329 100644 --- a/upcloud/service/kubernetes_test.go +++ b/upcloud/service/kubernetes_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/client" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/client" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/upcloud/service/load_balancer.go b/upcloud/service/load_balancer.go index 41ce3898..5d5d46fa 100644 --- a/upcloud/service/load_balancer.go +++ b/upcloud/service/load_balancer.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type LoadBalancer interface { diff --git a/upcloud/service/load_balancer_test.go b/upcloud/service/load_balancer_test.go index 7fc1bde1..a20c4c1b 100644 --- a/upcloud/service/load_balancer_test.go +++ b/upcloud/service/load_balancer_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/upcloud/service/managed_database.go b/upcloud/service/managed_database.go index 4ea8ba18..458860b2 100644 --- a/upcloud/service/managed_database.go +++ b/upcloud/service/managed_database.go @@ -6,8 +6,8 @@ import ( "errors" "fmt" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) var ErrCancelManagedDatabaseSession = errors.New("managed database session cancellation failed") diff --git a/upcloud/service/managed_database_test.go b/upcloud/service/managed_database_test.go index 2b736533..f3c018bf 100644 --- a/upcloud/service/managed_database_test.go +++ b/upcloud/service/managed_database_test.go @@ -11,8 +11,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) const ( diff --git a/upcloud/service/managed_object_storage.go b/upcloud/service/managed_object_storage.go index a6891535..dcbbcf89 100644 --- a/upcloud/service/managed_object_storage.go +++ b/upcloud/service/managed_object_storage.go @@ -5,8 +5,8 @@ import ( "errors" "net/http" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type ManagedObjectStorage interface { diff --git a/upcloud/service/managed_object_storage_test.go b/upcloud/service/managed_object_storage_test.go index 1a70c8e3..7b3cb22c 100644 --- a/upcloud/service/managed_object_storage_test.go +++ b/upcloud/service/managed_object_storage_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/upcloud/service/network.go b/upcloud/service/network.go index df6c7799..2af21945 100644 --- a/upcloud/service/network.go +++ b/upcloud/service/network.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Network interface { diff --git a/upcloud/service/network_peering.go b/upcloud/service/network_peering.go index 4756ae7a..d1f5053d 100644 --- a/upcloud/service/network_peering.go +++ b/upcloud/service/network_peering.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type NetworkPeering interface { diff --git a/upcloud/service/network_peering_test.go b/upcloud/service/network_peering_test.go index 20d69ea3..4b5a31a7 100644 --- a/upcloud/service/network_peering_test.go +++ b/upcloud/service/network_peering_test.go @@ -8,9 +8,9 @@ import ( "net/http/httptest" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/client" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/client" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/upcloud/service/network_test.go b/upcloud/service/network_test.go index 6cc8d0eb..04c9939a 100644 --- a/upcloud/service/network_test.go +++ b/upcloud/service/network_test.go @@ -7,13 +7,13 @@ import ( "testing" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/client" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/client" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) // TestGetNetworks checks that network details are retrievable diff --git a/upcloud/service/object_storage.go b/upcloud/service/object_storage.go index 5db9b330..82f265cf 100644 --- a/upcloud/service/object_storage.go +++ b/upcloud/service/object_storage.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type ObjectStorage interface { diff --git a/upcloud/service/object_storage_test.go b/upcloud/service/object_storage_test.go index 101db4af..a88715bc 100644 --- a/upcloud/service/object_storage_test.go +++ b/upcloud/service/object_storage_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) // TestGetObjectStorages tests that the GetObjectStorages() function returns proper data diff --git a/upcloud/service/permission.go b/upcloud/service/permission.go index fa29495b..f65c91e9 100644 --- a/upcloud/service/permission.go +++ b/upcloud/service/permission.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Permission interface { diff --git a/upcloud/service/permission_test.go b/upcloud/service/permission_test.go index 0e2d043f..e49c867a 100644 --- a/upcloud/service/permission_test.go +++ b/upcloud/service/permission_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/service/server.go b/upcloud/service/server.go index cba05f1e..c79de059 100644 --- a/upcloud/service/server.go +++ b/upcloud/service/server.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Server interface { diff --git a/upcloud/service/server_group.go b/upcloud/service/server_group.go index 503d8ec7..8c63d0e5 100644 --- a/upcloud/service/server_group.go +++ b/upcloud/service/server_group.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type ServerGroup interface { diff --git a/upcloud/service/server_group_test.go b/upcloud/service/server_group_test.go index 27074919..2c3cc87c 100644 --- a/upcloud/service/server_group_test.go +++ b/upcloud/service/server_group_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/upcloud/service/server_test.go b/upcloud/service/server_test.go index bcf088fe..50191329 100644 --- a/upcloud/service/server_test.go +++ b/upcloud/service/server_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/upcloud/service/service.go b/upcloud/service/service.go index 2e9d7e5c..af775a6f 100644 --- a/upcloud/service/service.go +++ b/upcloud/service/service.go @@ -6,8 +6,8 @@ import ( "fmt" "net/http" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/client" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/client" ) type Client interface { diff --git a/upcloud/service/service_test.go b/upcloud/service/service_test.go index c49db028..7d313075 100644 --- a/upcloud/service/service_test.go +++ b/upcloud/service/service_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/client" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/client" "github.com/stretchr/testify/assert" ) diff --git a/upcloud/service/storage.go b/upcloud/service/storage.go index 2ef573c3..15afd299 100644 --- a/upcloud/service/storage.go +++ b/upcloud/service/storage.go @@ -8,8 +8,8 @@ import ( "net/http" "os" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Storage interface { diff --git a/upcloud/service/storage_test.go b/upcloud/service/storage_test.go index 014fe6de..75a89bf4 100644 --- a/upcloud/service/storage_test.go +++ b/upcloud/service/storage_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) // TestCreateModifyDeleteStorage performs the following actions: diff --git a/upcloud/service/tag.go b/upcloud/service/tag.go index 5a8cfdb6..da20b598 100644 --- a/upcloud/service/tag.go +++ b/upcloud/service/tag.go @@ -3,8 +3,8 @@ package service import ( "context" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" ) type Tag interface { diff --git a/upcloud/service/tag_test.go b/upcloud/service/tag_test.go index 3da7581d..5c2e42ab 100644 --- a/upcloud/service/tag_test.go +++ b/upcloud/service/tag_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/upcloud/service/utils_test.go b/upcloud/service/utils_test.go index 5074be98..c75f20c6 100644 --- a/upcloud/service/utils_test.go +++ b/upcloud/service/utils_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/client" - "github.com/UpCloudLtd/upcloud-go-api/v6/upcloud/request" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/client" + "github.com/UpCloudLtd/upcloud-go-api/v7/upcloud/request" "github.com/dnaeon/go-vcr/cassette" "github.com/dnaeon/go-vcr/recorder" "github.com/stretchr/testify/require"