Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feature/add-support…
Browse files Browse the repository at this point in the history
…-for-policies-in-resource-access-blocks
  • Loading branch information
vmanilo committed Apr 1, 2024
2 parents e1e9d52 + c284ebf commit d95d3b6
Show file tree
Hide file tree
Showing 132 changed files with 291 additions and 290 deletions.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/.github @Twingate/admins @ekampf @liorr @romankor
/.github @ekampf @liorr @romankor @twingate-blee @bertekintw
/docs @Twingate/product
14 changes: 7 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Twingate/terraform-provider-twingate
module github.com/Twingate/terraform-provider-twingate/v2

go 1.22

Expand All @@ -8,9 +8,9 @@ require (
github.com/hashicorp/go-retryablehttp v0.7.5
github.com/hashicorp/go-uuid v1.0.3
github.com/hashicorp/terraform-plugin-docs v0.18.0
github.com/hashicorp/terraform-plugin-framework v1.6.1
github.com/hashicorp/terraform-plugin-framework v1.7.0
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0
github.com/hashicorp/terraform-plugin-go v0.22.0
github.com/hashicorp/terraform-plugin-go v0.22.1
github.com/hashicorp/terraform-plugin-testing v1.7.0
github.com/hasura/go-graphql-client v0.12.1
github.com/iancoleman/strcase v0.3.0
Expand Down Expand Up @@ -94,10 +94,10 @@ require (
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.17.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/grpc v1.61.1 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
google.golang.org/grpc v1.62.1 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
nhooyr.io/websocket v1.8.10 // indirect
)
23 changes: 12 additions & 11 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRy
github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk=
github.com/hashicorp/terraform-plugin-docs v0.18.0 h1:2bINhzXc+yDeAcafurshCrIjtdu1XHn9zZ3ISuEhgpk=
github.com/hashicorp/terraform-plugin-docs v0.18.0/go.mod h1:iIUfaJpdUmpi+rI42Kgq+63jAjI8aZVTyxp3Bvk9Hg8=
github.com/hashicorp/terraform-plugin-framework v1.6.1 h1:hw2XrmUu8d8jVL52ekxim2IqDc+2Kpekn21xZANARLU=
github.com/hashicorp/terraform-plugin-framework v1.6.1/go.mod h1:aJI+n/hBPhz1J+77GdgNfk5svW12y7fmtxe/5L5IuwI=
github.com/hashicorp/terraform-plugin-framework v1.7.0 h1:wOULbVmfONnJo9iq7/q+iBOBJul5vRovaYJIu2cY/Pw=
github.com/hashicorp/terraform-plugin-framework v1.7.0/go.mod h1:jY9Id+3KbZ17OMpulgnWLSfwxNVYSoYBQFTgsx044CI=
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc=
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg=
github.com/hashicorp/terraform-plugin-go v0.22.0 h1:1OS1Jk5mO0f5hrziWJGXXIxBrMe2j/B8E+DVGw43Xmc=
github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE=
github.com/hashicorp/terraform-plugin-go v0.22.1 h1:iTS7WHNVrn7uhe3cojtvWWn83cm2Z6ryIUDTRO0EV7w=
github.com/hashicorp/terraform-plugin-go v0.22.1/go.mod h1:qrjnqRghvQ6KnDbB12XeZ4FluclYwptntoWCr9QaXTI=
github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0=
github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow=
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh3R4yp6pKksKHcqZx5G8=
Expand Down Expand Up @@ -346,22 +346,23 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 h1:Jyp0Hsi0bmHXG6k9eATXoYtjd6e2UzZ1SCn/wIupY14=
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA=
google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY=
google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 h1:AjyfHzEPEFp/NpvfN5g+KDla3EMojjhRVZc1i7cj+oM=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s=
google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk=
google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools/gotestsum v1.11.0 h1:A88/QWw7acMjZH1dMe6KZFhw32odUOIjCiAU/Q4n3mI=
Expand Down
2 changes: 1 addition & 1 deletion golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/connector-tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/connector-read.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/connector-token-generate.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/query/connectors-read.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/group-create.go
Original file line number Diff line number Diff line change
@@ -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)"`
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/query/group-read.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions twingate/internal/client/query/groups-read.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/remote-network-create.go
Original file line number Diff line number Diff line change
@@ -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)"`
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/remote-network-update.go
Original file line number Diff line number Diff line change
@@ -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)"`
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/query/remote-networks-read.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/query/resource-read.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/query/resources-read.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/query/security-policies-read.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/security-policy-read.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/service-account-create.go
Original file line number Diff line number Diff line change
@@ -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)"`
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/service-account-key-read.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/service-account-read.go
Original file line number Diff line number Diff line change
@@ -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)"`
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/service-account-update.go
Original file line number Diff line number Diff line change
@@ -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)"`
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/query/service-accounts-read.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/user-create.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/user-read.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion twingate/internal/client/query/user-update.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions twingate/internal/client/query/users-read.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading

0 comments on commit d95d3b6

Please sign in to comment.