From 8b7a09769351b0c9a9730b642f967074927a6d0a Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Thu, 26 Dec 2024 18:34:11 +0100 Subject: [PATCH] chore: bump SDK dependencies to use latest versions --- go.mod | 8 +++++--- go.sum | 16 ++++++++++------ internal/provider/client/client.go | 6 +++--- .../contract_panels_data_source.go | 2 +- .../dedicatedserver/credential_data_source.go | 2 +- .../dedicatedserver/credential_resource.go | 2 +- .../dedicatedserver/installation_resource.go | 2 +- .../notification_setting_bandwidth_resource.go | 2 +- .../notification_setting_datatraffic_resource.go | 2 +- .../provider/dedicatedserver/server_resource.go | 2 +- .../publiccloud/credential_data_source.go | 2 +- .../provider/publiccloud/credential_resource.go | 2 +- internal/provider/publiccloud/image_resource.go | 2 +- .../provider/publiccloud/image_resource_test.go | 2 +- .../provider/publiccloud/images_data_source.go | 2 +- .../publiccloud/images_data_source_test.go | 2 +- .../publiccloud/instance_iso_resource.go | 2 +- .../publiccloud/instance_iso_resource_test.go | 2 +- .../provider/publiccloud/instance_resource.go | 2 +- .../publiccloud/instance_resource_test.go | 2 +- .../publiccloud/instances_data_source.go | 2 +- .../publiccloud/instances_data_source_test.go | 2 +- internal/provider/publiccloud/ip_resource.go | 2 +- .../provider/publiccloud/ip_resource_test.go | 2 +- .../provider/publiccloud/isos_data_source.go | 2 +- .../publiccloud/isos_data_source_test.go | 2 +- .../load_balancer_listener_resource.go | 2 +- .../load_balancer_listener_resource_test.go | 2 +- .../load_balancer_listeners_data_source.go | 2 +- .../publiccloud/load_balancer_resource.go | 2 +- .../publiccloud/load_balancer_resource_test.go | 2 +- .../publiccloud/load_balancers_data_source.go | 2 +- .../publiccloud/target_group_resource.go | 2 +- .../publiccloud/target_group_resource_test.go | 2 +- .../publiccloud/target_groups_data_source.go | 2 +- internal/utils/api.go | 6 +++--- internal/utils/api_test.go | 4 ++-- internal/utils/value_adapters_test.go | 2 +- 38 files changed, 56 insertions(+), 50 deletions(-) diff --git a/go.mod b/go.mod index 4a5e4b16..0d9bb5d6 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,9 @@ require ( github.com/hashicorp/terraform-plugin-go v0.25.0 github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/hashicorp/terraform-plugin-testing v1.11.0 - github.com/leaseweb/leaseweb-go-sdk/v3 v3.2.0 + github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20241227103802-e351aa7f2aa3 + github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241227103802-e351aa7f2aa3 + github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241227103802-e351aa7f2aa3 github.com/stretchr/testify v1.10.0 ) @@ -61,9 +63,9 @@ require ( golang.org/x/text v0.21.0 // indirect golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 // indirect google.golang.org/grpc v1.69.2 // indirect - google.golang.org/protobuf v1.36.0 // indirect + google.golang.org/protobuf v1.36.1 // indirect gopkg.in/validator.v2 v2.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 4bf065dc..e7fc1dfc 100644 --- a/go.sum +++ b/go.sum @@ -110,8 +110,12 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/leaseweb/leaseweb-go-sdk/v3 v3.2.0 h1:7yw3TcU/gmtujieBdiQ0S7y803PgqkuYG4+ONAX0bmo= -github.com/leaseweb/leaseweb-go-sdk/v3 v3.2.0/go.mod h1:PMSo8i57KR7k2RlS2K0OH1dKf5FHxOY3eDzXBZ69Lig= +github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20241227103802-e351aa7f2aa3 h1:xux6lvSXeYrvpS3v68ARxAI3RkrpFXCOGAXvg6r4igc= +github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20241227103802-e351aa7f2aa3/go.mod h1:8c8VAxXnjCxuUEss0Unrd5NB9o7oAkOPeORCs58y76s= +github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241227103802-e351aa7f2aa3 h1:37L0YwZTZiA4T7FtXb5/Uaf2ZQ2YenEb9tBnENZeFyI= +github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241227103802-e351aa7f2aa3/go.mod h1:ntxqh2fT7XDwjPLNsWtq6tTjwjL/75llxnbzEZvvzIo= +github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241227103802-e351aa7f2aa3 h1:MAA1giF7c1m1ixVt0GCw5V1gVSBsbM9DEfAWDYXicDs= +github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241227103802-e351aa7f2aa3/go.mod h1:AYJsx8WlHYQXRAzEMuXzuApwIctcLPFazfAo9uy6ogY= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= @@ -220,14 +224,14 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484 h1:Z7FRVJPSMaHQxD0uXU8WdgFh8PseLM8Q8NzhnpMrBhQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA= google.golang.org/grpc v1.69.2 h1:U3S9QEtbXC0bYNvRtcoklF3xGtLViumSYxWykJS+7AU= google.golang.org/grpc v1.69.2/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.36.0 h1:mjIs9gYtt56AzC4ZaffQuh88TZurBGhIJMBZGSxNerQ= -google.golang.org/protobuf v1.36.0/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= +google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= diff --git a/internal/provider/client/client.go b/internal/provider/client/client.go index 2cdd3eee..8148cfac 100644 --- a/internal/provider/client/client.go +++ b/internal/provider/client/client.go @@ -2,9 +2,9 @@ package client import ( - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" - "github.com/leaseweb/leaseweb-go-sdk/v3/dns" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dns" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" ) const userAgentBase = "leaseweb-terraform" diff --git a/internal/provider/dedicatedserver/contract_panels_data_source.go b/internal/provider/dedicatedserver/contract_panels_data_source.go index e5a145cc..864ba3ab 100644 --- a/internal/provider/dedicatedserver/contract_panels_data_source.go +++ b/internal/provider/dedicatedserver/contract_panels_data_source.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/dedicatedserver/credential_data_source.go b/internal/provider/dedicatedserver/credential_data_source.go index 56ab7b41..fd8c0ad7 100644 --- a/internal/provider/dedicatedserver/credential_data_source.go +++ b/internal/provider/dedicatedserver/credential_data_source.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/dedicatedserver/credential_resource.go b/internal/provider/dedicatedserver/credential_resource.go index c33e6481..40a115cc 100644 --- a/internal/provider/dedicatedserver/credential_resource.go +++ b/internal/provider/dedicatedserver/credential_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/dedicatedserver/installation_resource.go b/internal/provider/dedicatedserver/installation_resource.go index 2c0b1894..0edd97e7 100644 --- a/internal/provider/dedicatedserver/installation_resource.go +++ b/internal/provider/dedicatedserver/installation_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/dedicatedserver/notification_setting_bandwidth_resource.go b/internal/provider/dedicatedserver/notification_setting_bandwidth_resource.go index f0c7f9ba..b710db36 100644 --- a/internal/provider/dedicatedserver/notification_setting_bandwidth_resource.go +++ b/internal/provider/dedicatedserver/notification_setting_bandwidth_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/dedicatedserver/notification_setting_datatraffic_resource.go b/internal/provider/dedicatedserver/notification_setting_datatraffic_resource.go index da9bc28e..f3817098 100644 --- a/internal/provider/dedicatedserver/notification_setting_datatraffic_resource.go +++ b/internal/provider/dedicatedserver/notification_setting_datatraffic_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/dedicatedserver/server_resource.go b/internal/provider/dedicatedserver/server_resource.go index 637e6899..55df4152 100644 --- a/internal/provider/dedicatedserver/server_resource.go +++ b/internal/provider/dedicatedserver/server_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/credential_data_source.go b/internal/provider/publiccloud/credential_data_source.go index 02c00b36..62f4deb2 100644 --- a/internal/provider/publiccloud/credential_data_source.go +++ b/internal/provider/publiccloud/credential_data_source.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/credential_resource.go b/internal/provider/publiccloud/credential_resource.go index 35d61954..014bd091 100644 --- a/internal/provider/publiccloud/credential_resource.go +++ b/internal/provider/publiccloud/credential_resource.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/internal/provider/publiccloud/image_resource.go b/internal/provider/publiccloud/image_resource.go index 092d2ec7..a2afa800 100644 --- a/internal/provider/publiccloud/image_resource.go +++ b/internal/provider/publiccloud/image_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/image_resource_test.go b/internal/provider/publiccloud/image_resource_test.go index ea48777f..374df5ec 100644 --- a/internal/provider/publiccloud/image_resource_test.go +++ b/internal/provider/publiccloud/image_resource_test.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/publiccloud/images_data_source.go b/internal/provider/publiccloud/images_data_source.go index 352bbc57..5c4012d8 100644 --- a/internal/provider/publiccloud/images_data_source.go +++ b/internal/provider/publiccloud/images_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/images_data_source_test.go b/internal/provider/publiccloud/images_data_source_test.go index 75126253..6695dbd5 100644 --- a/internal/provider/publiccloud/images_data_source_test.go +++ b/internal/provider/publiccloud/images_data_source_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" ) diff --git a/internal/provider/publiccloud/instance_iso_resource.go b/internal/provider/publiccloud/instance_iso_resource.go index 41c1352d..d4137d2a 100644 --- a/internal/provider/publiccloud/instance_iso_resource.go +++ b/internal/provider/publiccloud/instance_iso_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/instance_iso_resource_test.go b/internal/provider/publiccloud/instance_iso_resource_test.go index 6f0d7d29..370edaa2 100644 --- a/internal/provider/publiccloud/instance_iso_resource_test.go +++ b/internal/provider/publiccloud/instance_iso_resource_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" ) diff --git a/internal/provider/publiccloud/instance_resource.go b/internal/provider/publiccloud/instance_resource.go index 1c5e9f79..94985ea6 100644 --- a/internal/provider/publiccloud/instance_resource.go +++ b/internal/provider/publiccloud/instance_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/instance_resource_test.go b/internal/provider/publiccloud/instance_resource_test.go index 8c4b6910..3200206d 100644 --- a/internal/provider/publiccloud/instance_resource_test.go +++ b/internal/provider/publiccloud/instance_resource_test.go @@ -6,7 +6,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/publiccloud/instances_data_source.go b/internal/provider/publiccloud/instances_data_source.go index ebffc7e3..58e8e87e 100644 --- a/internal/provider/publiccloud/instances_data_source.go +++ b/internal/provider/publiccloud/instances_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/instances_data_source_test.go b/internal/provider/publiccloud/instances_data_source_test.go index 0b8896f8..ecdc2807 100644 --- a/internal/provider/publiccloud/instances_data_source_test.go +++ b/internal/provider/publiccloud/instances_data_source_test.go @@ -5,7 +5,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" ) diff --git a/internal/provider/publiccloud/ip_resource.go b/internal/provider/publiccloud/ip_resource.go index 7189d6e5..6d829632 100644 --- a/internal/provider/publiccloud/ip_resource.go +++ b/internal/provider/publiccloud/ip_resource.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/ip_resource_test.go b/internal/provider/publiccloud/ip_resource_test.go index 1d4ec5fe..29bef437 100644 --- a/internal/provider/publiccloud/ip_resource_test.go +++ b/internal/provider/publiccloud/ip_resource_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" ) diff --git a/internal/provider/publiccloud/isos_data_source.go b/internal/provider/publiccloud/isos_data_source.go index 261e2fea..292e7700 100644 --- a/internal/provider/publiccloud/isos_data_source.go +++ b/internal/provider/publiccloud/isos_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/isos_data_source_test.go b/internal/provider/publiccloud/isos_data_source_test.go index 4672a80d..a8a081b0 100644 --- a/internal/provider/publiccloud/isos_data_source_test.go +++ b/internal/provider/publiccloud/isos_data_source_test.go @@ -3,7 +3,7 @@ package publiccloud import ( "testing" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" ) diff --git a/internal/provider/publiccloud/load_balancer_listener_resource.go b/internal/provider/publiccloud/load_balancer_listener_resource.go index 6a6853c6..48799bef 100644 --- a/internal/provider/publiccloud/load_balancer_listener_resource.go +++ b/internal/provider/publiccloud/load_balancer_listener_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/load_balancer_listener_resource_test.go b/internal/provider/publiccloud/load_balancer_listener_resource_test.go index 243d19a2..59cf0f2f 100644 --- a/internal/provider/publiccloud/load_balancer_listener_resource_test.go +++ b/internal/provider/publiccloud/load_balancer_listener_resource_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/publiccloud/load_balancer_listeners_data_source.go b/internal/provider/publiccloud/load_balancer_listeners_data_source.go index 6f629384..3307abf2 100644 --- a/internal/provider/publiccloud/load_balancer_listeners_data_source.go +++ b/internal/provider/publiccloud/load_balancer_listeners_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/load_balancer_resource.go b/internal/provider/publiccloud/load_balancer_resource.go index 5483a494..2a120a7e 100644 --- a/internal/provider/publiccloud/load_balancer_resource.go +++ b/internal/provider/publiccloud/load_balancer_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/load_balancer_resource_test.go b/internal/provider/publiccloud/load_balancer_resource_test.go index 1509609a..0bb20b74 100644 --- a/internal/provider/publiccloud/load_balancer_resource_test.go +++ b/internal/provider/publiccloud/load_balancer_resource_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/publiccloud/load_balancers_data_source.go b/internal/provider/publiccloud/load_balancers_data_source.go index ea50dfb2..a3972228 100644 --- a/internal/provider/publiccloud/load_balancers_data_source.go +++ b/internal/provider/publiccloud/load_balancers_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/target_group_resource.go b/internal/provider/publiccloud/target_group_resource.go index ebe510e3..1bbf745b 100644 --- a/internal/provider/publiccloud/target_group_resource.go +++ b/internal/provider/publiccloud/target_group_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/provider/publiccloud/target_group_resource_test.go b/internal/provider/publiccloud/target_group_resource_test.go index d677e068..66b8e08f 100644 --- a/internal/provider/publiccloud/target_group_resource_test.go +++ b/internal/provider/publiccloud/target_group_resource_test.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/publiccloud/target_groups_data_source.go b/internal/provider/publiccloud/target_groups_data_source.go index fb062689..30183dc1 100644 --- a/internal/provider/publiccloud/target_groups_data_source.go +++ b/internal/provider/publiccloud/target_groups_data_source.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/utils" ) diff --git a/internal/utils/api.go b/internal/utils/api.go index aaa55352..d19c9cc8 100644 --- a/internal/utils/api.go +++ b/internal/utils/api.go @@ -7,9 +7,9 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/resource" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" - "github.com/leaseweb/leaseweb-go-sdk/v3/dns" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/dns" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/provider/client" ) diff --git a/internal/utils/api_test.go b/internal/utils/api_test.go index 07fe643d..66f14e44 100644 --- a/internal/utils/api_test.go +++ b/internal/utils/api_test.go @@ -7,8 +7,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/resource" - "github.com/leaseweb/leaseweb-go-sdk/v3/dedicatedserver" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/dedicatedserver" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/leaseweb/terraform-provider-leaseweb/internal/provider/client" "github.com/stretchr/testify/assert" ) diff --git a/internal/utils/value_adapters_test.go b/internal/utils/value_adapters_test.go index 0275fa8f..0c7e955f 100644 --- a/internal/utils/value_adapters_test.go +++ b/internal/utils/value_adapters_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/leaseweb/leaseweb-go-sdk/v3/publiccloud" + "github.com/leaseweb/leaseweb-go-sdk/publiccloud" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" )