feat: Use v2beta package (#9452)

This commit is contained in:
Marco Ardizzone
2025-04-28 17:15:23 +02:00
parent 784fe04646
commit ef57a3de41
8 changed files with 13 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/zitadel/zitadel/internal/domain"
"github.com/zitadel/zitadel/internal/query"
"github.com/zitadel/zitadel/internal/zerrors"
"github.com/zitadel/zitadel/pkg/grpc/instance/v2"
instance "github.com/zitadel/zitadel/pkg/grpc/instance/v2beta"
"golang.org/x/text/language"
)

View File

@@ -12,7 +12,7 @@ import (
"github.com/zitadel/zitadel/internal/query"
"github.com/zitadel/zitadel/internal/zerrors"
filter "github.com/zitadel/zitadel/pkg/grpc/filter/v2beta"
"github.com/zitadel/zitadel/pkg/grpc/instance/v2"
instance "github.com/zitadel/zitadel/pkg/grpc/instance/v2beta"
"github.com/zitadel/zitadel/pkg/grpc/object/v2"
"google.golang.org/protobuf/types/known/timestamppb"
)

View File

@@ -6,7 +6,7 @@ import (
"github.com/zitadel/zitadel/internal/api/grpc/object/v2"
"github.com/zitadel/zitadel/internal/zerrors"
"github.com/zitadel/zitadel/pkg/grpc/instance/v2"
instance "github.com/zitadel/zitadel/pkg/grpc/instance/v2beta"
)
func (s *Server) CreateInstance(ctx context.Context, req *instance.CreateInstanceRequest) (*instance.CreateInstanceResponse, error) {

View File

@@ -4,7 +4,7 @@ import (
"context"
filter "github.com/zitadel/zitadel/pkg/grpc/filter/v2beta"
"github.com/zitadel/zitadel/pkg/grpc/instance/v2"
instance "github.com/zitadel/zitadel/pkg/grpc/instance/v2beta"
"google.golang.org/protobuf/types/known/emptypb"
)

View File

@@ -9,7 +9,7 @@ import (
"github.com/zitadel/zitadel/internal/config/systemdefaults"
"github.com/zitadel/zitadel/internal/domain"
"github.com/zitadel/zitadel/internal/query"
"github.com/zitadel/zitadel/pkg/grpc/instance/v2"
instance "github.com/zitadel/zitadel/pkg/grpc/instance/v2beta"
)
var _ instance.InstanceServiceServer = (*Server)(nil)

View File

@@ -26,6 +26,7 @@ import (
feature_v2beta "github.com/zitadel/zitadel/pkg/grpc/feature/v2beta"
"github.com/zitadel/zitadel/pkg/grpc/idp"
idp_pb "github.com/zitadel/zitadel/pkg/grpc/idp/v2"
instance "github.com/zitadel/zitadel/pkg/grpc/instance/v2beta"
mgmt "github.com/zitadel/zitadel/pkg/grpc/management"
"github.com/zitadel/zitadel/pkg/grpc/object/v2"
object_v3alpha "github.com/zitadel/zitadel/pkg/grpc/object/v3alpha"
@@ -70,6 +71,7 @@ type Client struct {
UserV3Alpha user_v3alpha.ZITADELUsersClient
SAMLv2 saml_pb.SAMLServiceClient
SCIM *scim.Client
InstanceV2Beta instance.InstanceServiceClient
}
func newClient(ctx context.Context, target string) (*Client, error) {