From 3333da665fe88ac1c18598483bbfd3df79d282b8 Mon Sep 17 00:00:00 2001 From: Volodymyr Manilo Date: Sat, 16 Mar 2024 08:12:35 +0100 Subject: [PATCH] update module path for v2 --- go.mod | 2 +- golangci.yml | 2 +- main.go | 2 +- twingate/internal/client/connector-tokens.go | 4 ++-- twingate/internal/client/connector.go | 4 ++-- twingate/internal/client/group.go | 4 ++-- twingate/internal/client/query/connector-read.go | 2 +- .../client/query/connector-token-generate.go | 2 +- twingate/internal/client/query/connectors-read.go | 4 ++-- twingate/internal/client/query/group-create.go | 2 +- twingate/internal/client/query/group-read.go | 4 ++-- twingate/internal/client/query/groups-read.go | 6 +++--- twingate/internal/client/query/query_test.go | 2 +- .../client/query/remote-network-by-id-read.go | 2 +- .../internal/client/query/remote-network-create.go | 2 +- .../internal/client/query/remote-network-update.go | 2 +- .../internal/client/query/remote-networks-read.go | 4 ++-- twingate/internal/client/query/resource-read.go | 4 ++-- twingate/internal/client/query/resources-read.go | 4 ++-- .../client/query/security-policies-read.go | 4 ++-- .../internal/client/query/security-policy-read.go | 2 +- .../client/query/service-account-create.go | 2 +- .../client/query/service-account-key-create.go | 2 +- .../client/query/service-account-key-read.go | 2 +- .../client/query/service-account-key-update.go | 2 +- .../internal/client/query/service-account-read.go | 2 +- .../client/query/service-account-update.go | 2 +- .../internal/client/query/service-accounts-read.go | 4 ++-- .../client/query/service-accounts-shallow-read.go | 4 ++-- twingate/internal/client/query/user-create.go | 2 +- twingate/internal/client/query/user-read.go | 2 +- twingate/internal/client/query/user-update.go | 2 +- twingate/internal/client/query/users-read.go | 4 ++-- twingate/internal/client/remote-network.go | 4 ++-- twingate/internal/client/resource.go | 6 +++--- twingate/internal/client/resource_test.go | 2 +- twingate/internal/client/security-policy.go | 4 ++-- twingate/internal/client/service-account.go | 6 +++--- twingate/internal/client/service-key.go | 4 ++-- twingate/internal/client/user.go | 6 +++--- twingate/internal/client/variables.go | 4 ++-- twingate/internal/model/connector.go | 2 +- twingate/internal/model/group.go | 2 +- twingate/internal/model/remote-network.go | 2 +- twingate/internal/model/resource.go | 4 ++-- twingate/internal/model/security-policy.go | 2 +- twingate/internal/model/service-account.go | 2 +- twingate/internal/model/user.go | 2 +- twingate/internal/provider/datasource/connector.go | 4 ++-- .../internal/provider/datasource/connectors.go | 4 ++-- twingate/internal/provider/datasource/converter.go | 4 ++-- .../internal/provider/datasource/converter_test.go | 2 +- twingate/internal/provider/datasource/group.go | 4 ++-- twingate/internal/provider/datasource/groups.go | 8 ++++---- twingate/internal/provider/datasource/helper.go | 2 +- .../internal/provider/datasource/remote-network.go | 6 +++--- .../provider/datasource/remote-networks.go | 6 +++--- twingate/internal/provider/datasource/resource.go | 8 ++++---- twingate/internal/provider/datasource/resources.go | 6 +++--- .../provider/datasource/security-policies.go | 4 ++-- .../provider/datasource/security-policy.go | 4 ++-- .../provider/datasource/service-accounts.go | 4 ++-- twingate/internal/provider/datasource/user.go | 8 ++++---- twingate/internal/provider/datasource/users.go | 8 ++++---- .../internal/provider/resource/connector-tokens.go | 4 ++-- twingate/internal/provider/resource/connector.go | 6 +++--- .../internal/provider/resource/converter_test.go | 4 ++-- twingate/internal/provider/resource/group.go | 8 ++++---- twingate/internal/provider/resource/helper.go | 2 +- .../internal/provider/resource/remote-network.go | 6 +++--- twingate/internal/provider/resource/resource.go | 8 ++++---- .../internal/provider/resource/service-account.go | 6 +++--- twingate/internal/provider/resource/service-key.go | 6 +++--- twingate/internal/provider/resource/user.go | 8 ++++---- .../test/acctests/datasource/connector_test.go | 4 ++-- .../test/acctests/datasource/connectors_test.go | 6 +++--- .../test/acctests/datasource/group_test.go | 4 ++-- .../test/acctests/datasource/groups_test.go | 6 +++--- .../acctests/datasource/remote-network_test.go | 6 +++--- .../acctests/datasource/remote-networks_test.go | 6 +++--- .../test/acctests/datasource/resource_test.go | 6 +++--- .../test/acctests/datasource/resources_test.go | 6 +++--- .../acctests/datasource/security-policies_test.go | 4 ++-- .../acctests/datasource/security-policy_test.go | 2 +- .../acctests/datasource/service-accounts_test.go | 8 ++++---- .../internal/test/acctests/datasource/user_test.go | 2 +- .../test/acctests/datasource/users_test.go | 6 +++--- twingate/internal/test/acctests/helper.go | 14 +++++++------- .../acctests/resource/connector-tokens_test.go | 6 +++--- .../test/acctests/resource/connector_test.go | 8 ++++---- .../internal/test/acctests/resource/group_test.go | 8 ++++---- .../test/acctests/resource/remote-network_test.go | 10 +++++----- .../test/acctests/resource/resource_test.go | 10 +++++----- .../test/acctests/resource/service-account_test.go | 8 ++++---- .../test/acctests/resource/service-key_test.go | 10 +++++----- .../internal/test/acctests/resource/user_test.go | 10 +++++----- twingate/internal/test/attrs/helper_test.go | 2 +- twingate/internal/test/client.go | 4 ++-- twingate/internal/test/client/client_test.go | 2 +- twingate/internal/test/client/connector_test.go | 2 +- twingate/internal/test/client/errors_test.go | 2 +- twingate/internal/test/client/group_test.go | 4 ++-- twingate/internal/test/client/pagination_test.go | 2 +- .../internal/test/client/remote-network_test.go | 2 +- twingate/internal/test/client/resource_test.go | 2 +- .../internal/test/client/security-policy_test.go | 2 +- .../internal/test/client/service-account_test.go | 2 +- twingate/internal/test/client/service-key_test.go | 2 +- twingate/internal/test/client/user_test.go | 2 +- twingate/internal/test/client/users_test.go | 2 +- twingate/internal/test/helper.go | 2 +- twingate/internal/test/models/connector_test.go | 4 ++-- twingate/internal/test/models/group_test.go | 4 ++-- .../internal/test/models/remote_network_test.go | 2 +- twingate/internal/test/models/resource_test.go | 4 ++-- .../internal/test/models/security-policy_test.go | 4 ++-- .../test/models/service_account_key_test.go | 2 +- .../internal/test/models/service_account_test.go | 4 ++-- twingate/internal/test/models/user_test.go | 4 ++-- twingate/internal/test/sweepers/connector_test.go | 6 +++--- twingate/internal/test/sweepers/group_test.go | 2 +- .../internal/test/sweepers/remote-network_test.go | 2 +- twingate/internal/test/sweepers/resource_test.go | 2 +- .../internal/test/sweepers/service-account_test.go | 4 ++-- twingate/internal/test/sweepers/sweeper_test.go | 6 +++--- twingate/internal/test/sweepers/user_test.go | 4 ++-- twingate/internal/test/utils/utils_test.go | 2 +- twingate/provider.go | 8 ++++---- 128 files changed, 267 insertions(+), 267 deletions(-) diff --git a/go.mod b/go.mod index 2d8e32d8..7e7ae95b 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 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 83087561..4d4c9d4d 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 ae07541c..dac67f81 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 8990ca17..28265ef0 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 1e013c00..e4af8bb8 100644 --- a/twingate/internal/provider/resource/helper.go +++ b/twingate/internal/provider/resource/helper.go @@ -3,7 +3,7 @@ package resource import ( "fmt" - "github.com/Twingate/terraform-provider-twingate/twingate/internal/utils" + "github.com/Twingate/terraform-provider-twingate/v2/twingate/internal/utils" "github.com/hashicorp/terraform-plugin-framework/diag" ) 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.go b/twingate/internal/provider/resource/resource.go index b730cc71..eef92a60 100644 --- a/twingate/internal/provider/resource/resource.go +++ b/twingate/internal/provider/resource/resource.go @@ -8,10 +8,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/listvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/setvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" 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 89aa7162..4d8f8307 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 4c5395bb..9fed45a8 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"