diff --git a/CODEOWNERS b/CODEOWNERS index adc6c648..6dedbe4a 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,2 +1,2 @@ -/.github @Twingate/admins @ekampf @liorr @romankor +/.github @ekampf @liorr @romankor @twingate-blee @bertekintw /docs @Twingate/product diff --git a/go.mod b/go.mod index 2d8e32d8..a6e719e3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Twingate/terraform-provider-twingate +module github.com/Twingate/terraform-provider-twingate/v2 go 1.22 @@ -8,9 +8,9 @@ require ( github.com/hashicorp/go-retryablehttp v0.7.5 github.com/hashicorp/go-uuid v1.0.3 github.com/hashicorp/terraform-plugin-docs v0.18.0 - github.com/hashicorp/terraform-plugin-framework v1.6.1 + github.com/hashicorp/terraform-plugin-framework v1.7.0 github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 - github.com/hashicorp/terraform-plugin-go v0.22.0 + github.com/hashicorp/terraform-plugin-go v0.22.1 github.com/hashicorp/terraform-plugin-testing v1.7.0 github.com/hasura/go-graphql-client v0.12.1 github.com/iancoleman/strcase v0.3.0 @@ -94,10 +94,10 @@ require ( golang.org/x/text v0.14.0 // indirect golang.org/x/tools v0.17.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect - google.golang.org/grpc v1.61.1 // indirect - google.golang.org/protobuf v1.32.0 // indirect - gopkg.in/yaml.v2 v2.3.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect + google.golang.org/grpc v1.62.1 // indirect + google.golang.org/protobuf v1.33.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect nhooyr.io/websocket v1.8.10 // indirect ) diff --git a/go.sum b/go.sum index 3434ba54..475974e2 100644 --- a/go.sum +++ b/go.sum @@ -120,12 +120,12 @@ github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRy github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= github.com/hashicorp/terraform-plugin-docs v0.18.0 h1:2bINhzXc+yDeAcafurshCrIjtdu1XHn9zZ3ISuEhgpk= github.com/hashicorp/terraform-plugin-docs v0.18.0/go.mod h1:iIUfaJpdUmpi+rI42Kgq+63jAjI8aZVTyxp3Bvk9Hg8= -github.com/hashicorp/terraform-plugin-framework v1.6.1 h1:hw2XrmUu8d8jVL52ekxim2IqDc+2Kpekn21xZANARLU= -github.com/hashicorp/terraform-plugin-framework v1.6.1/go.mod h1:aJI+n/hBPhz1J+77GdgNfk5svW12y7fmtxe/5L5IuwI= +github.com/hashicorp/terraform-plugin-framework v1.7.0 h1:wOULbVmfONnJo9iq7/q+iBOBJul5vRovaYJIu2cY/Pw= +github.com/hashicorp/terraform-plugin-framework v1.7.0/go.mod h1:jY9Id+3KbZ17OMpulgnWLSfwxNVYSoYBQFTgsx044CI= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= -github.com/hashicorp/terraform-plugin-go v0.22.0 h1:1OS1Jk5mO0f5hrziWJGXXIxBrMe2j/B8E+DVGw43Xmc= -github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= +github.com/hashicorp/terraform-plugin-go v0.22.1 h1:iTS7WHNVrn7uhe3cojtvWWn83cm2Z6ryIUDTRO0EV7w= +github.com/hashicorp/terraform-plugin-go v0.22.1/go.mod h1:qrjnqRghvQ6KnDbB12XeZ4FluclYwptntoWCr9QaXTI= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh3R4yp6pKksKHcqZx5G8= @@ -346,22 +346,23 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/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-20231106174013-bbf56f31fb17 h1:Jyp0Hsi0bmHXG6k9eATXoYtjd6e2UzZ1SCn/wIupY14= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 h1:AjyfHzEPEFp/NpvfN5g+KDla3EMojjhRVZc1i7cj+oM= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= +google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk= +google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= 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.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= -google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools/gotestsum v1.11.0 h1:A88/QWw7acMjZH1dMe6KZFhw32odUOIjCiAU/Q4n3mI= diff --git a/golangci.yml b/golangci.yml index 4ac2e03a..26cea839 100644 --- a/golangci.yml +++ b/golangci.yml @@ -47,7 +47,7 @@ linters-settings: - "!$test" allow: - $gostd - - github.com/Twingate/terraform-provider-twingate/twingate + - github.com/Twingate/terraform-provider-twingate/v2/twingate - github.com/hasura/go-graphql-client - github.com/hashicorp/ - github.com/iancoleman/strcase diff --git a/main.go b/main.go index e2805d77..af1d3854 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ import ( "flag" "log" - "github.com/Twingate/terraform-provider-twingate/twingate" + "github.com/Twingate/terraform-provider-twingate/v2/twingate" "github.com/hashicorp/terraform-plugin-framework/providerserver" ) diff --git a/twingate/internal/client/connector-tokens.go b/twingate/internal/client/connector-tokens.go index 8da17adf..5aeb7cd9 100644 --- a/twingate/internal/client/connector-tokens.go +++ b/twingate/internal/client/connector-tokens.go @@ -3,8 +3,8 @@ package client import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) const connectorTokensResourceName = "connector tokens" diff --git a/twingate/internal/client/connector.go b/twingate/internal/client/connector.go index efc0d7d6..9bbf00ec 100644 --- a/twingate/internal/client/connector.go +++ b/twingate/internal/client/connector.go @@ -3,8 +3,8 @@ package client import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) func (client *Client) CreateConnector(ctx context.Context, input *model.Connector) (*model.Connector, error) { diff --git a/twingate/internal/client/group.go b/twingate/internal/client/group.go index 5ad23b82..6fa30bb3 100644 --- a/twingate/internal/client/group.go +++ b/twingate/internal/client/group.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) func (client *Client) CreateGroup(ctx context.Context, input *model.Group) (*model.Group, error) { diff --git a/twingate/internal/client/query/connector-read.go b/twingate/internal/client/query/connector-read.go index a2101079..1087cf36 100644 --- a/twingate/internal/client/query/connector-read.go +++ b/twingate/internal/client/query/connector-read.go @@ -1,7 +1,7 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hasura/go-graphql-client" ) diff --git a/twingate/internal/client/query/connector-token-generate.go b/twingate/internal/client/query/connector-token-generate.go index a3201983..289c6c13 100644 --- a/twingate/internal/client/query/connector-token-generate.go +++ b/twingate/internal/client/query/connector-token-generate.go @@ -1,7 +1,7 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) type GenerateConnectorTokens struct { diff --git a/twingate/internal/client/query/connectors-read.go b/twingate/internal/client/query/connectors-read.go index 815e841c..6a735891 100644 --- a/twingate/internal/client/query/connectors-read.go +++ b/twingate/internal/client/query/connectors-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) const CursorConnectors = "connectorsEndCursor" diff --git a/twingate/internal/client/query/group-create.go b/twingate/internal/client/query/group-create.go index 5e3f9d2c..4e6e4621 100644 --- a/twingate/internal/client/query/group-create.go +++ b/twingate/internal/client/query/group-create.go @@ -1,6 +1,6 @@ package query -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" type CreateGroup struct { GroupEntityResponse `graphql:"groupCreate(name: $name, userIds: $userIds, securityPolicyId: $securityPolicyId)"` diff --git a/twingate/internal/client/query/group-read.go b/twingate/internal/client/query/group-read.go index 1b874b22..f87d4d11 100644 --- a/twingate/internal/client/query/group-read.go +++ b/twingate/internal/client/query/group-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) type ReadGroup struct { diff --git a/twingate/internal/client/query/groups-read.go b/twingate/internal/client/query/groups-read.go index 31f42aab..b0460956 100644 --- a/twingate/internal/client/query/groups-read.go +++ b/twingate/internal/client/query/groups-read.go @@ -1,9 +1,9 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) const CursorGroups = "groupsEndCursor" diff --git a/twingate/internal/client/query/query_test.go b/twingate/internal/client/query/query_test.go index 5bec2b09..9f81795e 100644 --- a/twingate/internal/client/query/query_test.go +++ b/twingate/internal/client/query/query_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hasura/go-graphql-client" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/client/query/remote-network-by-id-read.go b/twingate/internal/client/query/remote-network-by-id-read.go index 968d70dc..af327554 100644 --- a/twingate/internal/client/query/remote-network-by-id-read.go +++ b/twingate/internal/client/query/remote-network-by-id-read.go @@ -1,7 +1,7 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) type ReadRemoteNetworkByID struct { diff --git a/twingate/internal/client/query/remote-network-create.go b/twingate/internal/client/query/remote-network-create.go index 7c25bf3b..d027f00e 100644 --- a/twingate/internal/client/query/remote-network-create.go +++ b/twingate/internal/client/query/remote-network-create.go @@ -1,6 +1,6 @@ package query -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" type CreateRemoteNetwork struct { RemoteNetworkEntityResponse `graphql:"remoteNetworkCreate(name: $name, isActive: $isActive, location: $location)"` diff --git a/twingate/internal/client/query/remote-network-update.go b/twingate/internal/client/query/remote-network-update.go index c8aab496..bdda66e8 100644 --- a/twingate/internal/client/query/remote-network-update.go +++ b/twingate/internal/client/query/remote-network-update.go @@ -1,6 +1,6 @@ package query -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" type UpdateRemoteNetwork struct { RemoteNetworkEntityResponse `graphql:"remoteNetworkUpdate(id: $id, name: $name, location: $location)"` diff --git a/twingate/internal/client/query/remote-networks-read.go b/twingate/internal/client/query/remote-networks-read.go index cf6bdc2c..7356624b 100644 --- a/twingate/internal/client/query/remote-networks-read.go +++ b/twingate/internal/client/query/remote-networks-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) const CursorRemoteNetworks = "remoteNetworksEndCursor" diff --git a/twingate/internal/client/query/resource-read.go b/twingate/internal/client/query/resource-read.go index cfd350c0..2451d93f 100644 --- a/twingate/internal/client/query/resource-read.go +++ b/twingate/internal/client/query/resource-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hasura/go-graphql-client" ) diff --git a/twingate/internal/client/query/resources-read.go b/twingate/internal/client/query/resources-read.go index 6e13ad7f..da3b1c74 100644 --- a/twingate/internal/client/query/resources-read.go +++ b/twingate/internal/client/query/resources-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) const CursorResources = "resourcesEndCursor" diff --git a/twingate/internal/client/query/security-policies-read.go b/twingate/internal/client/query/security-policies-read.go index 70e14a3c..97d48443 100644 --- a/twingate/internal/client/query/security-policies-read.go +++ b/twingate/internal/client/query/security-policies-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) const CursorPolicies = "policiesEndCursor" diff --git a/twingate/internal/client/query/security-policy-read.go b/twingate/internal/client/query/security-policy-read.go index f2e37e19..08226b8a 100644 --- a/twingate/internal/client/query/security-policy-read.go +++ b/twingate/internal/client/query/security-policy-read.go @@ -1,7 +1,7 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) type ReadSecurityPolicy struct { diff --git a/twingate/internal/client/query/service-account-create.go b/twingate/internal/client/query/service-account-create.go index e110348e..52cee6b4 100644 --- a/twingate/internal/client/query/service-account-create.go +++ b/twingate/internal/client/query/service-account-create.go @@ -1,6 +1,6 @@ package query -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" type CreateServiceAccount struct { ServiceAccountEntityResponse `graphql:"serviceAccountCreate(name: $name)"` diff --git a/twingate/internal/client/query/service-account-key-create.go b/twingate/internal/client/query/service-account-key-create.go index ab9dfa0e..89c916f8 100644 --- a/twingate/internal/client/query/service-account-key-create.go +++ b/twingate/internal/client/query/service-account-key-create.go @@ -1,7 +1,7 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) type CreateServiceAccountKey struct { diff --git a/twingate/internal/client/query/service-account-key-read.go b/twingate/internal/client/query/service-account-key-read.go index 07e50edf..d86173a9 100644 --- a/twingate/internal/client/query/service-account-key-read.go +++ b/twingate/internal/client/query/service-account-key-read.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) type ReadServiceAccountKey struct { diff --git a/twingate/internal/client/query/service-account-key-update.go b/twingate/internal/client/query/service-account-key-update.go index 036ee950..3137aa18 100644 --- a/twingate/internal/client/query/service-account-key-update.go +++ b/twingate/internal/client/query/service-account-key-update.go @@ -1,7 +1,7 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) type UpdateServiceAccountKey struct { diff --git a/twingate/internal/client/query/service-account-read.go b/twingate/internal/client/query/service-account-read.go index 4b3d833c..e7cb5bd3 100644 --- a/twingate/internal/client/query/service-account-read.go +++ b/twingate/internal/client/query/service-account-read.go @@ -1,6 +1,6 @@ package query -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" type ReadShallowServiceAccount struct { ServiceAccount *gqlServiceAccount `graphql:"serviceAccount(id: $id)"` diff --git a/twingate/internal/client/query/service-account-update.go b/twingate/internal/client/query/service-account-update.go index a00ece75..5ab509d1 100644 --- a/twingate/internal/client/query/service-account-update.go +++ b/twingate/internal/client/query/service-account-update.go @@ -1,6 +1,6 @@ package query -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" type UpdateServiceAccount struct { ServiceAccountEntityResponse `graphql:"serviceAccountUpdate(id: $id, name: $name, addedResourceIds: $addedResourceIds)"` diff --git a/twingate/internal/client/query/service-accounts-read.go b/twingate/internal/client/query/service-accounts-read.go index 1f0f0cc3..92ddf25c 100644 --- a/twingate/internal/client/query/service-accounts-read.go +++ b/twingate/internal/client/query/service-accounts-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hasura/go-graphql-client" ) diff --git a/twingate/internal/client/query/service-accounts-shallow-read.go b/twingate/internal/client/query/service-accounts-shallow-read.go index b8004057..8d59942c 100644 --- a/twingate/internal/client/query/service-accounts-shallow-read.go +++ b/twingate/internal/client/query/service-accounts-shallow-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) type ReadShallowServiceAccounts struct { diff --git a/twingate/internal/client/query/user-create.go b/twingate/internal/client/query/user-create.go index d8c564c0..2f901ea5 100644 --- a/twingate/internal/client/query/user-create.go +++ b/twingate/internal/client/query/user-create.go @@ -1,7 +1,7 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) type CreateUser struct { diff --git a/twingate/internal/client/query/user-read.go b/twingate/internal/client/query/user-read.go index 524df481..6dcca39f 100644 --- a/twingate/internal/client/query/user-read.go +++ b/twingate/internal/client/query/user-read.go @@ -1,7 +1,7 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hasura/go-graphql-client" ) diff --git a/twingate/internal/client/query/user-update.go b/twingate/internal/client/query/user-update.go index b8e68056..a5a7740e 100644 --- a/twingate/internal/client/query/user-update.go +++ b/twingate/internal/client/query/user-update.go @@ -1,6 +1,6 @@ package query -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" type UserRole string type UserStateUpdateInput string diff --git a/twingate/internal/client/query/users-read.go b/twingate/internal/client/query/users-read.go index 1d60e6d4..ea62ddb1 100644 --- a/twingate/internal/client/query/users-read.go +++ b/twingate/internal/client/query/users-read.go @@ -1,8 +1,8 @@ package query import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) const CursorUsers = "usersEndCursor" diff --git a/twingate/internal/client/remote-network.go b/twingate/internal/client/remote-network.go index 0b4e51d2..3b64e92a 100644 --- a/twingate/internal/client/remote-network.go +++ b/twingate/internal/client/remote-network.go @@ -3,8 +3,8 @@ package client import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) type RemoteNetworkLocation string diff --git a/twingate/internal/client/resource.go b/twingate/internal/client/resource.go index 98d257da..74c190ee 100644 --- a/twingate/internal/client/resource.go +++ b/twingate/internal/client/resource.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hasura/go-graphql-client" ) diff --git a/twingate/internal/client/resource_test.go b/twingate/internal/client/resource_test.go index e848e891..fa41c179 100644 --- a/twingate/internal/client/resource_test.go +++ b/twingate/internal/client/resource_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/client/security-policy.go b/twingate/internal/client/security-policy.go index 405e4bd4..8508b237 100644 --- a/twingate/internal/client/security-policy.go +++ b/twingate/internal/client/security-policy.go @@ -4,8 +4,8 @@ import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) const queryReadSecurityPolicies = "readSecurityPolicies" diff --git a/twingate/internal/client/service-account.go b/twingate/internal/client/service-account.go index 7f85163d..4be3eeac 100644 --- a/twingate/internal/client/service-account.go +++ b/twingate/internal/client/service-account.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) const ( diff --git a/twingate/internal/client/service-key.go b/twingate/internal/client/service-key.go index 34e2a88d..8f6f5bba 100644 --- a/twingate/internal/client/service-key.go +++ b/twingate/internal/client/service-key.go @@ -3,8 +3,8 @@ package client import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" ) func (client *Client) CreateServiceKey(ctx context.Context, serviceAccountKey *model.ServiceKey) (*model.ServiceKey, error) { diff --git a/twingate/internal/client/user.go b/twingate/internal/client/user.go index 5fa91d82..69c29d72 100644 --- a/twingate/internal/client/user.go +++ b/twingate/internal/client/user.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) type StringFilter struct { diff --git a/twingate/internal/client/variables.go b/twingate/internal/client/variables.go index e76daa91..59569152 100644 --- a/twingate/internal/client/variables.go +++ b/twingate/internal/client/variables.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hasura/go-graphql-client" ) diff --git a/twingate/internal/model/connector.go b/twingate/internal/model/connector.go index 376f5634..23a78152 100644 --- a/twingate/internal/model/connector.go +++ b/twingate/internal/model/connector.go @@ -1,6 +1,6 @@ package model -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" type Connector struct { ID string diff --git a/twingate/internal/model/group.go b/twingate/internal/model/group.go index 9d6538e0..419badaa 100644 --- a/twingate/internal/model/group.go +++ b/twingate/internal/model/group.go @@ -1,6 +1,6 @@ package model -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" const ( GroupTypeManual = "MANUAL" diff --git a/twingate/internal/model/remote-network.go b/twingate/internal/model/remote-network.go index e6ff7df2..a4e23c1b 100644 --- a/twingate/internal/model/remote-network.go +++ b/twingate/internal/model/remote-network.go @@ -1,6 +1,6 @@ package model -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" const ( LocationAWS = "AWS" diff --git a/twingate/internal/model/resource.go b/twingate/internal/model/resource.go index f0fd960a..30eb2dd8 100644 --- a/twingate/internal/model/resource.go +++ b/twingate/internal/model/resource.go @@ -5,8 +5,8 @@ import ( "strconv" "strings" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" ) const ( diff --git a/twingate/internal/model/security-policy.go b/twingate/internal/model/security-policy.go index 0628ae35..11d5e79e 100644 --- a/twingate/internal/model/security-policy.go +++ b/twingate/internal/model/security-policy.go @@ -1,6 +1,6 @@ package model -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" type SecurityPolicy struct { ID string diff --git a/twingate/internal/model/service-account.go b/twingate/internal/model/service-account.go index ddaed92b..aefb78e1 100644 --- a/twingate/internal/model/service-account.go +++ b/twingate/internal/model/service-account.go @@ -1,6 +1,6 @@ package model -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" type ServiceAccount struct { ID string diff --git a/twingate/internal/model/user.go b/twingate/internal/model/user.go index 02b17c78..4047133c 100644 --- a/twingate/internal/model/user.go +++ b/twingate/internal/model/user.go @@ -1,6 +1,6 @@ package model -import "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" +import "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" const ( UserRoleAdmin = "ADMIN" diff --git a/twingate/internal/provider/datasource/connector.go b/twingate/internal/provider/datasource/connector.go index 4583513a..24f8fdf8 100644 --- a/twingate/internal/provider/datasource/connector.go +++ b/twingate/internal/provider/datasource/connector.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/connectors.go b/twingate/internal/provider/datasource/connectors.go index 472ca707..d0212021 100644 --- a/twingate/internal/provider/datasource/connectors.go +++ b/twingate/internal/provider/datasource/connectors.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/converter.go b/twingate/internal/provider/datasource/converter.go index 9ed03a3e..d3e88c5d 100644 --- a/twingate/internal/provider/datasource/converter.go +++ b/twingate/internal/provider/datasource/converter.go @@ -1,8 +1,8 @@ package datasource import ( - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/twingate/internal/provider/datasource/converter_test.go b/twingate/internal/provider/datasource/converter_test.go index 72fda413..d05bd3ae 100644 --- a/twingate/internal/provider/datasource/converter_test.go +++ b/twingate/internal/provider/datasource/converter_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/provider/datasource/group.go b/twingate/internal/provider/datasource/group.go index e5af6cca..f1ad3e49 100644 --- a/twingate/internal/provider/datasource/group.go +++ b/twingate/internal/provider/datasource/group.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/groups.go b/twingate/internal/provider/datasource/groups.go index bf294739..b4475033 100644 --- a/twingate/internal/provider/datasource/groups.go +++ b/twingate/internal/provider/datasource/groups.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-framework-validators/setvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" tfattr "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/twingate/internal/provider/datasource/helper.go b/twingate/internal/provider/datasource/helper.go index a5203ff6..4fc27e96 100644 --- a/twingate/internal/provider/datasource/helper.go +++ b/twingate/internal/provider/datasource/helper.go @@ -3,7 +3,7 @@ package datasource import ( "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" ) diff --git a/twingate/internal/provider/datasource/remote-network.go b/twingate/internal/provider/datasource/remote-network.go index 3270c8d6..5d980f18 100644 --- a/twingate/internal/provider/datasource/remote-network.go +++ b/twingate/internal/provider/datasource/remote-network.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/twingate/internal/provider/datasource/remote-networks.go b/twingate/internal/provider/datasource/remote-networks.go index 5a8d6443..595e3cb3 100644 --- a/twingate/internal/provider/datasource/remote-networks.go +++ b/twingate/internal/provider/datasource/remote-networks.go @@ -6,9 +6,9 @@ import ( "fmt" "strings" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/resource.go b/twingate/internal/provider/datasource/resource.go index c200cd2a..835e6646 100644 --- a/twingate/internal/provider/datasource/resource.go +++ b/twingate/internal/provider/datasource/resource.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/resources.go b/twingate/internal/provider/datasource/resources.go index 719054df..d6289f86 100644 --- a/twingate/internal/provider/datasource/resources.go +++ b/twingate/internal/provider/datasource/resources.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/security-policies.go b/twingate/internal/provider/datasource/security-policies.go index 43291825..f318743c 100644 --- a/twingate/internal/provider/datasource/security-policies.go +++ b/twingate/internal/provider/datasource/security-policies.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/security-policy.go b/twingate/internal/provider/datasource/security-policy.go index cb06ed79..795c4e6e 100644 --- a/twingate/internal/provider/datasource/security-policy.go +++ b/twingate/internal/provider/datasource/security-policy.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/twingate/internal/provider/datasource/service-accounts.go b/twingate/internal/provider/datasource/service-accounts.go index e92d0ae6..8badf233 100644 --- a/twingate/internal/provider/datasource/service-accounts.go +++ b/twingate/internal/provider/datasource/service-accounts.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/user.go b/twingate/internal/provider/datasource/user.go index 6e3532a8..2ec8d851 100644 --- a/twingate/internal/provider/datasource/user.go +++ b/twingate/internal/provider/datasource/user.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/datasource/users.go b/twingate/internal/provider/datasource/users.go index e19f9c1e..f819fb65 100644 --- a/twingate/internal/provider/datasource/users.go +++ b/twingate/internal/provider/datasource/users.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-framework-validators/setvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" tfattr "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/twingate/internal/provider/resource/connector-tokens.go b/twingate/internal/provider/resource/connector-tokens.go index e1943b82..da2e6ccf 100644 --- a/twingate/internal/provider/resource/connector-tokens.go +++ b/twingate/internal/provider/resource/connector-tokens.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/twingate/internal/provider/resource/connector.go b/twingate/internal/provider/resource/connector.go index e9337368..01551f98 100644 --- a/twingate/internal/provider/resource/connector.go +++ b/twingate/internal/provider/resource/connector.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/twingate/internal/provider/resource/converter_test.go b/twingate/internal/provider/resource/converter_test.go index 065c87dc..b1b42e2c 100644 --- a/twingate/internal/provider/resource/converter_test.go +++ b/twingate/internal/provider/resource/converter_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" tfattr "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/stretchr/testify/assert" diff --git a/twingate/internal/provider/resource/group.go b/twingate/internal/provider/resource/group.go index 85476015..7903927f 100644 --- a/twingate/internal/provider/resource/group.go +++ b/twingate/internal/provider/resource/group.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" tfattr "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" diff --git a/twingate/internal/provider/resource/helper.go b/twingate/internal/provider/resource/helper.go index 013817a7..a0e1c969 100644 --- a/twingate/internal/provider/resource/helper.go +++ b/twingate/internal/provider/resource/helper.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" tfattr "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/twingate/internal/provider/resource/remote-network.go b/twingate/internal/provider/resource/remote-network.go index 94f0c108..34d5ebc2 100644 --- a/twingate/internal/provider/resource/remote-network.go +++ b/twingate/internal/provider/resource/remote-network.go @@ -6,9 +6,9 @@ import ( "fmt" "strings" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" diff --git a/twingate/internal/provider/resource/resource-v0.go b/twingate/internal/provider/resource/resource-v0.go index a00c59c9..994bcb1f 100644 --- a/twingate/internal/provider/resource/resource-v0.go +++ b/twingate/internal/provider/resource/resource-v0.go @@ -3,8 +3,8 @@ package resource import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/setvalidator" tfattr "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/twingate/internal/provider/resource/resource-v1.go b/twingate/internal/provider/resource/resource-v1.go index c6dfb855..1cfc2d1f 100644 --- a/twingate/internal/provider/resource/resource-v1.go +++ b/twingate/internal/provider/resource/resource-v1.go @@ -3,8 +3,8 @@ package resource import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/setvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" diff --git a/twingate/internal/provider/resource/resource.go b/twingate/internal/provider/resource/resource.go index 8408847d..8a2ee4cc 100644 --- a/twingate/internal/provider/resource/resource.go +++ b/twingate/internal/provider/resource/resource.go @@ -9,10 +9,10 @@ import ( "regexp" "strings" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-framework-validators/setvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" tfattr "github.com/hashicorp/terraform-plugin-framework/attr" diff --git a/twingate/internal/provider/resource/service-account.go b/twingate/internal/provider/resource/service-account.go index 6d3edb8b..92095cff 100644 --- a/twingate/internal/provider/resource/service-account.go +++ b/twingate/internal/provider/resource/service-account.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/twingate/internal/provider/resource/service-key.go b/twingate/internal/provider/resource/service-key.go index e4343daa..aa46dcf5 100644 --- a/twingate/internal/provider/resource/service-key.go +++ b/twingate/internal/provider/resource/service-key.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/twingate/internal/provider/resource/user.go b/twingate/internal/provider/resource/user.go index 53274216..dd9a46d6 100644 --- a/twingate/internal/provider/resource/user.go +++ b/twingate/internal/provider/resource/user.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/twingate/internal/test/acctests/datasource/connector_test.go b/twingate/internal/test/acctests/datasource/connector_test.go index b4cc961a..fcedfdad 100644 --- a/twingate/internal/test/acctests/datasource/connector_test.go +++ b/twingate/internal/test/acctests/datasource/connector_test.go @@ -6,8 +6,8 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/connectors_test.go b/twingate/internal/test/acctests/datasource/connectors_test.go index 82a9b63f..a51a2302 100644 --- a/twingate/internal/test/acctests/datasource/connectors_test.go +++ b/twingate/internal/test/acctests/datasource/connectors_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/google/go-cmp/cmp" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" diff --git a/twingate/internal/test/acctests/datasource/group_test.go b/twingate/internal/test/acctests/datasource/group_test.go index d77ec314..309d9f63 100644 --- a/twingate/internal/test/acctests/datasource/group_test.go +++ b/twingate/internal/test/acctests/datasource/group_test.go @@ -6,8 +6,8 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/groups_test.go b/twingate/internal/test/acctests/datasource/groups_test.go index 7758db00..5e54a0c2 100644 --- a/twingate/internal/test/acctests/datasource/groups_test.go +++ b/twingate/internal/test/acctests/datasource/groups_test.go @@ -6,9 +6,9 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/remote-network_test.go b/twingate/internal/test/acctests/datasource/remote-network_test.go index 9c276805..2802d628 100644 --- a/twingate/internal/test/acctests/datasource/remote-network_test.go +++ b/twingate/internal/test/acctests/datasource/remote-network_test.go @@ -6,9 +6,9 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/remote-networks_test.go b/twingate/internal/test/acctests/datasource/remote-networks_test.go index 5ce7dfb7..e348ed06 100644 --- a/twingate/internal/test/acctests/datasource/remote-networks_test.go +++ b/twingate/internal/test/acctests/datasource/remote-networks_test.go @@ -2,11 +2,11 @@ package datasource import ( "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/resource_test.go b/twingate/internal/test/acctests/datasource/resource_test.go index 0b961385..0540d596 100644 --- a/twingate/internal/test/acctests/datasource/resource_test.go +++ b/twingate/internal/test/acctests/datasource/resource_test.go @@ -6,9 +6,9 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/resources_test.go b/twingate/internal/test/acctests/datasource/resources_test.go index 7b01de05..aee2f4e6 100644 --- a/twingate/internal/test/acctests/datasource/resources_test.go +++ b/twingate/internal/test/acctests/datasource/resources_test.go @@ -5,9 +5,9 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/security-policies_test.go b/twingate/internal/test/acctests/datasource/security-policies_test.go index 60029e8f..77f94b80 100644 --- a/twingate/internal/test/acctests/datasource/security-policies_test.go +++ b/twingate/internal/test/acctests/datasource/security-policies_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/security-policy_test.go b/twingate/internal/test/acctests/datasource/security-policy_test.go index 6d4298eb..11e3b682 100644 --- a/twingate/internal/test/acctests/datasource/security-policy_test.go +++ b/twingate/internal/test/acctests/datasource/security-policy_test.go @@ -6,7 +6,7 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/service-accounts_test.go b/twingate/internal/test/acctests/datasource/service-accounts_test.go index 6fa142d7..630cb77a 100644 --- a/twingate/internal/test/acctests/datasource/service-accounts_test.go +++ b/twingate/internal/test/acctests/datasource/service-accounts_test.go @@ -6,10 +6,10 @@ import ( "strings" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/user_test.go b/twingate/internal/test/acctests/datasource/user_test.go index 64688942..cb4a2554 100644 --- a/twingate/internal/test/acctests/datasource/user_test.go +++ b/twingate/internal/test/acctests/datasource/user_test.go @@ -6,7 +6,7 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/acctests/datasource/users_test.go b/twingate/internal/test/acctests/datasource/users_test.go index 96ebad91..0dfe296a 100644 --- a/twingate/internal/test/acctests/datasource/users_test.go +++ b/twingate/internal/test/acctests/datasource/users_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/twingate/internal/test/acctests/helper.go b/twingate/internal/test/acctests/helper.go index 40d6e0bb..0e431819 100644 --- a/twingate/internal/test/acctests/helper.go +++ b/twingate/internal/test/acctests/helper.go @@ -11,13 +11,13 @@ import ( "testing" "time" - "github.com/Twingate/terraform-provider-twingate/twingate" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/datasource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/datasource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" "github.com/hashicorp/terraform-plugin-framework/providerserver" "github.com/hashicorp/terraform-plugin-go/tfprotov6" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" diff --git a/twingate/internal/test/acctests/resource/connector-tokens_test.go b/twingate/internal/test/acctests/resource/connector-tokens_test.go index e70ba415..007b477b 100644 --- a/twingate/internal/test/acctests/resource/connector-tokens_test.go +++ b/twingate/internal/test/acctests/resource/connector-tokens_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" ) diff --git a/twingate/internal/test/acctests/resource/connector_test.go b/twingate/internal/test/acctests/resource/connector_test.go index b0ebcd1a..57618a48 100644 --- a/twingate/internal/test/acctests/resource/connector_test.go +++ b/twingate/internal/test/acctests/resource/connector_test.go @@ -5,10 +5,10 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" ) diff --git a/twingate/internal/test/acctests/resource/group_test.go b/twingate/internal/test/acctests/resource/group_test.go index 95f42a83..92547b05 100644 --- a/twingate/internal/test/acctests/resource/group_test.go +++ b/twingate/internal/test/acctests/resource/group_test.go @@ -5,10 +5,10 @@ import ( "strings" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/plancheck" ) diff --git a/twingate/internal/test/acctests/resource/remote-network_test.go b/twingate/internal/test/acctests/resource/remote-network_test.go index 8a2d7239..101bd735 100644 --- a/twingate/internal/test/acctests/resource/remote-network_test.go +++ b/twingate/internal/test/acctests/resource/remote-network_test.go @@ -4,11 +4,11 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/plancheck" ) diff --git a/twingate/internal/test/acctests/resource/resource_test.go b/twingate/internal/test/acctests/resource/resource_test.go index 6797bc97..8b357842 100644 --- a/twingate/internal/test/acctests/resource/resource_test.go +++ b/twingate/internal/test/acctests/resource/resource_test.go @@ -6,11 +6,11 @@ import ( "strings" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/plancheck" "github.com/stretchr/testify/assert" diff --git a/twingate/internal/test/acctests/resource/service-account_test.go b/twingate/internal/test/acctests/resource/service-account_test.go index a1273390..a9448bd8 100644 --- a/twingate/internal/test/acctests/resource/service-account_test.go +++ b/twingate/internal/test/acctests/resource/service-account_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/plancheck" ) diff --git a/twingate/internal/test/acctests/resource/service-key_test.go b/twingate/internal/test/acctests/resource/service-key_test.go index a2de0c08..3128f6d7 100644 --- a/twingate/internal/test/acctests/resource/service-key_test.go +++ b/twingate/internal/test/acctests/resource/service-key_test.go @@ -6,11 +6,11 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/plancheck" ) diff --git a/twingate/internal/test/acctests/resource/user_test.go b/twingate/internal/test/acctests/resource/user_test.go index f88064cb..984e4a4b 100644 --- a/twingate/internal/test/acctests/resource/user_test.go +++ b/twingate/internal/test/acctests/resource/user_test.go @@ -5,11 +5,11 @@ import ( "regexp" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test/acctests" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test/acctests" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/plancheck" ) diff --git a/twingate/internal/test/attrs/helper_test.go b/twingate/internal/test/attrs/helper_test.go index 67a4d303..a43248e3 100644 --- a/twingate/internal/test/attrs/helper_test.go +++ b/twingate/internal/test/attrs/helper_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client.go b/twingate/internal/test/client.go index 74e5d158..e297e0d9 100644 --- a/twingate/internal/test/client.go +++ b/twingate/internal/test/client.go @@ -4,8 +4,8 @@ import ( "os" "time" - "github.com/Twingate/terraform-provider-twingate/twingate" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" ) const ( diff --git a/twingate/internal/test/client/client_test.go b/twingate/internal/test/client/client_test.go index 21c22a6f..18bf336c 100644 --- a/twingate/internal/test/client/client_test.go +++ b/twingate/internal/test/client/client_test.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/jarcoal/httpmock" ) diff --git a/twingate/internal/test/client/connector_test.go b/twingate/internal/test/client/connector_test.go index 565db6af..c3a55626 100644 --- a/twingate/internal/test/client/connector_test.go +++ b/twingate/internal/test/client/connector_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/errors_test.go b/twingate/internal/test/client/errors_test.go index 3ea44cfc..2d1a67e5 100644 --- a/twingate/internal/test/client/errors_test.go +++ b/twingate/internal/test/client/errors_test.go @@ -3,7 +3,7 @@ package client import ( "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/group_test.go b/twingate/internal/test/client/group_test.go index 768fad23..f9b96d52 100644 --- a/twingate/internal/test/client/group_test.go +++ b/twingate/internal/test/client/group_test.go @@ -6,8 +6,8 @@ import ( "net/http" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/pagination_test.go b/twingate/internal/test/client/pagination_test.go index c659a8e0..8e4701e9 100644 --- a/twingate/internal/test/client/pagination_test.go +++ b/twingate/internal/test/client/pagination_test.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client/query" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client/query" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/remote-network_test.go b/twingate/internal/test/client/remote-network_test.go index 37df276f..e2987cf2 100644 --- a/twingate/internal/test/client/remote-network_test.go +++ b/twingate/internal/test/client/remote-network_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/resource_test.go b/twingate/internal/test/client/resource_test.go index e1e597cd..ff6194bc 100644 --- a/twingate/internal/test/client/resource_test.go +++ b/twingate/internal/test/client/resource_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hasura/go-graphql-client" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" diff --git a/twingate/internal/test/client/security-policy_test.go b/twingate/internal/test/client/security-policy_test.go index 8c647f93..f1353320 100644 --- a/twingate/internal/test/client/security-policy_test.go +++ b/twingate/internal/test/client/security-policy_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/service-account_test.go b/twingate/internal/test/client/service-account_test.go index 43da930c..c827d726 100644 --- a/twingate/internal/test/client/service-account_test.go +++ b/twingate/internal/test/client/service-account_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/service-key_test.go b/twingate/internal/test/client/service-key_test.go index f77843d6..cd7b4dd6 100644 --- a/twingate/internal/test/client/service-key_test.go +++ b/twingate/internal/test/client/service-key_test.go @@ -5,7 +5,7 @@ import ( "net/http" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/user_test.go b/twingate/internal/test/client/user_test.go index f7837859..a0fe8180 100644 --- a/twingate/internal/test/client/user_test.go +++ b/twingate/internal/test/client/user_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/client/users_test.go b/twingate/internal/test/client/users_test.go index 0d2adc0c..b7c31570 100644 --- a/twingate/internal/test/client/users_test.go +++ b/twingate/internal/test/client/users_test.go @@ -5,7 +5,7 @@ import ( "net/http" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/helper.go b/twingate/internal/test/helper.go index 7a00ac9d..21ffd078 100644 --- a/twingate/internal/test/helper.go +++ b/twingate/internal/test/helper.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/hashicorp/terraform-plugin-testing/helper/acctest" ) diff --git a/twingate/internal/test/models/connector_test.go b/twingate/internal/test/models/connector_test.go index 479d379b..75c9be84 100644 --- a/twingate/internal/test/models/connector_test.go +++ b/twingate/internal/test/models/connector_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/models/group_test.go b/twingate/internal/test/models/group_test.go index 4c4a949e..aca6dbc5 100644 --- a/twingate/internal/test/models/group_test.go +++ b/twingate/internal/test/models/group_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/models/remote_network_test.go b/twingate/internal/test/models/remote_network_test.go index e579492e..cd5caec5 100644 --- a/twingate/internal/test/models/remote_network_test.go +++ b/twingate/internal/test/models/remote_network_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/models/resource_test.go b/twingate/internal/test/models/resource_test.go index 3ee1ec24..7be3b265 100644 --- a/twingate/internal/test/models/resource_test.go +++ b/twingate/internal/test/models/resource_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/models/security-policy_test.go b/twingate/internal/test/models/security-policy_test.go index a9785713..b48e85a8 100644 --- a/twingate/internal/test/models/security-policy_test.go +++ b/twingate/internal/test/models/security-policy_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/models/service_account_key_test.go b/twingate/internal/test/models/service_account_key_test.go index 1235ac63..310dea07 100644 --- a/twingate/internal/test/models/service_account_key_test.go +++ b/twingate/internal/test/models/service_account_key_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/models/service_account_test.go b/twingate/internal/test/models/service_account_test.go index 381cf8eb..c1bc23b6 100644 --- a/twingate/internal/test/models/service_account_test.go +++ b/twingate/internal/test/models/service_account_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/models/user_test.go b/twingate/internal/test/models/user_test.go index d1b72681..aadd6c26 100644 --- a/twingate/internal/test/models/user_test.go +++ b/twingate/internal/test/models/user_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/model" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/model" "github.com/stretchr/testify/assert" ) diff --git a/twingate/internal/test/sweepers/connector_test.go b/twingate/internal/test/sweepers/connector_test.go index 4c0c1da7..c4bb342e 100644 --- a/twingate/internal/test/sweepers/connector_test.go +++ b/twingate/internal/test/sweepers/connector_test.go @@ -3,10 +3,10 @@ package sweepers import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/sweepers/group_test.go b/twingate/internal/test/sweepers/group_test.go index 741e601f..0db065cb 100644 --- a/twingate/internal/test/sweepers/group_test.go +++ b/twingate/internal/test/sweepers/group_test.go @@ -3,7 +3,7 @@ package sweepers import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/sweepers/remote-network_test.go b/twingate/internal/test/sweepers/remote-network_test.go index 5254291e..77bc5990 100644 --- a/twingate/internal/test/sweepers/remote-network_test.go +++ b/twingate/internal/test/sweepers/remote-network_test.go @@ -3,7 +3,7 @@ package sweepers import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/sweepers/resource_test.go b/twingate/internal/test/sweepers/resource_test.go index d69bea1c..2a60d883 100644 --- a/twingate/internal/test/sweepers/resource_test.go +++ b/twingate/internal/test/sweepers/resource_test.go @@ -3,7 +3,7 @@ package sweepers import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/sweepers/service-account_test.go b/twingate/internal/test/sweepers/service-account_test.go index 8ff0a739..cb8f4bca 100644 --- a/twingate/internal/test/sweepers/service-account_test.go +++ b/twingate/internal/test/sweepers/service-account_test.go @@ -4,8 +4,8 @@ import ( "context" "errors" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" sdk "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/sweepers/sweeper_test.go b/twingate/internal/test/sweepers/sweeper_test.go index 711e4768..b2d26993 100644 --- a/twingate/internal/test/sweepers/sweeper_test.go +++ b/twingate/internal/test/sweepers/sweeper_test.go @@ -3,15 +3,15 @@ package sweepers import ( "context" "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/test" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/test" "log" "os" "strings" "testing" "time" - "github.com/Twingate/terraform-provider-twingate/twingate" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" + "github.com/Twingate/terraform-provider-twingate/v2/twingate" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/sweepers/user_test.go b/twingate/internal/test/sweepers/user_test.go index 9a49515a..5b791cd9 100644 --- a/twingate/internal/test/sweepers/user_test.go +++ b/twingate/internal/test/sweepers/user_test.go @@ -3,8 +3,8 @@ package sweepers import ( "context" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - twingate "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + twingate "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/twingate/internal/test/utils/utils_test.go b/twingate/internal/test/utils/utils_test.go index 375fe6a7..c92c83f6 100644 --- a/twingate/internal/test/utils/utils_test.go +++ b/twingate/internal/test/utils/utils_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/stretchr/testify/assert" ) diff --git a/twingate/provider.go b/twingate/provider.go index 6e63c770..699591b3 100644 --- a/twingate/provider.go +++ b/twingate/provider.go @@ -7,10 +7,10 @@ import ( "strconv" "time" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/attr" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/client" - twingateDatasource "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/datasource" - twingateResource "github.com/Twingate/terraform-provider-twingate/twingate/internal/provider/resource" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/attr" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/client" + twingateDatasource "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/datasource" + twingateResource "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/provider/resource" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/provider"