diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6139a6e..c335ddd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,25 +27,6 @@ jobs: version: v2.10 skip-cache: true - generated: - name: Check Generated Code - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: actions/setup-go@v6 - with: - go-version: "1.26" - cache: true - - uses: bufbuild/buf-action@v1 - with: - setup_only: true - version: "1.66.1" - - name: Install protoc plugins - run: | - go install google.golang.org/protobuf/cmd/protoc-gen-go@latest - go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest - - run: make check-protos - test: name: Test runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index b8936bf..4da4a38 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VERSION := $(shell cat VERSION) LDFLAGS := -X main.version=$(VERSION) -.PHONY: build lint test protos check-protos docs check-docs clean +.PHONY: build lint test docs check-docs clean build: go build -ldflags '$(LDFLAGS)' -o terraform-provider-splitsecure . @@ -13,16 +13,6 @@ lint: test: go test ./... -protos: - buf generate - -check-protos: protos - @if [ -n "$$(git status --porcelain gen/)" ]; then \ - echo "gen/ is out of date. Run 'make protos' and commit." >&2; \ - git diff gen/ >&2; \ - exit 1; \ - fi - docs: go generate ./... diff --git a/README.md b/README.md index a327ce8..dabe596 100644 --- a/README.md +++ b/README.md @@ -59,15 +59,6 @@ terraform destroy -auto-approve ## Development -### Proto sync - -The provider ships an allowlisted subset of `.proto` definitions, plus three slim provider-owned services (so threshold/bottle/hybridkeyset transitive deps don't end up in the build). - -```bash -./scripts/sync-protos.sh /path/to/source/apis/proto -buf generate -``` - ### Build ```bash diff --git a/buf.gen.yaml b/buf.gen.yaml deleted file mode 100644 index 0e4c9c5..0000000 --- a/buf.gen.yaml +++ /dev/null @@ -1,15 +0,0 @@ -version: v2 -managed: - enabled: true - override: - - file_option: go_package_prefix - value: github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto -plugins: - - local: protoc-gen-go - out: gen/go/proto - opt: - - paths=source_relative - - local: protoc-gen-connect-go - out: gen/go/proto - opt: - - paths=source_relative diff --git a/buf.yaml b/buf.yaml deleted file mode 100644 index 9cab32e..0000000 --- a/buf.yaml +++ /dev/null @@ -1,9 +0,0 @@ -version: v2 -modules: - - path: proto - name: github.com/splitsecure/terraform-provider-splitsecure - lint: - use: - - STANDARD -deps: - - buf.build/protocolbuffers/wellknowntypes:v28.3 diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/conveniencestorev1connect/provider_custom_conveniencestore_service.connect.go b/gen/go/proto/splitsecure/conveniencestore/v1/conveniencestorev1connect/provider_custom_conveniencestore_service.connect.go deleted file mode 100644 index 4fa9625..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/conveniencestorev1connect/provider_custom_conveniencestore_service.connect.go +++ /dev/null @@ -1,295 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: splitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.proto - -package conveniencestorev1connect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // ConvenienceStoreServiceName is the fully-qualified name of the ConvenienceStoreService service. - ConvenienceStoreServiceName = "splitsecure.conveniencestore.v1.ConvenienceStoreService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // ConvenienceStoreServiceListSAML2ResourcesProcedure is the fully-qualified name of the - // ConvenienceStoreService's ListSAML2Resources RPC. - ConvenienceStoreServiceListSAML2ResourcesProcedure = "/splitsecure.conveniencestore.v1.ConvenienceStoreService/ListSAML2Resources" - // ConvenienceStoreServiceGetSAML2ResourcesProcedure is the fully-qualified name of the - // ConvenienceStoreService's GetSAML2Resources RPC. - ConvenienceStoreServiceGetSAML2ResourcesProcedure = "/splitsecure.conveniencestore.v1.ConvenienceStoreService/GetSAML2Resources" - // ConvenienceStoreServiceGetProposalResourceProcedure is the fully-qualified name of the - // ConvenienceStoreService's GetProposalResource RPC. - ConvenienceStoreServiceGetProposalResourceProcedure = "/splitsecure.conveniencestore.v1.ConvenienceStoreService/GetProposalResource" - // ConvenienceStoreServiceGenerateCreateSAML2IdentityProviderProposalProcedure is the - // fully-qualified name of the ConvenienceStoreService's GenerateCreateSAML2IdentityProviderProposal - // RPC. - ConvenienceStoreServiceGenerateCreateSAML2IdentityProviderProposalProcedure = "/splitsecure.conveniencestore.v1.ConvenienceStoreService/GenerateCreateSAML2IdentityProviderProposal" - // ConvenienceStoreServiceGenerateCreateSAML2ServiceProviderProposalProcedure is the fully-qualified - // name of the ConvenienceStoreService's GenerateCreateSAML2ServiceProviderProposal RPC. - ConvenienceStoreServiceGenerateCreateSAML2ServiceProviderProposalProcedure = "/splitsecure.conveniencestore.v1.ConvenienceStoreService/GenerateCreateSAML2ServiceProviderProposal" - // ConvenienceStoreServiceGenerateDeleteSAML2IdentityProviderProposalProcedure is the - // fully-qualified name of the ConvenienceStoreService's GenerateDeleteSAML2IdentityProviderProposal - // RPC. - ConvenienceStoreServiceGenerateDeleteSAML2IdentityProviderProposalProcedure = "/splitsecure.conveniencestore.v1.ConvenienceStoreService/GenerateDeleteSAML2IdentityProviderProposal" - // ConvenienceStoreServiceGenerateDeleteSAML2ServiceProviderProposalProcedure is the fully-qualified - // name of the ConvenienceStoreService's GenerateDeleteSAML2ServiceProviderProposal RPC. - ConvenienceStoreServiceGenerateDeleteSAML2ServiceProviderProposalProcedure = "/splitsecure.conveniencestore.v1.ConvenienceStoreService/GenerateDeleteSAML2ServiceProviderProposal" -) - -// ConvenienceStoreServiceClient is a client for the -// splitsecure.conveniencestore.v1.ConvenienceStoreService service. -type ConvenienceStoreServiceClient interface { - ListSAML2Resources(context.Context, *connect.Request[v1.ListSAML2ResourcesRequest]) (*connect.Response[v1.ListSAML2ResourcesResponse], error) - GetSAML2Resources(context.Context, *connect.Request[v1.GetSAML2ResourcesRequest]) (*connect.Response[v1.GetSAML2ResourcesResponse], error) - GetProposalResource(context.Context, *connect.Request[v1.GetProposalResourceRequest]) (*connect.Response[v1.GetProposalResourceResponse], error) - GenerateCreateSAML2IdentityProviderProposal(context.Context, *connect.Request[v1.GenerateCreateSAML2IdentityProviderProposalRequest]) (*connect.Response[v1.GenerateCreateSAML2IdentityProviderProposalResponse], error) - GenerateCreateSAML2ServiceProviderProposal(context.Context, *connect.Request[v1.GenerateCreateSAML2ServiceProviderProposalRequest]) (*connect.Response[v1.GenerateCreateSAML2ServiceProviderProposalResponse], error) - GenerateDeleteSAML2IdentityProviderProposal(context.Context, *connect.Request[v1.GenerateDeleteSAML2IdentityProviderProposalRequest]) (*connect.Response[v1.GenerateDeleteSAML2IdentityProviderProposalResponse], error) - GenerateDeleteSAML2ServiceProviderProposal(context.Context, *connect.Request[v1.GenerateDeleteSAML2ServiceProviderProposalRequest]) (*connect.Response[v1.GenerateDeleteSAML2ServiceProviderProposalResponse], error) -} - -// NewConvenienceStoreServiceClient constructs a client for the -// splitsecure.conveniencestore.v1.ConvenienceStoreService service. By default, it uses the Connect -// protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed -// requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or -// connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewConvenienceStoreServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ConvenienceStoreServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - convenienceStoreServiceMethods := v1.File_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto.Services().ByName("ConvenienceStoreService").Methods() - return &convenienceStoreServiceClient{ - listSAML2Resources: connect.NewClient[v1.ListSAML2ResourcesRequest, v1.ListSAML2ResourcesResponse]( - httpClient, - baseURL+ConvenienceStoreServiceListSAML2ResourcesProcedure, - connect.WithSchema(convenienceStoreServiceMethods.ByName("ListSAML2Resources")), - connect.WithClientOptions(opts...), - ), - getSAML2Resources: connect.NewClient[v1.GetSAML2ResourcesRequest, v1.GetSAML2ResourcesResponse]( - httpClient, - baseURL+ConvenienceStoreServiceGetSAML2ResourcesProcedure, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GetSAML2Resources")), - connect.WithClientOptions(opts...), - ), - getProposalResource: connect.NewClient[v1.GetProposalResourceRequest, v1.GetProposalResourceResponse]( - httpClient, - baseURL+ConvenienceStoreServiceGetProposalResourceProcedure, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GetProposalResource")), - connect.WithClientOptions(opts...), - ), - generateCreateSAML2IdentityProviderProposal: connect.NewClient[v1.GenerateCreateSAML2IdentityProviderProposalRequest, v1.GenerateCreateSAML2IdentityProviderProposalResponse]( - httpClient, - baseURL+ConvenienceStoreServiceGenerateCreateSAML2IdentityProviderProposalProcedure, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GenerateCreateSAML2IdentityProviderProposal")), - connect.WithClientOptions(opts...), - ), - generateCreateSAML2ServiceProviderProposal: connect.NewClient[v1.GenerateCreateSAML2ServiceProviderProposalRequest, v1.GenerateCreateSAML2ServiceProviderProposalResponse]( - httpClient, - baseURL+ConvenienceStoreServiceGenerateCreateSAML2ServiceProviderProposalProcedure, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GenerateCreateSAML2ServiceProviderProposal")), - connect.WithClientOptions(opts...), - ), - generateDeleteSAML2IdentityProviderProposal: connect.NewClient[v1.GenerateDeleteSAML2IdentityProviderProposalRequest, v1.GenerateDeleteSAML2IdentityProviderProposalResponse]( - httpClient, - baseURL+ConvenienceStoreServiceGenerateDeleteSAML2IdentityProviderProposalProcedure, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GenerateDeleteSAML2IdentityProviderProposal")), - connect.WithClientOptions(opts...), - ), - generateDeleteSAML2ServiceProviderProposal: connect.NewClient[v1.GenerateDeleteSAML2ServiceProviderProposalRequest, v1.GenerateDeleteSAML2ServiceProviderProposalResponse]( - httpClient, - baseURL+ConvenienceStoreServiceGenerateDeleteSAML2ServiceProviderProposalProcedure, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GenerateDeleteSAML2ServiceProviderProposal")), - connect.WithClientOptions(opts...), - ), - } -} - -// convenienceStoreServiceClient implements ConvenienceStoreServiceClient. -type convenienceStoreServiceClient struct { - listSAML2Resources *connect.Client[v1.ListSAML2ResourcesRequest, v1.ListSAML2ResourcesResponse] - getSAML2Resources *connect.Client[v1.GetSAML2ResourcesRequest, v1.GetSAML2ResourcesResponse] - getProposalResource *connect.Client[v1.GetProposalResourceRequest, v1.GetProposalResourceResponse] - generateCreateSAML2IdentityProviderProposal *connect.Client[v1.GenerateCreateSAML2IdentityProviderProposalRequest, v1.GenerateCreateSAML2IdentityProviderProposalResponse] - generateCreateSAML2ServiceProviderProposal *connect.Client[v1.GenerateCreateSAML2ServiceProviderProposalRequest, v1.GenerateCreateSAML2ServiceProviderProposalResponse] - generateDeleteSAML2IdentityProviderProposal *connect.Client[v1.GenerateDeleteSAML2IdentityProviderProposalRequest, v1.GenerateDeleteSAML2IdentityProviderProposalResponse] - generateDeleteSAML2ServiceProviderProposal *connect.Client[v1.GenerateDeleteSAML2ServiceProviderProposalRequest, v1.GenerateDeleteSAML2ServiceProviderProposalResponse] -} - -// ListSAML2Resources calls -// splitsecure.conveniencestore.v1.ConvenienceStoreService.ListSAML2Resources. -func (c *convenienceStoreServiceClient) ListSAML2Resources(ctx context.Context, req *connect.Request[v1.ListSAML2ResourcesRequest]) (*connect.Response[v1.ListSAML2ResourcesResponse], error) { - return c.listSAML2Resources.CallUnary(ctx, req) -} - -// GetSAML2Resources calls -// splitsecure.conveniencestore.v1.ConvenienceStoreService.GetSAML2Resources. -func (c *convenienceStoreServiceClient) GetSAML2Resources(ctx context.Context, req *connect.Request[v1.GetSAML2ResourcesRequest]) (*connect.Response[v1.GetSAML2ResourcesResponse], error) { - return c.getSAML2Resources.CallUnary(ctx, req) -} - -// GetProposalResource calls -// splitsecure.conveniencestore.v1.ConvenienceStoreService.GetProposalResource. -func (c *convenienceStoreServiceClient) GetProposalResource(ctx context.Context, req *connect.Request[v1.GetProposalResourceRequest]) (*connect.Response[v1.GetProposalResourceResponse], error) { - return c.getProposalResource.CallUnary(ctx, req) -} - -// GenerateCreateSAML2IdentityProviderProposal calls -// splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateCreateSAML2IdentityProviderProposal. -func (c *convenienceStoreServiceClient) GenerateCreateSAML2IdentityProviderProposal(ctx context.Context, req *connect.Request[v1.GenerateCreateSAML2IdentityProviderProposalRequest]) (*connect.Response[v1.GenerateCreateSAML2IdentityProviderProposalResponse], error) { - return c.generateCreateSAML2IdentityProviderProposal.CallUnary(ctx, req) -} - -// GenerateCreateSAML2ServiceProviderProposal calls -// splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateCreateSAML2ServiceProviderProposal. -func (c *convenienceStoreServiceClient) GenerateCreateSAML2ServiceProviderProposal(ctx context.Context, req *connect.Request[v1.GenerateCreateSAML2ServiceProviderProposalRequest]) (*connect.Response[v1.GenerateCreateSAML2ServiceProviderProposalResponse], error) { - return c.generateCreateSAML2ServiceProviderProposal.CallUnary(ctx, req) -} - -// GenerateDeleteSAML2IdentityProviderProposal calls -// splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateDeleteSAML2IdentityProviderProposal. -func (c *convenienceStoreServiceClient) GenerateDeleteSAML2IdentityProviderProposal(ctx context.Context, req *connect.Request[v1.GenerateDeleteSAML2IdentityProviderProposalRequest]) (*connect.Response[v1.GenerateDeleteSAML2IdentityProviderProposalResponse], error) { - return c.generateDeleteSAML2IdentityProviderProposal.CallUnary(ctx, req) -} - -// GenerateDeleteSAML2ServiceProviderProposal calls -// splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateDeleteSAML2ServiceProviderProposal. -func (c *convenienceStoreServiceClient) GenerateDeleteSAML2ServiceProviderProposal(ctx context.Context, req *connect.Request[v1.GenerateDeleteSAML2ServiceProviderProposalRequest]) (*connect.Response[v1.GenerateDeleteSAML2ServiceProviderProposalResponse], error) { - return c.generateDeleteSAML2ServiceProviderProposal.CallUnary(ctx, req) -} - -// ConvenienceStoreServiceHandler is an implementation of the -// splitsecure.conveniencestore.v1.ConvenienceStoreService service. -type ConvenienceStoreServiceHandler interface { - ListSAML2Resources(context.Context, *connect.Request[v1.ListSAML2ResourcesRequest]) (*connect.Response[v1.ListSAML2ResourcesResponse], error) - GetSAML2Resources(context.Context, *connect.Request[v1.GetSAML2ResourcesRequest]) (*connect.Response[v1.GetSAML2ResourcesResponse], error) - GetProposalResource(context.Context, *connect.Request[v1.GetProposalResourceRequest]) (*connect.Response[v1.GetProposalResourceResponse], error) - GenerateCreateSAML2IdentityProviderProposal(context.Context, *connect.Request[v1.GenerateCreateSAML2IdentityProviderProposalRequest]) (*connect.Response[v1.GenerateCreateSAML2IdentityProviderProposalResponse], error) - GenerateCreateSAML2ServiceProviderProposal(context.Context, *connect.Request[v1.GenerateCreateSAML2ServiceProviderProposalRequest]) (*connect.Response[v1.GenerateCreateSAML2ServiceProviderProposalResponse], error) - GenerateDeleteSAML2IdentityProviderProposal(context.Context, *connect.Request[v1.GenerateDeleteSAML2IdentityProviderProposalRequest]) (*connect.Response[v1.GenerateDeleteSAML2IdentityProviderProposalResponse], error) - GenerateDeleteSAML2ServiceProviderProposal(context.Context, *connect.Request[v1.GenerateDeleteSAML2ServiceProviderProposalRequest]) (*connect.Response[v1.GenerateDeleteSAML2ServiceProviderProposalResponse], error) -} - -// NewConvenienceStoreServiceHandler builds an HTTP handler from the service implementation. It -// returns the path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewConvenienceStoreServiceHandler(svc ConvenienceStoreServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - convenienceStoreServiceMethods := v1.File_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto.Services().ByName("ConvenienceStoreService").Methods() - convenienceStoreServiceListSAML2ResourcesHandler := connect.NewUnaryHandler( - ConvenienceStoreServiceListSAML2ResourcesProcedure, - svc.ListSAML2Resources, - connect.WithSchema(convenienceStoreServiceMethods.ByName("ListSAML2Resources")), - connect.WithHandlerOptions(opts...), - ) - convenienceStoreServiceGetSAML2ResourcesHandler := connect.NewUnaryHandler( - ConvenienceStoreServiceGetSAML2ResourcesProcedure, - svc.GetSAML2Resources, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GetSAML2Resources")), - connect.WithHandlerOptions(opts...), - ) - convenienceStoreServiceGetProposalResourceHandler := connect.NewUnaryHandler( - ConvenienceStoreServiceGetProposalResourceProcedure, - svc.GetProposalResource, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GetProposalResource")), - connect.WithHandlerOptions(opts...), - ) - convenienceStoreServiceGenerateCreateSAML2IdentityProviderProposalHandler := connect.NewUnaryHandler( - ConvenienceStoreServiceGenerateCreateSAML2IdentityProviderProposalProcedure, - svc.GenerateCreateSAML2IdentityProviderProposal, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GenerateCreateSAML2IdentityProviderProposal")), - connect.WithHandlerOptions(opts...), - ) - convenienceStoreServiceGenerateCreateSAML2ServiceProviderProposalHandler := connect.NewUnaryHandler( - ConvenienceStoreServiceGenerateCreateSAML2ServiceProviderProposalProcedure, - svc.GenerateCreateSAML2ServiceProviderProposal, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GenerateCreateSAML2ServiceProviderProposal")), - connect.WithHandlerOptions(opts...), - ) - convenienceStoreServiceGenerateDeleteSAML2IdentityProviderProposalHandler := connect.NewUnaryHandler( - ConvenienceStoreServiceGenerateDeleteSAML2IdentityProviderProposalProcedure, - svc.GenerateDeleteSAML2IdentityProviderProposal, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GenerateDeleteSAML2IdentityProviderProposal")), - connect.WithHandlerOptions(opts...), - ) - convenienceStoreServiceGenerateDeleteSAML2ServiceProviderProposalHandler := connect.NewUnaryHandler( - ConvenienceStoreServiceGenerateDeleteSAML2ServiceProviderProposalProcedure, - svc.GenerateDeleteSAML2ServiceProviderProposal, - connect.WithSchema(convenienceStoreServiceMethods.ByName("GenerateDeleteSAML2ServiceProviderProposal")), - connect.WithHandlerOptions(opts...), - ) - return "/splitsecure.conveniencestore.v1.ConvenienceStoreService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case ConvenienceStoreServiceListSAML2ResourcesProcedure: - convenienceStoreServiceListSAML2ResourcesHandler.ServeHTTP(w, r) - case ConvenienceStoreServiceGetSAML2ResourcesProcedure: - convenienceStoreServiceGetSAML2ResourcesHandler.ServeHTTP(w, r) - case ConvenienceStoreServiceGetProposalResourceProcedure: - convenienceStoreServiceGetProposalResourceHandler.ServeHTTP(w, r) - case ConvenienceStoreServiceGenerateCreateSAML2IdentityProviderProposalProcedure: - convenienceStoreServiceGenerateCreateSAML2IdentityProviderProposalHandler.ServeHTTP(w, r) - case ConvenienceStoreServiceGenerateCreateSAML2ServiceProviderProposalProcedure: - convenienceStoreServiceGenerateCreateSAML2ServiceProviderProposalHandler.ServeHTTP(w, r) - case ConvenienceStoreServiceGenerateDeleteSAML2IdentityProviderProposalProcedure: - convenienceStoreServiceGenerateDeleteSAML2IdentityProviderProposalHandler.ServeHTTP(w, r) - case ConvenienceStoreServiceGenerateDeleteSAML2ServiceProviderProposalProcedure: - convenienceStoreServiceGenerateDeleteSAML2ServiceProviderProposalHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedConvenienceStoreServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedConvenienceStoreServiceHandler struct{} - -func (UnimplementedConvenienceStoreServiceHandler) ListSAML2Resources(context.Context, *connect.Request[v1.ListSAML2ResourcesRequest]) (*connect.Response[v1.ListSAML2ResourcesResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.conveniencestore.v1.ConvenienceStoreService.ListSAML2Resources is not implemented")) -} - -func (UnimplementedConvenienceStoreServiceHandler) GetSAML2Resources(context.Context, *connect.Request[v1.GetSAML2ResourcesRequest]) (*connect.Response[v1.GetSAML2ResourcesResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.conveniencestore.v1.ConvenienceStoreService.GetSAML2Resources is not implemented")) -} - -func (UnimplementedConvenienceStoreServiceHandler) GetProposalResource(context.Context, *connect.Request[v1.GetProposalResourceRequest]) (*connect.Response[v1.GetProposalResourceResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.conveniencestore.v1.ConvenienceStoreService.GetProposalResource is not implemented")) -} - -func (UnimplementedConvenienceStoreServiceHandler) GenerateCreateSAML2IdentityProviderProposal(context.Context, *connect.Request[v1.GenerateCreateSAML2IdentityProviderProposalRequest]) (*connect.Response[v1.GenerateCreateSAML2IdentityProviderProposalResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateCreateSAML2IdentityProviderProposal is not implemented")) -} - -func (UnimplementedConvenienceStoreServiceHandler) GenerateCreateSAML2ServiceProviderProposal(context.Context, *connect.Request[v1.GenerateCreateSAML2ServiceProviderProposalRequest]) (*connect.Response[v1.GenerateCreateSAML2ServiceProviderProposalResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateCreateSAML2ServiceProviderProposal is not implemented")) -} - -func (UnimplementedConvenienceStoreServiceHandler) GenerateDeleteSAML2IdentityProviderProposal(context.Context, *connect.Request[v1.GenerateDeleteSAML2IdentityProviderProposalRequest]) (*connect.Response[v1.GenerateDeleteSAML2IdentityProviderProposalResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateDeleteSAML2IdentityProviderProposal is not implemented")) -} - -func (UnimplementedConvenienceStoreServiceHandler) GenerateDeleteSAML2ServiceProviderProposal(context.Context, *connect.Request[v1.GenerateDeleteSAML2ServiceProviderProposalRequest]) (*connect.Response[v1.GenerateDeleteSAML2ServiceProviderProposalResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateDeleteSAML2ServiceProviderProposal is not implemented")) -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.pb.go deleted file mode 100644 index 3c1882f..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.pb.go +++ /dev/null @@ -1,272 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenerateCreateSAML2IdentityProviderProposalRequest assembles the -// MintProposalRequest payload for creating a SAML2 IdP on the named -// team. The server does team autofill: resolves team_s2r to the team -// base id, verifies the caller is a service account in the team's -// owning org, and loads the active TeamInfo. The response is not a -// Send -- the caller drives EnclaveRoundtripService.Send itself with -// the returned invoke_request and target_org_s2r. -type GenerateCreateSAML2IdentityProviderProposalRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Base *GenerateCreateSAML2IdentityProviderProposalRequest_Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest) Reset() { - *x = GenerateCreateSAML2IdentityProviderProposalRequest{} - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateCreateSAML2IdentityProviderProposalRequest) ProtoMessage() {} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateCreateSAML2IdentityProviderProposalRequest.ProtoReflect.Descriptor instead. -func (*GenerateCreateSAML2IdentityProviderProposalRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest) GetBase() *GenerateCreateSAML2IdentityProviderProposalRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type GenerateCreateSAML2IdentityProviderProposalRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - TeamS2R string `protobuf:"bytes,1,opt,name=team_s2r,json=teamS2r,proto3" json:"team_s2r,omitempty"` - // attributes carries the shared resource metadata (name, - // description, notification_policy). The sensitivity field is - // ignored for IdPs (IdPState has no sensitivity), and proposal_id - // is server-stamped. - Attributes *v1.BaseResourceAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` - // provider_id is the SAML EntityID baked into the IdP's signing - // cert subject, every assertion's , and the metadata - // entityID attribute. When unset, the server stamps - // https:///saml/idp/ -- the same - // shape the web UI's IdP create form generates client-side. - // Override here for stable URN-form EntityIDs (e.g. terraform). - ProviderId string `protobuf:"bytes,3,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` - // sso_url and sso_url_post are the IdP's HTTP-Redirect and - // HTTP-POST SSO endpoints. When unset, the server stamps the - // canonical SAML SP login URLs for the deployment. Override - // here only if traffic should route through a non-default host. - SsoUrl string `protobuf:"bytes,4,opt,name=sso_url,json=ssoUrl,proto3" json:"sso_url,omitempty"` - SsoUrlPost string `protobuf:"bytes,5,opt,name=sso_url_post,json=ssoUrlPost,proto3" json:"sso_url_post,omitempty"` - // not_before / not_after bound the IdP signing cert's validity - // window. When unset, the server stamps now / now + 10y -- - // matches the web UI's IdP create form defaults. - NotBefore *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=not_before,json=notBefore,proto3" json:"not_before,omitempty"` - NotAfter *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"` - Justification string `protobuf:"bytes,200,opt,name=justification,proto3" json:"justification,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) Reset() { - *x = GenerateCreateSAML2IdentityProviderProposalRequest_Base{} - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateCreateSAML2IdentityProviderProposalRequest_Base) ProtoMessage() {} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateCreateSAML2IdentityProviderProposalRequest_Base.ProtoReflect.Descriptor instead. -func (*GenerateCreateSAML2IdentityProviderProposalRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) GetTeamS2R() string { - if x != nil { - return x.TeamS2R - } - return "" -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) GetAttributes() *v1.BaseResourceAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) GetProviderId() string { - if x != nil { - return x.ProviderId - } - return "" -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) GetSsoUrl() string { - if x != nil { - return x.SsoUrl - } - return "" -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) GetSsoUrlPost() string { - if x != nil { - return x.SsoUrlPost - } - return "" -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) GetNotBefore() *timestamppb.Timestamp { - if x != nil { - return x.NotBefore - } - return nil -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) GetNotAfter() *timestamppb.Timestamp { - if x != nil { - return x.NotAfter - } - return nil -} - -func (x *GenerateCreateSAML2IdentityProviderProposalRequest_Base) GetJustification() string { - if x != nil { - return x.Justification - } - return "" -} - -var File_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDesc = "" + - "\n" + - "Psplitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a/splitsecure/teamresource/v1/team_resource.proto\"\x92\x04\n" + - "2GenerateCreateSAML2IdentityProviderProposalRequest\x12l\n" + - "\x04base\x18\x01 \x01(\v2X.splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest.BaseR\x04base\x1a\xed\x02\n" + - "\x04Base\x12\x19\n" + - "\bteam_s2r\x18\x01 \x01(\tR\ateamS2r\x12S\n" + - "\n" + - "attributes\x18\x02 \x01(\v23.splitsecure.teamresource.v1.BaseResourceAttributesR\n" + - "attributes\x12\x1f\n" + - "\vprovider_id\x18\x03 \x01(\tR\n" + - "providerId\x12\x17\n" + - "\asso_url\x18\x04 \x01(\tR\x06ssoUrl\x12 \n" + - "\fsso_url_post\x18\x05 \x01(\tR\n" + - "ssoUrlPost\x129\n" + - "\n" + - "not_before\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tnotBefore\x127\n" + - "\tnot_after\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\bnotAfter\x12%\n" + - "\rjustification\x18\xc8\x01 \x01(\tR\rjustificationB\xe6\x02\n" + - "#com.splitsecure.conveniencestore.v1B*GenerateCreateSaml2IdpProposalRequestProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_goTypes = []any{ - (*GenerateCreateSAML2IdentityProviderProposalRequest)(nil), // 0: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest - (*GenerateCreateSAML2IdentityProviderProposalRequest_Base)(nil), // 1: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest.Base - (*v1.BaseResourceAttributes)(nil), // 2: splitsecure.teamresource.v1.BaseResourceAttributes - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp -} -var file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_depIdxs = []int32{ - 1, // 0: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest.base:type_name -> splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest.Base - 2, // 1: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest.Base.attributes:type_name -> splitsecure.teamresource.v1.BaseResourceAttributes - 3, // 2: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest.Base.not_before:type_name -> google.protobuf.Timestamp - 3, // 3: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest.Base.not_after:type_name -> google.protobuf.Timestamp - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_init() -} -func file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_init() { - if File_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto = out.File - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.pb.go deleted file mode 100644 index c5d87f2..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.pb.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GenerateCreateSAML2IdentityProviderProposalResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // invoke_request is the fully built payload the caller should pass to - // EnclaveRoundtripService.Send.Base.invoke_request. The caller - // supplies new_proposal_scoped_enclave = the org s2r it already knows - // from having picked the team. - InvokeRequest *v1.InvokeRequest `protobuf:"bytes,1,opt,name=invoke_request,json=invokeRequest,proto3" json:"invoke_request,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateCreateSAML2IdentityProviderProposalResponse) Reset() { - *x = GenerateCreateSAML2IdentityProviderProposalResponse{} - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateCreateSAML2IdentityProviderProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateCreateSAML2IdentityProviderProposalResponse) ProtoMessage() {} - -func (x *GenerateCreateSAML2IdentityProviderProposalResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateCreateSAML2IdentityProviderProposalResponse.ProtoReflect.Descriptor instead. -func (*GenerateCreateSAML2IdentityProviderProposalResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateCreateSAML2IdentityProviderProposalResponse) GetInvokeRequest() *v1.InvokeRequest { - if x != nil { - return x.InvokeRequest - } - return nil -} - -var File_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDesc = "" + - "\n" + - "Qsplitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a$splitsecure/enclave/v1/enclave.proto\"\x83\x01\n" + - "3GenerateCreateSAML2IdentityProviderProposalResponse\x12L\n" + - "\x0einvoke_request\x18\x01 \x01(\v2%.splitsecure.enclave.v1.InvokeRequestR\rinvokeRequestB\xe7\x02\n" + - "#com.splitsecure.conveniencestore.v1B+GenerateCreateSaml2IdpProposalResponseProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_goTypes = []any{ - (*GenerateCreateSAML2IdentityProviderProposalResponse)(nil), // 0: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalResponse - (*v1.InvokeRequest)(nil), // 1: splitsecure.enclave.v1.InvokeRequest -} -var file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_depIdxs = []int32{ - 1, // 0: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalResponse.invoke_request:type_name -> splitsecure.enclave.v1.InvokeRequest - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_init() -} -func file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_init() { - if File_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto = out.File - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.pb.go deleted file mode 100644 index feb1e8a..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.pb.go +++ /dev/null @@ -1,626 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.proto - -package conveniencestorev1 - -import ( - v2 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v2" - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenerateCreateSAML2ServiceProviderProposalRequest assembles the -// MintProposalRequest payload for creating a SAML2 SP on the named -// team. idp_resource_s2r selects the IdP record whose signed state -// will be embedded into CreateServiceProviderRequest.signed_idp; the -// IdP must exist on the same team. Other inputs are flat fields -// the server stitches into the saml2v2.SAML2ServiceProvider proto, -// also stamping the computed fields (id, proposal_id, idp_auth_sum, -// idp_coord_id_hint, metadata). -type GenerateCreateSAML2ServiceProviderProposalRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Base *GenerateCreateSAML2ServiceProviderProposalRequest_Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest) Reset() { - *x = GenerateCreateSAML2ServiceProviderProposalRequest{} - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest) ProtoMessage() {} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateCreateSAML2ServiceProviderProposalRequest.ProtoReflect.Descriptor instead. -func (*GenerateCreateSAML2ServiceProviderProposalRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest) GetBase() *GenerateCreateSAML2ServiceProviderProposalRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - TeamS2R string `protobuf:"bytes,1,opt,name=team_s2r,json=teamS2r,proto3" json:"team_s2r,omitempty"` - // idp_resource_s2r is the s2r URI of the IdP this SP binds to. - // Kind must be "saml2idp" and the team portion must match team_s2r. - IdpResourceS2R string `protobuf:"bytes,2,opt,name=idp_resource_s2r,json=idpResourceS2r,proto3" json:"idp_resource_s2r,omitempty"` - // attributes carries the shared resource metadata (name, - // description, notification_policy, sensitivity) in the same - // shape used internally by the saml2v2 enclave service. The - // proposal_id field is server-stamped and ignored on input. - Attributes *v1.BaseResourceAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` - // entity_id and acs_url populate - // metadata.entity_descriptor.{entity_id, sp_sso_descriptor[0] - // .assertion_consumer_service[0].location} server-side. Format - // depends on the integration; see the saml2v2 enclave service - // docs for per-kind expected shapes. - EntityId string `protobuf:"bytes,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` - AcsUrl string `protobuf:"bytes,5,opt,name=acs_url,json=acsUrl,proto3" json:"acs_url,omitempty"` - // Account variant. Exactly one branch must be populated; mirrors - // the SAML2ServiceProvider.account oneof in saml2v2 so the same - // typed messages flow through both layers without redefinition. - // - // Types that are valid to be assigned to Account: - // - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Aws - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Cloudflare - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_EventBrite - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Gcp - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspace - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspaceLegacy - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_IbmCloud - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Kandji - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_MicrosoftEntraId - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Okta - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_OracleCloud - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_PagerDuty - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_PitchBook - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Rapid7 - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Stripe - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Veeam - // *GenerateCreateSAML2ServiceProviderProposalRequest_Base_Workday - Account isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account `protobuf_oneof:"account"` - Justification string `protobuf:"bytes,200,opt,name=justification,proto3" json:"justification,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) Reset() { - *x = GenerateCreateSAML2ServiceProviderProposalRequest_Base{} - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base) ProtoMessage() {} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateCreateSAML2ServiceProviderProposalRequest_Base.ProtoReflect.Descriptor instead. -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetTeamS2R() string { - if x != nil { - return x.TeamS2R - } - return "" -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetIdpResourceS2R() string { - if x != nil { - return x.IdpResourceS2R - } - return "" -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetAttributes() *v1.BaseResourceAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetEntityId() string { - if x != nil { - return x.EntityId - } - return "" -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetAcsUrl() string { - if x != nil { - return x.AcsUrl - } - return "" -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetAccount() isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account { - if x != nil { - return x.Account - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetAws() *v2.SAML2ServiceProvider_AWS { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Aws); ok { - return x.Aws - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetCloudflare() *v2.SAML2ServiceProvider_Cloudflare { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Cloudflare); ok { - return x.Cloudflare - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetEventBrite() *v2.SAML2ServiceProvider_EventBrite { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_EventBrite); ok { - return x.EventBrite - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetGcp() *v2.SAML2ServiceProvider_GCP { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Gcp); ok { - return x.Gcp - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetGoogleWorkspace() *v2.SAML2ServiceProvider_GoogleWorkspace { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspace); ok { - return x.GoogleWorkspace - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetGoogleWorkspaceLegacy() *v2.SAML2ServiceProvider_GoogleWorkspaceLegacy { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspaceLegacy); ok { - return x.GoogleWorkspaceLegacy - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetIbmCloud() *v2.SAML2ServiceProvider_IBMCloud { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_IbmCloud); ok { - return x.IbmCloud - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetKandji() *v2.SAML2ServiceProvider_Kandji { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Kandji); ok { - return x.Kandji - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetMicrosoftEntraId() *v2.SAML2ServiceProvider_MicrosoftEntraID { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_MicrosoftEntraId); ok { - return x.MicrosoftEntraId - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetOkta() *v2.SAML2ServiceProvider_Okta { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Okta); ok { - return x.Okta - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetOracleCloud() *v2.SAML2ServiceProvider_OracleCloud { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_OracleCloud); ok { - return x.OracleCloud - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetPagerDuty() *v2.SAML2ServiceProvider_PagerDuty { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_PagerDuty); ok { - return x.PagerDuty - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetPitchBook() *v2.SAML2ServiceProvider_PitchBook { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_PitchBook); ok { - return x.PitchBook - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetRapid7() *v2.SAML2ServiceProvider_Rapid7 { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Rapid7); ok { - return x.Rapid7 - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetStripe() *v2.SAML2ServiceProvider_Stripe { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Stripe); ok { - return x.Stripe - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetVeeam() *v2.SAML2ServiceProvider_Veeam { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Veeam); ok { - return x.Veeam - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetWorkday() *v2.SAML2ServiceProvider_Workday { - if x != nil { - if x, ok := x.Account.(*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Workday); ok { - return x.Workday - } - } - return nil -} - -func (x *GenerateCreateSAML2ServiceProviderProposalRequest_Base) GetJustification() string { - if x != nil { - return x.Justification - } - return "" -} - -type isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account interface { - isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Aws struct { - Aws *v2.SAML2ServiceProvider_AWS `protobuf:"bytes,100,opt,name=aws,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Cloudflare struct { - Cloudflare *v2.SAML2ServiceProvider_Cloudflare `protobuf:"bytes,101,opt,name=cloudflare,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_EventBrite struct { - EventBrite *v2.SAML2ServiceProvider_EventBrite `protobuf:"bytes,102,opt,name=event_brite,json=eventBrite,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Gcp struct { - Gcp *v2.SAML2ServiceProvider_GCP `protobuf:"bytes,103,opt,name=gcp,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspace struct { - GoogleWorkspace *v2.SAML2ServiceProvider_GoogleWorkspace `protobuf:"bytes,104,opt,name=google_workspace,json=googleWorkspace,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspaceLegacy struct { - GoogleWorkspaceLegacy *v2.SAML2ServiceProvider_GoogleWorkspaceLegacy `protobuf:"bytes,105,opt,name=google_workspace_legacy,json=googleWorkspaceLegacy,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_IbmCloud struct { - IbmCloud *v2.SAML2ServiceProvider_IBMCloud `protobuf:"bytes,106,opt,name=ibm_cloud,json=ibmCloud,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Kandji struct { - Kandji *v2.SAML2ServiceProvider_Kandji `protobuf:"bytes,107,opt,name=kandji,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_MicrosoftEntraId struct { - MicrosoftEntraId *v2.SAML2ServiceProvider_MicrosoftEntraID `protobuf:"bytes,108,opt,name=microsoft_entra_id,json=microsoftEntraId,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Okta struct { - Okta *v2.SAML2ServiceProvider_Okta `protobuf:"bytes,109,opt,name=okta,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_OracleCloud struct { - OracleCloud *v2.SAML2ServiceProvider_OracleCloud `protobuf:"bytes,110,opt,name=oracle_cloud,json=oracleCloud,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_PagerDuty struct { - PagerDuty *v2.SAML2ServiceProvider_PagerDuty `protobuf:"bytes,111,opt,name=pager_duty,json=pagerDuty,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_PitchBook struct { - PitchBook *v2.SAML2ServiceProvider_PitchBook `protobuf:"bytes,112,opt,name=pitch_book,json=pitchBook,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Rapid7 struct { - Rapid7 *v2.SAML2ServiceProvider_Rapid7 `protobuf:"bytes,113,opt,name=rapid7,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Stripe struct { - Stripe *v2.SAML2ServiceProvider_Stripe `protobuf:"bytes,114,opt,name=stripe,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Veeam struct { - Veeam *v2.SAML2ServiceProvider_Veeam `protobuf:"bytes,115,opt,name=veeam,proto3,oneof"` -} - -type GenerateCreateSAML2ServiceProviderProposalRequest_Base_Workday struct { - Workday *v2.SAML2ServiceProvider_Workday `protobuf:"bytes,116,opt,name=workday,proto3,oneof"` -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Aws) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Cloudflare) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_EventBrite) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Gcp) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspace) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspaceLegacy) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_IbmCloud) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Kandji) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_MicrosoftEntraId) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Okta) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_OracleCloud) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_PagerDuty) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_PitchBook) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Rapid7) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Stripe) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Veeam) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -func (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Workday) isGenerateCreateSAML2ServiceProviderProposalRequest_Base_Account() { -} - -var File_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDesc = "" + - "\n" + - "Osplitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.proto\x12\x1fsplitsecure.conveniencestore.v1\x1aAsplitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto\x1a/splitsecure/teamresource/v1/team_resource.proto\"\xf0\x10\n" + - "1GenerateCreateSAML2ServiceProviderProposalRequest\x12k\n" + - "\x04base\x18\x01 \x01(\v2W.splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.BaseR\x04base\x1a\xcd\x0f\n" + - "\x04Base\x12\x19\n" + - "\bteam_s2r\x18\x01 \x01(\tR\ateamS2r\x12(\n" + - "\x10idp_resource_s2r\x18\x02 \x01(\tR\x0eidpResourceS2r\x12S\n" + - "\n" + - "attributes\x18\x03 \x01(\v23.splitsecure.teamresource.v1.BaseResourceAttributesR\n" + - "attributes\x12\x1b\n" + - "\tentity_id\x18\x04 \x01(\tR\bentityId\x12\x17\n" + - "\aacs_url\x18\x05 \x01(\tR\x06acsUrl\x12R\n" + - "\x03aws\x18d \x01(\v2>.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.AWSH\x00R\x03aws\x12g\n" + - "\n" + - "cloudflare\x18e \x01(\v2E.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.CloudflareH\x00R\n" + - "cloudflare\x12h\n" + - "\vevent_brite\x18f \x01(\v2E.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.EventBriteH\x00R\n" + - "eventBrite\x12R\n" + - "\x03gcp\x18g \x01(\v2>.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GCPH\x00R\x03gcp\x12w\n" + - "\x10google_workspace\x18h \x01(\v2J.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceH\x00R\x0fgoogleWorkspace\x12\x8a\x01\n" + - "\x17google_workspace_legacy\x18i \x01(\v2P.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceLegacyH\x00R\x15googleWorkspaceLegacy\x12b\n" + - "\tibm_cloud\x18j \x01(\v2C.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.IBMCloudH\x00R\bibmCloud\x12[\n" + - "\x06kandji\x18k \x01(\v2A.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.KandjiH\x00R\x06kandji\x12{\n" + - "\x12microsoft_entra_id\x18l \x01(\v2K.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.MicrosoftEntraIDH\x00R\x10microsoftEntraId\x12U\n" + - "\x04okta\x18m \x01(\v2?.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OktaH\x00R\x04okta\x12k\n" + - "\foracle_cloud\x18n \x01(\v2F.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OracleCloudH\x00R\voracleCloud\x12e\n" + - "\n" + - "pager_duty\x18o \x01(\v2D.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PagerDutyH\x00R\tpagerDuty\x12e\n" + - "\n" + - "pitch_book\x18p \x01(\v2D.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PitchBookH\x00R\tpitchBook\x12[\n" + - "\x06rapid7\x18q \x01(\v2A.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Rapid7H\x00R\x06rapid7\x12[\n" + - "\x06stripe\x18r \x01(\v2A.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.StripeH\x00R\x06stripe\x12X\n" + - "\x05veeam\x18s \x01(\v2@.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.VeeamH\x00R\x05veeam\x12^\n" + - "\aworkday\x18t \x01(\v2B.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.WorkdayH\x00R\aworkday\x12%\n" + - "\rjustification\x18\xc8\x01 \x01(\tR\rjustificationB\t\n" + - "\aaccountB\xe5\x02\n" + - "#com.splitsecure.conveniencestore.v1B)GenerateCreateSaml2SpProposalRequestProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_goTypes = []any{ - (*GenerateCreateSAML2ServiceProviderProposalRequest)(nil), // 0: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base)(nil), // 1: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base - (*v1.BaseResourceAttributes)(nil), // 2: splitsecure.teamresource.v1.BaseResourceAttributes - (*v2.SAML2ServiceProvider_AWS)(nil), // 3: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.AWS - (*v2.SAML2ServiceProvider_Cloudflare)(nil), // 4: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Cloudflare - (*v2.SAML2ServiceProvider_EventBrite)(nil), // 5: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.EventBrite - (*v2.SAML2ServiceProvider_GCP)(nil), // 6: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GCP - (*v2.SAML2ServiceProvider_GoogleWorkspace)(nil), // 7: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspace - (*v2.SAML2ServiceProvider_GoogleWorkspaceLegacy)(nil), // 8: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceLegacy - (*v2.SAML2ServiceProvider_IBMCloud)(nil), // 9: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.IBMCloud - (*v2.SAML2ServiceProvider_Kandji)(nil), // 10: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Kandji - (*v2.SAML2ServiceProvider_MicrosoftEntraID)(nil), // 11: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.MicrosoftEntraID - (*v2.SAML2ServiceProvider_Okta)(nil), // 12: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Okta - (*v2.SAML2ServiceProvider_OracleCloud)(nil), // 13: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OracleCloud - (*v2.SAML2ServiceProvider_PagerDuty)(nil), // 14: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PagerDuty - (*v2.SAML2ServiceProvider_PitchBook)(nil), // 15: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PitchBook - (*v2.SAML2ServiceProvider_Rapid7)(nil), // 16: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Rapid7 - (*v2.SAML2ServiceProvider_Stripe)(nil), // 17: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Stripe - (*v2.SAML2ServiceProvider_Veeam)(nil), // 18: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Veeam - (*v2.SAML2ServiceProvider_Workday)(nil), // 19: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Workday -} -var file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_depIdxs = []int32{ - 1, // 0: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.base:type_name -> splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base - 2, // 1: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.attributes:type_name -> splitsecure.teamresource.v1.BaseResourceAttributes - 3, // 2: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.aws:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.AWS - 4, // 3: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.cloudflare:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Cloudflare - 5, // 4: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.event_brite:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.EventBrite - 6, // 5: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.gcp:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GCP - 7, // 6: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.google_workspace:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspace - 8, // 7: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.google_workspace_legacy:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceLegacy - 9, // 8: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.ibm_cloud:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.IBMCloud - 10, // 9: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.kandji:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Kandji - 11, // 10: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.microsoft_entra_id:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.MicrosoftEntraID - 12, // 11: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.okta:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Okta - 13, // 12: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.oracle_cloud:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OracleCloud - 14, // 13: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.pager_duty:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PagerDuty - 15, // 14: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.pitch_book:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PitchBook - 16, // 15: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.rapid7:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Rapid7 - 17, // 16: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.stripe:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Stripe - 18, // 17: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.veeam:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Veeam - 19, // 18: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest.Base.workday:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Workday - 19, // [19:19] is the sub-list for method output_type - 19, // [19:19] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_init() -} -func file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_init() { - if File_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto != nil { - return - } - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_msgTypes[1].OneofWrappers = []any{ - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Aws)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Cloudflare)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_EventBrite)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Gcp)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspace)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspaceLegacy)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_IbmCloud)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Kandji)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_MicrosoftEntraId)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Okta)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_OracleCloud)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_PagerDuty)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_PitchBook)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Rapid7)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Stripe)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Veeam)(nil), - (*GenerateCreateSAML2ServiceProviderProposalRequest_Base_Workday)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto = out.File - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.pb.go deleted file mode 100644 index 41496ce..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.pb.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GenerateCreateSAML2ServiceProviderProposalResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - InvokeRequest *v1.InvokeRequest `protobuf:"bytes,1,opt,name=invoke_request,json=invokeRequest,proto3" json:"invoke_request,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateCreateSAML2ServiceProviderProposalResponse) Reset() { - *x = GenerateCreateSAML2ServiceProviderProposalResponse{} - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateCreateSAML2ServiceProviderProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateCreateSAML2ServiceProviderProposalResponse) ProtoMessage() {} - -func (x *GenerateCreateSAML2ServiceProviderProposalResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateCreateSAML2ServiceProviderProposalResponse.ProtoReflect.Descriptor instead. -func (*GenerateCreateSAML2ServiceProviderProposalResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateCreateSAML2ServiceProviderProposalResponse) GetInvokeRequest() *v1.InvokeRequest { - if x != nil { - return x.InvokeRequest - } - return nil -} - -var File_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDesc = "" + - "\n" + - "Psplitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a$splitsecure/enclave/v1/enclave.proto\"\x82\x01\n" + - "2GenerateCreateSAML2ServiceProviderProposalResponse\x12L\n" + - "\x0einvoke_request\x18\x01 \x01(\v2%.splitsecure.enclave.v1.InvokeRequestR\rinvokeRequestB\xe6\x02\n" + - "#com.splitsecure.conveniencestore.v1B*GenerateCreateSaml2SpProposalResponseProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_goTypes = []any{ - (*GenerateCreateSAML2ServiceProviderProposalResponse)(nil), // 0: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalResponse - (*v1.InvokeRequest)(nil), // 1: splitsecure.enclave.v1.InvokeRequest -} -var file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_depIdxs = []int32{ - 1, // 0: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalResponse.invoke_request:type_name -> splitsecure.enclave.v1.InvokeRequest - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_init() -} -func file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_init() { - if File_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto = out.File - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.pb.go deleted file mode 100644 index 9e76346..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.pb.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.proto - -package conveniencestorev1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenerateDeleteSAML2IdentityProviderProposalRequest assembles the -// MintProposalRequest payload for deleting a SAML2 IdP. The server -// parses resource_s2r to derive the owning team and the target -// SAML2ResourceRecord, then wraps it in a -// coordresourcemgmt.DeleteResourceRequest. -type GenerateDeleteSAML2IdentityProviderProposalRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Base *GenerateDeleteSAML2IdentityProviderProposalRequest_Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest) Reset() { - *x = GenerateDeleteSAML2IdentityProviderProposalRequest{} - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateDeleteSAML2IdentityProviderProposalRequest) ProtoMessage() {} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateDeleteSAML2IdentityProviderProposalRequest.ProtoReflect.Descriptor instead. -func (*GenerateDeleteSAML2IdentityProviderProposalRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest) GetBase() *GenerateDeleteSAML2IdentityProviderProposalRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type GenerateDeleteSAML2IdentityProviderProposalRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - // resource_s2r is the s2r URI of the SAML2 IdP to delete. Kind must - // be "saml2idp". The team and resource ids are derived from it. - ResourceS2R string `protobuf:"bytes,1,opt,name=resource_s2r,json=resourceS2r,proto3" json:"resource_s2r,omitempty"` - Justification string `protobuf:"bytes,2,opt,name=justification,proto3" json:"justification,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest_Base) Reset() { - *x = GenerateDeleteSAML2IdentityProviderProposalRequest_Base{} - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateDeleteSAML2IdentityProviderProposalRequest_Base) ProtoMessage() {} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateDeleteSAML2IdentityProviderProposalRequest_Base.ProtoReflect.Descriptor instead. -func (*GenerateDeleteSAML2IdentityProviderProposalRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest_Base) GetResourceS2R() string { - if x != nil { - return x.ResourceS2R - } - return "" -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalRequest_Base) GetJustification() string { - if x != nil { - return x.Justification - } - return "" -} - -var File_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDesc = "" + - "\n" + - "Psplitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.proto\x12\x1fsplitsecure.conveniencestore.v1\"\xf3\x01\n" + - "2GenerateDeleteSAML2IdentityProviderProposalRequest\x12l\n" + - "\x04base\x18\x01 \x01(\v2X.splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalRequest.BaseR\x04base\x1aO\n" + - "\x04Base\x12!\n" + - "\fresource_s2r\x18\x01 \x01(\tR\vresourceS2r\x12$\n" + - "\rjustification\x18\x02 \x01(\tR\rjustificationB\xe6\x02\n" + - "#com.splitsecure.conveniencestore.v1B*GenerateDeleteSaml2IdpProposalRequestProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_goTypes = []any{ - (*GenerateDeleteSAML2IdentityProviderProposalRequest)(nil), // 0: splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalRequest - (*GenerateDeleteSAML2IdentityProviderProposalRequest_Base)(nil), // 1: splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalRequest.Base -} -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_depIdxs = []int32{ - 1, // 0: splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalRequest.base:type_name -> splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalRequest.Base - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_init() -} -func file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_init() { - if File_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto = out.File - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.pb.go deleted file mode 100644 index 5ee1bff..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.pb.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GenerateDeleteSAML2IdentityProviderProposalResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - InvokeRequest *v1.InvokeRequest `protobuf:"bytes,1,opt,name=invoke_request,json=invokeRequest,proto3" json:"invoke_request,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalResponse) Reset() { - *x = GenerateDeleteSAML2IdentityProviderProposalResponse{} - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateDeleteSAML2IdentityProviderProposalResponse) ProtoMessage() {} - -func (x *GenerateDeleteSAML2IdentityProviderProposalResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateDeleteSAML2IdentityProviderProposalResponse.ProtoReflect.Descriptor instead. -func (*GenerateDeleteSAML2IdentityProviderProposalResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateDeleteSAML2IdentityProviderProposalResponse) GetInvokeRequest() *v1.InvokeRequest { - if x != nil { - return x.InvokeRequest - } - return nil -} - -var File_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDesc = "" + - "\n" + - "Qsplitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a$splitsecure/enclave/v1/enclave.proto\"\x83\x01\n" + - "3GenerateDeleteSAML2IdentityProviderProposalResponse\x12L\n" + - "\x0einvoke_request\x18\x01 \x01(\v2%.splitsecure.enclave.v1.InvokeRequestR\rinvokeRequestB\xe7\x02\n" + - "#com.splitsecure.conveniencestore.v1B+GenerateDeleteSaml2IdpProposalResponseProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_goTypes = []any{ - (*GenerateDeleteSAML2IdentityProviderProposalResponse)(nil), // 0: splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalResponse - (*v1.InvokeRequest)(nil), // 1: splitsecure.enclave.v1.InvokeRequest -} -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_depIdxs = []int32{ - 1, // 0: splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalResponse.invoke_request:type_name -> splitsecure.enclave.v1.InvokeRequest - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_init() -} -func file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_init() { - if File_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto = out.File - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.pb.go deleted file mode 100644 index 43dfbaa..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.pb.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.proto - -package conveniencestorev1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenerateDeleteSAML2ServiceProviderProposalRequest assembles the -// MintProposalRequest payload for deleting a SAML2 SP. The server -// parses resource_s2r to derive the owning team and the target -// SAML2ResourceRecord, then wraps it in a -// coordresourcemgmt.DeleteResourceRequest. -type GenerateDeleteSAML2ServiceProviderProposalRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Base *GenerateDeleteSAML2ServiceProviderProposalRequest_Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest) Reset() { - *x = GenerateDeleteSAML2ServiceProviderProposalRequest{} - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateDeleteSAML2ServiceProviderProposalRequest) ProtoMessage() {} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateDeleteSAML2ServiceProviderProposalRequest.ProtoReflect.Descriptor instead. -func (*GenerateDeleteSAML2ServiceProviderProposalRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest) GetBase() *GenerateDeleteSAML2ServiceProviderProposalRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type GenerateDeleteSAML2ServiceProviderProposalRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - // resource_s2r is the s2r URI of the SAML2 SP to delete. Kind must - // be "saml2sp". The team and resource ids are derived from it. - ResourceS2R string `protobuf:"bytes,1,opt,name=resource_s2r,json=resourceS2r,proto3" json:"resource_s2r,omitempty"` - Justification string `protobuf:"bytes,2,opt,name=justification,proto3" json:"justification,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest_Base) Reset() { - *x = GenerateDeleteSAML2ServiceProviderProposalRequest_Base{} - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateDeleteSAML2ServiceProviderProposalRequest_Base) ProtoMessage() {} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateDeleteSAML2ServiceProviderProposalRequest_Base.ProtoReflect.Descriptor instead. -func (*GenerateDeleteSAML2ServiceProviderProposalRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest_Base) GetResourceS2R() string { - if x != nil { - return x.ResourceS2R - } - return "" -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalRequest_Base) GetJustification() string { - if x != nil { - return x.Justification - } - return "" -} - -var File_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDesc = "" + - "\n" + - "Osplitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.proto\x12\x1fsplitsecure.conveniencestore.v1\"\xf1\x01\n" + - "1GenerateDeleteSAML2ServiceProviderProposalRequest\x12k\n" + - "\x04base\x18\x01 \x01(\v2W.splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalRequest.BaseR\x04base\x1aO\n" + - "\x04Base\x12!\n" + - "\fresource_s2r\x18\x01 \x01(\tR\vresourceS2r\x12$\n" + - "\rjustification\x18\x02 \x01(\tR\rjustificationB\xe5\x02\n" + - "#com.splitsecure.conveniencestore.v1B)GenerateDeleteSaml2SpProposalRequestProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_goTypes = []any{ - (*GenerateDeleteSAML2ServiceProviderProposalRequest)(nil), // 0: splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalRequest - (*GenerateDeleteSAML2ServiceProviderProposalRequest_Base)(nil), // 1: splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalRequest.Base -} -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_depIdxs = []int32{ - 1, // 0: splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalRequest.base:type_name -> splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalRequest.Base - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_init() -} -func file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_init() { - if File_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto = out.File - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.pb.go deleted file mode 100644 index 0aec42c..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.pb.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GenerateDeleteSAML2ServiceProviderProposalResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - InvokeRequest *v1.InvokeRequest `protobuf:"bytes,1,opt,name=invoke_request,json=invokeRequest,proto3" json:"invoke_request,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalResponse) Reset() { - *x = GenerateDeleteSAML2ServiceProviderProposalResponse{} - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateDeleteSAML2ServiceProviderProposalResponse) ProtoMessage() {} - -func (x *GenerateDeleteSAML2ServiceProviderProposalResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateDeleteSAML2ServiceProviderProposalResponse.ProtoReflect.Descriptor instead. -func (*GenerateDeleteSAML2ServiceProviderProposalResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateDeleteSAML2ServiceProviderProposalResponse) GetInvokeRequest() *v1.InvokeRequest { - if x != nil { - return x.InvokeRequest - } - return nil -} - -var File_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDesc = "" + - "\n" + - "Psplitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a$splitsecure/enclave/v1/enclave.proto\"\x82\x01\n" + - "2GenerateDeleteSAML2ServiceProviderProposalResponse\x12L\n" + - "\x0einvoke_request\x18\x01 \x01(\v2%.splitsecure.enclave.v1.InvokeRequestR\rinvokeRequestB\xe6\x02\n" + - "#com.splitsecure.conveniencestore.v1B*GenerateDeleteSaml2SpProposalResponseProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_goTypes = []any{ - (*GenerateDeleteSAML2ServiceProviderProposalResponse)(nil), // 0: splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalResponse - (*v1.InvokeRequest)(nil), // 1: splitsecure.enclave.v1.InvokeRequest -} -var file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_depIdxs = []int32{ - 1, // 0: splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalResponse.invoke_request:type_name -> splitsecure.enclave.v1.InvokeRequest - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_init() -} -func file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_init() { - if File_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto = out.File - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/get_proposal_resource.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/get_proposal_resource.pb.go deleted file mode 100644 index 6430dcd..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/get_proposal_resource.pb.go +++ /dev/null @@ -1,236 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/get_proposal_resource.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/requestsigning/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GetProposalResourceRequest asks for the s2r URI of the team resource -// a proposal minted. Direct proposal_id -> resource_s2r lookup. -type GetProposalResourceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Signed *v1.SignedRequest `protobuf:"bytes,1,opt,name=signed,proto3" json:"signed,omitempty"` - Base *GetProposalResourceRequest_Base `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProposalResourceRequest) Reset() { - *x = GetProposalResourceRequest{} - mi := &file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProposalResourceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalResourceRequest) ProtoMessage() {} - -func (x *GetProposalResourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalResourceRequest.ProtoReflect.Descriptor instead. -func (*GetProposalResourceRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescGZIP(), []int{0} -} - -func (x *GetProposalResourceRequest) GetSigned() *v1.SignedRequest { - if x != nil { - return x.Signed - } - return nil -} - -func (x *GetProposalResourceRequest) GetBase() *GetProposalResourceRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type GetProposalResourceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // resource_s2r is the URI of the record the proposal minted. Empty - // until execution lands; poll. - ResourceS2R string `protobuf:"bytes,1,opt,name=resource_s2r,json=resourceS2r,proto3" json:"resource_s2r,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProposalResourceResponse) Reset() { - *x = GetProposalResourceResponse{} - mi := &file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProposalResourceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalResourceResponse) ProtoMessage() {} - -func (x *GetProposalResourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalResourceResponse.ProtoReflect.Descriptor instead. -func (*GetProposalResourceResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescGZIP(), []int{1} -} - -func (x *GetProposalResourceResponse) GetResourceS2R() string { - if x != nil { - return x.ResourceS2R - } - return "" -} - -type GetProposalResourceRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - // proposal_id as returned by EnclaveRoundtrip.GetProposalForRequest. - ProposalId []byte `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProposalResourceRequest_Base) Reset() { - *x = GetProposalResourceRequest_Base{} - mi := &file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProposalResourceRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalResourceRequest_Base) ProtoMessage() {} - -func (x *GetProposalResourceRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalResourceRequest_Base.ProtoReflect.Descriptor instead. -func (*GetProposalResourceRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *GetProposalResourceRequest_Base) GetProposalId() []byte { - if x != nil { - return x.ProposalId - } - return nil -} - -var File_splitsecure_conveniencestore_v1_get_proposal_resource_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDesc = "" + - "\n" + - ";splitsecure/conveniencestore/v1/get_proposal_resource.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a2splitsecure/requestsigning/v1/signed_request.proto\"\xe1\x01\n" + - "\x1aGetProposalResourceRequest\x12D\n" + - "\x06signed\x18\x01 \x01(\v2,.splitsecure.requestsigning.v1.SignedRequestR\x06signed\x12T\n" + - "\x04base\x18\x02 \x01(\v2@.splitsecure.conveniencestore.v1.GetProposalResourceRequest.BaseR\x04base\x1a'\n" + - "\x04Base\x12\x1f\n" + - "\vproposal_id\x18\x01 \x01(\fR\n" + - "proposalId\"@\n" + - "\x1bGetProposalResourceResponse\x12!\n" + - "\fresource_s2r\x18\x01 \x01(\tR\vresourceS2rB\xd4\x02\n" + - "#com.splitsecure.conveniencestore.v1B\x18GetProposalResourceProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_goTypes = []any{ - (*GetProposalResourceRequest)(nil), // 0: splitsecure.conveniencestore.v1.GetProposalResourceRequest - (*GetProposalResourceResponse)(nil), // 1: splitsecure.conveniencestore.v1.GetProposalResourceResponse - (*GetProposalResourceRequest_Base)(nil), // 2: splitsecure.conveniencestore.v1.GetProposalResourceRequest.Base - (*v1.SignedRequest)(nil), // 3: splitsecure.requestsigning.v1.SignedRequest -} -var file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_depIdxs = []int32{ - 3, // 0: splitsecure.conveniencestore.v1.GetProposalResourceRequest.signed:type_name -> splitsecure.requestsigning.v1.SignedRequest - 2, // 1: splitsecure.conveniencestore.v1.GetProposalResourceRequest.base:type_name -> splitsecure.conveniencestore.v1.GetProposalResourceRequest.Base - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_init() } -func file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_init() { - if File_splitsecure_conveniencestore_v1_get_proposal_resource_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_rawDesc)), - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_get_proposal_resource_proto = out.File - file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/get_saml2_resource.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/get_saml2_resource.pb.go deleted file mode 100644 index 7f731fd..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/get_saml2_resource.pb.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/get_saml2_resource.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/requestsigning/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GetSAML2ResourcesRequest fetches specific SAML2 IdP or SP records by -// their s2r URIs. Callers holding a known set of resource_s2rs can use -// this instead of ListSAML2Resources + client-side filter. -type GetSAML2ResourcesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Signed *v1.SignedRequest `protobuf:"bytes,1,opt,name=signed,proto3" json:"signed,omitempty"` - Base *GetSAML2ResourcesRequest_Base `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetSAML2ResourcesRequest) Reset() { - *x = GetSAML2ResourcesRequest{} - mi := &file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetSAML2ResourcesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetSAML2ResourcesRequest) ProtoMessage() {} - -func (x *GetSAML2ResourcesRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetSAML2ResourcesRequest.ProtoReflect.Descriptor instead. -func (*GetSAML2ResourcesRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescGZIP(), []int{0} -} - -func (x *GetSAML2ResourcesRequest) GetSigned() *v1.SignedRequest { - if x != nil { - return x.Signed - } - return nil -} - -func (x *GetSAML2ResourcesRequest) GetBase() *GetSAML2ResourcesRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type GetSAML2ResourcesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // resources maps each found record's resource_s2r to the record. - // Keys absent from the map mean the record was not found, the - // caller is unauthorized on its owning team, the s2r was malformed, - // or the minting proposal has not yet completed. - Resources map[string]*SAML2ResourceRecord `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetSAML2ResourcesResponse) Reset() { - *x = GetSAML2ResourcesResponse{} - mi := &file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetSAML2ResourcesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetSAML2ResourcesResponse) ProtoMessage() {} - -func (x *GetSAML2ResourcesResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetSAML2ResourcesResponse.ProtoReflect.Descriptor instead. -func (*GetSAML2ResourcesResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescGZIP(), []int{1} -} - -func (x *GetSAML2ResourcesResponse) GetResources() map[string]*SAML2ResourceRecord { - if x != nil { - return x.Resources - } - return nil -} - -type GetSAML2ResourcesRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - // resource_s2rs are the SAML2 resource URIs to look up. Each must - // be a saml2idp or saml2sp URI; the two kinds may be mixed. - ResourceS2Rs []string `protobuf:"bytes,1,rep,name=resource_s2rs,json=resourceS2rs,proto3" json:"resource_s2rs,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetSAML2ResourcesRequest_Base) Reset() { - *x = GetSAML2ResourcesRequest_Base{} - mi := &file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetSAML2ResourcesRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetSAML2ResourcesRequest_Base) ProtoMessage() {} - -func (x *GetSAML2ResourcesRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetSAML2ResourcesRequest_Base.ProtoReflect.Descriptor instead. -func (*GetSAML2ResourcesRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *GetSAML2ResourcesRequest_Base) GetResourceS2Rs() []string { - if x != nil { - return x.ResourceS2Rs - } - return nil -} - -var File_splitsecure_conveniencestore_v1_get_saml2_resource_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDesc = "" + - "\n" + - "8splitsecure/conveniencestore/v1/get_saml2_resource.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a4splitsecure/conveniencestore/v1/saml2_resource.proto\x1a2splitsecure/requestsigning/v1/signed_request.proto\"\xe1\x01\n" + - "\x18GetSAML2ResourcesRequest\x12D\n" + - "\x06signed\x18\x01 \x01(\v2,.splitsecure.requestsigning.v1.SignedRequestR\x06signed\x12R\n" + - "\x04base\x18\x02 \x01(\v2>.splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest.BaseR\x04base\x1a+\n" + - "\x04Base\x12#\n" + - "\rresource_s2rs\x18\x01 \x03(\tR\fresourceS2rs\"\xf8\x01\n" + - "\x19GetSAML2ResourcesResponse\x12g\n" + - "\tresources\x18\x01 \x03(\v2I.splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse.ResourcesEntryR\tresources\x1ar\n" + - "\x0eResourcesEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12J\n" + - "\x05value\x18\x02 \x01(\v24.splitsecure.conveniencestore.v1.SAML2ResourceRecordR\x05value:\x028\x01B\xd1\x02\n" + - "#com.splitsecure.conveniencestore.v1B\x15GetSaml2ResourceProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_goTypes = []any{ - (*GetSAML2ResourcesRequest)(nil), // 0: splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest - (*GetSAML2ResourcesResponse)(nil), // 1: splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse - (*GetSAML2ResourcesRequest_Base)(nil), // 2: splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest.Base - nil, // 3: splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse.ResourcesEntry - (*v1.SignedRequest)(nil), // 4: splitsecure.requestsigning.v1.SignedRequest - (*SAML2ResourceRecord)(nil), // 5: splitsecure.conveniencestore.v1.SAML2ResourceRecord -} -var file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_depIdxs = []int32{ - 4, // 0: splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest.signed:type_name -> splitsecure.requestsigning.v1.SignedRequest - 2, // 1: splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest.base:type_name -> splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest.Base - 3, // 2: splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse.resources:type_name -> splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse.ResourcesEntry - 5, // 3: splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse.ResourcesEntry.value:type_name -> splitsecure.conveniencestore.v1.SAML2ResourceRecord - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_init() } -func file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_init() { - if File_splitsecure_conveniencestore_v1_get_saml2_resource_proto != nil { - return - } - file_splitsecure_conveniencestore_v1_saml2_resource_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_rawDesc)), - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_get_saml2_resource_proto = out.File - file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/list_saml2_resources.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/list_saml2_resources.pb.go deleted file mode 100644 index c3e04ba..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/list_saml2_resources.pb.go +++ /dev/null @@ -1,291 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/list_saml2_resources.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/requestsigning/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ListSAML2ResourcesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Signed *v1.SignedRequest `protobuf:"bytes,1,opt,name=signed,proto3" json:"signed,omitempty"` - Base *ListSAML2ResourcesRequest_Base `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ListSAML2ResourcesRequest) Reset() { - *x = ListSAML2ResourcesRequest{} - mi := &file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ListSAML2ResourcesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListSAML2ResourcesRequest) ProtoMessage() {} - -func (x *ListSAML2ResourcesRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListSAML2ResourcesRequest.ProtoReflect.Descriptor instead. -func (*ListSAML2ResourcesRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *ListSAML2ResourcesRequest) GetSigned() *v1.SignedRequest { - if x != nil { - return x.Signed - } - return nil -} - -func (x *ListSAML2ResourcesRequest) GetBase() *ListSAML2ResourcesRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type ListSAML2ResourcesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Resources []*SAML2ResourceRecord `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ListSAML2ResourcesResponse) Reset() { - *x = ListSAML2ResourcesResponse{} - mi := &file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ListSAML2ResourcesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListSAML2ResourcesResponse) ProtoMessage() {} - -func (x *ListSAML2ResourcesResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListSAML2ResourcesResponse.ProtoReflect.Descriptor instead. -func (*ListSAML2ResourcesResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *ListSAML2ResourcesResponse) GetResources() []*SAML2ResourceRecord { - if x != nil { - return x.Resources - } - return nil -} - -type ListSAML2ResourcesRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - EnclaveId []byte `protobuf:"bytes,1,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` // Used for authorization (enclave caller path) - // team selects the target team. team_id (SHA3-512 base identity hash - // bytes) and team_s2r (s2r:{deployment}:team:{snowflake}) are mutually - // exclusive; server resolves team_s2r to team_base_id internally. - // - // Types that are valid to be assigned to Team: - // - // *ListSAML2ResourcesRequest_Base_TeamId - // *ListSAML2ResourcesRequest_Base_TeamS2R - Team isListSAML2ResourcesRequest_Base_Team `protobuf_oneof:"team"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ListSAML2ResourcesRequest_Base) Reset() { - *x = ListSAML2ResourcesRequest_Base{} - mi := &file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ListSAML2ResourcesRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListSAML2ResourcesRequest_Base) ProtoMessage() {} - -func (x *ListSAML2ResourcesRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListSAML2ResourcesRequest_Base.ProtoReflect.Descriptor instead. -func (*ListSAML2ResourcesRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *ListSAML2ResourcesRequest_Base) GetEnclaveId() []byte { - if x != nil { - return x.EnclaveId - } - return nil -} - -func (x *ListSAML2ResourcesRequest_Base) GetTeam() isListSAML2ResourcesRequest_Base_Team { - if x != nil { - return x.Team - } - return nil -} - -func (x *ListSAML2ResourcesRequest_Base) GetTeamId() []byte { - if x != nil { - if x, ok := x.Team.(*ListSAML2ResourcesRequest_Base_TeamId); ok { - return x.TeamId - } - } - return nil -} - -func (x *ListSAML2ResourcesRequest_Base) GetTeamS2R() string { - if x != nil { - if x, ok := x.Team.(*ListSAML2ResourcesRequest_Base_TeamS2R); ok { - return x.TeamS2R - } - } - return "" -} - -type isListSAML2ResourcesRequest_Base_Team interface { - isListSAML2ResourcesRequest_Base_Team() -} - -type ListSAML2ResourcesRequest_Base_TeamId struct { - TeamId []byte `protobuf:"bytes,2,opt,name=team_id,json=teamId,proto3,oneof"` -} - -type ListSAML2ResourcesRequest_Base_TeamS2R struct { - TeamS2R string `protobuf:"bytes,3,opt,name=team_s2r,json=teamS2r,proto3,oneof"` -} - -func (*ListSAML2ResourcesRequest_Base_TeamId) isListSAML2ResourcesRequest_Base_Team() {} - -func (*ListSAML2ResourcesRequest_Base_TeamS2R) isListSAML2ResourcesRequest_Base_Team() {} - -var File_splitsecure_conveniencestore_v1_list_saml2_resources_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDesc = "" + - "\n" + - ":splitsecure/conveniencestore/v1/list_saml2_resources.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a4splitsecure/conveniencestore/v1/saml2_resource.proto\x1a2splitsecure/requestsigning/v1/signed_request.proto\"\x9d\x02\n" + - "\x19ListSAML2ResourcesRequest\x12D\n" + - "\x06signed\x18\x01 \x01(\v2,.splitsecure.requestsigning.v1.SignedRequestR\x06signed\x12S\n" + - "\x04base\x18\x02 \x01(\v2?.splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest.BaseR\x04base\x1ae\n" + - "\x04Base\x12\x1d\n" + - "\n" + - "enclave_id\x18\x01 \x01(\fR\tenclaveId\x12\x19\n" + - "\ateam_id\x18\x02 \x01(\fH\x00R\x06teamId\x12\x1b\n" + - "\bteam_s2r\x18\x03 \x01(\tH\x00R\ateamS2rB\x06\n" + - "\x04team\"p\n" + - "\x1aListSAML2ResourcesResponse\x12R\n" + - "\tresources\x18\x01 \x03(\v24.splitsecure.conveniencestore.v1.SAML2ResourceRecordR\tresourcesB\xd3\x02\n" + - "#com.splitsecure.conveniencestore.v1B\x17ListSaml2ResourcesProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_goTypes = []any{ - (*ListSAML2ResourcesRequest)(nil), // 0: splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest - (*ListSAML2ResourcesResponse)(nil), // 1: splitsecure.conveniencestore.v1.ListSAML2ResourcesResponse - (*ListSAML2ResourcesRequest_Base)(nil), // 2: splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest.Base - (*v1.SignedRequest)(nil), // 3: splitsecure.requestsigning.v1.SignedRequest - (*SAML2ResourceRecord)(nil), // 4: splitsecure.conveniencestore.v1.SAML2ResourceRecord -} -var file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_depIdxs = []int32{ - 3, // 0: splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest.signed:type_name -> splitsecure.requestsigning.v1.SignedRequest - 2, // 1: splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest.base:type_name -> splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest.Base - 4, // 2: splitsecure.conveniencestore.v1.ListSAML2ResourcesResponse.resources:type_name -> splitsecure.conveniencestore.v1.SAML2ResourceRecord - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_init() } -func file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_init() { - if File_splitsecure_conveniencestore_v1_list_saml2_resources_proto != nil { - return - } - file_splitsecure_conveniencestore_v1_saml2_resource_proto_init() - file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes[2].OneofWrappers = []any{ - (*ListSAML2ResourcesRequest_Base_TeamId)(nil), - (*ListSAML2ResourcesRequest_Base_TeamS2R)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_rawDesc)), - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_list_saml2_resources_proto = out.File - file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.pb.go deleted file mode 100644 index a9ba811..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.pb.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.proto - -package conveniencestorev1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_rawDesc = "" + - "\n" + - "Nsplitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.proto\x12\x1fsplitsecure.conveniencestore.v1\x1aPsplitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.proto\x1aQsplitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.proto\x1aOsplitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.proto\x1aPsplitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.proto\x1aPsplitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.proto\x1aQsplitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.proto\x1aOsplitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.proto\x1aPsplitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.proto\x1a;splitsecure/conveniencestore/v1/get_proposal_resource.proto\x1a8splitsecure/conveniencestore/v1/get_saml2_resource.proto\x1a:splitsecure/conveniencestore/v1/list_saml2_resources.proto2\xaf\n" + - "\n" + - "\x17ConvenienceStoreService\x12\x8d\x01\n" + - "\x12ListSAML2Resources\x12:.splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest\x1a;.splitsecure.conveniencestore.v1.ListSAML2ResourcesResponse\x12\x8a\x01\n" + - "\x11GetSAML2Resources\x129.splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest\x1a:.splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse\x12\x90\x01\n" + - "\x13GetProposalResource\x12;.splitsecure.conveniencestore.v1.GetProposalResourceRequest\x1a<.splitsecure.conveniencestore.v1.GetProposalResourceResponse\x12\xd8\x01\n" + - "+GenerateCreateSAML2IdentityProviderProposal\x12S.splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest\x1aT.splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalResponse\x12\xd5\x01\n" + - "*GenerateCreateSAML2ServiceProviderProposal\x12R.splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest\x1aS.splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalResponse\x12\xd8\x01\n" + - "+GenerateDeleteSAML2IdentityProviderProposal\x12S.splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalRequest\x1aT.splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalResponse\x12\xd5\x01\n" + - "*GenerateDeleteSAML2ServiceProviderProposal\x12R.splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalRequest\x1aS.splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalResponseB\xe6\x02\n" + - "#com.splitsecure.conveniencestore.v1B*ProviderCustomConveniencestoreServiceProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_goTypes = []any{ - (*ListSAML2ResourcesRequest)(nil), // 0: splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest - (*GetSAML2ResourcesRequest)(nil), // 1: splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest - (*GetProposalResourceRequest)(nil), // 2: splitsecure.conveniencestore.v1.GetProposalResourceRequest - (*GenerateCreateSAML2IdentityProviderProposalRequest)(nil), // 3: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest - (*GenerateCreateSAML2ServiceProviderProposalRequest)(nil), // 4: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest - (*GenerateDeleteSAML2IdentityProviderProposalRequest)(nil), // 5: splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalRequest - (*GenerateDeleteSAML2ServiceProviderProposalRequest)(nil), // 6: splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalRequest - (*ListSAML2ResourcesResponse)(nil), // 7: splitsecure.conveniencestore.v1.ListSAML2ResourcesResponse - (*GetSAML2ResourcesResponse)(nil), // 8: splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse - (*GetProposalResourceResponse)(nil), // 9: splitsecure.conveniencestore.v1.GetProposalResourceResponse - (*GenerateCreateSAML2IdentityProviderProposalResponse)(nil), // 10: splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalResponse - (*GenerateCreateSAML2ServiceProviderProposalResponse)(nil), // 11: splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalResponse - (*GenerateDeleteSAML2IdentityProviderProposalResponse)(nil), // 12: splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalResponse - (*GenerateDeleteSAML2ServiceProviderProposalResponse)(nil), // 13: splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalResponse -} -var file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_depIdxs = []int32{ - 0, // 0: splitsecure.conveniencestore.v1.ConvenienceStoreService.ListSAML2Resources:input_type -> splitsecure.conveniencestore.v1.ListSAML2ResourcesRequest - 1, // 1: splitsecure.conveniencestore.v1.ConvenienceStoreService.GetSAML2Resources:input_type -> splitsecure.conveniencestore.v1.GetSAML2ResourcesRequest - 2, // 2: splitsecure.conveniencestore.v1.ConvenienceStoreService.GetProposalResource:input_type -> splitsecure.conveniencestore.v1.GetProposalResourceRequest - 3, // 3: splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateCreateSAML2IdentityProviderProposal:input_type -> splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalRequest - 4, // 4: splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateCreateSAML2ServiceProviderProposal:input_type -> splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalRequest - 5, // 5: splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateDeleteSAML2IdentityProviderProposal:input_type -> splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalRequest - 6, // 6: splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateDeleteSAML2ServiceProviderProposal:input_type -> splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalRequest - 7, // 7: splitsecure.conveniencestore.v1.ConvenienceStoreService.ListSAML2Resources:output_type -> splitsecure.conveniencestore.v1.ListSAML2ResourcesResponse - 8, // 8: splitsecure.conveniencestore.v1.ConvenienceStoreService.GetSAML2Resources:output_type -> splitsecure.conveniencestore.v1.GetSAML2ResourcesResponse - 9, // 9: splitsecure.conveniencestore.v1.ConvenienceStoreService.GetProposalResource:output_type -> splitsecure.conveniencestore.v1.GetProposalResourceResponse - 10, // 10: splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateCreateSAML2IdentityProviderProposal:output_type -> splitsecure.conveniencestore.v1.GenerateCreateSAML2IdentityProviderProposalResponse - 11, // 11: splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateCreateSAML2ServiceProviderProposal:output_type -> splitsecure.conveniencestore.v1.GenerateCreateSAML2ServiceProviderProposalResponse - 12, // 12: splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateDeleteSAML2IdentityProviderProposal:output_type -> splitsecure.conveniencestore.v1.GenerateDeleteSAML2IdentityProviderProposalResponse - 13, // 13: splitsecure.conveniencestore.v1.ConvenienceStoreService.GenerateDeleteSAML2ServiceProviderProposal:output_type -> splitsecure.conveniencestore.v1.GenerateDeleteSAML2ServiceProviderProposalResponse - 7, // [7:14] is the sub-list for method output_type - 0, // [0:7] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { - file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_init() -} -func file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_init() { - if File_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto != nil { - return - } - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_request_proto_init() - file_splitsecure_conveniencestore_v1_generate_create_saml2_idp_proposal_response_proto_init() - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_request_proto_init() - file_splitsecure_conveniencestore_v1_generate_create_saml2_sp_proposal_response_proto_init() - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_request_proto_init() - file_splitsecure_conveniencestore_v1_generate_delete_saml2_idp_proposal_response_proto_init() - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_request_proto_init() - file_splitsecure_conveniencestore_v1_generate_delete_saml2_sp_proposal_response_proto_init() - file_splitsecure_conveniencestore_v1_get_proposal_resource_proto_init() - file_splitsecure_conveniencestore_v1_get_saml2_resource_proto_init() - file_splitsecure_conveniencestore_v1_list_saml2_resources_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_rawDesc)), - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_depIdxs, - }.Build() - File_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto = out.File - file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_provider_custom_conveniencestore_service_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/saml2_resource.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/saml2_resource.pb.go deleted file mode 100644 index f01d8f9..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/saml2_resource.pb.go +++ /dev/null @@ -1,1820 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/saml2_resource.proto - -package conveniencestorev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v1" - v2 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v2" - v13 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/notifications/v1" - v11 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/saml2metadatafetcherservice/v1" - v12 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type SAML2ResourceRecord struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Content *SAML2ResourceRecord_Content `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - // resource_s2r is the stable resource URI. Kind is "saml2idp" for an IdP - // record or "saml2sp" for an SP record. Populated server-side on read - // from the team snowflake and the resource id; not persisted in DDB. - // Empty for pure-tombstone records that can't be classified from content. - ResourceS2R string `protobuf:"bytes,4,opt,name=resource_s2r,json=resourceS2r,proto3" json:"resource_s2r,omitempty"` - // Types that are valid to be assigned to Record: - // - // *SAML2ResourceRecord_Tombstone - // *SAML2ResourceRecord_Provider - // *SAML2ResourceRecord_Idp - // *SAML2ResourceRecord_SignedServiceProvider - // *SAML2ResourceRecord_SignedIdp - Record isSAML2ResourceRecord_Record `protobuf_oneof:"record"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ResourceRecord) Reset() { - *x = SAML2ResourceRecord{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ResourceRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ResourceRecord) ProtoMessage() {} - -func (x *SAML2ResourceRecord) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ResourceRecord.ProtoReflect.Descriptor instead. -func (*SAML2ResourceRecord) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{0} -} - -func (x *SAML2ResourceRecord) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -func (x *SAML2ResourceRecord) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *SAML2ResourceRecord) GetContent() *SAML2ResourceRecord_Content { - if x != nil { - return x.Content - } - return nil -} - -func (x *SAML2ResourceRecord) GetResourceS2R() string { - if x != nil { - return x.ResourceS2R - } - return "" -} - -func (x *SAML2ResourceRecord) GetRecord() isSAML2ResourceRecord_Record { - if x != nil { - return x.Record - } - return nil -} - -func (x *SAML2ResourceRecord) GetTombstone() *Tombstone { - if x != nil { - if x, ok := x.Record.(*SAML2ResourceRecord_Tombstone); ok { - return x.Tombstone - } - } - return nil -} - -func (x *SAML2ResourceRecord) GetProvider() *SAML2ServiceProvider { - if x != nil { - if x, ok := x.Record.(*SAML2ResourceRecord_Provider); ok { - return x.Provider - } - } - return nil -} - -func (x *SAML2ResourceRecord) GetIdp() *v1.IdPStateAndKey { - if x != nil { - if x, ok := x.Record.(*SAML2ResourceRecord_Idp); ok { - return x.Idp - } - } - return nil -} - -func (x *SAML2ResourceRecord) GetSignedServiceProvider() *v2.AuthenticatedSAML2ServiceProvider { - if x != nil { - if x, ok := x.Record.(*SAML2ResourceRecord_SignedServiceProvider); ok { - return x.SignedServiceProvider - } - } - return nil -} - -func (x *SAML2ResourceRecord) GetSignedIdp() *v2.AuthenticatedIdPStateAndKey { - if x != nil { - if x, ok := x.Record.(*SAML2ResourceRecord_SignedIdp); ok { - return x.SignedIdp - } - } - return nil -} - -type isSAML2ResourceRecord_Record interface { - isSAML2ResourceRecord_Record() -} - -type SAML2ResourceRecord_Tombstone struct { - Tombstone *Tombstone `protobuf:"bytes,10,opt,name=tombstone,proto3,oneof"` -} - -type SAML2ResourceRecord_Provider struct { - Provider *SAML2ServiceProvider `protobuf:"bytes,11,opt,name=provider,proto3,oneof"` // v1 -} - -type SAML2ResourceRecord_Idp struct { - Idp *v1.IdPStateAndKey `protobuf:"bytes,12,opt,name=idp,proto3,oneof"` // v1 -} - -type SAML2ResourceRecord_SignedServiceProvider struct { - SignedServiceProvider *v2.AuthenticatedSAML2ServiceProvider `protobuf:"bytes,13,opt,name=signed_service_provider,json=signedServiceProvider,proto3,oneof"` // v2 -} - -type SAML2ResourceRecord_SignedIdp struct { - SignedIdp *v2.AuthenticatedIdPStateAndKey `protobuf:"bytes,14,opt,name=signed_idp,json=signedIdp,proto3,oneof"` // v2 -} - -func (*SAML2ResourceRecord_Tombstone) isSAML2ResourceRecord_Record() {} - -func (*SAML2ResourceRecord_Provider) isSAML2ResourceRecord_Record() {} - -func (*SAML2ResourceRecord_Idp) isSAML2ResourceRecord_Record() {} - -func (*SAML2ResourceRecord_SignedServiceProvider) isSAML2ResourceRecord_Record() {} - -func (*SAML2ResourceRecord_SignedIdp) isSAML2ResourceRecord_Record() {} - -type SAML2ServiceProvider struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Acs string `protobuf:"bytes,2,opt,name=acs,proto3" json:"acs,omitempty"` - IdpId string `protobuf:"bytes,3,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"` - // Deprecated: Marked as deprecated in splitsecure/conveniencestore/v1/saml2_resource.proto. - EntityId string `protobuf:"bytes,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` // Deprecated in favor of metadata.entity_descriptor.entity_id - Metadata *v11.Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` - Sensitivity *v12.AccountSensitivity `protobuf:"bytes,7,opt,name=sensitivity,proto3" json:"sensitivity,omitempty"` - // notification_policy controls how notifications are sent for proposals - // involving this service provider. Copied from IdPState at creation time. - NotificationPolicy v13.NotificationPolicy `protobuf:"varint,6,opt,name=notification_policy,json=notificationPolicy,proto3,enum=splitsecure.notifications.v1.NotificationPolicy" json:"notification_policy,omitempty"` - // base_resource_attributes is the unified resource metadata view. - // When present, consumers should prefer this over the flat fields above. - // Both paths are supported for backwards compatibility. - BaseResourceAttributes *v12.BaseResourceAttributes `protobuf:"bytes,8,opt,name=base_resource_attributes,json=baseResourceAttributes,proto3" json:"base_resource_attributes,omitempty"` - // Types that are valid to be assigned to Account: - // - // *SAML2ServiceProvider_Aws - // *SAML2ServiceProvider_Cloudflare_ - // *SAML2ServiceProvider_EventBrite_ - // *SAML2ServiceProvider_Gcp - // *SAML2ServiceProvider_GoogleWorkspace_ - // *SAML2ServiceProvider_GoogleWorkspaceLegacy_ - // *SAML2ServiceProvider_IbmCloud - // *SAML2ServiceProvider_Kandji_ - // *SAML2ServiceProvider_MicrosoftEntraId - // *SAML2ServiceProvider_Okta_ - // *SAML2ServiceProvider_OracleCloud_ - // *SAML2ServiceProvider_PagerDuty_ - // *SAML2ServiceProvider_PitchBook_ - // *SAML2ServiceProvider_Rapid7_ - // *SAML2ServiceProvider_Stripe_ - // *SAML2ServiceProvider_Veeam_ - // *SAML2ServiceProvider_Workday_ - Account isSAML2ServiceProvider_Account `protobuf_oneof:"account"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider) Reset() { - *x = SAML2ServiceProvider{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider) ProtoMessage() {} - -func (x *SAML2ServiceProvider) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1} -} - -func (x *SAML2ServiceProvider) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *SAML2ServiceProvider) GetAcs() string { - if x != nil { - return x.Acs - } - return "" -} - -func (x *SAML2ServiceProvider) GetIdpId() string { - if x != nil { - return x.IdpId - } - return "" -} - -// Deprecated: Marked as deprecated in splitsecure/conveniencestore/v1/saml2_resource.proto. -func (x *SAML2ServiceProvider) GetEntityId() string { - if x != nil { - return x.EntityId - } - return "" -} - -func (x *SAML2ServiceProvider) GetMetadata() *v11.Metadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *SAML2ServiceProvider) GetSensitivity() *v12.AccountSensitivity { - if x != nil { - return x.Sensitivity - } - return nil -} - -func (x *SAML2ServiceProvider) GetNotificationPolicy() v13.NotificationPolicy { - if x != nil { - return x.NotificationPolicy - } - return v13.NotificationPolicy(0) -} - -func (x *SAML2ServiceProvider) GetBaseResourceAttributes() *v12.BaseResourceAttributes { - if x != nil { - return x.BaseResourceAttributes - } - return nil -} - -func (x *SAML2ServiceProvider) GetAccount() isSAML2ServiceProvider_Account { - if x != nil { - return x.Account - } - return nil -} - -func (x *SAML2ServiceProvider) GetAws() *SAML2ServiceProvider_AWS { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Aws); ok { - return x.Aws - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetCloudflare() *SAML2ServiceProvider_Cloudflare { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Cloudflare_); ok { - return x.Cloudflare - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetEventBrite() *SAML2ServiceProvider_EventBrite { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_EventBrite_); ok { - return x.EventBrite - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetGcp() *SAML2ServiceProvider_GCP { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Gcp); ok { - return x.Gcp - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetGoogleWorkspace() *SAML2ServiceProvider_GoogleWorkspace { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_GoogleWorkspace_); ok { - return x.GoogleWorkspace - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetGoogleWorkspaceLegacy() *SAML2ServiceProvider_GoogleWorkspaceLegacy { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_GoogleWorkspaceLegacy_); ok { - return x.GoogleWorkspaceLegacy - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetIbmCloud() *SAML2ServiceProvider_IBMCloud { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_IbmCloud); ok { - return x.IbmCloud - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetKandji() *SAML2ServiceProvider_Kandji { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Kandji_); ok { - return x.Kandji - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetMicrosoftEntraId() *SAML2ServiceProvider_MicrosoftEntraID { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_MicrosoftEntraId); ok { - return x.MicrosoftEntraId - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetOkta() *SAML2ServiceProvider_Okta { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Okta_); ok { - return x.Okta - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetOracleCloud() *SAML2ServiceProvider_OracleCloud { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_OracleCloud_); ok { - return x.OracleCloud - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetPagerDuty() *SAML2ServiceProvider_PagerDuty { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_PagerDuty_); ok { - return x.PagerDuty - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetPitchBook() *SAML2ServiceProvider_PitchBook { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_PitchBook_); ok { - return x.PitchBook - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetRapid7() *SAML2ServiceProvider_Rapid7 { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Rapid7_); ok { - return x.Rapid7 - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetStripe() *SAML2ServiceProvider_Stripe { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Stripe_); ok { - return x.Stripe - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetVeeam() *SAML2ServiceProvider_Veeam { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Veeam_); ok { - return x.Veeam - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetWorkday() *SAML2ServiceProvider_Workday { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Workday_); ok { - return x.Workday - } - } - return nil -} - -type isSAML2ServiceProvider_Account interface { - isSAML2ServiceProvider_Account() -} - -type SAML2ServiceProvider_Aws struct { - Aws *SAML2ServiceProvider_AWS `protobuf:"bytes,100,opt,name=aws,proto3,oneof"` -} - -type SAML2ServiceProvider_Cloudflare_ struct { - Cloudflare *SAML2ServiceProvider_Cloudflare `protobuf:"bytes,112,opt,name=cloudflare,proto3,oneof"` -} - -type SAML2ServiceProvider_EventBrite_ struct { - EventBrite *SAML2ServiceProvider_EventBrite `protobuf:"bytes,105,opt,name=event_brite,json=eventBrite,proto3,oneof"` -} - -type SAML2ServiceProvider_Gcp struct { - Gcp *SAML2ServiceProvider_GCP `protobuf:"bytes,106,opt,name=gcp,proto3,oneof"` -} - -type SAML2ServiceProvider_GoogleWorkspace_ struct { - GoogleWorkspace *SAML2ServiceProvider_GoogleWorkspace `protobuf:"bytes,101,opt,name=google_workspace,json=googleWorkspace,proto3,oneof"` -} - -type SAML2ServiceProvider_GoogleWorkspaceLegacy_ struct { - GoogleWorkspaceLegacy *SAML2ServiceProvider_GoogleWorkspaceLegacy `protobuf:"bytes,110,opt,name=google_workspace_legacy,json=googleWorkspaceLegacy,proto3,oneof"` -} - -type SAML2ServiceProvider_IbmCloud struct { - IbmCloud *SAML2ServiceProvider_IBMCloud `protobuf:"bytes,113,opt,name=ibm_cloud,json=ibmCloud,proto3,oneof"` -} - -type SAML2ServiceProvider_Kandji_ struct { - Kandji *SAML2ServiceProvider_Kandji `protobuf:"bytes,111,opt,name=kandji,proto3,oneof"` -} - -type SAML2ServiceProvider_MicrosoftEntraId struct { - MicrosoftEntraId *SAML2ServiceProvider_MicrosoftEntraID `protobuf:"bytes,107,opt,name=microsoft_entra_id,json=microsoftEntraId,proto3,oneof"` -} - -type SAML2ServiceProvider_Okta_ struct { - Okta *SAML2ServiceProvider_Okta `protobuf:"bytes,103,opt,name=okta,proto3,oneof"` -} - -type SAML2ServiceProvider_OracleCloud_ struct { - OracleCloud *SAML2ServiceProvider_OracleCloud `protobuf:"bytes,114,opt,name=oracle_cloud,json=oracleCloud,proto3,oneof"` -} - -type SAML2ServiceProvider_PagerDuty_ struct { - PagerDuty *SAML2ServiceProvider_PagerDuty `protobuf:"bytes,115,opt,name=pager_duty,json=pagerDuty,proto3,oneof"` -} - -type SAML2ServiceProvider_PitchBook_ struct { - PitchBook *SAML2ServiceProvider_PitchBook `protobuf:"bytes,108,opt,name=pitch_book,json=pitchBook,proto3,oneof"` -} - -type SAML2ServiceProvider_Rapid7_ struct { - Rapid7 *SAML2ServiceProvider_Rapid7 `protobuf:"bytes,116,opt,name=rapid7,proto3,oneof"` -} - -type SAML2ServiceProvider_Stripe_ struct { - Stripe *SAML2ServiceProvider_Stripe `protobuf:"bytes,102,opt,name=stripe,proto3,oneof"` -} - -type SAML2ServiceProvider_Veeam_ struct { - Veeam *SAML2ServiceProvider_Veeam `protobuf:"bytes,104,opt,name=veeam,proto3,oneof"` -} - -type SAML2ServiceProvider_Workday_ struct { - Workday *SAML2ServiceProvider_Workday `protobuf:"bytes,109,opt,name=workday,proto3,oneof"` -} - -func (*SAML2ServiceProvider_Aws) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Cloudflare_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_EventBrite_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Gcp) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_GoogleWorkspace_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_GoogleWorkspaceLegacy_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_IbmCloud) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Kandji_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_MicrosoftEntraId) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Okta_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_OracleCloud_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_PagerDuty_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_PitchBook_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Rapid7_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Stripe_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Veeam_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Workday_) isSAML2ServiceProvider_Account() {} - -type SAML2ResourceRecord_Content struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *SAML2ResourceRecord_Content_Tombstone - // *SAML2ResourceRecord_Content_UpdateableRecord - Union isSAML2ResourceRecord_Content_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ResourceRecord_Content) Reset() { - *x = SAML2ResourceRecord_Content{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ResourceRecord_Content) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ResourceRecord_Content) ProtoMessage() {} - -func (x *SAML2ResourceRecord_Content) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ResourceRecord_Content.ProtoReflect.Descriptor instead. -func (*SAML2ResourceRecord_Content) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *SAML2ResourceRecord_Content) GetUnion() isSAML2ResourceRecord_Content_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *SAML2ResourceRecord_Content) GetTombstone() *Tombstone { - if x != nil { - if x, ok := x.Union.(*SAML2ResourceRecord_Content_Tombstone); ok { - return x.Tombstone - } - } - return nil -} - -func (x *SAML2ResourceRecord_Content) GetUpdateableRecord() *SAML2ResourceRecord_UpdateableRecord { - if x != nil { - if x, ok := x.Union.(*SAML2ResourceRecord_Content_UpdateableRecord); ok { - return x.UpdateableRecord - } - } - return nil -} - -type isSAML2ResourceRecord_Content_Union interface { - isSAML2ResourceRecord_Content_Union() -} - -type SAML2ResourceRecord_Content_Tombstone struct { - Tombstone *Tombstone `protobuf:"bytes,1,opt,name=tombstone,proto3,oneof"` -} - -type SAML2ResourceRecord_Content_UpdateableRecord struct { - UpdateableRecord *SAML2ResourceRecord_UpdateableRecord `protobuf:"bytes,2,opt,name=updateable_record,json=updateableRecord,proto3,oneof"` -} - -func (*SAML2ResourceRecord_Content_Tombstone) isSAML2ResourceRecord_Content_Union() {} - -func (*SAML2ResourceRecord_Content_UpdateableRecord) isSAML2ResourceRecord_Content_Union() {} - -type SAML2ResourceRecord_UpdateableRecord struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the canonical resource record - OriginalId []byte `protobuf:"bytes,1,opt,name=original_id,json=originalId,proto3" json:"original_id,omitempty"` - // The last time this record was updated - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - Content *SAML2ResourceRecord_UpdateableContent `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ResourceRecord_UpdateableRecord) Reset() { - *x = SAML2ResourceRecord_UpdateableRecord{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ResourceRecord_UpdateableRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ResourceRecord_UpdateableRecord) ProtoMessage() {} - -func (x *SAML2ResourceRecord_UpdateableRecord) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ResourceRecord_UpdateableRecord.ProtoReflect.Descriptor instead. -func (*SAML2ResourceRecord_UpdateableRecord) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{0, 1} -} - -func (x *SAML2ResourceRecord_UpdateableRecord) GetOriginalId() []byte { - if x != nil { - return x.OriginalId - } - return nil -} - -func (x *SAML2ResourceRecord_UpdateableRecord) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -func (x *SAML2ResourceRecord_UpdateableRecord) GetContent() *SAML2ResourceRecord_UpdateableContent { - if x != nil { - return x.Content - } - return nil -} - -type SAML2ResourceRecord_UpdateableContent struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *SAML2ResourceRecord_UpdateableContent_SignedServiceProvider - // *SAML2ResourceRecord_UpdateableContent_SignedIdp - Union isSAML2ResourceRecord_UpdateableContent_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ResourceRecord_UpdateableContent) Reset() { - *x = SAML2ResourceRecord_UpdateableContent{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ResourceRecord_UpdateableContent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ResourceRecord_UpdateableContent) ProtoMessage() {} - -func (x *SAML2ResourceRecord_UpdateableContent) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ResourceRecord_UpdateableContent.ProtoReflect.Descriptor instead. -func (*SAML2ResourceRecord_UpdateableContent) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{0, 2} -} - -func (x *SAML2ResourceRecord_UpdateableContent) GetUnion() isSAML2ResourceRecord_UpdateableContent_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *SAML2ResourceRecord_UpdateableContent) GetSignedServiceProvider() *v2.AuthenticatedSAML2ServiceProvider { - if x != nil { - if x, ok := x.Union.(*SAML2ResourceRecord_UpdateableContent_SignedServiceProvider); ok { - return x.SignedServiceProvider - } - } - return nil -} - -func (x *SAML2ResourceRecord_UpdateableContent) GetSignedIdp() *v2.AuthenticatedIdPStateAndKey { - if x != nil { - if x, ok := x.Union.(*SAML2ResourceRecord_UpdateableContent_SignedIdp); ok { - return x.SignedIdp - } - } - return nil -} - -type isSAML2ResourceRecord_UpdateableContent_Union interface { - isSAML2ResourceRecord_UpdateableContent_Union() -} - -type SAML2ResourceRecord_UpdateableContent_SignedServiceProvider struct { - SignedServiceProvider *v2.AuthenticatedSAML2ServiceProvider `protobuf:"bytes,1,opt,name=signed_service_provider,json=signedServiceProvider,proto3,oneof"` -} - -type SAML2ResourceRecord_UpdateableContent_SignedIdp struct { - SignedIdp *v2.AuthenticatedIdPStateAndKey `protobuf:"bytes,2,opt,name=signed_idp,json=signedIdp,proto3,oneof"` -} - -func (*SAML2ResourceRecord_UpdateableContent_SignedServiceProvider) isSAML2ResourceRecord_UpdateableContent_Union() { -} - -func (*SAML2ResourceRecord_UpdateableContent_SignedIdp) isSAML2ResourceRecord_UpdateableContent_Union() { -} - -type SAML2ServiceProvider_AWS struct { - state protoimpl.MessageState `protogen:"open.v1"` - // string account_id = 1; - SamlProviderArn string `protobuf:"bytes,2,opt,name=saml_provider_arn,json=samlProviderArn,proto3" json:"saml_provider_arn,omitempty"` - // Deprecated: Marked as deprecated in splitsecure/conveniencestore/v1/saml2_resource.proto. - DefaultRoleArn string `protobuf:"bytes,3,opt,name=default_role_arn,json=defaultRoleArn,proto3" json:"default_role_arn,omitempty"` - AllowedRoleArns []string `protobuf:"bytes,4,rep,name=allowed_role_arns,json=allowedRoleArns,proto3" json:"allowed_role_arns,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_AWS) Reset() { - *x = SAML2ServiceProvider_AWS{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_AWS) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_AWS) ProtoMessage() {} - -func (x *SAML2ServiceProvider_AWS) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_AWS.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_AWS) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 0} -} - -func (x *SAML2ServiceProvider_AWS) GetSamlProviderArn() string { - if x != nil { - return x.SamlProviderArn - } - return "" -} - -// Deprecated: Marked as deprecated in splitsecure/conveniencestore/v1/saml2_resource.proto. -func (x *SAML2ServiceProvider_AWS) GetDefaultRoleArn() string { - if x != nil { - return x.DefaultRoleArn - } - return "" -} - -func (x *SAML2ServiceProvider_AWS) GetAllowedRoleArns() []string { - if x != nil { - return x.AllowedRoleArns - } - return nil -} - -type SAML2ServiceProvider_Cloudflare struct { - state protoimpl.MessageState `protogen:"open.v1"` - SsoEndpoint string `protobuf:"bytes,1,opt,name=sso_endpoint,json=ssoEndpoint,proto3" json:"sso_endpoint,omitempty"` - DefaultEmail string `protobuf:"bytes,2,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Cloudflare) Reset() { - *x = SAML2ServiceProvider_Cloudflare{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Cloudflare) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Cloudflare) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Cloudflare) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Cloudflare.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Cloudflare) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 1} -} - -func (x *SAML2ServiceProvider_Cloudflare) GetSsoEndpoint() string { - if x != nil { - return x.SsoEndpoint - } - return "" -} - -func (x *SAML2ServiceProvider_Cloudflare) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -type SAML2ServiceProvider_EventBrite struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_EventBrite) Reset() { - *x = SAML2ServiceProvider_EventBrite{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_EventBrite) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_EventBrite) ProtoMessage() {} - -func (x *SAML2ServiceProvider_EventBrite) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_EventBrite.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_EventBrite) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 2} -} - -type SAML2ServiceProvider_GCP struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultEmail string `protobuf:"bytes,1,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_GCP) Reset() { - *x = SAML2ServiceProvider_GCP{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_GCP) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_GCP) ProtoMessage() {} - -func (x *SAML2ServiceProvider_GCP) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_GCP.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_GCP) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 3} -} - -func (x *SAML2ServiceProvider_GCP) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -type SAML2ServiceProvider_GoogleWorkspace struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_GoogleWorkspace) Reset() { - *x = SAML2ServiceProvider_GoogleWorkspace{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_GoogleWorkspace) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_GoogleWorkspace) ProtoMessage() {} - -func (x *SAML2ServiceProvider_GoogleWorkspace) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_GoogleWorkspace.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_GoogleWorkspace) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 4} -} - -type SAML2ServiceProvider_GoogleWorkspaceLegacy struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultEmail string `protobuf:"bytes,1,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - DomainName string `protobuf:"bytes,2,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) Reset() { - *x = SAML2ServiceProvider_GoogleWorkspaceLegacy{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_GoogleWorkspaceLegacy) ProtoMessage() {} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_GoogleWorkspaceLegacy.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_GoogleWorkspaceLegacy) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 5} -} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) GetDomainName() string { - if x != nil { - return x.DomainName - } - return "" -} - -type SAML2ServiceProvider_IBMCloud struct { - state protoimpl.MessageState `protogen:"open.v1"` - LoginUrl string `protobuf:"bytes,1,opt,name=login_url,json=loginUrl,proto3" json:"login_url,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_IBMCloud) Reset() { - *x = SAML2ServiceProvider_IBMCloud{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_IBMCloud) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_IBMCloud) ProtoMessage() {} - -func (x *SAML2ServiceProvider_IBMCloud) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_IBMCloud.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_IBMCloud) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 6} -} - -func (x *SAML2ServiceProvider_IBMCloud) GetLoginUrl() string { - if x != nil { - return x.LoginUrl - } - return "" -} - -type SAML2ServiceProvider_Kandji struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultEmail string `protobuf:"bytes,1,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Kandji) Reset() { - *x = SAML2ServiceProvider_Kandji{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Kandji) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Kandji) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Kandji) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Kandji.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Kandji) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 7} -} - -func (x *SAML2ServiceProvider_Kandji) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -type SAML2ServiceProvider_MicrosoftEntraID struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_MicrosoftEntraID) Reset() { - *x = SAML2ServiceProvider_MicrosoftEntraID{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_MicrosoftEntraID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_MicrosoftEntraID) ProtoMessage() {} - -func (x *SAML2ServiceProvider_MicrosoftEntraID) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_MicrosoftEntraID.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_MicrosoftEntraID) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 8} -} - -type SAML2ServiceProvider_Okta struct { - state protoimpl.MessageState `protogen:"open.v1"` - AllowedEmails []string `protobuf:"bytes,1,rep,name=allowed_emails,json=allowedEmails,proto3" json:"allowed_emails,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Okta) Reset() { - *x = SAML2ServiceProvider_Okta{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Okta) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Okta) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Okta) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[14] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Okta.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Okta) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 9} -} - -func (x *SAML2ServiceProvider_Okta) GetAllowedEmails() []string { - if x != nil { - return x.AllowedEmails - } - return nil -} - -type SAML2ServiceProvider_OracleCloud struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_OracleCloud) Reset() { - *x = SAML2ServiceProvider_OracleCloud{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_OracleCloud) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_OracleCloud) ProtoMessage() {} - -func (x *SAML2ServiceProvider_OracleCloud) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[15] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_OracleCloud.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_OracleCloud) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 10} -} - -type SAML2ServiceProvider_PagerDuty struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_PagerDuty) Reset() { - *x = SAML2ServiceProvider_PagerDuty{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_PagerDuty) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_PagerDuty) ProtoMessage() {} - -func (x *SAML2ServiceProvider_PagerDuty) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_PagerDuty.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_PagerDuty) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 11} -} - -type SAML2ServiceProvider_PitchBook struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_PitchBook) Reset() { - *x = SAML2ServiceProvider_PitchBook{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_PitchBook) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_PitchBook) ProtoMessage() {} - -func (x *SAML2ServiceProvider_PitchBook) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[17] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_PitchBook.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_PitchBook) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 12} -} - -type SAML2ServiceProvider_Rapid7 struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultRelayState string `protobuf:"bytes,1,opt,name=default_relay_state,json=defaultRelayState,proto3" json:"default_relay_state,omitempty"` - DefaultEmail string `protobuf:"bytes,2,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - DefaultFirstName string `protobuf:"bytes,3,opt,name=default_first_name,json=defaultFirstName,proto3" json:"default_first_name,omitempty"` - DefaultLastName string `protobuf:"bytes,4,opt,name=default_last_name,json=defaultLastName,proto3" json:"default_last_name,omitempty"` - DefaultRbacGroups []string `protobuf:"bytes,5,rep,name=default_rbac_groups,json=defaultRbacGroups,proto3" json:"default_rbac_groups,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Rapid7) Reset() { - *x = SAML2ServiceProvider_Rapid7{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Rapid7) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Rapid7) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Rapid7) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Rapid7.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Rapid7) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 13} -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultRelayState() string { - if x != nil { - return x.DefaultRelayState - } - return "" -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultFirstName() string { - if x != nil { - return x.DefaultFirstName - } - return "" -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultLastName() string { - if x != nil { - return x.DefaultLastName - } - return "" -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultRbacGroups() []string { - if x != nil { - return x.DefaultRbacGroups - } - return nil -} - -type SAML2ServiceProvider_Stripe struct { - state protoimpl.MessageState `protogen:"open.v1"` - AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Stripe) Reset() { - *x = SAML2ServiceProvider_Stripe{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Stripe) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Stripe) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Stripe) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[19] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Stripe.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Stripe) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 14} -} - -func (x *SAML2ServiceProvider_Stripe) GetAccountId() string { - if x != nil { - return x.AccountId - } - return "" -} - -type SAML2ServiceProvider_Veeam struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Veeam) Reset() { - *x = SAML2ServiceProvider_Veeam{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Veeam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Veeam) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Veeam) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[20] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Veeam.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Veeam) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 15} -} - -type SAML2ServiceProvider_Workday struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Workday) Reset() { - *x = SAML2ServiceProvider_Workday{} - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Workday) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Workday) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Workday) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[21] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Workday.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Workday) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP(), []int{1, 16} -} - -var File_splitsecure_conveniencestore_v1_saml2_resource_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDesc = "" + - "\n" + - "4splitsecure/conveniencestore/v1/saml2_resource.proto\x12\x1fsplitsecure.conveniencestore.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a/splitsecure/conveniencestore/v1/tombstone.proto\x1a4splitsecure/enclaveservices/saml2/v1/idp_state.proto\x1aJsplitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.proto\x1aOsplitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.proto\x1a6splitsecure/notifications/v1/notification_policy.proto\x1a9splitsecure/saml2metadatafetcherservice/v1/metadata.proto\x1a/splitsecure/teamresource/v1/team_resource.proto\"\xe9\n" + - "\n" + - "\x13SAML2ResourceRecord\x12\x0e\n" + - "\x02id\x18\x01 \x01(\fR\x02id\x129\n" + - "\n" + - "created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12V\n" + - "\acontent\x18\x03 \x01(\v2<.splitsecure.conveniencestore.v1.SAML2ResourceRecord.ContentR\acontent\x12!\n" + - "\fresource_s2r\x18\x04 \x01(\tR\vresourceS2r\x12J\n" + - "\ttombstone\x18\n" + - " \x01(\v2*.splitsecure.conveniencestore.v1.TombstoneH\x00R\ttombstone\x12S\n" + - "\bprovider\x18\v \x01(\v25.splitsecure.conveniencestore.v1.SAML2ServiceProviderH\x00R\bprovider\x12H\n" + - "\x03idp\x18\f \x01(\v24.splitsecure.enclaveservices.saml2.v1.IdPStateAndKeyH\x00R\x03idp\x12\x81\x01\n" + - "\x17signed_service_provider\x18\r \x01(\v2G.splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProviderH\x00R\x15signedServiceProvider\x12b\n" + - "\n" + - "signed_idp\x18\x0e \x01(\v2A.splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKeyH\x00R\tsignedIdp\x1a\xd4\x01\n" + - "\aContent\x12J\n" + - "\ttombstone\x18\x01 \x01(\v2*.splitsecure.conveniencestore.v1.TombstoneH\x00R\ttombstone\x12t\n" + - "\x11updateable_record\x18\x02 \x01(\v2E.splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableRecordH\x00R\x10updateableRecordB\a\n" + - "\x05union\x1a\xd0\x01\n" + - "\x10UpdateableRecord\x12\x1f\n" + - "\voriginal_id\x18\x01 \x01(\fR\n" + - "originalId\x129\n" + - "\n" + - "updated_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12`\n" + - "\acontent\x18\x03 \x01(\v2F.splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableContentR\acontent\x1a\x84\x02\n" + - "\x11UpdateableContent\x12\x81\x01\n" + - "\x17signed_service_provider\x18\x01 \x01(\v2G.splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProviderH\x00R\x15signedServiceProvider\x12b\n" + - "\n" + - "signed_idp\x18\x02 \x01(\v2A.splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKeyH\x00R\tsignedIdpB\a\n" + - "\x05unionB\b\n" + - "\x06record\"\xe1\x17\n" + - "\x14SAML2ServiceProvider\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" + - "\x03acs\x18\x02 \x01(\tR\x03acs\x12\x15\n" + - "\x06idp_id\x18\x03 \x01(\tR\x05idpId\x12\x1f\n" + - "\tentity_id\x18\x04 \x01(\tB\x02\x18\x01R\bentityId\x12P\n" + - "\bmetadata\x18\x05 \x01(\v24.splitsecure.saml2metadatafetcherservice.v1.MetadataR\bmetadata\x12Q\n" + - "\vsensitivity\x18\a \x01(\v2/.splitsecure.teamresource.v1.AccountSensitivityR\vsensitivity\x12a\n" + - "\x13notification_policy\x18\x06 \x01(\x0e20.splitsecure.notifications.v1.NotificationPolicyR\x12notificationPolicy\x12m\n" + - "\x18base_resource_attributes\x18\b \x01(\v23.splitsecure.teamresource.v1.BaseResourceAttributesR\x16baseResourceAttributes\x12M\n" + - "\x03aws\x18d \x01(\v29.splitsecure.conveniencestore.v1.SAML2ServiceProvider.AWSH\x00R\x03aws\x12b\n" + - "\n" + - "cloudflare\x18p \x01(\v2@.splitsecure.conveniencestore.v1.SAML2ServiceProvider.CloudflareH\x00R\n" + - "cloudflare\x12c\n" + - "\vevent_brite\x18i \x01(\v2@.splitsecure.conveniencestore.v1.SAML2ServiceProvider.EventBriteH\x00R\n" + - "eventBrite\x12M\n" + - "\x03gcp\x18j \x01(\v29.splitsecure.conveniencestore.v1.SAML2ServiceProvider.GCPH\x00R\x03gcp\x12r\n" + - "\x10google_workspace\x18e \x01(\v2E.splitsecure.conveniencestore.v1.SAML2ServiceProvider.GoogleWorkspaceH\x00R\x0fgoogleWorkspace\x12\x85\x01\n" + - "\x17google_workspace_legacy\x18n \x01(\v2K.splitsecure.conveniencestore.v1.SAML2ServiceProvider.GoogleWorkspaceLegacyH\x00R\x15googleWorkspaceLegacy\x12]\n" + - "\tibm_cloud\x18q \x01(\v2>.splitsecure.conveniencestore.v1.SAML2ServiceProvider.IBMCloudH\x00R\bibmCloud\x12V\n" + - "\x06kandji\x18o \x01(\v2<.splitsecure.conveniencestore.v1.SAML2ServiceProvider.KandjiH\x00R\x06kandji\x12v\n" + - "\x12microsoft_entra_id\x18k \x01(\v2F.splitsecure.conveniencestore.v1.SAML2ServiceProvider.MicrosoftEntraIDH\x00R\x10microsoftEntraId\x12P\n" + - "\x04okta\x18g \x01(\v2:.splitsecure.conveniencestore.v1.SAML2ServiceProvider.OktaH\x00R\x04okta\x12f\n" + - "\foracle_cloud\x18r \x01(\v2A.splitsecure.conveniencestore.v1.SAML2ServiceProvider.OracleCloudH\x00R\voracleCloud\x12`\n" + - "\n" + - "pager_duty\x18s \x01(\v2?.splitsecure.conveniencestore.v1.SAML2ServiceProvider.PagerDutyH\x00R\tpagerDuty\x12`\n" + - "\n" + - "pitch_book\x18l \x01(\v2?.splitsecure.conveniencestore.v1.SAML2ServiceProvider.PitchBookH\x00R\tpitchBook\x12V\n" + - "\x06rapid7\x18t \x01(\v2<.splitsecure.conveniencestore.v1.SAML2ServiceProvider.Rapid7H\x00R\x06rapid7\x12V\n" + - "\x06stripe\x18f \x01(\v2<.splitsecure.conveniencestore.v1.SAML2ServiceProvider.StripeH\x00R\x06stripe\x12S\n" + - "\x05veeam\x18h \x01(\v2;.splitsecure.conveniencestore.v1.SAML2ServiceProvider.VeeamH\x00R\x05veeam\x12Y\n" + - "\aworkday\x18m \x01(\v2=.splitsecure.conveniencestore.v1.SAML2ServiceProvider.WorkdayH\x00R\aworkday\x1a\x8b\x01\n" + - "\x03AWS\x12*\n" + - "\x11saml_provider_arn\x18\x02 \x01(\tR\x0fsamlProviderArn\x12,\n" + - "\x10default_role_arn\x18\x03 \x01(\tB\x02\x18\x01R\x0edefaultRoleArn\x12*\n" + - "\x11allowed_role_arns\x18\x04 \x03(\tR\x0fallowedRoleArns\x1aT\n" + - "\n" + - "Cloudflare\x12!\n" + - "\fsso_endpoint\x18\x01 \x01(\tR\vssoEndpoint\x12#\n" + - "\rdefault_email\x18\x02 \x01(\tR\fdefaultEmail\x1a\f\n" + - "\n" + - "EventBrite\x1a*\n" + - "\x03GCP\x12#\n" + - "\rdefault_email\x18\x01 \x01(\tR\fdefaultEmail\x1a\x11\n" + - "\x0fGoogleWorkspace\x1a]\n" + - "\x15GoogleWorkspaceLegacy\x12#\n" + - "\rdefault_email\x18\x01 \x01(\tR\fdefaultEmail\x12\x1f\n" + - "\vdomain_name\x18\x02 \x01(\tR\n" + - "domainName\x1a'\n" + - "\bIBMCloud\x12\x1b\n" + - "\tlogin_url\x18\x01 \x01(\tR\bloginUrl\x1a-\n" + - "\x06Kandji\x12#\n" + - "\rdefault_email\x18\x01 \x01(\tR\fdefaultEmail\x1a\x12\n" + - "\x10MicrosoftEntraID\x1a-\n" + - "\x04Okta\x12%\n" + - "\x0eallowed_emails\x18\x01 \x03(\tR\rallowedEmails\x1a\r\n" + - "\vOracleCloud\x1a\v\n" + - "\tPagerDuty\x1a\v\n" + - "\tPitchBook\x1a\xe7\x01\n" + - "\x06Rapid7\x12.\n" + - "\x13default_relay_state\x18\x01 \x01(\tR\x11defaultRelayState\x12#\n" + - "\rdefault_email\x18\x02 \x01(\tR\fdefaultEmail\x12,\n" + - "\x12default_first_name\x18\x03 \x01(\tR\x10defaultFirstName\x12*\n" + - "\x11default_last_name\x18\x04 \x01(\tR\x0fdefaultLastName\x12.\n" + - "\x13default_rbac_groups\x18\x05 \x03(\tR\x11defaultRbacGroups\x1a'\n" + - "\x06Stripe\x12\x1d\n" + - "\n" + - "account_id\x18\x01 \x01(\tR\taccountId\x1a\a\n" + - "\x05Veeam\x1a\t\n" + - "\aWorkdayB\t\n" + - "\aaccountB\xce\x02\n" + - "#com.splitsecure.conveniencestore.v1B\x12Saml2ResourceProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 22) -var file_splitsecure_conveniencestore_v1_saml2_resource_proto_goTypes = []any{ - (*SAML2ResourceRecord)(nil), // 0: splitsecure.conveniencestore.v1.SAML2ResourceRecord - (*SAML2ServiceProvider)(nil), // 1: splitsecure.conveniencestore.v1.SAML2ServiceProvider - (*SAML2ResourceRecord_Content)(nil), // 2: splitsecure.conveniencestore.v1.SAML2ResourceRecord.Content - (*SAML2ResourceRecord_UpdateableRecord)(nil), // 3: splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableRecord - (*SAML2ResourceRecord_UpdateableContent)(nil), // 4: splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableContent - (*SAML2ServiceProvider_AWS)(nil), // 5: splitsecure.conveniencestore.v1.SAML2ServiceProvider.AWS - (*SAML2ServiceProvider_Cloudflare)(nil), // 6: splitsecure.conveniencestore.v1.SAML2ServiceProvider.Cloudflare - (*SAML2ServiceProvider_EventBrite)(nil), // 7: splitsecure.conveniencestore.v1.SAML2ServiceProvider.EventBrite - (*SAML2ServiceProvider_GCP)(nil), // 8: splitsecure.conveniencestore.v1.SAML2ServiceProvider.GCP - (*SAML2ServiceProvider_GoogleWorkspace)(nil), // 9: splitsecure.conveniencestore.v1.SAML2ServiceProvider.GoogleWorkspace - (*SAML2ServiceProvider_GoogleWorkspaceLegacy)(nil), // 10: splitsecure.conveniencestore.v1.SAML2ServiceProvider.GoogleWorkspaceLegacy - (*SAML2ServiceProvider_IBMCloud)(nil), // 11: splitsecure.conveniencestore.v1.SAML2ServiceProvider.IBMCloud - (*SAML2ServiceProvider_Kandji)(nil), // 12: splitsecure.conveniencestore.v1.SAML2ServiceProvider.Kandji - (*SAML2ServiceProvider_MicrosoftEntraID)(nil), // 13: splitsecure.conveniencestore.v1.SAML2ServiceProvider.MicrosoftEntraID - (*SAML2ServiceProvider_Okta)(nil), // 14: splitsecure.conveniencestore.v1.SAML2ServiceProvider.Okta - (*SAML2ServiceProvider_OracleCloud)(nil), // 15: splitsecure.conveniencestore.v1.SAML2ServiceProvider.OracleCloud - (*SAML2ServiceProvider_PagerDuty)(nil), // 16: splitsecure.conveniencestore.v1.SAML2ServiceProvider.PagerDuty - (*SAML2ServiceProvider_PitchBook)(nil), // 17: splitsecure.conveniencestore.v1.SAML2ServiceProvider.PitchBook - (*SAML2ServiceProvider_Rapid7)(nil), // 18: splitsecure.conveniencestore.v1.SAML2ServiceProvider.Rapid7 - (*SAML2ServiceProvider_Stripe)(nil), // 19: splitsecure.conveniencestore.v1.SAML2ServiceProvider.Stripe - (*SAML2ServiceProvider_Veeam)(nil), // 20: splitsecure.conveniencestore.v1.SAML2ServiceProvider.Veeam - (*SAML2ServiceProvider_Workday)(nil), // 21: splitsecure.conveniencestore.v1.SAML2ServiceProvider.Workday - (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp - (*Tombstone)(nil), // 23: splitsecure.conveniencestore.v1.Tombstone - (*v1.IdPStateAndKey)(nil), // 24: splitsecure.enclaveservices.saml2.v1.IdPStateAndKey - (*v2.AuthenticatedSAML2ServiceProvider)(nil), // 25: splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProvider - (*v2.AuthenticatedIdPStateAndKey)(nil), // 26: splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKey - (*v11.Metadata)(nil), // 27: splitsecure.saml2metadatafetcherservice.v1.Metadata - (*v12.AccountSensitivity)(nil), // 28: splitsecure.teamresource.v1.AccountSensitivity - (v13.NotificationPolicy)(0), // 29: splitsecure.notifications.v1.NotificationPolicy - (*v12.BaseResourceAttributes)(nil), // 30: splitsecure.teamresource.v1.BaseResourceAttributes -} -var file_splitsecure_conveniencestore_v1_saml2_resource_proto_depIdxs = []int32{ - 22, // 0: splitsecure.conveniencestore.v1.SAML2ResourceRecord.created_at:type_name -> google.protobuf.Timestamp - 2, // 1: splitsecure.conveniencestore.v1.SAML2ResourceRecord.content:type_name -> splitsecure.conveniencestore.v1.SAML2ResourceRecord.Content - 23, // 2: splitsecure.conveniencestore.v1.SAML2ResourceRecord.tombstone:type_name -> splitsecure.conveniencestore.v1.Tombstone - 1, // 3: splitsecure.conveniencestore.v1.SAML2ResourceRecord.provider:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider - 24, // 4: splitsecure.conveniencestore.v1.SAML2ResourceRecord.idp:type_name -> splitsecure.enclaveservices.saml2.v1.IdPStateAndKey - 25, // 5: splitsecure.conveniencestore.v1.SAML2ResourceRecord.signed_service_provider:type_name -> splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProvider - 26, // 6: splitsecure.conveniencestore.v1.SAML2ResourceRecord.signed_idp:type_name -> splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKey - 27, // 7: splitsecure.conveniencestore.v1.SAML2ServiceProvider.metadata:type_name -> splitsecure.saml2metadatafetcherservice.v1.Metadata - 28, // 8: splitsecure.conveniencestore.v1.SAML2ServiceProvider.sensitivity:type_name -> splitsecure.teamresource.v1.AccountSensitivity - 29, // 9: splitsecure.conveniencestore.v1.SAML2ServiceProvider.notification_policy:type_name -> splitsecure.notifications.v1.NotificationPolicy - 30, // 10: splitsecure.conveniencestore.v1.SAML2ServiceProvider.base_resource_attributes:type_name -> splitsecure.teamresource.v1.BaseResourceAttributes - 5, // 11: splitsecure.conveniencestore.v1.SAML2ServiceProvider.aws:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.AWS - 6, // 12: splitsecure.conveniencestore.v1.SAML2ServiceProvider.cloudflare:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.Cloudflare - 7, // 13: splitsecure.conveniencestore.v1.SAML2ServiceProvider.event_brite:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.EventBrite - 8, // 14: splitsecure.conveniencestore.v1.SAML2ServiceProvider.gcp:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.GCP - 9, // 15: splitsecure.conveniencestore.v1.SAML2ServiceProvider.google_workspace:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.GoogleWorkspace - 10, // 16: splitsecure.conveniencestore.v1.SAML2ServiceProvider.google_workspace_legacy:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.GoogleWorkspaceLegacy - 11, // 17: splitsecure.conveniencestore.v1.SAML2ServiceProvider.ibm_cloud:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.IBMCloud - 12, // 18: splitsecure.conveniencestore.v1.SAML2ServiceProvider.kandji:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.Kandji - 13, // 19: splitsecure.conveniencestore.v1.SAML2ServiceProvider.microsoft_entra_id:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.MicrosoftEntraID - 14, // 20: splitsecure.conveniencestore.v1.SAML2ServiceProvider.okta:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.Okta - 15, // 21: splitsecure.conveniencestore.v1.SAML2ServiceProvider.oracle_cloud:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.OracleCloud - 16, // 22: splitsecure.conveniencestore.v1.SAML2ServiceProvider.pager_duty:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.PagerDuty - 17, // 23: splitsecure.conveniencestore.v1.SAML2ServiceProvider.pitch_book:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.PitchBook - 18, // 24: splitsecure.conveniencestore.v1.SAML2ServiceProvider.rapid7:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.Rapid7 - 19, // 25: splitsecure.conveniencestore.v1.SAML2ServiceProvider.stripe:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.Stripe - 20, // 26: splitsecure.conveniencestore.v1.SAML2ServiceProvider.veeam:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.Veeam - 21, // 27: splitsecure.conveniencestore.v1.SAML2ServiceProvider.workday:type_name -> splitsecure.conveniencestore.v1.SAML2ServiceProvider.Workday - 23, // 28: splitsecure.conveniencestore.v1.SAML2ResourceRecord.Content.tombstone:type_name -> splitsecure.conveniencestore.v1.Tombstone - 3, // 29: splitsecure.conveniencestore.v1.SAML2ResourceRecord.Content.updateable_record:type_name -> splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableRecord - 22, // 30: splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableRecord.updated_at:type_name -> google.protobuf.Timestamp - 4, // 31: splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableRecord.content:type_name -> splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableContent - 25, // 32: splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableContent.signed_service_provider:type_name -> splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProvider - 26, // 33: splitsecure.conveniencestore.v1.SAML2ResourceRecord.UpdateableContent.signed_idp:type_name -> splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKey - 34, // [34:34] is the sub-list for method output_type - 34, // [34:34] is the sub-list for method input_type - 34, // [34:34] is the sub-list for extension type_name - 34, // [34:34] is the sub-list for extension extendee - 0, // [0:34] is the sub-list for field type_name -} - -func init() { file_splitsecure_conveniencestore_v1_saml2_resource_proto_init() } -func file_splitsecure_conveniencestore_v1_saml2_resource_proto_init() { - if File_splitsecure_conveniencestore_v1_saml2_resource_proto != nil { - return - } - file_splitsecure_conveniencestore_v1_tombstone_proto_init() - file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[0].OneofWrappers = []any{ - (*SAML2ResourceRecord_Tombstone)(nil), - (*SAML2ResourceRecord_Provider)(nil), - (*SAML2ResourceRecord_Idp)(nil), - (*SAML2ResourceRecord_SignedServiceProvider)(nil), - (*SAML2ResourceRecord_SignedIdp)(nil), - } - file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[1].OneofWrappers = []any{ - (*SAML2ServiceProvider_Aws)(nil), - (*SAML2ServiceProvider_Cloudflare_)(nil), - (*SAML2ServiceProvider_EventBrite_)(nil), - (*SAML2ServiceProvider_Gcp)(nil), - (*SAML2ServiceProvider_GoogleWorkspace_)(nil), - (*SAML2ServiceProvider_GoogleWorkspaceLegacy_)(nil), - (*SAML2ServiceProvider_IbmCloud)(nil), - (*SAML2ServiceProvider_Kandji_)(nil), - (*SAML2ServiceProvider_MicrosoftEntraId)(nil), - (*SAML2ServiceProvider_Okta_)(nil), - (*SAML2ServiceProvider_OracleCloud_)(nil), - (*SAML2ServiceProvider_PagerDuty_)(nil), - (*SAML2ServiceProvider_PitchBook_)(nil), - (*SAML2ServiceProvider_Rapid7_)(nil), - (*SAML2ServiceProvider_Stripe_)(nil), - (*SAML2ServiceProvider_Veeam_)(nil), - (*SAML2ServiceProvider_Workday_)(nil), - } - file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[2].OneofWrappers = []any{ - (*SAML2ResourceRecord_Content_Tombstone)(nil), - (*SAML2ResourceRecord_Content_UpdateableRecord)(nil), - } - file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes[4].OneofWrappers = []any{ - (*SAML2ResourceRecord_UpdateableContent_SignedServiceProvider)(nil), - (*SAML2ResourceRecord_UpdateableContent_SignedIdp)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_saml2_resource_proto_rawDesc)), - NumEnums: 0, - NumMessages: 22, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_saml2_resource_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_saml2_resource_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_saml2_resource_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_saml2_resource_proto = out.File - file_splitsecure_conveniencestore_v1_saml2_resource_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_saml2_resource_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/conveniencestore/v1/tombstone.pb.go b/gen/go/proto/splitsecure/conveniencestore/v1/tombstone.pb.go deleted file mode 100644 index adadaa7..0000000 --- a/gen/go/proto/splitsecure/conveniencestore/v1/tombstone.pb.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/conveniencestore/v1/tombstone.proto - -package conveniencestorev1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Tombstone struct { - state protoimpl.MessageState `protogen:"open.v1"` - TargetId []byte `protobuf:"bytes,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Tombstone) Reset() { - *x = Tombstone{} - mi := &file_splitsecure_conveniencestore_v1_tombstone_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Tombstone) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Tombstone) ProtoMessage() {} - -func (x *Tombstone) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_conveniencestore_v1_tombstone_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Tombstone.ProtoReflect.Descriptor instead. -func (*Tombstone) Descriptor() ([]byte, []int) { - return file_splitsecure_conveniencestore_v1_tombstone_proto_rawDescGZIP(), []int{0} -} - -func (x *Tombstone) GetTargetId() []byte { - if x != nil { - return x.TargetId - } - return nil -} - -var File_splitsecure_conveniencestore_v1_tombstone_proto protoreflect.FileDescriptor - -const file_splitsecure_conveniencestore_v1_tombstone_proto_rawDesc = "" + - "\n" + - "/splitsecure/conveniencestore/v1/tombstone.proto\x12\x1fsplitsecure.conveniencestore.v1\"(\n" + - "\tTombstone\x12\x1b\n" + - "\ttarget_id\x18\x01 \x01(\fR\btargetIdB\xca\x02\n" + - "#com.splitsecure.conveniencestore.v1B\x0eTombstoneProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1;conveniencestorev1\xa2\x02\x03SCX\xaa\x02\x1fSplitsecure.Conveniencestore.V1\xca\x02\x1fSplitsecure\\Conveniencestore\\V1\xe2\x02+Splitsecure\\Conveniencestore\\V1\\GPBMetadata\xea\x02!Splitsecure::Conveniencestore::V1b\x06proto3" - -var ( - file_splitsecure_conveniencestore_v1_tombstone_proto_rawDescOnce sync.Once - file_splitsecure_conveniencestore_v1_tombstone_proto_rawDescData []byte -) - -func file_splitsecure_conveniencestore_v1_tombstone_proto_rawDescGZIP() []byte { - file_splitsecure_conveniencestore_v1_tombstone_proto_rawDescOnce.Do(func() { - file_splitsecure_conveniencestore_v1_tombstone_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_tombstone_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_tombstone_proto_rawDesc))) - }) - return file_splitsecure_conveniencestore_v1_tombstone_proto_rawDescData -} - -var file_splitsecure_conveniencestore_v1_tombstone_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_conveniencestore_v1_tombstone_proto_goTypes = []any{ - (*Tombstone)(nil), // 0: splitsecure.conveniencestore.v1.Tombstone -} -var file_splitsecure_conveniencestore_v1_tombstone_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_splitsecure_conveniencestore_v1_tombstone_proto_init() } -func file_splitsecure_conveniencestore_v1_tombstone_proto_init() { - if File_splitsecure_conveniencestore_v1_tombstone_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_conveniencestore_v1_tombstone_proto_rawDesc), len(file_splitsecure_conveniencestore_v1_tombstone_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_conveniencestore_v1_tombstone_proto_goTypes, - DependencyIndexes: file_splitsecure_conveniencestore_v1_tombstone_proto_depIdxs, - MessageInfos: file_splitsecure_conveniencestore_v1_tombstone_proto_msgTypes, - }.Build() - File_splitsecure_conveniencestore_v1_tombstone_proto = out.File - file_splitsecure_conveniencestore_v1_tombstone_proto_goTypes = nil - file_splitsecure_conveniencestore_v1_tombstone_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/enclave/v1/enclave.pb.go b/gen/go/proto/splitsecure/enclave/v1/enclave.pb.go deleted file mode 100644 index 1435b01..0000000 --- a/gen/go/proto/splitsecure/enclave/v1/enclave.pb.go +++ /dev/null @@ -1,392 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/enclave/v1/enclave.proto - -package enclavev1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type InvokeRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - AppFqn string `protobuf:"bytes,1,opt,name=app_fqn,json=appFqn,proto3" json:"app_fqn,omitempty"` - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *InvokeRequest) Reset() { - *x = InvokeRequest{} - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *InvokeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvokeRequest) ProtoMessage() {} - -func (x *InvokeRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead. -func (*InvokeRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_enclave_v1_enclave_proto_rawDescGZIP(), []int{0} -} - -func (x *InvokeRequest) GetAppFqn() string { - if x != nil { - return x.AppFqn - } - return "" -} - -func (x *InvokeRequest) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -type ExplainRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - InvokeRequest *InvokeRequest `protobuf:"bytes,1,opt,name=invoke_request,json=invokeRequest,proto3" json:"invoke_request,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExplainRequest) Reset() { - *x = ExplainRequest{} - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExplainRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExplainRequest) ProtoMessage() {} - -func (x *ExplainRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExplainRequest.ProtoReflect.Descriptor instead. -func (*ExplainRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_enclave_v1_enclave_proto_rawDescGZIP(), []int{1} -} - -func (x *ExplainRequest) GetInvokeRequest() *InvokeRequest { - if x != nil { - return x.InvokeRequest - } - return nil -} - -type InvokeResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *InvokeResponse_Success - // *InvokeResponse_Error - Union isInvokeResponse_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *InvokeResponse) Reset() { - *x = InvokeResponse{} - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *InvokeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvokeResponse) ProtoMessage() {} - -func (x *InvokeResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead. -func (*InvokeResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_enclave_v1_enclave_proto_rawDescGZIP(), []int{2} -} - -func (x *InvokeResponse) GetUnion() isInvokeResponse_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *InvokeResponse) GetSuccess() []byte { - if x != nil { - if x, ok := x.Union.(*InvokeResponse_Success); ok { - return x.Success - } - } - return nil -} - -func (x *InvokeResponse) GetError() *Error { - if x != nil { - if x, ok := x.Union.(*InvokeResponse_Error); ok { - return x.Error - } - } - return nil -} - -type isInvokeResponse_Union interface { - isInvokeResponse_Union() -} - -type InvokeResponse_Success struct { - Success []byte `protobuf:"bytes,1,opt,name=success,proto3,oneof"` -} - -type InvokeResponse_Error struct { - Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -func (*InvokeResponse_Success) isInvokeResponse_Union() {} - -func (*InvokeResponse_Error) isInvokeResponse_Union() {} - -type ExplainResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - RuntimeError *Error `protobuf:"bytes,1,opt,name=runtime_error,json=runtimeError,proto3" json:"runtime_error,omitempty"` - Explanation string `protobuf:"bytes,2,opt,name=explanation,proto3" json:"explanation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExplainResponse) Reset() { - *x = ExplainResponse{} - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExplainResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExplainResponse) ProtoMessage() {} - -func (x *ExplainResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExplainResponse.ProtoReflect.Descriptor instead. -func (*ExplainResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_enclave_v1_enclave_proto_rawDescGZIP(), []int{3} -} - -func (x *ExplainResponse) GetRuntimeError() *Error { - if x != nil { - return x.RuntimeError - } - return nil -} - -func (x *ExplainResponse) GetExplanation() string { - if x != nil { - return x.Explanation - } - return "" -} - -type Error struct { - state protoimpl.MessageState `protogen:"open.v1"` - Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Error) Reset() { - *x = Error{} - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Error) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Error) ProtoMessage() {} - -func (x *Error) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclave_v1_enclave_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Error.ProtoReflect.Descriptor instead. -func (*Error) Descriptor() ([]byte, []int) { - return file_splitsecure_enclave_v1_enclave_proto_rawDescGZIP(), []int{4} -} - -func (x *Error) GetCode() uint32 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *Error) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -var File_splitsecure_enclave_v1_enclave_proto protoreflect.FileDescriptor - -const file_splitsecure_enclave_v1_enclave_proto_rawDesc = "" + - "\n" + - "$splitsecure/enclave/v1/enclave.proto\x12\x16splitsecure.enclave.v1\"B\n" + - "\rInvokeRequest\x12\x17\n" + - "\aapp_fqn\x18\x01 \x01(\tR\x06appFqn\x12\x18\n" + - "\apayload\x18\x02 \x01(\fR\apayload\"^\n" + - "\x0eExplainRequest\x12L\n" + - "\x0einvoke_request\x18\x01 \x01(\v2%.splitsecure.enclave.v1.InvokeRequestR\rinvokeRequest\"l\n" + - "\x0eInvokeResponse\x12\x1a\n" + - "\asuccess\x18\x01 \x01(\fH\x00R\asuccess\x125\n" + - "\x05error\x18\x02 \x01(\v2\x1d.splitsecure.enclave.v1.ErrorH\x00R\x05errorB\a\n" + - "\x05union\"w\n" + - "\x0fExplainResponse\x12B\n" + - "\rruntime_error\x18\x01 \x01(\v2\x1d.splitsecure.enclave.v1.ErrorR\fruntimeError\x12 \n" + - "\vexplanation\x18\x02 \x01(\tR\vexplanation\"5\n" + - "\x05Error\x12\x12\n" + - "\x04code\x18\x01 \x01(\rR\x04code\x12\x18\n" + - "\amessage\x18\x02 \x01(\tR\amessage2\xc9\x01\n" + - "\x0eEnclaveService\x12Y\n" + - "\x06Invoke\x12%.splitsecure.enclave.v1.InvokeRequest\x1a&.splitsecure.enclave.v1.InvokeResponse\"\x00\x12\\\n" + - "\aExplain\x12&.splitsecure.enclave.v1.ExplainRequest\x1a'.splitsecure.enclave.v1.ExplainResponse\"\x00B\x89\x02\n" + - "\x1acom.splitsecure.enclave.v1B\fEnclaveProtoP\x01Zcgithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1;enclavev1\xa2\x02\x03SEX\xaa\x02\x16Splitsecure.Enclave.V1\xca\x02\x16Splitsecure\\Enclave\\V1\xe2\x02\"Splitsecure\\Enclave\\V1\\GPBMetadata\xea\x02\x18Splitsecure::Enclave::V1b\x06proto3" - -var ( - file_splitsecure_enclave_v1_enclave_proto_rawDescOnce sync.Once - file_splitsecure_enclave_v1_enclave_proto_rawDescData []byte -) - -func file_splitsecure_enclave_v1_enclave_proto_rawDescGZIP() []byte { - file_splitsecure_enclave_v1_enclave_proto_rawDescOnce.Do(func() { - file_splitsecure_enclave_v1_enclave_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_enclave_v1_enclave_proto_rawDesc), len(file_splitsecure_enclave_v1_enclave_proto_rawDesc))) - }) - return file_splitsecure_enclave_v1_enclave_proto_rawDescData -} - -var file_splitsecure_enclave_v1_enclave_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_splitsecure_enclave_v1_enclave_proto_goTypes = []any{ - (*InvokeRequest)(nil), // 0: splitsecure.enclave.v1.InvokeRequest - (*ExplainRequest)(nil), // 1: splitsecure.enclave.v1.ExplainRequest - (*InvokeResponse)(nil), // 2: splitsecure.enclave.v1.InvokeResponse - (*ExplainResponse)(nil), // 3: splitsecure.enclave.v1.ExplainResponse - (*Error)(nil), // 4: splitsecure.enclave.v1.Error -} -var file_splitsecure_enclave_v1_enclave_proto_depIdxs = []int32{ - 0, // 0: splitsecure.enclave.v1.ExplainRequest.invoke_request:type_name -> splitsecure.enclave.v1.InvokeRequest - 4, // 1: splitsecure.enclave.v1.InvokeResponse.error:type_name -> splitsecure.enclave.v1.Error - 4, // 2: splitsecure.enclave.v1.ExplainResponse.runtime_error:type_name -> splitsecure.enclave.v1.Error - 0, // 3: splitsecure.enclave.v1.EnclaveService.Invoke:input_type -> splitsecure.enclave.v1.InvokeRequest - 1, // 4: splitsecure.enclave.v1.EnclaveService.Explain:input_type -> splitsecure.enclave.v1.ExplainRequest - 2, // 5: splitsecure.enclave.v1.EnclaveService.Invoke:output_type -> splitsecure.enclave.v1.InvokeResponse - 3, // 6: splitsecure.enclave.v1.EnclaveService.Explain:output_type -> splitsecure.enclave.v1.ExplainResponse - 5, // [5:7] is the sub-list for method output_type - 3, // [3:5] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_splitsecure_enclave_v1_enclave_proto_init() } -func file_splitsecure_enclave_v1_enclave_proto_init() { - if File_splitsecure_enclave_v1_enclave_proto != nil { - return - } - file_splitsecure_enclave_v1_enclave_proto_msgTypes[2].OneofWrappers = []any{ - (*InvokeResponse_Success)(nil), - (*InvokeResponse_Error)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_enclave_v1_enclave_proto_rawDesc), len(file_splitsecure_enclave_v1_enclave_proto_rawDesc)), - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_splitsecure_enclave_v1_enclave_proto_goTypes, - DependencyIndexes: file_splitsecure_enclave_v1_enclave_proto_depIdxs, - MessageInfos: file_splitsecure_enclave_v1_enclave_proto_msgTypes, - }.Build() - File_splitsecure_enclave_v1_enclave_proto = out.File - file_splitsecure_enclave_v1_enclave_proto_goTypes = nil - file_splitsecure_enclave_v1_enclave_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/enclave/v1/enclavev1connect/enclave.connect.go b/gen/go/proto/splitsecure/enclave/v1/enclavev1connect/enclave.connect.go deleted file mode 100644 index f135341..0000000 --- a/gen/go/proto/splitsecure/enclave/v1/enclavev1connect/enclave.connect.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: splitsecure/enclave/v1/enclave.proto - -package enclavev1connect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // EnclaveServiceName is the fully-qualified name of the EnclaveService service. - EnclaveServiceName = "splitsecure.enclave.v1.EnclaveService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // EnclaveServiceInvokeProcedure is the fully-qualified name of the EnclaveService's Invoke RPC. - EnclaveServiceInvokeProcedure = "/splitsecure.enclave.v1.EnclaveService/Invoke" - // EnclaveServiceExplainProcedure is the fully-qualified name of the EnclaveService's Explain RPC. - EnclaveServiceExplainProcedure = "/splitsecure.enclave.v1.EnclaveService/Explain" -) - -// EnclaveServiceClient is a client for the splitsecure.enclave.v1.EnclaveService service. -type EnclaveServiceClient interface { - Invoke(context.Context, *connect.Request[v1.InvokeRequest]) (*connect.Response[v1.InvokeResponse], error) - Explain(context.Context, *connect.Request[v1.ExplainRequest]) (*connect.Response[v1.ExplainResponse], error) -} - -// NewEnclaveServiceClient constructs a client for the splitsecure.enclave.v1.EnclaveService -// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for -// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply -// the connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewEnclaveServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EnclaveServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - enclaveServiceMethods := v1.File_splitsecure_enclave_v1_enclave_proto.Services().ByName("EnclaveService").Methods() - return &enclaveServiceClient{ - invoke: connect.NewClient[v1.InvokeRequest, v1.InvokeResponse]( - httpClient, - baseURL+EnclaveServiceInvokeProcedure, - connect.WithSchema(enclaveServiceMethods.ByName("Invoke")), - connect.WithClientOptions(opts...), - ), - explain: connect.NewClient[v1.ExplainRequest, v1.ExplainResponse]( - httpClient, - baseURL+EnclaveServiceExplainProcedure, - connect.WithSchema(enclaveServiceMethods.ByName("Explain")), - connect.WithClientOptions(opts...), - ), - } -} - -// enclaveServiceClient implements EnclaveServiceClient. -type enclaveServiceClient struct { - invoke *connect.Client[v1.InvokeRequest, v1.InvokeResponse] - explain *connect.Client[v1.ExplainRequest, v1.ExplainResponse] -} - -// Invoke calls splitsecure.enclave.v1.EnclaveService.Invoke. -func (c *enclaveServiceClient) Invoke(ctx context.Context, req *connect.Request[v1.InvokeRequest]) (*connect.Response[v1.InvokeResponse], error) { - return c.invoke.CallUnary(ctx, req) -} - -// Explain calls splitsecure.enclave.v1.EnclaveService.Explain. -func (c *enclaveServiceClient) Explain(ctx context.Context, req *connect.Request[v1.ExplainRequest]) (*connect.Response[v1.ExplainResponse], error) { - return c.explain.CallUnary(ctx, req) -} - -// EnclaveServiceHandler is an implementation of the splitsecure.enclave.v1.EnclaveService service. -type EnclaveServiceHandler interface { - Invoke(context.Context, *connect.Request[v1.InvokeRequest]) (*connect.Response[v1.InvokeResponse], error) - Explain(context.Context, *connect.Request[v1.ExplainRequest]) (*connect.Response[v1.ExplainResponse], error) -} - -// NewEnclaveServiceHandler builds an HTTP handler from the service implementation. It returns the -// path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewEnclaveServiceHandler(svc EnclaveServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - enclaveServiceMethods := v1.File_splitsecure_enclave_v1_enclave_proto.Services().ByName("EnclaveService").Methods() - enclaveServiceInvokeHandler := connect.NewUnaryHandler( - EnclaveServiceInvokeProcedure, - svc.Invoke, - connect.WithSchema(enclaveServiceMethods.ByName("Invoke")), - connect.WithHandlerOptions(opts...), - ) - enclaveServiceExplainHandler := connect.NewUnaryHandler( - EnclaveServiceExplainProcedure, - svc.Explain, - connect.WithSchema(enclaveServiceMethods.ByName("Explain")), - connect.WithHandlerOptions(opts...), - ) - return "/splitsecure.enclave.v1.EnclaveService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case EnclaveServiceInvokeProcedure: - enclaveServiceInvokeHandler.ServeHTTP(w, r) - case EnclaveServiceExplainProcedure: - enclaveServiceExplainHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedEnclaveServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedEnclaveServiceHandler struct{} - -func (UnimplementedEnclaveServiceHandler) Invoke(context.Context, *connect.Request[v1.InvokeRequest]) (*connect.Response[v1.InvokeResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.enclave.v1.EnclaveService.Invoke is not implemented")) -} - -func (UnimplementedEnclaveServiceHandler) Explain(context.Context, *connect.Request[v1.ExplainRequest]) (*connect.Response[v1.ExplainResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.enclave.v1.EnclaveService.Explain is not implemented")) -} diff --git a/gen/go/proto/splitsecure/enclaveroundtrip/v1/enclaveroundtripv1connect/provider_custom_enclaveroundtrip_service.connect.go b/gen/go/proto/splitsecure/enclaveroundtrip/v1/enclaveroundtripv1connect/provider_custom_enclaveroundtrip_service.connect.go deleted file mode 100644 index 7342c21..0000000 --- a/gen/go/proto/splitsecure/enclaveroundtrip/v1/enclaveroundtripv1connect/provider_custom_enclaveroundtrip_service.connect.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: splitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.proto - -package enclaveroundtripv1connect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveroundtrip/v1" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // EnclaveRoundtripServiceName is the fully-qualified name of the EnclaveRoundtripService service. - EnclaveRoundtripServiceName = "splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // EnclaveRoundtripServiceSendProcedure is the fully-qualified name of the EnclaveRoundtripService's - // Send RPC. - EnclaveRoundtripServiceSendProcedure = "/splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService/Send" - // EnclaveRoundtripServiceGetProposalForRequestProcedure is the fully-qualified name of the - // EnclaveRoundtripService's GetProposalForRequest RPC. - EnclaveRoundtripServiceGetProposalForRequestProcedure = "/splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService/GetProposalForRequest" -) - -// EnclaveRoundtripServiceClient is a client for the -// splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService service. -type EnclaveRoundtripServiceClient interface { - Send(context.Context, *connect.Request[v1.SendRequest]) (*connect.Response[v1.SendResponse], error) - GetProposalForRequest(context.Context, *connect.Request[v1.GetProposalForRequestRequest]) (*connect.Response[v1.GetProposalForRequestResponse], error) -} - -// NewEnclaveRoundtripServiceClient constructs a client for the -// splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService service. By default, it uses the Connect -// protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed -// requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or -// connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewEnclaveRoundtripServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EnclaveRoundtripServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - enclaveRoundtripServiceMethods := v1.File_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto.Services().ByName("EnclaveRoundtripService").Methods() - return &enclaveRoundtripServiceClient{ - send: connect.NewClient[v1.SendRequest, v1.SendResponse]( - httpClient, - baseURL+EnclaveRoundtripServiceSendProcedure, - connect.WithSchema(enclaveRoundtripServiceMethods.ByName("Send")), - connect.WithClientOptions(opts...), - ), - getProposalForRequest: connect.NewClient[v1.GetProposalForRequestRequest, v1.GetProposalForRequestResponse]( - httpClient, - baseURL+EnclaveRoundtripServiceGetProposalForRequestProcedure, - connect.WithSchema(enclaveRoundtripServiceMethods.ByName("GetProposalForRequest")), - connect.WithClientOptions(opts...), - ), - } -} - -// enclaveRoundtripServiceClient implements EnclaveRoundtripServiceClient. -type enclaveRoundtripServiceClient struct { - send *connect.Client[v1.SendRequest, v1.SendResponse] - getProposalForRequest *connect.Client[v1.GetProposalForRequestRequest, v1.GetProposalForRequestResponse] -} - -// Send calls splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService.Send. -func (c *enclaveRoundtripServiceClient) Send(ctx context.Context, req *connect.Request[v1.SendRequest]) (*connect.Response[v1.SendResponse], error) { - return c.send.CallUnary(ctx, req) -} - -// GetProposalForRequest calls -// splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService.GetProposalForRequest. -func (c *enclaveRoundtripServiceClient) GetProposalForRequest(ctx context.Context, req *connect.Request[v1.GetProposalForRequestRequest]) (*connect.Response[v1.GetProposalForRequestResponse], error) { - return c.getProposalForRequest.CallUnary(ctx, req) -} - -// EnclaveRoundtripServiceHandler is an implementation of the -// splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService service. -type EnclaveRoundtripServiceHandler interface { - Send(context.Context, *connect.Request[v1.SendRequest]) (*connect.Response[v1.SendResponse], error) - GetProposalForRequest(context.Context, *connect.Request[v1.GetProposalForRequestRequest]) (*connect.Response[v1.GetProposalForRequestResponse], error) -} - -// NewEnclaveRoundtripServiceHandler builds an HTTP handler from the service implementation. It -// returns the path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewEnclaveRoundtripServiceHandler(svc EnclaveRoundtripServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - enclaveRoundtripServiceMethods := v1.File_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto.Services().ByName("EnclaveRoundtripService").Methods() - enclaveRoundtripServiceSendHandler := connect.NewUnaryHandler( - EnclaveRoundtripServiceSendProcedure, - svc.Send, - connect.WithSchema(enclaveRoundtripServiceMethods.ByName("Send")), - connect.WithHandlerOptions(opts...), - ) - enclaveRoundtripServiceGetProposalForRequestHandler := connect.NewUnaryHandler( - EnclaveRoundtripServiceGetProposalForRequestProcedure, - svc.GetProposalForRequest, - connect.WithSchema(enclaveRoundtripServiceMethods.ByName("GetProposalForRequest")), - connect.WithHandlerOptions(opts...), - ) - return "/splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case EnclaveRoundtripServiceSendProcedure: - enclaveRoundtripServiceSendHandler.ServeHTTP(w, r) - case EnclaveRoundtripServiceGetProposalForRequestProcedure: - enclaveRoundtripServiceGetProposalForRequestHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedEnclaveRoundtripServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedEnclaveRoundtripServiceHandler struct{} - -func (UnimplementedEnclaveRoundtripServiceHandler) Send(context.Context, *connect.Request[v1.SendRequest]) (*connect.Response[v1.SendResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService.Send is not implemented")) -} - -func (UnimplementedEnclaveRoundtripServiceHandler) GetProposalForRequest(context.Context, *connect.Request[v1.GetProposalForRequestRequest]) (*connect.Response[v1.GetProposalForRequestResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService.GetProposalForRequest is not implemented")) -} diff --git a/gen/go/proto/splitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.pb.go b/gen/go/proto/splitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.pb.go deleted file mode 100644 index b5f4e4d..0000000 --- a/gen/go/proto/splitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.pb.go +++ /dev/null @@ -1,392 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.proto - -package enclaveroundtripv1 - -import ( - v11 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1" - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/requestsigning/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type SendRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Signed *v1.SignedRequest `protobuf:"bytes,1,opt,name=signed,proto3" json:"signed,omitempty"` - Base *SendRequest_Base `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SendRequest) Reset() { - *x = SendRequest{} - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SendRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendRequest) ProtoMessage() {} - -func (x *SendRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendRequest.ProtoReflect.Descriptor instead. -func (*SendRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescGZIP(), []int{0} -} - -func (x *SendRequest) GetSigned() *v1.SignedRequest { - if x != nil { - return x.Signed - } - return nil -} - -func (x *SendRequest) GetBase() *SendRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type SendResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - RequestId []byte `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SendResponse) Reset() { - *x = SendResponse{} - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SendResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendResponse) ProtoMessage() {} - -func (x *SendResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendResponse.ProtoReflect.Descriptor instead. -func (*SendResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescGZIP(), []int{1} -} - -func (x *SendResponse) GetRequestId() []byte { - if x != nil { - return x.RequestId - } - return nil -} - -type GetProposalForRequestRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - RequestId []byte `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProposalForRequestRequest) Reset() { - *x = GetProposalForRequestRequest{} - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProposalForRequestRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalForRequestRequest) ProtoMessage() {} - -func (x *GetProposalForRequestRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalForRequestRequest.ProtoReflect.Descriptor instead. -func (*GetProposalForRequestRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescGZIP(), []int{2} -} - -func (x *GetProposalForRequestRequest) GetRequestId() []byte { - if x != nil { - return x.RequestId - } - return nil -} - -type GetProposalForRequestResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - ProposalId []byte `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProposalForRequestResponse) Reset() { - *x = GetProposalForRequestResponse{} - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProposalForRequestResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalForRequestResponse) ProtoMessage() {} - -func (x *GetProposalForRequestResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalForRequestResponse.ProtoReflect.Descriptor instead. -func (*GetProposalForRequestResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescGZIP(), []int{3} -} - -func (x *GetProposalForRequestResponse) GetProposalId() []byte { - if x != nil { - return x.ProposalId - } - return nil -} - -type SendRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Target: - // - // *SendRequest_Base_TargetEnclaveId - // *SendRequest_Base_NewProposalScopedEnclave - Target isSendRequest_Base_Target `protobuf_oneof:"target"` - InvokeRequest *v11.InvokeRequest `protobuf:"bytes,2,opt,name=invoke_request,json=invokeRequest,proto3" json:"invoke_request,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SendRequest_Base) Reset() { - *x = SendRequest_Base{} - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SendRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendRequest_Base) ProtoMessage() {} - -func (x *SendRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendRequest_Base.ProtoReflect.Descriptor instead. -func (*SendRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *SendRequest_Base) GetTarget() isSendRequest_Base_Target { - if x != nil { - return x.Target - } - return nil -} - -func (x *SendRequest_Base) GetTargetEnclaveId() []byte { - if x != nil { - if x, ok := x.Target.(*SendRequest_Base_TargetEnclaveId); ok { - return x.TargetEnclaveId - } - } - return nil -} - -func (x *SendRequest_Base) GetNewProposalScopedEnclave() string { - if x != nil { - if x, ok := x.Target.(*SendRequest_Base_NewProposalScopedEnclave); ok { - return x.NewProposalScopedEnclave - } - } - return "" -} - -func (x *SendRequest_Base) GetInvokeRequest() *v11.InvokeRequest { - if x != nil { - return x.InvokeRequest - } - return nil -} - -type isSendRequest_Base_Target interface { - isSendRequest_Base_Target() -} - -type SendRequest_Base_TargetEnclaveId struct { - TargetEnclaveId []byte `protobuf:"bytes,1,opt,name=target_enclave_id,json=targetEnclaveId,proto3,oneof"` -} - -type SendRequest_Base_NewProposalScopedEnclave struct { - NewProposalScopedEnclave string `protobuf:"bytes,3,opt,name=new_proposal_scoped_enclave,json=newProposalScopedEnclave,proto3,oneof"` -} - -func (*SendRequest_Base_TargetEnclaveId) isSendRequest_Base_Target() {} - -func (*SendRequest_Base_NewProposalScopedEnclave) isSendRequest_Base_Target() {} - -var File_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto protoreflect.FileDescriptor - -const file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDesc = "" + - "\n" + - "Nsplitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.proto\x12\x1fsplitsecure.enclaveroundtrip.v1\x1a$splitsecure/enclave/v1/enclave.proto\x1a2splitsecure/requestsigning/v1/signed_request.proto\"\xea\x02\n" + - "\vSendRequest\x12D\n" + - "\x06signed\x18\x01 \x01(\v2,.splitsecure.requestsigning.v1.SignedRequestR\x06signed\x12E\n" + - "\x04base\x18\x02 \x01(\v21.splitsecure.enclaveroundtrip.v1.SendRequest.BaseR\x04base\x1a\xcd\x01\n" + - "\x04Base\x12,\n" + - "\x11target_enclave_id\x18\x01 \x01(\fH\x00R\x0ftargetEnclaveId\x12?\n" + - "\x1bnew_proposal_scoped_enclave\x18\x03 \x01(\tH\x00R\x18newProposalScopedEnclave\x12L\n" + - "\x0einvoke_request\x18\x02 \x01(\v2%.splitsecure.enclave.v1.InvokeRequestR\rinvokeRequestB\b\n" + - "\x06target\"-\n" + - "\fSendResponse\x12\x1d\n" + - "\n" + - "request_id\x18\x01 \x01(\fR\trequestId\"=\n" + - "\x1cGetProposalForRequestRequest\x12\x1d\n" + - "\n" + - "request_id\x18\x01 \x01(\fR\trequestId\"@\n" + - "\x1dGetProposalForRequestResponse\x12\x1f\n" + - "\vproposal_id\x18\x01 \x01(\fR\n" + - "proposalId2\x97\x02\n" + - "\x17EnclaveRoundtripService\x12c\n" + - "\x04Send\x12,.splitsecure.enclaveroundtrip.v1.SendRequest\x1a-.splitsecure.enclaveroundtrip.v1.SendResponse\x12\x96\x01\n" + - "\x15GetProposalForRequest\x12=.splitsecure.enclaveroundtrip.v1.GetProposalForRequestRequest\x1a>.splitsecure.enclaveroundtrip.v1.GetProposalForRequestResponseB\xe6\x02\n" + - "#com.splitsecure.enclaveroundtrip.v1B*ProviderCustomEnclaveroundtripServiceProtoP\x01Zugithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveroundtrip/v1;enclaveroundtripv1\xa2\x02\x03SEX\xaa\x02\x1fSplitsecure.Enclaveroundtrip.V1\xca\x02\x1fSplitsecure\\Enclaveroundtrip\\V1\xe2\x02+Splitsecure\\Enclaveroundtrip\\V1\\GPBMetadata\xea\x02!Splitsecure::Enclaveroundtrip::V1b\x06proto3" - -var ( - file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescOnce sync.Once - file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescData []byte -) - -func file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescGZIP() []byte { - file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescOnce.Do(func() { - file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDesc), len(file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDesc))) - }) - return file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDescData -} - -var file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_goTypes = []any{ - (*SendRequest)(nil), // 0: splitsecure.enclaveroundtrip.v1.SendRequest - (*SendResponse)(nil), // 1: splitsecure.enclaveroundtrip.v1.SendResponse - (*GetProposalForRequestRequest)(nil), // 2: splitsecure.enclaveroundtrip.v1.GetProposalForRequestRequest - (*GetProposalForRequestResponse)(nil), // 3: splitsecure.enclaveroundtrip.v1.GetProposalForRequestResponse - (*SendRequest_Base)(nil), // 4: splitsecure.enclaveroundtrip.v1.SendRequest.Base - (*v1.SignedRequest)(nil), // 5: splitsecure.requestsigning.v1.SignedRequest - (*v11.InvokeRequest)(nil), // 6: splitsecure.enclave.v1.InvokeRequest -} -var file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_depIdxs = []int32{ - 5, // 0: splitsecure.enclaveroundtrip.v1.SendRequest.signed:type_name -> splitsecure.requestsigning.v1.SignedRequest - 4, // 1: splitsecure.enclaveroundtrip.v1.SendRequest.base:type_name -> splitsecure.enclaveroundtrip.v1.SendRequest.Base - 6, // 2: splitsecure.enclaveroundtrip.v1.SendRequest.Base.invoke_request:type_name -> splitsecure.enclave.v1.InvokeRequest - 0, // 3: splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService.Send:input_type -> splitsecure.enclaveroundtrip.v1.SendRequest - 2, // 4: splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService.GetProposalForRequest:input_type -> splitsecure.enclaveroundtrip.v1.GetProposalForRequestRequest - 1, // 5: splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService.Send:output_type -> splitsecure.enclaveroundtrip.v1.SendResponse - 3, // 6: splitsecure.enclaveroundtrip.v1.EnclaveRoundtripService.GetProposalForRequest:output_type -> splitsecure.enclaveroundtrip.v1.GetProposalForRequestResponse - 5, // [5:7] is the sub-list for method output_type - 3, // [3:5] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { - file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_init() -} -func file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_init() { - if File_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto != nil { - return - } - file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes[4].OneofWrappers = []any{ - (*SendRequest_Base_TargetEnclaveId)(nil), - (*SendRequest_Base_NewProposalScopedEnclave)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDesc), len(file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_rawDesc)), - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_goTypes, - DependencyIndexes: file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_depIdxs, - MessageInfos: file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_msgTypes, - }.Build() - File_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto = out.File - file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_goTypes = nil - file_splitsecure_enclaveroundtrip_v1_provider_custom_enclaveroundtrip_service_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/enclaveservices/saml2/v1/idp_state.pb.go b/gen/go/proto/splitsecure/enclaveservices/saml2/v1/idp_state.pb.go deleted file mode 100644 index c718c07..0000000 --- a/gen/go/proto/splitsecure/enclaveservices/saml2/v1/idp_state.pb.go +++ /dev/null @@ -1,282 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/enclaveservices/saml2/v1/idp_state.proto - -package saml2v1 - -import ( - v11 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/threshold/v1" - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/notifications/v1" - v12 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type IdPState struct { - state protoimpl.MessageState `protogen:"open.v1"` - X509Certificate []byte `protobuf:"bytes,1,opt,name=x509_certificate,json=x509Certificate,proto3" json:"x509_certificate,omitempty"` - ProviderId string `protobuf:"bytes,2,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - // sso_url, when omitted, is assumed to be https://app.splitsecure.com/saml2idp/login - SsoUrl string `protobuf:"bytes,3,opt,name=sso_url,json=ssoUrl,proto3" json:"sso_url,omitempty"` - SsoUrlPost string `protobuf:"bytes,5,opt,name=sso_url_post,json=ssoUrlPost,proto3" json:"sso_url_post,omitempty"` - // notification_policy controls how notifications are sent for proposals - // involving this IdP. Set at creation time, immutable. - NotificationPolicy v1.NotificationPolicy `protobuf:"varint,6,opt,name=notification_policy,json=notificationPolicy,proto3,enum=splitsecure.notifications.v1.NotificationPolicy" json:"notification_policy,omitempty"` - // description is an optional free-form description of this identity provider - Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` - // proposal_id is the SHA3-512 hash of the execution context bottle that - // created this resource, linking it to the audit log. Set by the enclave. - ProposalId []byte `protobuf:"bytes,8,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IdPState) Reset() { - *x = IdPState{} - mi := &file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IdPState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdPState) ProtoMessage() {} - -func (x *IdPState) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdPState.ProtoReflect.Descriptor instead. -func (*IdPState) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_rawDescGZIP(), []int{0} -} - -func (x *IdPState) GetX509Certificate() []byte { - if x != nil { - return x.X509Certificate - } - return nil -} - -func (x *IdPState) GetProviderId() string { - if x != nil { - return x.ProviderId - } - return "" -} - -func (x *IdPState) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *IdPState) GetSsoUrl() string { - if x != nil { - return x.SsoUrl - } - return "" -} - -func (x *IdPState) GetSsoUrlPost() string { - if x != nil { - return x.SsoUrlPost - } - return "" -} - -func (x *IdPState) GetNotificationPolicy() v1.NotificationPolicy { - if x != nil { - return x.NotificationPolicy - } - return v1.NotificationPolicy(0) -} - -func (x *IdPState) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *IdPState) GetProposalId() []byte { - if x != nil { - return x.ProposalId - } - return nil -} - -type IdPStateAndKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - IdpState *IdPState `protobuf:"bytes,1,opt,name=idp_state,json=idpState,proto3" json:"idp_state,omitempty"` - SigningKey *v11.ThresholdKey `protobuf:"bytes,2,opt,name=signing_key,json=signingKey,proto3" json:"signing_key,omitempty"` // team_ids live in DerivedKey.team_ids - // Team authentication (added for v2 flow). - // authenticated contains serialized IdPStateAndKey (fields 1-2 only) - exact bytes signed. - Authenticated []byte `protobuf:"bytes,3,opt,name=authenticated,proto3" json:"authenticated,omitempty"` - TeamSignatures []*v12.TeamSignature `protobuf:"bytes,4,rep,name=team_signatures,json=teamSignatures,proto3" json:"team_signatures,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IdPStateAndKey) Reset() { - *x = IdPStateAndKey{} - mi := &file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IdPStateAndKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdPStateAndKey) ProtoMessage() {} - -func (x *IdPStateAndKey) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdPStateAndKey.ProtoReflect.Descriptor instead. -func (*IdPStateAndKey) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_rawDescGZIP(), []int{1} -} - -func (x *IdPStateAndKey) GetIdpState() *IdPState { - if x != nil { - return x.IdpState - } - return nil -} - -func (x *IdPStateAndKey) GetSigningKey() *v11.ThresholdKey { - if x != nil { - return x.SigningKey - } - return nil -} - -func (x *IdPStateAndKey) GetAuthenticated() []byte { - if x != nil { - return x.Authenticated - } - return nil -} - -func (x *IdPStateAndKey) GetTeamSignatures() []*v12.TeamSignature { - if x != nil { - return x.TeamSignatures - } - return nil -} - -var File_splitsecure_enclaveservices_saml2_v1_idp_state_proto protoreflect.FileDescriptor - -const file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_rawDesc = "" + - "\n" + - "4splitsecure/enclaveservices/saml2/v1/idp_state.proto\x12$splitsecure.enclaveservices.saml2.v1\x1a splitsecure.notifications.v1.NotificationPolicy - 0, // 1: splitsecure.enclaveservices.saml2.v1.IdPStateAndKey.idp_state:type_name -> splitsecure.enclaveservices.saml2.v1.IdPState - 3, // 2: splitsecure.enclaveservices.saml2.v1.IdPStateAndKey.signing_key:type_name -> splitsecure.enclaveservices.threshold.v1.ThresholdKey - 4, // 3: splitsecure.enclaveservices.saml2.v1.IdPStateAndKey.team_signatures:type_name -> splitsecure.teamresource.v1.TeamSignature - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_init() } -func file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_init() { - if File_splitsecure_enclaveservices_saml2_v1_idp_state_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_rawDesc), len(file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_goTypes, - DependencyIndexes: file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_depIdxs, - MessageInfos: file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_msgTypes, - }.Build() - File_splitsecure_enclaveservices_saml2_v1_idp_state_proto = out.File - file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_goTypes = nil - file_splitsecure_enclaveservices_saml2_v1_idp_state_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.pb.go b/gen/go/proto/splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.pb.go deleted file mode 100644 index c0e7ccd..0000000 --- a/gen/go/proto/splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.pb.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.proto - -package saml2v2 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type AuthenticatedIdPStateAndKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - Authenticated []byte `protobuf:"bytes,1,opt,name=authenticated,proto3" json:"authenticated,omitempty"` // Serialized saml2.v1.IdPStateAndKey (fields 1-2 only) - TeamSignatures []*v1.TeamSignature `protobuf:"bytes,2,rep,name=team_signatures,json=teamSignatures,proto3" json:"team_signatures,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AuthenticatedIdPStateAndKey) Reset() { - *x = AuthenticatedIdPStateAndKey{} - mi := &file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AuthenticatedIdPStateAndKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthenticatedIdPStateAndKey) ProtoMessage() {} - -func (x *AuthenticatedIdPStateAndKey) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuthenticatedIdPStateAndKey.ProtoReflect.Descriptor instead. -func (*AuthenticatedIdPStateAndKey) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDescGZIP(), []int{0} -} - -func (x *AuthenticatedIdPStateAndKey) GetAuthenticated() []byte { - if x != nil { - return x.Authenticated - } - return nil -} - -func (x *AuthenticatedIdPStateAndKey) GetTeamSignatures() []*v1.TeamSignature { - if x != nil { - return x.TeamSignatures - } - return nil -} - -var File_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto protoreflect.FileDescriptor - -const file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDesc = "" + - "\n" + - "Jsplitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.proto\x12$splitsecure.enclaveservices.saml2.v2\x1a/splitsecure/teamresource/v1/team_resource.proto\"\x98\x01\n" + - "\x1bAuthenticatedIdPStateAndKey\x12$\n" + - "\rauthenticated\x18\x01 \x01(\fR\rauthenticated\x12S\n" + - "\x0fteam_signatures\x18\x02 \x03(\v2*.splitsecure.teamresource.v1.TeamSignatureR\x0eteamSignaturesB\xf0\x02\n" + - "(com.splitsecure.enclaveservices.saml2.v2B AuthenticatedIdpStateAndKeyProtoP\x01Zogithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v2;saml2v2\xa2\x02\x03SES\xaa\x02$Splitsecure.Enclaveservices.Saml2.V2\xca\x02$Splitsecure\\Enclaveservices\\Saml2\\V2\xe2\x020Splitsecure\\Enclaveservices\\Saml2\\V2\\GPBMetadata\xea\x02'Splitsecure::Enclaveservices::Saml2::V2b\x06proto3" - -var ( - file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDescOnce sync.Once - file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDescData []byte -) - -func file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDescGZIP() []byte { - file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDescOnce.Do(func() { - file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDesc), len(file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDesc))) - }) - return file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDescData -} - -var file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_goTypes = []any{ - (*AuthenticatedIdPStateAndKey)(nil), // 0: splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKey - (*v1.TeamSignature)(nil), // 1: splitsecure.teamresource.v1.TeamSignature -} -var file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_depIdxs = []int32{ - 1, // 0: splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKey.team_signatures:type_name -> splitsecure.teamresource.v1.TeamSignature - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_init() } -func file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_init() { - if File_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDesc), len(file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_goTypes, - DependencyIndexes: file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_depIdxs, - MessageInfos: file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_msgTypes, - }.Build() - File_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto = out.File - file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_goTypes = nil - file_splitsecure_enclaveservices_saml2_v2_authenticated_idp_state_and_key_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.pb.go b/gen/go/proto/splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.pb.go deleted file mode 100644 index 353f856..0000000 --- a/gen/go/proto/splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.pb.go +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.proto - -package saml2v2 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type AuthenticatedSAML2ServiceProvider struct { - state protoimpl.MessageState `protogen:"open.v1"` - Authenticated []byte `protobuf:"bytes,1,opt,name=authenticated,proto3" json:"authenticated,omitempty"` // Serialized saml2.v2.SAML2ServiceProvider - TeamSignatures []*v1.TeamSignature `protobuf:"bytes,2,rep,name=team_signatures,json=teamSignatures,proto3" json:"team_signatures,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AuthenticatedSAML2ServiceProvider) Reset() { - *x = AuthenticatedSAML2ServiceProvider{} - mi := &file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AuthenticatedSAML2ServiceProvider) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthenticatedSAML2ServiceProvider) ProtoMessage() {} - -func (x *AuthenticatedSAML2ServiceProvider) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuthenticatedSAML2ServiceProvider.ProtoReflect.Descriptor instead. -func (*AuthenticatedSAML2ServiceProvider) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDescGZIP(), []int{0} -} - -func (x *AuthenticatedSAML2ServiceProvider) GetAuthenticated() []byte { - if x != nil { - return x.Authenticated - } - return nil -} - -func (x *AuthenticatedSAML2ServiceProvider) GetTeamSignatures() []*v1.TeamSignature { - if x != nil { - return x.TeamSignatures - } - return nil -} - -var File_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto protoreflect.FileDescriptor - -const file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDesc = "" + - "\n" + - "Osplitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.proto\x12$splitsecure.enclaveservices.saml2.v2\x1a/splitsecure/teamresource/v1/team_resource.proto\"\x9e\x01\n" + - "!AuthenticatedSAML2ServiceProvider\x12$\n" + - "\rauthenticated\x18\x01 \x01(\fR\rauthenticated\x12S\n" + - "\x0fteam_signatures\x18\x02 \x03(\v2*.splitsecure.teamresource.v1.TeamSignatureR\x0eteamSignaturesB\xf6\x02\n" + - "(com.splitsecure.enclaveservices.saml2.v2B&AuthenticatedSaml2ServiceProviderProtoP\x01Zogithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v2;saml2v2\xa2\x02\x03SES\xaa\x02$Splitsecure.Enclaveservices.Saml2.V2\xca\x02$Splitsecure\\Enclaveservices\\Saml2\\V2\xe2\x020Splitsecure\\Enclaveservices\\Saml2\\V2\\GPBMetadata\xea\x02'Splitsecure::Enclaveservices::Saml2::V2b\x06proto3" - -var ( - file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDescOnce sync.Once - file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDescData []byte -) - -func file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDescGZIP() []byte { - file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDescOnce.Do(func() { - file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDesc), len(file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDesc))) - }) - return file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDescData -} - -var file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_goTypes = []any{ - (*AuthenticatedSAML2ServiceProvider)(nil), // 0: splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProvider - (*v1.TeamSignature)(nil), // 1: splitsecure.teamresource.v1.TeamSignature -} -var file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_depIdxs = []int32{ - 1, // 0: splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProvider.team_signatures:type_name -> splitsecure.teamresource.v1.TeamSignature - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { - file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_init() -} -func file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_init() { - if File_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDesc), len(file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_goTypes, - DependencyIndexes: file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_depIdxs, - MessageInfos: file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_msgTypes, - }.Build() - File_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto = out.File - file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_goTypes = nil - file_splitsecure_enclaveservices_saml2_v2_authenticated_saml2_service_provider_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/enclaveservices/saml2/v2/saml2_service_provider.pb.go b/gen/go/proto/splitsecure/enclaveservices/saml2/v2/saml2_service_provider.pb.go deleted file mode 100644 index 354eef5..0000000 --- a/gen/go/proto/splitsecure/enclaveservices/saml2/v2/saml2_service_provider.pb.go +++ /dev/null @@ -1,1372 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto - -package saml2v2 - -import ( - v12 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/notifications/v1" - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/saml2metadatafetcherservice/v1" - v11 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type SAML2ServiceProvider struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // idp_auth_sum is the SHA3-256 hash of the AuthenticatedIdPStateAndKey.authenticated - // bytes that were presented when this SP was created. Used by the enclave at sign time - // to guarantee the SP was created against the exact same IdP. - IdpAuthSum []byte `protobuf:"bytes,3,opt,name=idp_auth_sum,json=idpAuthSum,proto3" json:"idp_auth_sum,omitempty"` - // idp_coord_id_hint is the coordination-layer snowflake ID of the IdP resource. - // Used as a hint by the coordination service to look up the matching IdP for this SP. - IdpCoordIdHint string `protobuf:"bytes,4,opt,name=idp_coord_id_hint,json=idpCoordIdHint,proto3" json:"idp_coord_id_hint,omitempty"` - Metadata *v1.Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` - Sensitivity *v11.AccountSensitivity `protobuf:"bytes,7,opt,name=sensitivity,proto3" json:"sensitivity,omitempty"` - // notification_policy controls how notifications are sent for proposals - // involving this service provider. Copied from IdPState at creation time. - NotificationPolicy v12.NotificationPolicy `protobuf:"varint,6,opt,name=notification_policy,json=notificationPolicy,proto3,enum=splitsecure.notifications.v1.NotificationPolicy" json:"notification_policy,omitempty"` - // description is an optional free-form description of this service provider - Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` - // proposal_id is the SHA3-512 hash of the execution context bottle that - // created this resource, linking it to the audit log. Set by the enclave. - ProposalId []byte `protobuf:"bytes,9,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - // base_resource_attributes is the unified resource metadata view. - // When present, consumers should prefer this over the flat fields above. - // Both paths are supported for backwards compatibility. - BaseResourceAttributes *v11.BaseResourceAttributes `protobuf:"bytes,10,opt,name=base_resource_attributes,json=baseResourceAttributes,proto3" json:"base_resource_attributes,omitempty"` - // Types that are valid to be assigned to Account: - // - // *SAML2ServiceProvider_Aws - // *SAML2ServiceProvider_Cloudflare_ - // *SAML2ServiceProvider_EventBrite_ - // *SAML2ServiceProvider_Gcp - // *SAML2ServiceProvider_GoogleWorkspace_ - // *SAML2ServiceProvider_GoogleWorkspaceLegacy_ - // *SAML2ServiceProvider_IbmCloud - // *SAML2ServiceProvider_Kandji_ - // *SAML2ServiceProvider_MicrosoftEntraId - // *SAML2ServiceProvider_Okta_ - // *SAML2ServiceProvider_OracleCloud_ - // *SAML2ServiceProvider_PagerDuty_ - // *SAML2ServiceProvider_PitchBook_ - // *SAML2ServiceProvider_Rapid7_ - // *SAML2ServiceProvider_Stripe_ - // *SAML2ServiceProvider_Veeam_ - // *SAML2ServiceProvider_Workday_ - Account isSAML2ServiceProvider_Account `protobuf_oneof:"account"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider) Reset() { - *x = SAML2ServiceProvider{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider) ProtoMessage() {} - -func (x *SAML2ServiceProvider) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0} -} - -func (x *SAML2ServiceProvider) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *SAML2ServiceProvider) GetIdpAuthSum() []byte { - if x != nil { - return x.IdpAuthSum - } - return nil -} - -func (x *SAML2ServiceProvider) GetIdpCoordIdHint() string { - if x != nil { - return x.IdpCoordIdHint - } - return "" -} - -func (x *SAML2ServiceProvider) GetMetadata() *v1.Metadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *SAML2ServiceProvider) GetSensitivity() *v11.AccountSensitivity { - if x != nil { - return x.Sensitivity - } - return nil -} - -func (x *SAML2ServiceProvider) GetNotificationPolicy() v12.NotificationPolicy { - if x != nil { - return x.NotificationPolicy - } - return v12.NotificationPolicy(0) -} - -func (x *SAML2ServiceProvider) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *SAML2ServiceProvider) GetProposalId() []byte { - if x != nil { - return x.ProposalId - } - return nil -} - -func (x *SAML2ServiceProvider) GetBaseResourceAttributes() *v11.BaseResourceAttributes { - if x != nil { - return x.BaseResourceAttributes - } - return nil -} - -func (x *SAML2ServiceProvider) GetAccount() isSAML2ServiceProvider_Account { - if x != nil { - return x.Account - } - return nil -} - -func (x *SAML2ServiceProvider) GetAws() *SAML2ServiceProvider_AWS { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Aws); ok { - return x.Aws - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetCloudflare() *SAML2ServiceProvider_Cloudflare { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Cloudflare_); ok { - return x.Cloudflare - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetEventBrite() *SAML2ServiceProvider_EventBrite { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_EventBrite_); ok { - return x.EventBrite - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetGcp() *SAML2ServiceProvider_GCP { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Gcp); ok { - return x.Gcp - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetGoogleWorkspace() *SAML2ServiceProvider_GoogleWorkspace { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_GoogleWorkspace_); ok { - return x.GoogleWorkspace - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetGoogleWorkspaceLegacy() *SAML2ServiceProvider_GoogleWorkspaceLegacy { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_GoogleWorkspaceLegacy_); ok { - return x.GoogleWorkspaceLegacy - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetIbmCloud() *SAML2ServiceProvider_IBMCloud { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_IbmCloud); ok { - return x.IbmCloud - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetKandji() *SAML2ServiceProvider_Kandji { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Kandji_); ok { - return x.Kandji - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetMicrosoftEntraId() *SAML2ServiceProvider_MicrosoftEntraID { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_MicrosoftEntraId); ok { - return x.MicrosoftEntraId - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetOkta() *SAML2ServiceProvider_Okta { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Okta_); ok { - return x.Okta - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetOracleCloud() *SAML2ServiceProvider_OracleCloud { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_OracleCloud_); ok { - return x.OracleCloud - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetPagerDuty() *SAML2ServiceProvider_PagerDuty { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_PagerDuty_); ok { - return x.PagerDuty - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetPitchBook() *SAML2ServiceProvider_PitchBook { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_PitchBook_); ok { - return x.PitchBook - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetRapid7() *SAML2ServiceProvider_Rapid7 { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Rapid7_); ok { - return x.Rapid7 - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetStripe() *SAML2ServiceProvider_Stripe { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Stripe_); ok { - return x.Stripe - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetVeeam() *SAML2ServiceProvider_Veeam { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Veeam_); ok { - return x.Veeam - } - } - return nil -} - -func (x *SAML2ServiceProvider) GetWorkday() *SAML2ServiceProvider_Workday { - if x != nil { - if x, ok := x.Account.(*SAML2ServiceProvider_Workday_); ok { - return x.Workday - } - } - return nil -} - -type isSAML2ServiceProvider_Account interface { - isSAML2ServiceProvider_Account() -} - -type SAML2ServiceProvider_Aws struct { - Aws *SAML2ServiceProvider_AWS `protobuf:"bytes,100,opt,name=aws,proto3,oneof"` -} - -type SAML2ServiceProvider_Cloudflare_ struct { - Cloudflare *SAML2ServiceProvider_Cloudflare `protobuf:"bytes,112,opt,name=cloudflare,proto3,oneof"` -} - -type SAML2ServiceProvider_EventBrite_ struct { - EventBrite *SAML2ServiceProvider_EventBrite `protobuf:"bytes,105,opt,name=event_brite,json=eventBrite,proto3,oneof"` -} - -type SAML2ServiceProvider_Gcp struct { - Gcp *SAML2ServiceProvider_GCP `protobuf:"bytes,106,opt,name=gcp,proto3,oneof"` -} - -type SAML2ServiceProvider_GoogleWorkspace_ struct { - GoogleWorkspace *SAML2ServiceProvider_GoogleWorkspace `protobuf:"bytes,101,opt,name=google_workspace,json=googleWorkspace,proto3,oneof"` -} - -type SAML2ServiceProvider_GoogleWorkspaceLegacy_ struct { - GoogleWorkspaceLegacy *SAML2ServiceProvider_GoogleWorkspaceLegacy `protobuf:"bytes,110,opt,name=google_workspace_legacy,json=googleWorkspaceLegacy,proto3,oneof"` -} - -type SAML2ServiceProvider_IbmCloud struct { - IbmCloud *SAML2ServiceProvider_IBMCloud `protobuf:"bytes,113,opt,name=ibm_cloud,json=ibmCloud,proto3,oneof"` -} - -type SAML2ServiceProvider_Kandji_ struct { - Kandji *SAML2ServiceProvider_Kandji `protobuf:"bytes,111,opt,name=kandji,proto3,oneof"` -} - -type SAML2ServiceProvider_MicrosoftEntraId struct { - MicrosoftEntraId *SAML2ServiceProvider_MicrosoftEntraID `protobuf:"bytes,107,opt,name=microsoft_entra_id,json=microsoftEntraId,proto3,oneof"` -} - -type SAML2ServiceProvider_Okta_ struct { - Okta *SAML2ServiceProvider_Okta `protobuf:"bytes,103,opt,name=okta,proto3,oneof"` -} - -type SAML2ServiceProvider_OracleCloud_ struct { - OracleCloud *SAML2ServiceProvider_OracleCloud `protobuf:"bytes,114,opt,name=oracle_cloud,json=oracleCloud,proto3,oneof"` -} - -type SAML2ServiceProvider_PagerDuty_ struct { - PagerDuty *SAML2ServiceProvider_PagerDuty `protobuf:"bytes,115,opt,name=pager_duty,json=pagerDuty,proto3,oneof"` -} - -type SAML2ServiceProvider_PitchBook_ struct { - PitchBook *SAML2ServiceProvider_PitchBook `protobuf:"bytes,108,opt,name=pitch_book,json=pitchBook,proto3,oneof"` -} - -type SAML2ServiceProvider_Rapid7_ struct { - Rapid7 *SAML2ServiceProvider_Rapid7 `protobuf:"bytes,116,opt,name=rapid7,proto3,oneof"` -} - -type SAML2ServiceProvider_Stripe_ struct { - Stripe *SAML2ServiceProvider_Stripe `protobuf:"bytes,102,opt,name=stripe,proto3,oneof"` -} - -type SAML2ServiceProvider_Veeam_ struct { - Veeam *SAML2ServiceProvider_Veeam `protobuf:"bytes,104,opt,name=veeam,proto3,oneof"` -} - -type SAML2ServiceProvider_Workday_ struct { - Workday *SAML2ServiceProvider_Workday `protobuf:"bytes,109,opt,name=workday,proto3,oneof"` -} - -func (*SAML2ServiceProvider_Aws) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Cloudflare_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_EventBrite_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Gcp) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_GoogleWorkspace_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_GoogleWorkspaceLegacy_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_IbmCloud) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Kandji_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_MicrosoftEntraId) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Okta_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_OracleCloud_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_PagerDuty_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_PitchBook_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Rapid7_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Stripe_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Veeam_) isSAML2ServiceProvider_Account() {} - -func (*SAML2ServiceProvider_Workday_) isSAML2ServiceProvider_Account() {} - -type SAML2ServiceProvider_AWS struct { - state protoimpl.MessageState `protogen:"open.v1"` - SamlProviderArn string `protobuf:"bytes,2,opt,name=saml_provider_arn,json=samlProviderArn,proto3" json:"saml_provider_arn,omitempty"` - // Deprecated: Marked as deprecated in splitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto. - DefaultRoleArn string `protobuf:"bytes,3,opt,name=default_role_arn,json=defaultRoleArn,proto3" json:"default_role_arn,omitempty"` - AllowedRoleArns []string `protobuf:"bytes,4,rep,name=allowed_role_arns,json=allowedRoleArns,proto3" json:"allowed_role_arns,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_AWS) Reset() { - *x = SAML2ServiceProvider_AWS{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_AWS) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_AWS) ProtoMessage() {} - -func (x *SAML2ServiceProvider_AWS) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_AWS.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_AWS) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *SAML2ServiceProvider_AWS) GetSamlProviderArn() string { - if x != nil { - return x.SamlProviderArn - } - return "" -} - -// Deprecated: Marked as deprecated in splitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto. -func (x *SAML2ServiceProvider_AWS) GetDefaultRoleArn() string { - if x != nil { - return x.DefaultRoleArn - } - return "" -} - -func (x *SAML2ServiceProvider_AWS) GetAllowedRoleArns() []string { - if x != nil { - return x.AllowedRoleArns - } - return nil -} - -type SAML2ServiceProvider_Cloudflare struct { - state protoimpl.MessageState `protogen:"open.v1"` - SsoEndpoint string `protobuf:"bytes,1,opt,name=sso_endpoint,json=ssoEndpoint,proto3" json:"sso_endpoint,omitempty"` - DefaultEmail string `protobuf:"bytes,2,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Cloudflare) Reset() { - *x = SAML2ServiceProvider_Cloudflare{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Cloudflare) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Cloudflare) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Cloudflare) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Cloudflare.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Cloudflare) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 1} -} - -func (x *SAML2ServiceProvider_Cloudflare) GetSsoEndpoint() string { - if x != nil { - return x.SsoEndpoint - } - return "" -} - -func (x *SAML2ServiceProvider_Cloudflare) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -type SAML2ServiceProvider_EventBrite struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_EventBrite) Reset() { - *x = SAML2ServiceProvider_EventBrite{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_EventBrite) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_EventBrite) ProtoMessage() {} - -func (x *SAML2ServiceProvider_EventBrite) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_EventBrite.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_EventBrite) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 2} -} - -type SAML2ServiceProvider_GCP struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultEmail string `protobuf:"bytes,1,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_GCP) Reset() { - *x = SAML2ServiceProvider_GCP{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_GCP) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_GCP) ProtoMessage() {} - -func (x *SAML2ServiceProvider_GCP) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_GCP.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_GCP) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 3} -} - -func (x *SAML2ServiceProvider_GCP) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -type SAML2ServiceProvider_GoogleWorkspace struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_GoogleWorkspace) Reset() { - *x = SAML2ServiceProvider_GoogleWorkspace{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_GoogleWorkspace) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_GoogleWorkspace) ProtoMessage() {} - -func (x *SAML2ServiceProvider_GoogleWorkspace) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_GoogleWorkspace.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_GoogleWorkspace) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 4} -} - -type SAML2ServiceProvider_GoogleWorkspaceLegacy struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultEmail string `protobuf:"bytes,1,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - DomainName string `protobuf:"bytes,2,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) Reset() { - *x = SAML2ServiceProvider_GoogleWorkspaceLegacy{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_GoogleWorkspaceLegacy) ProtoMessage() {} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_GoogleWorkspaceLegacy.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_GoogleWorkspaceLegacy) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 5} -} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -func (x *SAML2ServiceProvider_GoogleWorkspaceLegacy) GetDomainName() string { - if x != nil { - return x.DomainName - } - return "" -} - -type SAML2ServiceProvider_IBMCloud struct { - state protoimpl.MessageState `protogen:"open.v1"` - LoginUrl string `protobuf:"bytes,1,opt,name=login_url,json=loginUrl,proto3" json:"login_url,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_IBMCloud) Reset() { - *x = SAML2ServiceProvider_IBMCloud{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_IBMCloud) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_IBMCloud) ProtoMessage() {} - -func (x *SAML2ServiceProvider_IBMCloud) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_IBMCloud.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_IBMCloud) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 6} -} - -func (x *SAML2ServiceProvider_IBMCloud) GetLoginUrl() string { - if x != nil { - return x.LoginUrl - } - return "" -} - -type SAML2ServiceProvider_Kandji struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultEmail string `protobuf:"bytes,1,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Kandji) Reset() { - *x = SAML2ServiceProvider_Kandji{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Kandji) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Kandji) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Kandji) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Kandji.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Kandji) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 7} -} - -func (x *SAML2ServiceProvider_Kandji) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -type SAML2ServiceProvider_MicrosoftEntraID struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_MicrosoftEntraID) Reset() { - *x = SAML2ServiceProvider_MicrosoftEntraID{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_MicrosoftEntraID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_MicrosoftEntraID) ProtoMessage() {} - -func (x *SAML2ServiceProvider_MicrosoftEntraID) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_MicrosoftEntraID.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_MicrosoftEntraID) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 8} -} - -type SAML2ServiceProvider_Okta struct { - state protoimpl.MessageState `protogen:"open.v1"` - AllowedEmails []string `protobuf:"bytes,1,rep,name=allowed_emails,json=allowedEmails,proto3" json:"allowed_emails,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Okta) Reset() { - *x = SAML2ServiceProvider_Okta{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Okta) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Okta) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Okta) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Okta.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Okta) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 9} -} - -func (x *SAML2ServiceProvider_Okta) GetAllowedEmails() []string { - if x != nil { - return x.AllowedEmails - } - return nil -} - -type SAML2ServiceProvider_OracleCloud struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_OracleCloud) Reset() { - *x = SAML2ServiceProvider_OracleCloud{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_OracleCloud) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_OracleCloud) ProtoMessage() {} - -func (x *SAML2ServiceProvider_OracleCloud) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_OracleCloud.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_OracleCloud) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 10} -} - -type SAML2ServiceProvider_PagerDuty struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_PagerDuty) Reset() { - *x = SAML2ServiceProvider_PagerDuty{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_PagerDuty) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_PagerDuty) ProtoMessage() {} - -func (x *SAML2ServiceProvider_PagerDuty) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_PagerDuty.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_PagerDuty) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 11} -} - -type SAML2ServiceProvider_PitchBook struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_PitchBook) Reset() { - *x = SAML2ServiceProvider_PitchBook{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_PitchBook) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_PitchBook) ProtoMessage() {} - -func (x *SAML2ServiceProvider_PitchBook) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_PitchBook.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_PitchBook) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 12} -} - -type SAML2ServiceProvider_Rapid7 struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultRelayState string `protobuf:"bytes,1,opt,name=default_relay_state,json=defaultRelayState,proto3" json:"default_relay_state,omitempty"` - DefaultEmail string `protobuf:"bytes,2,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"` - DefaultFirstName string `protobuf:"bytes,3,opt,name=default_first_name,json=defaultFirstName,proto3" json:"default_first_name,omitempty"` - DefaultLastName string `protobuf:"bytes,4,opt,name=default_last_name,json=defaultLastName,proto3" json:"default_last_name,omitempty"` - DefaultRbacGroups []string `protobuf:"bytes,5,rep,name=default_rbac_groups,json=defaultRbacGroups,proto3" json:"default_rbac_groups,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Rapid7) Reset() { - *x = SAML2ServiceProvider_Rapid7{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Rapid7) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Rapid7) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Rapid7) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[14] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Rapid7.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Rapid7) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 13} -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultRelayState() string { - if x != nil { - return x.DefaultRelayState - } - return "" -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultEmail() string { - if x != nil { - return x.DefaultEmail - } - return "" -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultFirstName() string { - if x != nil { - return x.DefaultFirstName - } - return "" -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultLastName() string { - if x != nil { - return x.DefaultLastName - } - return "" -} - -func (x *SAML2ServiceProvider_Rapid7) GetDefaultRbacGroups() []string { - if x != nil { - return x.DefaultRbacGroups - } - return nil -} - -type SAML2ServiceProvider_Stripe struct { - state protoimpl.MessageState `protogen:"open.v1"` - AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Stripe) Reset() { - *x = SAML2ServiceProvider_Stripe{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Stripe) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Stripe) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Stripe) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[15] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Stripe.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Stripe) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 14} -} - -func (x *SAML2ServiceProvider_Stripe) GetAccountId() string { - if x != nil { - return x.AccountId - } - return "" -} - -type SAML2ServiceProvider_Veeam struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Veeam) Reset() { - *x = SAML2ServiceProvider_Veeam{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Veeam) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Veeam) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Veeam) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Veeam.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Veeam) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 15} -} - -type SAML2ServiceProvider_Workday struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SAML2ServiceProvider_Workday) Reset() { - *x = SAML2ServiceProvider_Workday{} - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SAML2ServiceProvider_Workday) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SAML2ServiceProvider_Workday) ProtoMessage() {} - -func (x *SAML2ServiceProvider_Workday) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[17] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SAML2ServiceProvider_Workday.ProtoReflect.Descriptor instead. -func (*SAML2ServiceProvider_Workday) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP(), []int{0, 16} -} - -var File_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto protoreflect.FileDescriptor - -const file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDesc = "" + - "\n" + - "Asplitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto\x12$splitsecure.enclaveservices.saml2.v2\x1a6splitsecure/notifications/v1/notification_policy.proto\x1a9splitsecure/saml2metadatafetcherservice/v1/metadata.proto\x1a/splitsecure/teamresource/v1/team_resource.proto\"\x82\x19\n" + - "\x14SAML2ServiceProvider\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + - "\fidp_auth_sum\x18\x03 \x01(\fR\n" + - "idpAuthSum\x12)\n" + - "\x11idp_coord_id_hint\x18\x04 \x01(\tR\x0eidpCoordIdHint\x12P\n" + - "\bmetadata\x18\x05 \x01(\v24.splitsecure.saml2metadatafetcherservice.v1.MetadataR\bmetadata\x12Q\n" + - "\vsensitivity\x18\a \x01(\v2/.splitsecure.teamresource.v1.AccountSensitivityR\vsensitivity\x12a\n" + - "\x13notification_policy\x18\x06 \x01(\x0e20.splitsecure.notifications.v1.NotificationPolicyR\x12notificationPolicy\x12 \n" + - "\vdescription\x18\b \x01(\tR\vdescription\x12\x1f\n" + - "\vproposal_id\x18\t \x01(\fR\n" + - "proposalId\x12m\n" + - "\x18base_resource_attributes\x18\n" + - " \x01(\v23.splitsecure.teamresource.v1.BaseResourceAttributesR\x16baseResourceAttributes\x12R\n" + - "\x03aws\x18d \x01(\v2>.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.AWSH\x00R\x03aws\x12g\n" + - "\n" + - "cloudflare\x18p \x01(\v2E.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.CloudflareH\x00R\n" + - "cloudflare\x12h\n" + - "\vevent_brite\x18i \x01(\v2E.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.EventBriteH\x00R\n" + - "eventBrite\x12R\n" + - "\x03gcp\x18j \x01(\v2>.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GCPH\x00R\x03gcp\x12w\n" + - "\x10google_workspace\x18e \x01(\v2J.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceH\x00R\x0fgoogleWorkspace\x12\x8a\x01\n" + - "\x17google_workspace_legacy\x18n \x01(\v2P.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceLegacyH\x00R\x15googleWorkspaceLegacy\x12b\n" + - "\tibm_cloud\x18q \x01(\v2C.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.IBMCloudH\x00R\bibmCloud\x12[\n" + - "\x06kandji\x18o \x01(\v2A.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.KandjiH\x00R\x06kandji\x12{\n" + - "\x12microsoft_entra_id\x18k \x01(\v2K.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.MicrosoftEntraIDH\x00R\x10microsoftEntraId\x12U\n" + - "\x04okta\x18g \x01(\v2?.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OktaH\x00R\x04okta\x12k\n" + - "\foracle_cloud\x18r \x01(\v2F.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OracleCloudH\x00R\voracleCloud\x12e\n" + - "\n" + - "pager_duty\x18s \x01(\v2D.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PagerDutyH\x00R\tpagerDuty\x12e\n" + - "\n" + - "pitch_book\x18l \x01(\v2D.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PitchBookH\x00R\tpitchBook\x12[\n" + - "\x06rapid7\x18t \x01(\v2A.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Rapid7H\x00R\x06rapid7\x12[\n" + - "\x06stripe\x18f \x01(\v2A.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.StripeH\x00R\x06stripe\x12X\n" + - "\x05veeam\x18h \x01(\v2@.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.VeeamH\x00R\x05veeam\x12^\n" + - "\aworkday\x18m \x01(\v2B.splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.WorkdayH\x00R\aworkday\x1a\x8b\x01\n" + - "\x03AWS\x12*\n" + - "\x11saml_provider_arn\x18\x02 \x01(\tR\x0fsamlProviderArn\x12,\n" + - "\x10default_role_arn\x18\x03 \x01(\tB\x02\x18\x01R\x0edefaultRoleArn\x12*\n" + - "\x11allowed_role_arns\x18\x04 \x03(\tR\x0fallowedRoleArns\x1aT\n" + - "\n" + - "Cloudflare\x12!\n" + - "\fsso_endpoint\x18\x01 \x01(\tR\vssoEndpoint\x12#\n" + - "\rdefault_email\x18\x02 \x01(\tR\fdefaultEmail\x1a\f\n" + - "\n" + - "EventBrite\x1a*\n" + - "\x03GCP\x12#\n" + - "\rdefault_email\x18\x01 \x01(\tR\fdefaultEmail\x1a\x11\n" + - "\x0fGoogleWorkspace\x1a]\n" + - "\x15GoogleWorkspaceLegacy\x12#\n" + - "\rdefault_email\x18\x01 \x01(\tR\fdefaultEmail\x12\x1f\n" + - "\vdomain_name\x18\x02 \x01(\tR\n" + - "domainName\x1a'\n" + - "\bIBMCloud\x12\x1b\n" + - "\tlogin_url\x18\x01 \x01(\tR\bloginUrl\x1a-\n" + - "\x06Kandji\x12#\n" + - "\rdefault_email\x18\x01 \x01(\tR\fdefaultEmail\x1a\x12\n" + - "\x10MicrosoftEntraID\x1a-\n" + - "\x04Okta\x12%\n" + - "\x0eallowed_emails\x18\x01 \x03(\tR\rallowedEmails\x1a\r\n" + - "\vOracleCloud\x1a\v\n" + - "\tPagerDuty\x1a\v\n" + - "\tPitchBook\x1a\xe7\x01\n" + - "\x06Rapid7\x12.\n" + - "\x13default_relay_state\x18\x01 \x01(\tR\x11defaultRelayState\x12#\n" + - "\rdefault_email\x18\x02 \x01(\tR\fdefaultEmail\x12,\n" + - "\x12default_first_name\x18\x03 \x01(\tR\x10defaultFirstName\x12*\n" + - "\x11default_last_name\x18\x04 \x01(\tR\x0fdefaultLastName\x12.\n" + - "\x13default_rbac_groups\x18\x05 \x03(\tR\x11defaultRbacGroups\x1a'\n" + - "\x06Stripe\x12\x1d\n" + - "\n" + - "account_id\x18\x01 \x01(\tR\taccountId\x1a\a\n" + - "\x05Veeam\x1a\t\n" + - "\aWorkdayB\t\n" + - "\aaccountJ\x04\b\x02\x10\x03B\xe9\x02\n" + - "(com.splitsecure.enclaveservices.saml2.v2B\x19Saml2ServiceProviderProtoP\x01Zogithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v2;saml2v2\xa2\x02\x03SES\xaa\x02$Splitsecure.Enclaveservices.Saml2.V2\xca\x02$Splitsecure\\Enclaveservices\\Saml2\\V2\xe2\x020Splitsecure\\Enclaveservices\\Saml2\\V2\\GPBMetadata\xea\x02'Splitsecure::Enclaveservices::Saml2::V2b\x06proto3" - -var ( - file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescOnce sync.Once - file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescData []byte -) - -func file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescGZIP() []byte { - file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescOnce.Do(func() { - file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDesc), len(file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDesc))) - }) - return file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDescData -} - -var file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_goTypes = []any{ - (*SAML2ServiceProvider)(nil), // 0: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider - (*SAML2ServiceProvider_AWS)(nil), // 1: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.AWS - (*SAML2ServiceProvider_Cloudflare)(nil), // 2: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Cloudflare - (*SAML2ServiceProvider_EventBrite)(nil), // 3: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.EventBrite - (*SAML2ServiceProvider_GCP)(nil), // 4: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GCP - (*SAML2ServiceProvider_GoogleWorkspace)(nil), // 5: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspace - (*SAML2ServiceProvider_GoogleWorkspaceLegacy)(nil), // 6: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceLegacy - (*SAML2ServiceProvider_IBMCloud)(nil), // 7: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.IBMCloud - (*SAML2ServiceProvider_Kandji)(nil), // 8: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Kandji - (*SAML2ServiceProvider_MicrosoftEntraID)(nil), // 9: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.MicrosoftEntraID - (*SAML2ServiceProvider_Okta)(nil), // 10: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Okta - (*SAML2ServiceProvider_OracleCloud)(nil), // 11: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OracleCloud - (*SAML2ServiceProvider_PagerDuty)(nil), // 12: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PagerDuty - (*SAML2ServiceProvider_PitchBook)(nil), // 13: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PitchBook - (*SAML2ServiceProvider_Rapid7)(nil), // 14: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Rapid7 - (*SAML2ServiceProvider_Stripe)(nil), // 15: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Stripe - (*SAML2ServiceProvider_Veeam)(nil), // 16: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Veeam - (*SAML2ServiceProvider_Workday)(nil), // 17: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Workday - (*v1.Metadata)(nil), // 18: splitsecure.saml2metadatafetcherservice.v1.Metadata - (*v11.AccountSensitivity)(nil), // 19: splitsecure.teamresource.v1.AccountSensitivity - (v12.NotificationPolicy)(0), // 20: splitsecure.notifications.v1.NotificationPolicy - (*v11.BaseResourceAttributes)(nil), // 21: splitsecure.teamresource.v1.BaseResourceAttributes -} -var file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_depIdxs = []int32{ - 18, // 0: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.metadata:type_name -> splitsecure.saml2metadatafetcherservice.v1.Metadata - 19, // 1: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.sensitivity:type_name -> splitsecure.teamresource.v1.AccountSensitivity - 20, // 2: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.notification_policy:type_name -> splitsecure.notifications.v1.NotificationPolicy - 21, // 3: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.base_resource_attributes:type_name -> splitsecure.teamresource.v1.BaseResourceAttributes - 1, // 4: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.aws:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.AWS - 2, // 5: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.cloudflare:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Cloudflare - 3, // 6: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.event_brite:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.EventBrite - 4, // 7: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.gcp:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GCP - 5, // 8: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.google_workspace:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspace - 6, // 9: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.google_workspace_legacy:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceLegacy - 7, // 10: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.ibm_cloud:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.IBMCloud - 8, // 11: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.kandji:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Kandji - 9, // 12: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.microsoft_entra_id:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.MicrosoftEntraID - 10, // 13: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.okta:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Okta - 11, // 14: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.oracle_cloud:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OracleCloud - 12, // 15: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.pager_duty:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PagerDuty - 13, // 16: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.pitch_book:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PitchBook - 14, // 17: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.rapid7:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Rapid7 - 15, // 18: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.stripe:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Stripe - 16, // 19: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.veeam:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Veeam - 17, // 20: splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.workday:type_name -> splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Workday - 21, // [21:21] is the sub-list for method output_type - 21, // [21:21] is the sub-list for method input_type - 21, // [21:21] is the sub-list for extension type_name - 21, // [21:21] is the sub-list for extension extendee - 0, // [0:21] is the sub-list for field type_name -} - -func init() { file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_init() } -func file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_init() { - if File_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto != nil { - return - } - file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes[0].OneofWrappers = []any{ - (*SAML2ServiceProvider_Aws)(nil), - (*SAML2ServiceProvider_Cloudflare_)(nil), - (*SAML2ServiceProvider_EventBrite_)(nil), - (*SAML2ServiceProvider_Gcp)(nil), - (*SAML2ServiceProvider_GoogleWorkspace_)(nil), - (*SAML2ServiceProvider_GoogleWorkspaceLegacy_)(nil), - (*SAML2ServiceProvider_IbmCloud)(nil), - (*SAML2ServiceProvider_Kandji_)(nil), - (*SAML2ServiceProvider_MicrosoftEntraId)(nil), - (*SAML2ServiceProvider_Okta_)(nil), - (*SAML2ServiceProvider_OracleCloud_)(nil), - (*SAML2ServiceProvider_PagerDuty_)(nil), - (*SAML2ServiceProvider_PitchBook_)(nil), - (*SAML2ServiceProvider_Rapid7_)(nil), - (*SAML2ServiceProvider_Stripe_)(nil), - (*SAML2ServiceProvider_Veeam_)(nil), - (*SAML2ServiceProvider_Workday_)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDesc), len(file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_rawDesc)), - NumEnums: 0, - NumMessages: 18, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_goTypes, - DependencyIndexes: file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_depIdxs, - MessageInfos: file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_msgTypes, - }.Build() - File_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto = out.File - file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_goTypes = nil - file_splitsecure_enclaveservices_saml2_v2_saml2_service_provider_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/enclaveservices/threshold/v1/threshold_key.pb.go b/gen/go/proto/splitsecure/enclaveservices/threshold/v1/threshold_key.pb.go deleted file mode 100644 index a9b1a2e..0000000 --- a/gen/go/proto/splitsecure/enclaveservices/threshold/v1/threshold_key.pb.go +++ /dev/null @@ -1,313 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/enclaveservices/threshold/v1/threshold_key.proto - -package thresholdv1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/keys/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ThresholdKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *ThresholdKey_DerivedKey - // *ThresholdKey_WrappedKey - Union isThresholdKey_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ThresholdKey) Reset() { - *x = ThresholdKey{} - mi := &file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ThresholdKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ThresholdKey) ProtoMessage() {} - -func (x *ThresholdKey) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ThresholdKey.ProtoReflect.Descriptor instead. -func (*ThresholdKey) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_rawDescGZIP(), []int{0} -} - -func (x *ThresholdKey) GetUnion() isThresholdKey_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *ThresholdKey) GetDerivedKey() *DerivedKey { - if x != nil { - if x, ok := x.Union.(*ThresholdKey_DerivedKey); ok { - return x.DerivedKey - } - } - return nil -} - -func (x *ThresholdKey) GetWrappedKey() *WrappedKey { - if x != nil { - if x, ok := x.Union.(*ThresholdKey_WrappedKey); ok { - return x.WrappedKey - } - } - return nil -} - -type isThresholdKey_Union interface { - isThresholdKey_Union() -} - -type ThresholdKey_DerivedKey struct { - DerivedKey *DerivedKey `protobuf:"bytes,1,opt,name=derived_key,json=derivedKey,proto3,oneof"` -} - -type ThresholdKey_WrappedKey struct { - WrappedKey *WrappedKey `protobuf:"bytes,2,opt,name=wrapped_key,json=wrappedKey,proto3,oneof"` -} - -func (*ThresholdKey_DerivedKey) isThresholdKey_Union() {} - -func (*ThresholdKey_WrappedKey) isThresholdKey_Union() {} - -type DerivedKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - // team_id can be repeated if this key depends on multiple teams. - TeamIds [][]byte `protobuf:"bytes,1,rep,name=team_ids,json=teamIds,proto3" json:"team_ids,omitempty"` - Spec *v1.Spec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - Derivation []byte `protobuf:"bytes,3,opt,name=derivation,proto3" json:"derivation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DerivedKey) Reset() { - *x = DerivedKey{} - mi := &file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DerivedKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DerivedKey) ProtoMessage() {} - -func (x *DerivedKey) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DerivedKey.ProtoReflect.Descriptor instead. -func (*DerivedKey) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_rawDescGZIP(), []int{1} -} - -func (x *DerivedKey) GetTeamIds() [][]byte { - if x != nil { - return x.TeamIds - } - return nil -} - -func (x *DerivedKey) GetSpec() *v1.Spec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *DerivedKey) GetDerivation() []byte { - if x != nil { - return x.Derivation - } - return nil -} - -// WrappedKey is a key that has been wrapped by -// a derived key. -type WrappedKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - WrappingKey *ThresholdKey `protobuf:"bytes,1,opt,name=wrapping_key,json=wrappingKey,proto3" json:"wrapping_key,omitempty"` - Spec *v1.Spec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - WrappedData []byte `protobuf:"bytes,3,opt,name=wrapped_data,json=wrappedData,proto3" json:"wrapped_data,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *WrappedKey) Reset() { - *x = WrappedKey{} - mi := &file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *WrappedKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WrappedKey) ProtoMessage() {} - -func (x *WrappedKey) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WrappedKey.ProtoReflect.Descriptor instead. -func (*WrappedKey) Descriptor() ([]byte, []int) { - return file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_rawDescGZIP(), []int{2} -} - -func (x *WrappedKey) GetWrappingKey() *ThresholdKey { - if x != nil { - return x.WrappingKey - } - return nil -} - -func (x *WrappedKey) GetSpec() *v1.Spec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *WrappedKey) GetWrappedData() []byte { - if x != nil { - return x.WrappedData - } - return nil -} - -var File_splitsecure_enclaveservices_threshold_v1_threshold_key_proto protoreflect.FileDescriptor - -const file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_rawDesc = "" + - "\n" + - " splitsecure.enclaveservices.threshold.v1.DerivedKey - 2, // 1: splitsecure.enclaveservices.threshold.v1.ThresholdKey.wrapped_key:type_name -> splitsecure.enclaveservices.threshold.v1.WrappedKey - 3, // 2: splitsecure.enclaveservices.threshold.v1.DerivedKey.spec:type_name -> splitsecure.keys.v1.Spec - 0, // 3: splitsecure.enclaveservices.threshold.v1.WrappedKey.wrapping_key:type_name -> splitsecure.enclaveservices.threshold.v1.ThresholdKey - 3, // 4: splitsecure.enclaveservices.threshold.v1.WrappedKey.spec:type_name -> splitsecure.keys.v1.Spec - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_init() } -func file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_init() { - if File_splitsecure_enclaveservices_threshold_v1_threshold_key_proto != nil { - return - } - file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_msgTypes[0].OneofWrappers = []any{ - (*ThresholdKey_DerivedKey)(nil), - (*ThresholdKey_WrappedKey)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_rawDesc), len(file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_rawDesc)), - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_goTypes, - DependencyIndexes: file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_depIdxs, - MessageInfos: file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_msgTypes, - }.Build() - File_splitsecure_enclaveservices_threshold_v1_threshold_key_proto = out.File - file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_goTypes = nil - file_splitsecure_enclaveservices_threshold_v1_threshold_key_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/hybridkeyset/v1/hybridkeyset.pb.go b/gen/go/proto/splitsecure/hybridkeyset/v1/hybridkeyset.pb.go deleted file mode 100644 index d0a6459..0000000 --- a/gen/go/proto/splitsecure/hybridkeyset/v1/hybridkeyset.pb.go +++ /dev/null @@ -1,487 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/hybridkeyset/v1/hybridkeyset.proto - -package hybridkeysetv1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/keys/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type HybridKeySet struct { - state protoimpl.MessageState `protogen:"open.v1"` - Keys []*KeyInfo `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *HybridKeySet) Reset() { - *x = HybridKeySet{} - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *HybridKeySet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HybridKeySet) ProtoMessage() {} - -func (x *HybridKeySet) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HybridKeySet.ProtoReflect.Descriptor instead. -func (*HybridKeySet) Descriptor() ([]byte, []int) { - return file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescGZIP(), []int{0} -} - -func (x *HybridKeySet) GetKeys() []*KeyInfo { - if x != nil { - return x.Keys - } - return nil -} - -type KeyInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - PublicKeySpec *v1.Spec `protobuf:"bytes,2,opt,name=public_key_spec,json=publicKeySpec,proto3" json:"public_key_spec,omitempty"` - DefaultDigestAlgorithm uint32 `protobuf:"varint,3,opt,name=default_digest_algorithm,json=defaultDigestAlgorithm,proto3" json:"default_digest_algorithm,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *KeyInfo) Reset() { - *x = KeyInfo{} - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *KeyInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyInfo) ProtoMessage() {} - -func (x *KeyInfo) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyInfo.ProtoReflect.Descriptor instead. -func (*KeyInfo) Descriptor() ([]byte, []int) { - return file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescGZIP(), []int{1} -} - -func (x *KeyInfo) GetHash() []byte { - if x != nil { - return x.Hash - } - return nil -} - -func (x *KeyInfo) GetPublicKeySpec() *v1.Spec { - if x != nil { - return x.PublicKeySpec - } - return nil -} - -func (x *KeyInfo) GetDefaultDigestAlgorithm() uint32 { - if x != nil { - return x.DefaultDigestAlgorithm - } - return 0 -} - -type DetachedKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DetachedKey) Reset() { - *x = DetachedKey{} - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DetachedKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DetachedKey) ProtoMessage() {} - -func (x *DetachedKey) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DetachedKey.ProtoReflect.Descriptor instead. -func (*DetachedKey) Descriptor() ([]byte, []int) { - return file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescGZIP(), []int{2} -} - -func (x *DetachedKey) GetIndex() uint32 { - if x != nil { - return x.Index - } - return 0 -} - -func (x *DetachedKey) GetKey() []byte { - if x != nil { - return x.Key - } - return nil -} - -type HybridKeySetWithDetachedKeys struct { - state protoimpl.MessageState `protogen:"open.v1"` - // hybrid_key_set holds a serialized HybridKeySet - HybridKeySet []byte `protobuf:"bytes,1,opt,name=hybrid_key_set,json=hybridKeySet,proto3" json:"hybrid_key_set,omitempty"` - Keys []*DetachedKey `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *HybridKeySetWithDetachedKeys) Reset() { - *x = HybridKeySetWithDetachedKeys{} - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *HybridKeySetWithDetachedKeys) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HybridKeySetWithDetachedKeys) ProtoMessage() {} - -func (x *HybridKeySetWithDetachedKeys) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HybridKeySetWithDetachedKeys.ProtoReflect.Descriptor instead. -func (*HybridKeySetWithDetachedKeys) Descriptor() ([]byte, []int) { - return file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescGZIP(), []int{3} -} - -func (x *HybridKeySetWithDetachedKeys) GetHybridKeySet() []byte { - if x != nil { - return x.HybridKeySet - } - return nil -} - -func (x *HybridKeySetWithDetachedKeys) GetKeys() []*DetachedKey { - if x != nil { - return x.Keys - } - return nil -} - -type Signature struct { - state protoimpl.MessageState `protogen:"open.v1"` - // keys_bitfield has a high bit for each key that was used to generate this signature - // this field is authenticated by the signature itself in order to prevent - // the removal of a signature. - // The only issue that this faces is: if it becomes possible to generate a signature - // by only knowing a public key, the adversary can remove all other signatures - // and provide a bitfield with only keys of the broken algo. - // In order to paliate thi issue, the signature verification process returns - // the list of keys that have been used to verify and should expect a minimal set of algos. - // In the name of flexibility, the receiver could specify that it expects `n“ different - // signatures schemes of at least `b` level of security. - // This is up to the verifier. - KeysBitfield uint32 `protobuf:"varint,1,opt,name=keys_bitfield,json=keysBitfield,proto3" json:"keys_bitfield,omitempty"` - // signatures contains the signatures for each key specified in the bitfield. - // They are ordered from LSB to MSB based on the order of appearance in `keys_bitfield`. - Signatures [][]byte `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Signature) Reset() { - *x = Signature{} - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Signature) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Signature) ProtoMessage() {} - -func (x *Signature) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Signature.ProtoReflect.Descriptor instead. -func (*Signature) Descriptor() ([]byte, []int) { - return file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescGZIP(), []int{4} -} - -func (x *Signature) GetKeysBitfield() uint32 { - if x != nil { - return x.KeysBitfield - } - return 0 -} - -func (x *Signature) GetSignatures() [][]byte { - if x != nil { - return x.Signatures - } - return nil -} - -// ExchangeEphemeralCiphertext contains one matching entry for each public exchange key provided by the initiator -// Those entries are: -// - for Diffie-Hellman: a public key -// - for Key Encapsulation Mechanism (KEM): a ciphertext / encapsulated key -// -// An entry index is meant to map to the index of an exchange key provided in the initiator's keyset. -type ExchangeEphemeralCiphertext struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ciphertexts []*ExchangeEphemeralCiphertext_Entry `protobuf:"bytes,1,rep,name=ciphertexts,proto3" json:"ciphertexts,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExchangeEphemeralCiphertext) Reset() { - *x = ExchangeEphemeralCiphertext{} - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExchangeEphemeralCiphertext) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExchangeEphemeralCiphertext) ProtoMessage() {} - -func (x *ExchangeEphemeralCiphertext) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExchangeEphemeralCiphertext.ProtoReflect.Descriptor instead. -func (*ExchangeEphemeralCiphertext) Descriptor() ([]byte, []int) { - return file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescGZIP(), []int{5} -} - -func (x *ExchangeEphemeralCiphertext) GetCiphertexts() []*ExchangeEphemeralCiphertext_Entry { - if x != nil { - return x.Ciphertexts - } - return nil -} - -type ExchangeEphemeralCiphertext_Entry struct { - state protoimpl.MessageState `protogen:"open.v1"` - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExchangeEphemeralCiphertext_Entry) Reset() { - *x = ExchangeEphemeralCiphertext_Entry{} - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExchangeEphemeralCiphertext_Entry) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExchangeEphemeralCiphertext_Entry) ProtoMessage() {} - -func (x *ExchangeEphemeralCiphertext_Entry) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExchangeEphemeralCiphertext_Entry.ProtoReflect.Descriptor instead. -func (*ExchangeEphemeralCiphertext_Entry) Descriptor() ([]byte, []int) { - return file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescGZIP(), []int{5, 0} -} - -func (x *ExchangeEphemeralCiphertext_Entry) GetIndex() uint32 { - if x != nil { - return x.Index - } - return 0 -} - -func (x *ExchangeEphemeralCiphertext_Entry) GetKey() []byte { - if x != nil { - return x.Key - } - return nil -} - -var File_splitsecure_hybridkeyset_v1_hybridkeyset_proto protoreflect.FileDescriptor - -const file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDesc = "" + - "\n" + - ".splitsecure/hybridkeyset/v1/hybridkeyset.proto\x12\x1bsplitsecure.hybridkeyset.v1\x1a\x1esplitsecure/keys/v1/spec.proto\"H\n" + - "\fHybridKeySet\x128\n" + - "\x04keys\x18\x01 \x03(\v2$.splitsecure.hybridkeyset.v1.KeyInfoR\x04keys\"\x9a\x01\n" + - "\aKeyInfo\x12\x12\n" + - "\x04hash\x18\x01 \x01(\fR\x04hash\x12A\n" + - "\x0fpublic_key_spec\x18\x02 \x01(\v2\x19.splitsecure.keys.v1.SpecR\rpublicKeySpec\x128\n" + - "\x18default_digest_algorithm\x18\x03 \x01(\rR\x16defaultDigestAlgorithm\"5\n" + - "\vDetachedKey\x12\x14\n" + - "\x05index\x18\x01 \x01(\rR\x05index\x12\x10\n" + - "\x03key\x18\x02 \x01(\fR\x03key\"\x82\x01\n" + - "\x1cHybridKeySetWithDetachedKeys\x12$\n" + - "\x0ehybrid_key_set\x18\x01 \x01(\fR\fhybridKeySet\x12<\n" + - "\x04keys\x18\x02 \x03(\v2(.splitsecure.hybridkeyset.v1.DetachedKeyR\x04keys\"P\n" + - "\tSignature\x12#\n" + - "\rkeys_bitfield\x18\x01 \x01(\rR\fkeysBitfield\x12\x1e\n" + - "\n" + - "signatures\x18\x02 \x03(\fR\n" + - "signatures\"\xb0\x01\n" + - "\x1bExchangeEphemeralCiphertext\x12`\n" + - "\vciphertexts\x18\x01 \x03(\v2>.splitsecure.hybridkeyset.v1.ExchangeEphemeralCiphertext.EntryR\vciphertexts\x1a/\n" + - "\x05Entry\x12\x14\n" + - "\x05index\x18\x01 \x01(\rR\x05index\x12\x10\n" + - "\x03key\x18\x02 \x01(\fR\x03keyB\xb1\x02\n" + - "\x1fcom.splitsecure.hybridkeyset.v1B\x11HybridkeysetProtoP\x01Zmgithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/hybridkeyset/v1;hybridkeysetv1\xa2\x02\x03SHX\xaa\x02\x1bSplitsecure.Hybridkeyset.V1\xca\x02\x1bSplitsecure\\Hybridkeyset\\V1\xe2\x02'Splitsecure\\Hybridkeyset\\V1\\GPBMetadata\xea\x02\x1dSplitsecure::Hybridkeyset::V1b\x06proto3" - -var ( - file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescOnce sync.Once - file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescData []byte -) - -func file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescGZIP() []byte { - file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescOnce.Do(func() { - file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDesc), len(file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDesc))) - }) - return file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDescData -} - -var file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_goTypes = []any{ - (*HybridKeySet)(nil), // 0: splitsecure.hybridkeyset.v1.HybridKeySet - (*KeyInfo)(nil), // 1: splitsecure.hybridkeyset.v1.KeyInfo - (*DetachedKey)(nil), // 2: splitsecure.hybridkeyset.v1.DetachedKey - (*HybridKeySetWithDetachedKeys)(nil), // 3: splitsecure.hybridkeyset.v1.HybridKeySetWithDetachedKeys - (*Signature)(nil), // 4: splitsecure.hybridkeyset.v1.Signature - (*ExchangeEphemeralCiphertext)(nil), // 5: splitsecure.hybridkeyset.v1.ExchangeEphemeralCiphertext - (*ExchangeEphemeralCiphertext_Entry)(nil), // 6: splitsecure.hybridkeyset.v1.ExchangeEphemeralCiphertext.Entry - (*v1.Spec)(nil), // 7: splitsecure.keys.v1.Spec -} -var file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_depIdxs = []int32{ - 1, // 0: splitsecure.hybridkeyset.v1.HybridKeySet.keys:type_name -> splitsecure.hybridkeyset.v1.KeyInfo - 7, // 1: splitsecure.hybridkeyset.v1.KeyInfo.public_key_spec:type_name -> splitsecure.keys.v1.Spec - 2, // 2: splitsecure.hybridkeyset.v1.HybridKeySetWithDetachedKeys.keys:type_name -> splitsecure.hybridkeyset.v1.DetachedKey - 6, // 3: splitsecure.hybridkeyset.v1.ExchangeEphemeralCiphertext.ciphertexts:type_name -> splitsecure.hybridkeyset.v1.ExchangeEphemeralCiphertext.Entry - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_init() } -func file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_init() { - if File_splitsecure_hybridkeyset_v1_hybridkeyset_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDesc), len(file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_rawDesc)), - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_goTypes, - DependencyIndexes: file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_depIdxs, - MessageInfos: file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_msgTypes, - }.Build() - File_splitsecure_hybridkeyset_v1_hybridkeyset_proto = out.File - file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_goTypes = nil - file_splitsecure_hybridkeyset_v1_hybridkeyset_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/keys/v1/aes.pb.go b/gen/go/proto/splitsecure/keys/v1/aes.pb.go deleted file mode 100644 index e80d844..0000000 --- a/gen/go/proto/splitsecure/keys/v1/aes.pb.go +++ /dev/null @@ -1,402 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/keys/v1/aes.proto - -package keysv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type AES_Length int32 - -const ( - AES_LENGTH_UNSPECIFIED AES_Length = 0 - AES_LENGTH_128 AES_Length = 1 - AES_LENGTH_256 AES_Length = 2 -) - -// Enum value maps for AES_Length. -var ( - AES_Length_name = map[int32]string{ - 0: "LENGTH_UNSPECIFIED", - 1: "LENGTH_128", - 2: "LENGTH_256", - } - AES_Length_value = map[string]int32{ - "LENGTH_UNSPECIFIED": 0, - "LENGTH_128": 1, - "LENGTH_256": 2, - } -) - -func (x AES_Length) Enum() *AES_Length { - p := new(AES_Length) - *p = x - return p -} - -func (x AES_Length) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AES_Length) Descriptor() protoreflect.EnumDescriptor { - return file_splitsecure_keys_v1_aes_proto_enumTypes[0].Descriptor() -} - -func (AES_Length) Type() protoreflect.EnumType { - return &file_splitsecure_keys_v1_aes_proto_enumTypes[0] -} - -func (x AES_Length) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AES_Length.Descriptor instead. -func (AES_Length) EnumDescriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_aes_proto_rawDescGZIP(), []int{0, 0} -} - -type AES struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlockMode *AESBlockMode `protobuf:"bytes,1,opt,name=block_mode,json=blockMode,proto3" json:"block_mode,omitempty"` - Length AES_Length `protobuf:"varint,2,opt,name=length,proto3,enum=splitsecure.keys.v1.AES_Length" json:"length,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AES) Reset() { - *x = AES{} - mi := &file_splitsecure_keys_v1_aes_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AES) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AES) ProtoMessage() {} - -func (x *AES) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_aes_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AES.ProtoReflect.Descriptor instead. -func (*AES) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_aes_proto_rawDescGZIP(), []int{0} -} - -func (x *AES) GetBlockMode() *AESBlockMode { - if x != nil { - return x.BlockMode - } - return nil -} - -func (x *AES) GetLength() AES_Length { - if x != nil { - return x.Length - } - return AES_LENGTH_UNSPECIFIED -} - -type AESBlockMode struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Mode: - // - // *AESBlockMode_Ecb - // *AESBlockMode_Cbc - // *AESBlockMode_Gcm - // *AESBlockMode_Ccm - Mode isAESBlockMode_Mode `protobuf_oneof:"mode"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AESBlockMode) Reset() { - *x = AESBlockMode{} - mi := &file_splitsecure_keys_v1_aes_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AESBlockMode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AESBlockMode) ProtoMessage() {} - -func (x *AESBlockMode) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_aes_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AESBlockMode.ProtoReflect.Descriptor instead. -func (*AESBlockMode) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_aes_proto_rawDescGZIP(), []int{1} -} - -func (x *AESBlockMode) GetMode() isAESBlockMode_Mode { - if x != nil { - return x.Mode - } - return nil -} - -func (x *AESBlockMode) GetEcb() *emptypb.Empty { - if x != nil { - if x, ok := x.Mode.(*AESBlockMode_Ecb); ok { - return x.Ecb - } - } - return nil -} - -func (x *AESBlockMode) GetCbc() *emptypb.Empty { - if x != nil { - if x, ok := x.Mode.(*AESBlockMode_Cbc); ok { - return x.Cbc - } - } - return nil -} - -func (x *AESBlockMode) GetGcm() *BlockModeGCM { - if x != nil { - if x, ok := x.Mode.(*AESBlockMode_Gcm); ok { - return x.Gcm - } - } - return nil -} - -func (x *AESBlockMode) GetCcm() *BlockModeCCM { - if x != nil { - if x, ok := x.Mode.(*AESBlockMode_Ccm); ok { - return x.Ccm - } - } - return nil -} - -type isAESBlockMode_Mode interface { - isAESBlockMode_Mode() -} - -type AESBlockMode_Ecb struct { - Ecb *emptypb.Empty `protobuf:"bytes,1,opt,name=ecb,proto3,oneof"` -} - -type AESBlockMode_Cbc struct { - Cbc *emptypb.Empty `protobuf:"bytes,2,opt,name=cbc,proto3,oneof"` -} - -type AESBlockMode_Gcm struct { - Gcm *BlockModeGCM `protobuf:"bytes,3,opt,name=gcm,proto3,oneof"` -} - -type AESBlockMode_Ccm struct { - Ccm *BlockModeCCM `protobuf:"bytes,4,opt,name=ccm,proto3,oneof"` -} - -func (*AESBlockMode_Ecb) isAESBlockMode_Mode() {} - -func (*AESBlockMode_Cbc) isAESBlockMode_Mode() {} - -func (*AESBlockMode_Gcm) isAESBlockMode_Mode() {} - -func (*AESBlockMode_Ccm) isAESBlockMode_Mode() {} - -type BlockModeGCM struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *BlockModeGCM) Reset() { - *x = BlockModeGCM{} - mi := &file_splitsecure_keys_v1_aes_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *BlockModeGCM) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BlockModeGCM) ProtoMessage() {} - -func (x *BlockModeGCM) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_aes_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BlockModeGCM.ProtoReflect.Descriptor instead. -func (*BlockModeGCM) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_aes_proto_rawDescGZIP(), []int{2} -} - -type BlockModeCCM struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *BlockModeCCM) Reset() { - *x = BlockModeCCM{} - mi := &file_splitsecure_keys_v1_aes_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *BlockModeCCM) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BlockModeCCM) ProtoMessage() {} - -func (x *BlockModeCCM) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_aes_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BlockModeCCM.ProtoReflect.Descriptor instead. -func (*BlockModeCCM) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_aes_proto_rawDescGZIP(), []int{3} -} - -var File_splitsecure_keys_v1_aes_proto protoreflect.FileDescriptor - -const file_splitsecure_keys_v1_aes_proto_rawDesc = "" + - "\n" + - "\x1dsplitsecure/keys/v1/aes.proto\x12\x13splitsecure.keys.v1\x1a\x1bgoogle/protobuf/empty.proto\"\xc2\x01\n" + - "\x03AES\x12@\n" + - "\n" + - "block_mode\x18\x01 \x01(\v2!.splitsecure.keys.v1.AESBlockModeR\tblockMode\x127\n" + - "\x06length\x18\x02 \x01(\x0e2\x1f.splitsecure.keys.v1.AES.LengthR\x06length\"@\n" + - "\x06Length\x12\x16\n" + - "\x12LENGTH_UNSPECIFIED\x10\x00\x12\x0e\n" + - "\n" + - "LENGTH_128\x10\x01\x12\x0e\n" + - "\n" + - "LENGTH_256\x10\x02\"\xdc\x01\n" + - "\fAESBlockMode\x12*\n" + - "\x03ecb\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03ecb\x12*\n" + - "\x03cbc\x18\x02 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03cbc\x125\n" + - "\x03gcm\x18\x03 \x01(\v2!.splitsecure.keys.v1.BlockModeGCMH\x00R\x03gcm\x125\n" + - "\x03ccm\x18\x04 \x01(\v2!.splitsecure.keys.v1.BlockModeCCMH\x00R\x03ccmB\x06\n" + - "\x04mode\"\x0e\n" + - "\fBlockModeGCM\"\x0e\n" + - "\fBlockModeCCMB\xf0\x01\n" + - "\x17com.splitsecure.keys.v1B\bAesProtoP\x01Z]github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/keys/v1;keysv1\xa2\x02\x03SKX\xaa\x02\x13Splitsecure.Keys.V1\xca\x02\x13Splitsecure\\Keys\\V1\xe2\x02\x1fSplitsecure\\Keys\\V1\\GPBMetadata\xea\x02\x15Splitsecure::Keys::V1b\x06proto3" - -var ( - file_splitsecure_keys_v1_aes_proto_rawDescOnce sync.Once - file_splitsecure_keys_v1_aes_proto_rawDescData []byte -) - -func file_splitsecure_keys_v1_aes_proto_rawDescGZIP() []byte { - file_splitsecure_keys_v1_aes_proto_rawDescOnce.Do(func() { - file_splitsecure_keys_v1_aes_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_aes_proto_rawDesc), len(file_splitsecure_keys_v1_aes_proto_rawDesc))) - }) - return file_splitsecure_keys_v1_aes_proto_rawDescData -} - -var file_splitsecure_keys_v1_aes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_splitsecure_keys_v1_aes_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_splitsecure_keys_v1_aes_proto_goTypes = []any{ - (AES_Length)(0), // 0: splitsecure.keys.v1.AES.Length - (*AES)(nil), // 1: splitsecure.keys.v1.AES - (*AESBlockMode)(nil), // 2: splitsecure.keys.v1.AESBlockMode - (*BlockModeGCM)(nil), // 3: splitsecure.keys.v1.BlockModeGCM - (*BlockModeCCM)(nil), // 4: splitsecure.keys.v1.BlockModeCCM - (*emptypb.Empty)(nil), // 5: google.protobuf.Empty -} -var file_splitsecure_keys_v1_aes_proto_depIdxs = []int32{ - 2, // 0: splitsecure.keys.v1.AES.block_mode:type_name -> splitsecure.keys.v1.AESBlockMode - 0, // 1: splitsecure.keys.v1.AES.length:type_name -> splitsecure.keys.v1.AES.Length - 5, // 2: splitsecure.keys.v1.AESBlockMode.ecb:type_name -> google.protobuf.Empty - 5, // 3: splitsecure.keys.v1.AESBlockMode.cbc:type_name -> google.protobuf.Empty - 3, // 4: splitsecure.keys.v1.AESBlockMode.gcm:type_name -> splitsecure.keys.v1.BlockModeGCM - 4, // 5: splitsecure.keys.v1.AESBlockMode.ccm:type_name -> splitsecure.keys.v1.BlockModeCCM - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_splitsecure_keys_v1_aes_proto_init() } -func file_splitsecure_keys_v1_aes_proto_init() { - if File_splitsecure_keys_v1_aes_proto != nil { - return - } - file_splitsecure_keys_v1_aes_proto_msgTypes[1].OneofWrappers = []any{ - (*AESBlockMode_Ecb)(nil), - (*AESBlockMode_Cbc)(nil), - (*AESBlockMode_Gcm)(nil), - (*AESBlockMode_Ccm)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_aes_proto_rawDesc), len(file_splitsecure_keys_v1_aes_proto_rawDesc)), - NumEnums: 1, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_keys_v1_aes_proto_goTypes, - DependencyIndexes: file_splitsecure_keys_v1_aes_proto_depIdxs, - EnumInfos: file_splitsecure_keys_v1_aes_proto_enumTypes, - MessageInfos: file_splitsecure_keys_v1_aes_proto_msgTypes, - }.Build() - File_splitsecure_keys_v1_aes_proto = out.File - file_splitsecure_keys_v1_aes_proto_goTypes = nil - file_splitsecure_keys_v1_aes_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/keys/v1/diffie_hellman_spec.pb.go b/gen/go/proto/splitsecure/keys/v1/diffie_hellman_spec.pb.go deleted file mode 100644 index e0eaf75..0000000 --- a/gen/go/proto/splitsecure/keys/v1/diffie_hellman_spec.pb.go +++ /dev/null @@ -1,302 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/keys/v1/diffie_hellman_spec.proto - -package keysv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type DiffieHellmanSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *DiffieHellmanSpec_Ecdh - Union isDiffieHellmanSpec_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DiffieHellmanSpec) Reset() { - *x = DiffieHellmanSpec{} - mi := &file_splitsecure_keys_v1_diffie_hellman_spec_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DiffieHellmanSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DiffieHellmanSpec) ProtoMessage() {} - -func (x *DiffieHellmanSpec) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_diffie_hellman_spec_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DiffieHellmanSpec.ProtoReflect.Descriptor instead. -func (*DiffieHellmanSpec) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDescGZIP(), []int{0} -} - -func (x *DiffieHellmanSpec) GetUnion() isDiffieHellmanSpec_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *DiffieHellmanSpec) GetEcdh() *ECDHSpec { - if x != nil { - if x, ok := x.Union.(*DiffieHellmanSpec_Ecdh); ok { - return x.Ecdh - } - } - return nil -} - -type isDiffieHellmanSpec_Union interface { - isDiffieHellmanSpec_Union() -} - -type DiffieHellmanSpec_Ecdh struct { - Ecdh *ECDHSpec `protobuf:"bytes,1,opt,name=ecdh,proto3,oneof"` -} - -func (*DiffieHellmanSpec_Ecdh) isDiffieHellmanSpec_Union() {} - -type ECDHSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *ECDHSpec_P256 - // *ECDHSpec_P384 - // *ECDHSpec_P521 - // *ECDHSpec_X25519 - // *ECDHSpec_X448 - Union isECDHSpec_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ECDHSpec) Reset() { - *x = ECDHSpec{} - mi := &file_splitsecure_keys_v1_diffie_hellman_spec_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ECDHSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ECDHSpec) ProtoMessage() {} - -func (x *ECDHSpec) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_diffie_hellman_spec_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ECDHSpec.ProtoReflect.Descriptor instead. -func (*ECDHSpec) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDescGZIP(), []int{1} -} - -func (x *ECDHSpec) GetUnion() isECDHSpec_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *ECDHSpec) GetP256() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*ECDHSpec_P256); ok { - return x.P256 - } - } - return nil -} - -func (x *ECDHSpec) GetP384() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*ECDHSpec_P384); ok { - return x.P384 - } - } - return nil -} - -func (x *ECDHSpec) GetP521() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*ECDHSpec_P521); ok { - return x.P521 - } - } - return nil -} - -func (x *ECDHSpec) GetX25519() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*ECDHSpec_X25519); ok { - return x.X25519 - } - } - return nil -} - -func (x *ECDHSpec) GetX448() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*ECDHSpec_X448); ok { - return x.X448 - } - } - return nil -} - -type isECDHSpec_Union interface { - isECDHSpec_Union() -} - -type ECDHSpec_P256 struct { - P256 *emptypb.Empty `protobuf:"bytes,1,opt,name=p256,proto3,oneof"` -} - -type ECDHSpec_P384 struct { - P384 *emptypb.Empty `protobuf:"bytes,2,opt,name=p384,proto3,oneof"` -} - -type ECDHSpec_P521 struct { - P521 *emptypb.Empty `protobuf:"bytes,3,opt,name=p521,proto3,oneof"` -} - -type ECDHSpec_X25519 struct { - X25519 *emptypb.Empty `protobuf:"bytes,4,opt,name=x25519,proto3,oneof"` -} - -type ECDHSpec_X448 struct { - X448 *emptypb.Empty `protobuf:"bytes,5,opt,name=x448,proto3,oneof"` -} - -func (*ECDHSpec_P256) isECDHSpec_Union() {} - -func (*ECDHSpec_P384) isECDHSpec_Union() {} - -func (*ECDHSpec_P521) isECDHSpec_Union() {} - -func (*ECDHSpec_X25519) isECDHSpec_Union() {} - -func (*ECDHSpec_X448) isECDHSpec_Union() {} - -var File_splitsecure_keys_v1_diffie_hellman_spec_proto protoreflect.FileDescriptor - -const file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDesc = "" + - "\n" + - "-splitsecure/keys/v1/diffie_hellman_spec.proto\x12\x13splitsecure.keys.v1\x1a\x1bgoogle/protobuf/empty.proto\"Q\n" + - "\x11DiffieHellmanSpec\x123\n" + - "\x04ecdh\x18\x01 \x01(\v2\x1d.splitsecure.keys.v1.ECDHSpecH\x00R\x04ecdhB\a\n" + - "\x05union\"\xfd\x01\n" + - "\bECDHSpec\x12,\n" + - "\x04p256\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x04p256\x12,\n" + - "\x04p384\x18\x02 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x04p384\x12,\n" + - "\x04p521\x18\x03 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x04p521\x120\n" + - "\x06x25519\x18\x04 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x06x25519\x12,\n" + - "\x04x448\x18\x05 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x04x448B\a\n" + - "\x05unionB\xfe\x01\n" + - "\x17com.splitsecure.keys.v1B\x16DiffieHellmanSpecProtoP\x01Z]github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/keys/v1;keysv1\xa2\x02\x03SKX\xaa\x02\x13Splitsecure.Keys.V1\xca\x02\x13Splitsecure\\Keys\\V1\xe2\x02\x1fSplitsecure\\Keys\\V1\\GPBMetadata\xea\x02\x15Splitsecure::Keys::V1b\x06proto3" - -var ( - file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDescOnce sync.Once - file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDescData []byte -) - -func file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDescGZIP() []byte { - file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDescOnce.Do(func() { - file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDesc), len(file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDesc))) - }) - return file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDescData -} - -var file_splitsecure_keys_v1_diffie_hellman_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_splitsecure_keys_v1_diffie_hellman_spec_proto_goTypes = []any{ - (*DiffieHellmanSpec)(nil), // 0: splitsecure.keys.v1.DiffieHellmanSpec - (*ECDHSpec)(nil), // 1: splitsecure.keys.v1.ECDHSpec - (*emptypb.Empty)(nil), // 2: google.protobuf.Empty -} -var file_splitsecure_keys_v1_diffie_hellman_spec_proto_depIdxs = []int32{ - 1, // 0: splitsecure.keys.v1.DiffieHellmanSpec.ecdh:type_name -> splitsecure.keys.v1.ECDHSpec - 2, // 1: splitsecure.keys.v1.ECDHSpec.p256:type_name -> google.protobuf.Empty - 2, // 2: splitsecure.keys.v1.ECDHSpec.p384:type_name -> google.protobuf.Empty - 2, // 3: splitsecure.keys.v1.ECDHSpec.p521:type_name -> google.protobuf.Empty - 2, // 4: splitsecure.keys.v1.ECDHSpec.x25519:type_name -> google.protobuf.Empty - 2, // 5: splitsecure.keys.v1.ECDHSpec.x448:type_name -> google.protobuf.Empty - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_splitsecure_keys_v1_diffie_hellman_spec_proto_init() } -func file_splitsecure_keys_v1_diffie_hellman_spec_proto_init() { - if File_splitsecure_keys_v1_diffie_hellman_spec_proto != nil { - return - } - file_splitsecure_keys_v1_diffie_hellman_spec_proto_msgTypes[0].OneofWrappers = []any{ - (*DiffieHellmanSpec_Ecdh)(nil), - } - file_splitsecure_keys_v1_diffie_hellman_spec_proto_msgTypes[1].OneofWrappers = []any{ - (*ECDHSpec_P256)(nil), - (*ECDHSpec_P384)(nil), - (*ECDHSpec_P521)(nil), - (*ECDHSpec_X25519)(nil), - (*ECDHSpec_X448)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDesc), len(file_splitsecure_keys_v1_diffie_hellman_spec_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_keys_v1_diffie_hellman_spec_proto_goTypes, - DependencyIndexes: file_splitsecure_keys_v1_diffie_hellman_spec_proto_depIdxs, - MessageInfos: file_splitsecure_keys_v1_diffie_hellman_spec_proto_msgTypes, - }.Build() - File_splitsecure_keys_v1_diffie_hellman_spec_proto = out.File - file_splitsecure_keys_v1_diffie_hellman_spec_proto_goTypes = nil - file_splitsecure_keys_v1_diffie_hellman_spec_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/keys/v1/key_encapsulation_spec.pb.go b/gen/go/proto/splitsecure/keys/v1/key_encapsulation_spec.pb.go deleted file mode 100644 index e1f2528..0000000 --- a/gen/go/proto/splitsecure/keys/v1/key_encapsulation_spec.pb.go +++ /dev/null @@ -1,264 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/keys/v1/key_encapsulation_spec.proto - -package keysv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type KeyEncapsulationSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *KeyEncapsulationSpec_Mlkem - Union isKeyEncapsulationSpec_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *KeyEncapsulationSpec) Reset() { - *x = KeyEncapsulationSpec{} - mi := &file_splitsecure_keys_v1_key_encapsulation_spec_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *KeyEncapsulationSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyEncapsulationSpec) ProtoMessage() {} - -func (x *KeyEncapsulationSpec) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_key_encapsulation_spec_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyEncapsulationSpec.ProtoReflect.Descriptor instead. -func (*KeyEncapsulationSpec) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDescGZIP(), []int{0} -} - -func (x *KeyEncapsulationSpec) GetUnion() isKeyEncapsulationSpec_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *KeyEncapsulationSpec) GetMlkem() *MLKEM { - if x != nil { - if x, ok := x.Union.(*KeyEncapsulationSpec_Mlkem); ok { - return x.Mlkem - } - } - return nil -} - -type isKeyEncapsulationSpec_Union interface { - isKeyEncapsulationSpec_Union() -} - -type KeyEncapsulationSpec_Mlkem struct { - Mlkem *MLKEM `protobuf:"bytes,1,opt,name=mlkem,proto3,oneof"` -} - -func (*KeyEncapsulationSpec_Mlkem) isKeyEncapsulationSpec_Union() {} - -type MLKEM struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *MLKEM_V512 - // *MLKEM_V768 - // *MLKEM_V1024 - Union isMLKEM_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MLKEM) Reset() { - *x = MLKEM{} - mi := &file_splitsecure_keys_v1_key_encapsulation_spec_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MLKEM) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MLKEM) ProtoMessage() {} - -func (x *MLKEM) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_key_encapsulation_spec_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MLKEM.ProtoReflect.Descriptor instead. -func (*MLKEM) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDescGZIP(), []int{1} -} - -func (x *MLKEM) GetUnion() isMLKEM_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *MLKEM) GetV512() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*MLKEM_V512); ok { - return x.V512 - } - } - return nil -} - -func (x *MLKEM) GetV768() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*MLKEM_V768); ok { - return x.V768 - } - } - return nil -} - -func (x *MLKEM) GetV1024() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*MLKEM_V1024); ok { - return x.V1024 - } - } - return nil -} - -type isMLKEM_Union interface { - isMLKEM_Union() -} - -type MLKEM_V512 struct { - V512 *emptypb.Empty `protobuf:"bytes,1,opt,name=v512,proto3,oneof"` -} - -type MLKEM_V768 struct { - V768 *emptypb.Empty `protobuf:"bytes,2,opt,name=v768,proto3,oneof"` -} - -type MLKEM_V1024 struct { - V1024 *emptypb.Empty `protobuf:"bytes,3,opt,name=v1024,proto3,oneof"` -} - -func (*MLKEM_V512) isMLKEM_Union() {} - -func (*MLKEM_V768) isMLKEM_Union() {} - -func (*MLKEM_V1024) isMLKEM_Union() {} - -var File_splitsecure_keys_v1_key_encapsulation_spec_proto protoreflect.FileDescriptor - -const file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDesc = "" + - "\n" + - "0splitsecure/keys/v1/key_encapsulation_spec.proto\x12\x13splitsecure.keys.v1\x1a\x1bgoogle/protobuf/empty.proto\"S\n" + - "\x14KeyEncapsulationSpec\x122\n" + - "\x05mlkem\x18\x01 \x01(\v2\x1a.splitsecure.keys.v1.MLKEMH\x00R\x05mlkemB\a\n" + - "\x05union\"\x9c\x01\n" + - "\x05MLKEM\x12,\n" + - "\x04v512\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x04v512\x12,\n" + - "\x04v768\x18\x02 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x04v768\x12.\n" + - "\x05v1024\x18\x03 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x05v1024B\a\n" + - "\x05unionB\x81\x02\n" + - "\x17com.splitsecure.keys.v1B\x19KeyEncapsulationSpecProtoP\x01Z]github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/keys/v1;keysv1\xa2\x02\x03SKX\xaa\x02\x13Splitsecure.Keys.V1\xca\x02\x13Splitsecure\\Keys\\V1\xe2\x02\x1fSplitsecure\\Keys\\V1\\GPBMetadata\xea\x02\x15Splitsecure::Keys::V1b\x06proto3" - -var ( - file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDescOnce sync.Once - file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDescData []byte -) - -func file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDescGZIP() []byte { - file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDescOnce.Do(func() { - file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDesc), len(file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDesc))) - }) - return file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDescData -} - -var file_splitsecure_keys_v1_key_encapsulation_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_splitsecure_keys_v1_key_encapsulation_spec_proto_goTypes = []any{ - (*KeyEncapsulationSpec)(nil), // 0: splitsecure.keys.v1.KeyEncapsulationSpec - (*MLKEM)(nil), // 1: splitsecure.keys.v1.MLKEM - (*emptypb.Empty)(nil), // 2: google.protobuf.Empty -} -var file_splitsecure_keys_v1_key_encapsulation_spec_proto_depIdxs = []int32{ - 1, // 0: splitsecure.keys.v1.KeyEncapsulationSpec.mlkem:type_name -> splitsecure.keys.v1.MLKEM - 2, // 1: splitsecure.keys.v1.MLKEM.v512:type_name -> google.protobuf.Empty - 2, // 2: splitsecure.keys.v1.MLKEM.v768:type_name -> google.protobuf.Empty - 2, // 3: splitsecure.keys.v1.MLKEM.v1024:type_name -> google.protobuf.Empty - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_splitsecure_keys_v1_key_encapsulation_spec_proto_init() } -func file_splitsecure_keys_v1_key_encapsulation_spec_proto_init() { - if File_splitsecure_keys_v1_key_encapsulation_spec_proto != nil { - return - } - file_splitsecure_keys_v1_key_encapsulation_spec_proto_msgTypes[0].OneofWrappers = []any{ - (*KeyEncapsulationSpec_Mlkem)(nil), - } - file_splitsecure_keys_v1_key_encapsulation_spec_proto_msgTypes[1].OneofWrappers = []any{ - (*MLKEM_V512)(nil), - (*MLKEM_V768)(nil), - (*MLKEM_V1024)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDesc), len(file_splitsecure_keys_v1_key_encapsulation_spec_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_keys_v1_key_encapsulation_spec_proto_goTypes, - DependencyIndexes: file_splitsecure_keys_v1_key_encapsulation_spec_proto_depIdxs, - MessageInfos: file_splitsecure_keys_v1_key_encapsulation_spec_proto_msgTypes, - }.Build() - File_splitsecure_keys_v1_key_encapsulation_spec_proto = out.File - file_splitsecure_keys_v1_key_encapsulation_spec_proto_goTypes = nil - file_splitsecure_keys_v1_key_encapsulation_spec_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/keys/v1/signature_spec.pb.go b/gen/go/proto/splitsecure/keys/v1/signature_spec.pb.go deleted file mode 100644 index 8d4b32c..0000000 --- a/gen/go/proto/splitsecure/keys/v1/signature_spec.pb.go +++ /dev/null @@ -1,727 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/keys/v1/signature_spec.proto - -package keysv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ECDSA int32 - -const ( - ECDSA_ECDSA_UNSPECIFIED ECDSA = 0 - // NIST curves - ECDSA_ECDSA_NIST_P224 ECDSA = 1 - ECDSA_ECDSA_NIST_P256 ECDSA = 2 - ECDSA_ECDSA_NIST_P384 ECDSA = 3 - ECDSA_ECDSA_NIST_P521 ECDSA = 4 - // NIST pseudorandom curves - ECDSA_ECDSA_NIST_B233 ECDSA = 5 - ECDSA_ECDSA_NIST_B283 ECDSA = 6 - ECDSA_ECDSA_NIST_B409 ECDSA = 7 - ECDSA_ECDSA_NIST_B571 ECDSA = 8 - // NIST Koblitz curves - ECDSA_ECDSA_NIST_K233 ECDSA = 9 - ECDSA_ECDSA_NIST_K283 ECDSA = 10 - ECDSA_ECDSA_NIST_K409 ECDSA = 11 - ECDSA_ECDSA_NIST_K571 ECDSA = 12 - // SEC curves - ECDSA_ECDSA_SEC_P192K1 ECDSA = 13 - ECDSA_ECDSA_SEC_P224K1 ECDSA = 14 - ECDSA_ECDSA_SEC_P256K1 ECDSA = 15 - // Brainpool curves - ECDSA_ECDSA_BRAINPOOL_P256R1 ECDSA = 16 - ECDSA_ECDSA_BRAINPOOL_P384R1 ECDSA = 17 - ECDSA_ECDSA_BRAINPOOL_P512R1 ECDSA = 18 -) - -// Enum value maps for ECDSA. -var ( - ECDSA_name = map[int32]string{ - 0: "ECDSA_UNSPECIFIED", - 1: "ECDSA_NIST_P224", - 2: "ECDSA_NIST_P256", - 3: "ECDSA_NIST_P384", - 4: "ECDSA_NIST_P521", - 5: "ECDSA_NIST_B233", - 6: "ECDSA_NIST_B283", - 7: "ECDSA_NIST_B409", - 8: "ECDSA_NIST_B571", - 9: "ECDSA_NIST_K233", - 10: "ECDSA_NIST_K283", - 11: "ECDSA_NIST_K409", - 12: "ECDSA_NIST_K571", - 13: "ECDSA_SEC_P192K1", - 14: "ECDSA_SEC_P224K1", - 15: "ECDSA_SEC_P256K1", - 16: "ECDSA_BRAINPOOL_P256R1", - 17: "ECDSA_BRAINPOOL_P384R1", - 18: "ECDSA_BRAINPOOL_P512R1", - } - ECDSA_value = map[string]int32{ - "ECDSA_UNSPECIFIED": 0, - "ECDSA_NIST_P224": 1, - "ECDSA_NIST_P256": 2, - "ECDSA_NIST_P384": 3, - "ECDSA_NIST_P521": 4, - "ECDSA_NIST_B233": 5, - "ECDSA_NIST_B283": 6, - "ECDSA_NIST_B409": 7, - "ECDSA_NIST_B571": 8, - "ECDSA_NIST_K233": 9, - "ECDSA_NIST_K283": 10, - "ECDSA_NIST_K409": 11, - "ECDSA_NIST_K571": 12, - "ECDSA_SEC_P192K1": 13, - "ECDSA_SEC_P224K1": 14, - "ECDSA_SEC_P256K1": 15, - "ECDSA_BRAINPOOL_P256R1": 16, - "ECDSA_BRAINPOOL_P384R1": 17, - "ECDSA_BRAINPOOL_P512R1": 18, - } -) - -func (x ECDSA) Enum() *ECDSA { - p := new(ECDSA) - *p = x - return p -} - -func (x ECDSA) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ECDSA) Descriptor() protoreflect.EnumDescriptor { - return file_splitsecure_keys_v1_signature_spec_proto_enumTypes[0].Descriptor() -} - -func (ECDSA) Type() protoreflect.EnumType { - return &file_splitsecure_keys_v1_signature_spec_proto_enumTypes[0] -} - -func (x ECDSA) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ECDSA.Descriptor instead. -func (ECDSA) EnumDescriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP(), []int{0} -} - -type RSA_SignatureScheme int32 - -const ( - RSA_SIGNATURE_SCHEME_UNSPECIFIED RSA_SignatureScheme = 0 - RSA_SIGNATURE_SCHEME_PKCS1V15 RSA_SignatureScheme = 1 - RSA_SIGNATURE_SCHEME_PSS RSA_SignatureScheme = 2 -) - -// Enum value maps for RSA_SignatureScheme. -var ( - RSA_SignatureScheme_name = map[int32]string{ - 0: "SIGNATURE_SCHEME_UNSPECIFIED", - 1: "SIGNATURE_SCHEME_PKCS1V15", - 2: "SIGNATURE_SCHEME_PSS", - } - RSA_SignatureScheme_value = map[string]int32{ - "SIGNATURE_SCHEME_UNSPECIFIED": 0, - "SIGNATURE_SCHEME_PKCS1V15": 1, - "SIGNATURE_SCHEME_PSS": 2, - } -) - -func (x RSA_SignatureScheme) Enum() *RSA_SignatureScheme { - p := new(RSA_SignatureScheme) - *p = x - return p -} - -func (x RSA_SignatureScheme) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RSA_SignatureScheme) Descriptor() protoreflect.EnumDescriptor { - return file_splitsecure_keys_v1_signature_spec_proto_enumTypes[1].Descriptor() -} - -func (RSA_SignatureScheme) Type() protoreflect.EnumType { - return &file_splitsecure_keys_v1_signature_spec_proto_enumTypes[1] -} - -func (x RSA_SignatureScheme) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RSA_SignatureScheme.Descriptor instead. -func (RSA_SignatureScheme) EnumDescriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP(), []int{3, 0} -} - -type SignatureSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *SignatureSpec_Ecdsa - // *SignatureSpec_Eddsa - // *SignatureSpec_Mldsa - // *SignatureSpec_Rsa - Union isSignatureSpec_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SignatureSpec) Reset() { - *x = SignatureSpec{} - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SignatureSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignatureSpec) ProtoMessage() {} - -func (x *SignatureSpec) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignatureSpec.ProtoReflect.Descriptor instead. -func (*SignatureSpec) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP(), []int{0} -} - -func (x *SignatureSpec) GetUnion() isSignatureSpec_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *SignatureSpec) GetEcdsa() ECDSA { - if x != nil { - if x, ok := x.Union.(*SignatureSpec_Ecdsa); ok { - return x.Ecdsa - } - } - return ECDSA_ECDSA_UNSPECIFIED -} - -func (x *SignatureSpec) GetEddsa() *EDDSA { - if x != nil { - if x, ok := x.Union.(*SignatureSpec_Eddsa); ok { - return x.Eddsa - } - } - return nil -} - -func (x *SignatureSpec) GetMldsa() *MLDSA { - if x != nil { - if x, ok := x.Union.(*SignatureSpec_Mldsa); ok { - return x.Mldsa - } - } - return nil -} - -func (x *SignatureSpec) GetRsa() *RSA { - if x != nil { - if x, ok := x.Union.(*SignatureSpec_Rsa); ok { - return x.Rsa - } - } - return nil -} - -type isSignatureSpec_Union interface { - isSignatureSpec_Union() -} - -type SignatureSpec_Ecdsa struct { - Ecdsa ECDSA `protobuf:"varint,1,opt,name=ecdsa,proto3,enum=splitsecure.keys.v1.ECDSA,oneof"` -} - -type SignatureSpec_Eddsa struct { - Eddsa *EDDSA `protobuf:"bytes,2,opt,name=eddsa,proto3,oneof"` -} - -type SignatureSpec_Mldsa struct { - Mldsa *MLDSA `protobuf:"bytes,3,opt,name=mldsa,proto3,oneof"` // FIPS 204 -} - -type SignatureSpec_Rsa struct { - Rsa *RSA `protobuf:"bytes,4,opt,name=rsa,proto3,oneof"` -} - -func (*SignatureSpec_Ecdsa) isSignatureSpec_Union() {} - -func (*SignatureSpec_Eddsa) isSignatureSpec_Union() {} - -func (*SignatureSpec_Mldsa) isSignatureSpec_Union() {} - -func (*SignatureSpec_Rsa) isSignatureSpec_Union() {} - -type EDDSA struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *EDDSA_Ed25519 - // *EDDSA_Ed448 - Union isEDDSA_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EDDSA) Reset() { - *x = EDDSA{} - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EDDSA) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EDDSA) ProtoMessage() {} - -func (x *EDDSA) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EDDSA.ProtoReflect.Descriptor instead. -func (*EDDSA) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP(), []int{1} -} - -func (x *EDDSA) GetUnion() isEDDSA_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *EDDSA) GetEd25519() *EDDSA_ED25519 { - if x != nil { - if x, ok := x.Union.(*EDDSA_Ed25519); ok { - return x.Ed25519 - } - } - return nil -} - -func (x *EDDSA) GetEd448() *EDDSA_ED448 { - if x != nil { - if x, ok := x.Union.(*EDDSA_Ed448); ok { - return x.Ed448 - } - } - return nil -} - -type isEDDSA_Union interface { - isEDDSA_Union() -} - -type EDDSA_Ed25519 struct { - Ed25519 *EDDSA_ED25519 `protobuf:"bytes,1,opt,name=ed25519,proto3,oneof"` -} - -type EDDSA_Ed448 struct { - Ed448 *EDDSA_ED448 `protobuf:"bytes,2,opt,name=ed448,proto3,oneof"` -} - -func (*EDDSA_Ed25519) isEDDSA_Union() {} - -func (*EDDSA_Ed448) isEDDSA_Union() {} - -type MLDSA struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *MLDSA_V44 - // *MLDSA_V65 - // *MLDSA_V87 - Union isMLDSA_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MLDSA) Reset() { - *x = MLDSA{} - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MLDSA) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MLDSA) ProtoMessage() {} - -func (x *MLDSA) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MLDSA.ProtoReflect.Descriptor instead. -func (*MLDSA) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP(), []int{2} -} - -func (x *MLDSA) GetUnion() isMLDSA_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *MLDSA) GetV44() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*MLDSA_V44); ok { - return x.V44 - } - } - return nil -} - -func (x *MLDSA) GetV65() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*MLDSA_V65); ok { - return x.V65 - } - } - return nil -} - -func (x *MLDSA) GetV87() *emptypb.Empty { - if x != nil { - if x, ok := x.Union.(*MLDSA_V87); ok { - return x.V87 - } - } - return nil -} - -type isMLDSA_Union interface { - isMLDSA_Union() -} - -type MLDSA_V44 struct { - V44 *emptypb.Empty `protobuf:"bytes,1,opt,name=v44,proto3,oneof"` -} - -type MLDSA_V65 struct { - V65 *emptypb.Empty `protobuf:"bytes,2,opt,name=v65,proto3,oneof"` -} - -type MLDSA_V87 struct { - V87 *emptypb.Empty `protobuf:"bytes,3,opt,name=v87,proto3,oneof"` -} - -func (*MLDSA_V44) isMLDSA_Union() {} - -func (*MLDSA_V65) isMLDSA_Union() {} - -func (*MLDSA_V87) isMLDSA_Union() {} - -type RSA struct { - state protoimpl.MessageState `protogen:"open.v1"` - Bits uint32 `protobuf:"varint,1,opt,name=bits,proto3" json:"bits,omitempty"` - SignatureScheme RSA_SignatureScheme `protobuf:"varint,2,opt,name=signature_scheme,json=signatureScheme,proto3,enum=splitsecure.keys.v1.RSA_SignatureScheme" json:"signature_scheme,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RSA) Reset() { - *x = RSA{} - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RSA) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RSA) ProtoMessage() {} - -func (x *RSA) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RSA.ProtoReflect.Descriptor instead. -func (*RSA) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP(), []int{3} -} - -func (x *RSA) GetBits() uint32 { - if x != nil { - return x.Bits - } - return 0 -} - -func (x *RSA) GetSignatureScheme() RSA_SignatureScheme { - if x != nil { - return x.SignatureScheme - } - return RSA_SIGNATURE_SCHEME_UNSPECIFIED -} - -type EDDSA_ED25519 struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EDDSA_ED25519) Reset() { - *x = EDDSA_ED25519{} - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EDDSA_ED25519) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EDDSA_ED25519) ProtoMessage() {} - -func (x *EDDSA_ED25519) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EDDSA_ED25519.ProtoReflect.Descriptor instead. -func (*EDDSA_ED25519) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP(), []int{1, 0} -} - -type EDDSA_ED448 struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EDDSA_ED448) Reset() { - *x = EDDSA_ED448{} - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EDDSA_ED448) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EDDSA_ED448) ProtoMessage() {} - -func (x *EDDSA_ED448) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_signature_spec_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EDDSA_ED448.ProtoReflect.Descriptor instead. -func (*EDDSA_ED448) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP(), []int{1, 1} -} - -var File_splitsecure_keys_v1_signature_spec_proto protoreflect.FileDescriptor - -const file_splitsecure_keys_v1_signature_spec_proto_rawDesc = "" + - "\n" + - "(splitsecure/keys/v1/signature_spec.proto\x12\x13splitsecure.keys.v1\x1a\x1bgoogle/protobuf/empty.proto\"\xe2\x01\n" + - "\rSignatureSpec\x122\n" + - "\x05ecdsa\x18\x01 \x01(\x0e2\x1a.splitsecure.keys.v1.ECDSAH\x00R\x05ecdsa\x122\n" + - "\x05eddsa\x18\x02 \x01(\v2\x1a.splitsecure.keys.v1.EDDSAH\x00R\x05eddsa\x122\n" + - "\x05mldsa\x18\x03 \x01(\v2\x1a.splitsecure.keys.v1.MLDSAH\x00R\x05mldsa\x12,\n" + - "\x03rsa\x18\x04 \x01(\v2\x18.splitsecure.keys.v1.RSAH\x00R\x03rsaB\a\n" + - "\x05union\"\x9e\x01\n" + - "\x05EDDSA\x12>\n" + - "\aed25519\x18\x01 \x01(\v2\".splitsecure.keys.v1.EDDSA.ED25519H\x00R\aed25519\x128\n" + - "\x05ed448\x18\x02 \x01(\v2 .splitsecure.keys.v1.EDDSA.ED448H\x00R\x05ed448\x1a\t\n" + - "\aED25519\x1a\a\n" + - "\x05ED448B\a\n" + - "\x05union\"\x94\x01\n" + - "\x05MLDSA\x12*\n" + - "\x03v44\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03v44\x12*\n" + - "\x03v65\x18\x02 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03v65\x12*\n" + - "\x03v87\x18\x03 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03v87B\a\n" + - "\x05union\"\xdc\x01\n" + - "\x03RSA\x12\x12\n" + - "\x04bits\x18\x01 \x01(\rR\x04bits\x12S\n" + - "\x10signature_scheme\x18\x02 \x01(\x0e2(.splitsecure.keys.v1.RSA.SignatureSchemeR\x0fsignatureScheme\"l\n" + - "\x0fSignatureScheme\x12 \n" + - "\x1cSIGNATURE_SCHEME_UNSPECIFIED\x10\x00\x12\x1d\n" + - "\x19SIGNATURE_SCHEME_PKCS1V15\x10\x01\x12\x18\n" + - "\x14SIGNATURE_SCHEME_PSS\x10\x02*\xb0\x03\n" + - "\x05ECDSA\x12\x15\n" + - "\x11ECDSA_UNSPECIFIED\x10\x00\x12\x13\n" + - "\x0fECDSA_NIST_P224\x10\x01\x12\x13\n" + - "\x0fECDSA_NIST_P256\x10\x02\x12\x13\n" + - "\x0fECDSA_NIST_P384\x10\x03\x12\x13\n" + - "\x0fECDSA_NIST_P521\x10\x04\x12\x13\n" + - "\x0fECDSA_NIST_B233\x10\x05\x12\x13\n" + - "\x0fECDSA_NIST_B283\x10\x06\x12\x13\n" + - "\x0fECDSA_NIST_B409\x10\a\x12\x13\n" + - "\x0fECDSA_NIST_B571\x10\b\x12\x13\n" + - "\x0fECDSA_NIST_K233\x10\t\x12\x13\n" + - "\x0fECDSA_NIST_K283\x10\n" + - "\x12\x13\n" + - "\x0fECDSA_NIST_K409\x10\v\x12\x13\n" + - "\x0fECDSA_NIST_K571\x10\f\x12\x14\n" + - "\x10ECDSA_SEC_P192K1\x10\r\x12\x14\n" + - "\x10ECDSA_SEC_P224K1\x10\x0e\x12\x14\n" + - "\x10ECDSA_SEC_P256K1\x10\x0f\x12\x1a\n" + - "\x16ECDSA_BRAINPOOL_P256R1\x10\x10\x12\x1a\n" + - "\x16ECDSA_BRAINPOOL_P384R1\x10\x11\x12\x1a\n" + - "\x16ECDSA_BRAINPOOL_P512R1\x10\x12B\xfa\x01\n" + - "\x17com.splitsecure.keys.v1B\x12SignatureSpecProtoP\x01Z]github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/keys/v1;keysv1\xa2\x02\x03SKX\xaa\x02\x13Splitsecure.Keys.V1\xca\x02\x13Splitsecure\\Keys\\V1\xe2\x02\x1fSplitsecure\\Keys\\V1\\GPBMetadata\xea\x02\x15Splitsecure::Keys::V1b\x06proto3" - -var ( - file_splitsecure_keys_v1_signature_spec_proto_rawDescOnce sync.Once - file_splitsecure_keys_v1_signature_spec_proto_rawDescData []byte -) - -func file_splitsecure_keys_v1_signature_spec_proto_rawDescGZIP() []byte { - file_splitsecure_keys_v1_signature_spec_proto_rawDescOnce.Do(func() { - file_splitsecure_keys_v1_signature_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_signature_spec_proto_rawDesc), len(file_splitsecure_keys_v1_signature_spec_proto_rawDesc))) - }) - return file_splitsecure_keys_v1_signature_spec_proto_rawDescData -} - -var file_splitsecure_keys_v1_signature_spec_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_splitsecure_keys_v1_signature_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_splitsecure_keys_v1_signature_spec_proto_goTypes = []any{ - (ECDSA)(0), // 0: splitsecure.keys.v1.ECDSA - (RSA_SignatureScheme)(0), // 1: splitsecure.keys.v1.RSA.SignatureScheme - (*SignatureSpec)(nil), // 2: splitsecure.keys.v1.SignatureSpec - (*EDDSA)(nil), // 3: splitsecure.keys.v1.EDDSA - (*MLDSA)(nil), // 4: splitsecure.keys.v1.MLDSA - (*RSA)(nil), // 5: splitsecure.keys.v1.RSA - (*EDDSA_ED25519)(nil), // 6: splitsecure.keys.v1.EDDSA.ED25519 - (*EDDSA_ED448)(nil), // 7: splitsecure.keys.v1.EDDSA.ED448 - (*emptypb.Empty)(nil), // 8: google.protobuf.Empty -} -var file_splitsecure_keys_v1_signature_spec_proto_depIdxs = []int32{ - 0, // 0: splitsecure.keys.v1.SignatureSpec.ecdsa:type_name -> splitsecure.keys.v1.ECDSA - 3, // 1: splitsecure.keys.v1.SignatureSpec.eddsa:type_name -> splitsecure.keys.v1.EDDSA - 4, // 2: splitsecure.keys.v1.SignatureSpec.mldsa:type_name -> splitsecure.keys.v1.MLDSA - 5, // 3: splitsecure.keys.v1.SignatureSpec.rsa:type_name -> splitsecure.keys.v1.RSA - 6, // 4: splitsecure.keys.v1.EDDSA.ed25519:type_name -> splitsecure.keys.v1.EDDSA.ED25519 - 7, // 5: splitsecure.keys.v1.EDDSA.ed448:type_name -> splitsecure.keys.v1.EDDSA.ED448 - 8, // 6: splitsecure.keys.v1.MLDSA.v44:type_name -> google.protobuf.Empty - 8, // 7: splitsecure.keys.v1.MLDSA.v65:type_name -> google.protobuf.Empty - 8, // 8: splitsecure.keys.v1.MLDSA.v87:type_name -> google.protobuf.Empty - 1, // 9: splitsecure.keys.v1.RSA.signature_scheme:type_name -> splitsecure.keys.v1.RSA.SignatureScheme - 10, // [10:10] is the sub-list for method output_type - 10, // [10:10] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name -} - -func init() { file_splitsecure_keys_v1_signature_spec_proto_init() } -func file_splitsecure_keys_v1_signature_spec_proto_init() { - if File_splitsecure_keys_v1_signature_spec_proto != nil { - return - } - file_splitsecure_keys_v1_signature_spec_proto_msgTypes[0].OneofWrappers = []any{ - (*SignatureSpec_Ecdsa)(nil), - (*SignatureSpec_Eddsa)(nil), - (*SignatureSpec_Mldsa)(nil), - (*SignatureSpec_Rsa)(nil), - } - file_splitsecure_keys_v1_signature_spec_proto_msgTypes[1].OneofWrappers = []any{ - (*EDDSA_Ed25519)(nil), - (*EDDSA_Ed448)(nil), - } - file_splitsecure_keys_v1_signature_spec_proto_msgTypes[2].OneofWrappers = []any{ - (*MLDSA_V44)(nil), - (*MLDSA_V65)(nil), - (*MLDSA_V87)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_signature_spec_proto_rawDesc), len(file_splitsecure_keys_v1_signature_spec_proto_rawDesc)), - NumEnums: 2, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_keys_v1_signature_spec_proto_goTypes, - DependencyIndexes: file_splitsecure_keys_v1_signature_spec_proto_depIdxs, - EnumInfos: file_splitsecure_keys_v1_signature_spec_proto_enumTypes, - MessageInfos: file_splitsecure_keys_v1_signature_spec_proto_msgTypes, - }.Build() - File_splitsecure_keys_v1_signature_spec_proto = out.File - file_splitsecure_keys_v1_signature_spec_proto_goTypes = nil - file_splitsecure_keys_v1_signature_spec_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/keys/v1/spec.pb.go b/gen/go/proto/splitsecure/keys/v1/spec.pb.go deleted file mode 100644 index aa85fc0..0000000 --- a/gen/go/proto/splitsecure/keys/v1/spec.pb.go +++ /dev/null @@ -1,215 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/keys/v1/spec.proto - -package keysv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Spec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *Spec_SymmetricEncryption - // *Spec_Signature - // *Spec_DiffieHellman - // *Spec_KeyEncapsulation - Union isSpec_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Spec) Reset() { - *x = Spec{} - mi := &file_splitsecure_keys_v1_spec_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Spec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Spec) ProtoMessage() {} - -func (x *Spec) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_spec_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Spec.ProtoReflect.Descriptor instead. -func (*Spec) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_spec_proto_rawDescGZIP(), []int{0} -} - -func (x *Spec) GetUnion() isSpec_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *Spec) GetSymmetricEncryption() *SymmetricEncryptionSpec { - if x != nil { - if x, ok := x.Union.(*Spec_SymmetricEncryption); ok { - return x.SymmetricEncryption - } - } - return nil -} - -func (x *Spec) GetSignature() *SignatureSpec { - if x != nil { - if x, ok := x.Union.(*Spec_Signature); ok { - return x.Signature - } - } - return nil -} - -func (x *Spec) GetDiffieHellman() *DiffieHellmanSpec { - if x != nil { - if x, ok := x.Union.(*Spec_DiffieHellman); ok { - return x.DiffieHellman - } - } - return nil -} - -func (x *Spec) GetKeyEncapsulation() *KeyEncapsulationSpec { - if x != nil { - if x, ok := x.Union.(*Spec_KeyEncapsulation); ok { - return x.KeyEncapsulation - } - } - return nil -} - -type isSpec_Union interface { - isSpec_Union() -} - -type Spec_SymmetricEncryption struct { - SymmetricEncryption *SymmetricEncryptionSpec `protobuf:"bytes,1,opt,name=symmetric_encryption,json=symmetricEncryption,proto3,oneof"` -} - -type Spec_Signature struct { - Signature *SignatureSpec `protobuf:"bytes,2,opt,name=signature,proto3,oneof"` -} - -type Spec_DiffieHellman struct { - DiffieHellman *DiffieHellmanSpec `protobuf:"bytes,3,opt,name=diffie_hellman,json=diffieHellman,proto3,oneof"` -} - -type Spec_KeyEncapsulation struct { - KeyEncapsulation *KeyEncapsulationSpec `protobuf:"bytes,4,opt,name=key_encapsulation,json=keyEncapsulation,proto3,oneof"` -} - -func (*Spec_SymmetricEncryption) isSpec_Union() {} - -func (*Spec_Signature) isSpec_Union() {} - -func (*Spec_DiffieHellman) isSpec_Union() {} - -func (*Spec_KeyEncapsulation) isSpec_Union() {} - -var File_splitsecure_keys_v1_spec_proto protoreflect.FileDescriptor - -const file_splitsecure_keys_v1_spec_proto_rawDesc = "" + - "\n" + - "\x1esplitsecure/keys/v1/spec.proto\x12\x13splitsecure.keys.v1\x1a-splitsecure/keys/v1/diffie_hellman_spec.proto\x1a0splitsecure/keys/v1/key_encapsulation_spec.proto\x1a(splitsecure/keys/v1/signature_spec.proto\x1a3splitsecure/keys/v1/symmetric_encryption_spec.proto\"\xe1\x02\n" + - "\x04Spec\x12a\n" + - "\x14symmetric_encryption\x18\x01 \x01(\v2,.splitsecure.keys.v1.SymmetricEncryptionSpecH\x00R\x13symmetricEncryption\x12B\n" + - "\tsignature\x18\x02 \x01(\v2\".splitsecure.keys.v1.SignatureSpecH\x00R\tsignature\x12O\n" + - "\x0ediffie_hellman\x18\x03 \x01(\v2&.splitsecure.keys.v1.DiffieHellmanSpecH\x00R\rdiffieHellman\x12X\n" + - "\x11key_encapsulation\x18\x04 \x01(\v2).splitsecure.keys.v1.KeyEncapsulationSpecH\x00R\x10keyEncapsulationB\a\n" + - "\x05unionB\xf1\x01\n" + - "\x17com.splitsecure.keys.v1B\tSpecProtoP\x01Z]github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/keys/v1;keysv1\xa2\x02\x03SKX\xaa\x02\x13Splitsecure.Keys.V1\xca\x02\x13Splitsecure\\Keys\\V1\xe2\x02\x1fSplitsecure\\Keys\\V1\\GPBMetadata\xea\x02\x15Splitsecure::Keys::V1b\x06proto3" - -var ( - file_splitsecure_keys_v1_spec_proto_rawDescOnce sync.Once - file_splitsecure_keys_v1_spec_proto_rawDescData []byte -) - -func file_splitsecure_keys_v1_spec_proto_rawDescGZIP() []byte { - file_splitsecure_keys_v1_spec_proto_rawDescOnce.Do(func() { - file_splitsecure_keys_v1_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_spec_proto_rawDesc), len(file_splitsecure_keys_v1_spec_proto_rawDesc))) - }) - return file_splitsecure_keys_v1_spec_proto_rawDescData -} - -var file_splitsecure_keys_v1_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_keys_v1_spec_proto_goTypes = []any{ - (*Spec)(nil), // 0: splitsecure.keys.v1.Spec - (*SymmetricEncryptionSpec)(nil), // 1: splitsecure.keys.v1.SymmetricEncryptionSpec - (*SignatureSpec)(nil), // 2: splitsecure.keys.v1.SignatureSpec - (*DiffieHellmanSpec)(nil), // 3: splitsecure.keys.v1.DiffieHellmanSpec - (*KeyEncapsulationSpec)(nil), // 4: splitsecure.keys.v1.KeyEncapsulationSpec -} -var file_splitsecure_keys_v1_spec_proto_depIdxs = []int32{ - 1, // 0: splitsecure.keys.v1.Spec.symmetric_encryption:type_name -> splitsecure.keys.v1.SymmetricEncryptionSpec - 2, // 1: splitsecure.keys.v1.Spec.signature:type_name -> splitsecure.keys.v1.SignatureSpec - 3, // 2: splitsecure.keys.v1.Spec.diffie_hellman:type_name -> splitsecure.keys.v1.DiffieHellmanSpec - 4, // 3: splitsecure.keys.v1.Spec.key_encapsulation:type_name -> splitsecure.keys.v1.KeyEncapsulationSpec - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_splitsecure_keys_v1_spec_proto_init() } -func file_splitsecure_keys_v1_spec_proto_init() { - if File_splitsecure_keys_v1_spec_proto != nil { - return - } - file_splitsecure_keys_v1_diffie_hellman_spec_proto_init() - file_splitsecure_keys_v1_key_encapsulation_spec_proto_init() - file_splitsecure_keys_v1_signature_spec_proto_init() - file_splitsecure_keys_v1_symmetric_encryption_spec_proto_init() - file_splitsecure_keys_v1_spec_proto_msgTypes[0].OneofWrappers = []any{ - (*Spec_SymmetricEncryption)(nil), - (*Spec_Signature)(nil), - (*Spec_DiffieHellman)(nil), - (*Spec_KeyEncapsulation)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_spec_proto_rawDesc), len(file_splitsecure_keys_v1_spec_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_keys_v1_spec_proto_goTypes, - DependencyIndexes: file_splitsecure_keys_v1_spec_proto_depIdxs, - MessageInfos: file_splitsecure_keys_v1_spec_proto_msgTypes, - }.Build() - File_splitsecure_keys_v1_spec_proto = out.File - file_splitsecure_keys_v1_spec_proto_goTypes = nil - file_splitsecure_keys_v1_spec_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/keys/v1/symmetric_encryption_spec.pb.go b/gen/go/proto/splitsecure/keys/v1/symmetric_encryption_spec.pb.go deleted file mode 100644 index a847f1d..0000000 --- a/gen/go/proto/splitsecure/keys/v1/symmetric_encryption_spec.pb.go +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/keys/v1/symmetric_encryption_spec.proto - -package keysv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type SymmetricEncryptionSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Union: - // - // *SymmetricEncryptionSpec_Aes - Union isSymmetricEncryptionSpec_Union `protobuf_oneof:"union"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SymmetricEncryptionSpec) Reset() { - *x = SymmetricEncryptionSpec{} - mi := &file_splitsecure_keys_v1_symmetric_encryption_spec_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SymmetricEncryptionSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SymmetricEncryptionSpec) ProtoMessage() {} - -func (x *SymmetricEncryptionSpec) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_keys_v1_symmetric_encryption_spec_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SymmetricEncryptionSpec.ProtoReflect.Descriptor instead. -func (*SymmetricEncryptionSpec) Descriptor() ([]byte, []int) { - return file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDescGZIP(), []int{0} -} - -func (x *SymmetricEncryptionSpec) GetUnion() isSymmetricEncryptionSpec_Union { - if x != nil { - return x.Union - } - return nil -} - -func (x *SymmetricEncryptionSpec) GetAes() *AES { - if x != nil { - if x, ok := x.Union.(*SymmetricEncryptionSpec_Aes); ok { - return x.Aes - } - } - return nil -} - -type isSymmetricEncryptionSpec_Union interface { - isSymmetricEncryptionSpec_Union() -} - -type SymmetricEncryptionSpec_Aes struct { - Aes *AES `protobuf:"bytes,1,opt,name=aes,proto3,oneof"` -} - -func (*SymmetricEncryptionSpec_Aes) isSymmetricEncryptionSpec_Union() {} - -var File_splitsecure_keys_v1_symmetric_encryption_spec_proto protoreflect.FileDescriptor - -const file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDesc = "" + - "\n" + - "3splitsecure/keys/v1/symmetric_encryption_spec.proto\x12\x13splitsecure.keys.v1\x1a\x1dsplitsecure/keys/v1/aes.proto\"P\n" + - "\x17SymmetricEncryptionSpec\x12,\n" + - "\x03aes\x18\x01 \x01(\v2\x18.splitsecure.keys.v1.AESH\x00R\x03aesB\a\n" + - "\x05unionB\x84\x02\n" + - "\x17com.splitsecure.keys.v1B\x1cSymmetricEncryptionSpecProtoP\x01Z]github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/keys/v1;keysv1\xa2\x02\x03SKX\xaa\x02\x13Splitsecure.Keys.V1\xca\x02\x13Splitsecure\\Keys\\V1\xe2\x02\x1fSplitsecure\\Keys\\V1\\GPBMetadata\xea\x02\x15Splitsecure::Keys::V1b\x06proto3" - -var ( - file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDescOnce sync.Once - file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDescData []byte -) - -func file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDescGZIP() []byte { - file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDescOnce.Do(func() { - file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDesc), len(file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDesc))) - }) - return file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDescData -} - -var file_splitsecure_keys_v1_symmetric_encryption_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_keys_v1_symmetric_encryption_spec_proto_goTypes = []any{ - (*SymmetricEncryptionSpec)(nil), // 0: splitsecure.keys.v1.SymmetricEncryptionSpec - (*AES)(nil), // 1: splitsecure.keys.v1.AES -} -var file_splitsecure_keys_v1_symmetric_encryption_spec_proto_depIdxs = []int32{ - 1, // 0: splitsecure.keys.v1.SymmetricEncryptionSpec.aes:type_name -> splitsecure.keys.v1.AES - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_splitsecure_keys_v1_symmetric_encryption_spec_proto_init() } -func file_splitsecure_keys_v1_symmetric_encryption_spec_proto_init() { - if File_splitsecure_keys_v1_symmetric_encryption_spec_proto != nil { - return - } - file_splitsecure_keys_v1_aes_proto_init() - file_splitsecure_keys_v1_symmetric_encryption_spec_proto_msgTypes[0].OneofWrappers = []any{ - (*SymmetricEncryptionSpec_Aes)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDesc), len(file_splitsecure_keys_v1_symmetric_encryption_spec_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_keys_v1_symmetric_encryption_spec_proto_goTypes, - DependencyIndexes: file_splitsecure_keys_v1_symmetric_encryption_spec_proto_depIdxs, - MessageInfos: file_splitsecure_keys_v1_symmetric_encryption_spec_proto_msgTypes, - }.Build() - File_splitsecure_keys_v1_symmetric_encryption_spec_proto = out.File - file_splitsecure_keys_v1_symmetric_encryption_spec_proto_goTypes = nil - file_splitsecure_keys_v1_symmetric_encryption_spec_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/notifications/v1/notification_policy.pb.go b/gen/go/proto/splitsecure/notifications/v1/notification_policy.pb.go deleted file mode 100644 index 396f71c..0000000 --- a/gen/go/proto/splitsecure/notifications/v1/notification_policy.pb.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/notifications/v1/notification_policy.proto - -package notificationsv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type NotificationPolicy int32 - -const ( - // UNSPECIFIED behaves as NOTIFICATION_POLICY_NOTIFY_EVERYONE. - NotificationPolicy_NOTIFICATION_POLICY_UNSPECIFIED NotificationPolicy = 0 - NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE NotificationPolicy = 1 - NotificationPolicy_NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS NotificationPolicy = 2 -) - -// Enum value maps for NotificationPolicy. -var ( - NotificationPolicy_name = map[int32]string{ - 0: "NOTIFICATION_POLICY_UNSPECIFIED", - 1: "NOTIFICATION_POLICY_NOTIFY_EVERYONE", - 2: "NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS", - } - NotificationPolicy_value = map[string]int32{ - "NOTIFICATION_POLICY_UNSPECIFIED": 0, - "NOTIFICATION_POLICY_NOTIFY_EVERYONE": 1, - "NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS": 2, - } -) - -func (x NotificationPolicy) Enum() *NotificationPolicy { - p := new(NotificationPolicy) - *p = x - return p -} - -func (x NotificationPolicy) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (NotificationPolicy) Descriptor() protoreflect.EnumDescriptor { - return file_splitsecure_notifications_v1_notification_policy_proto_enumTypes[0].Descriptor() -} - -func (NotificationPolicy) Type() protoreflect.EnumType { - return &file_splitsecure_notifications_v1_notification_policy_proto_enumTypes[0] -} - -func (x NotificationPolicy) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use NotificationPolicy.Descriptor instead. -func (NotificationPolicy) EnumDescriptor() ([]byte, []int) { - return file_splitsecure_notifications_v1_notification_policy_proto_rawDescGZIP(), []int{0} -} - -var File_splitsecure_notifications_v1_notification_policy_proto protoreflect.FileDescriptor - -const file_splitsecure_notifications_v1_notification_policy_proto_rawDesc = "" + - "\n" + - "6splitsecure/notifications/v1/notification_policy.proto\x12\x1csplitsecure.notifications.v1*\x99\x01\n" + - "\x12NotificationPolicy\x12#\n" + - "\x1fNOTIFICATION_POLICY_UNSPECIFIED\x10\x00\x12'\n" + - "#NOTIFICATION_POLICY_NOTIFY_EVERYONE\x10\x01\x125\n" + - "1NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS\x10\x02B\xbe\x02\n" + - " com.splitsecure.notifications.v1B\x17NotificationPolicyProtoP\x01Zogithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/notifications/v1;notificationsv1\xa2\x02\x03SNX\xaa\x02\x1cSplitsecure.Notifications.V1\xca\x02\x1cSplitsecure\\Notifications\\V1\xe2\x02(Splitsecure\\Notifications\\V1\\GPBMetadata\xea\x02\x1eSplitsecure::Notifications::V1b\x06proto3" - -var ( - file_splitsecure_notifications_v1_notification_policy_proto_rawDescOnce sync.Once - file_splitsecure_notifications_v1_notification_policy_proto_rawDescData []byte -) - -func file_splitsecure_notifications_v1_notification_policy_proto_rawDescGZIP() []byte { - file_splitsecure_notifications_v1_notification_policy_proto_rawDescOnce.Do(func() { - file_splitsecure_notifications_v1_notification_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_notifications_v1_notification_policy_proto_rawDesc), len(file_splitsecure_notifications_v1_notification_policy_proto_rawDesc))) - }) - return file_splitsecure_notifications_v1_notification_policy_proto_rawDescData -} - -var file_splitsecure_notifications_v1_notification_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_splitsecure_notifications_v1_notification_policy_proto_goTypes = []any{ - (NotificationPolicy)(0), // 0: splitsecure.notifications.v1.NotificationPolicy -} -var file_splitsecure_notifications_v1_notification_policy_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_splitsecure_notifications_v1_notification_policy_proto_init() } -func file_splitsecure_notifications_v1_notification_policy_proto_init() { - if File_splitsecure_notifications_v1_notification_policy_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_notifications_v1_notification_policy_proto_rawDesc), len(file_splitsecure_notifications_v1_notification_policy_proto_rawDesc)), - NumEnums: 1, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_notifications_v1_notification_policy_proto_goTypes, - DependencyIndexes: file_splitsecure_notifications_v1_notification_policy_proto_depIdxs, - EnumInfos: file_splitsecure_notifications_v1_notification_policy_proto_enumTypes, - }.Build() - File_splitsecure_notifications_v1_notification_policy_proto = out.File - file_splitsecure_notifications_v1_notification_policy_proto_goTypes = nil - file_splitsecure_notifications_v1_notification_policy_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/proposals/v1/proposalsv1connect/provider_custom_proposals_service.connect.go b/gen/go/proto/splitsecure/proposals/v1/proposalsv1connect/provider_custom_proposals_service.connect.go deleted file mode 100644 index ad81bcd..0000000 --- a/gen/go/proto/splitsecure/proposals/v1/proposalsv1connect/provider_custom_proposals_service.connect.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: splitsecure/proposals/v1/provider_custom_proposals_service.proto - -package proposalsv1connect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/proposals/v1" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // ProposalsServiceName is the fully-qualified name of the ProposalsService service. - ProposalsServiceName = "splitsecure.proposals.v1.ProposalsService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // ProposalsServiceGetProposalProcedure is the fully-qualified name of the ProposalsService's - // GetProposal RPC. - ProposalsServiceGetProposalProcedure = "/splitsecure.proposals.v1.ProposalsService/GetProposal" -) - -// ProposalsServiceClient is a client for the splitsecure.proposals.v1.ProposalsService service. -type ProposalsServiceClient interface { - GetProposal(context.Context, *connect.Request[v1.GetProposalRequest]) (*connect.Response[v1.GetProposalResponse], error) -} - -// NewProposalsServiceClient constructs a client for the splitsecure.proposals.v1.ProposalsService -// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for -// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply -// the connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewProposalsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProposalsServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - proposalsServiceMethods := v1.File_splitsecure_proposals_v1_provider_custom_proposals_service_proto.Services().ByName("ProposalsService").Methods() - return &proposalsServiceClient{ - getProposal: connect.NewClient[v1.GetProposalRequest, v1.GetProposalResponse]( - httpClient, - baseURL+ProposalsServiceGetProposalProcedure, - connect.WithSchema(proposalsServiceMethods.ByName("GetProposal")), - connect.WithClientOptions(opts...), - ), - } -} - -// proposalsServiceClient implements ProposalsServiceClient. -type proposalsServiceClient struct { - getProposal *connect.Client[v1.GetProposalRequest, v1.GetProposalResponse] -} - -// GetProposal calls splitsecure.proposals.v1.ProposalsService.GetProposal. -func (c *proposalsServiceClient) GetProposal(ctx context.Context, req *connect.Request[v1.GetProposalRequest]) (*connect.Response[v1.GetProposalResponse], error) { - return c.getProposal.CallUnary(ctx, req) -} - -// ProposalsServiceHandler is an implementation of the splitsecure.proposals.v1.ProposalsService -// service. -type ProposalsServiceHandler interface { - GetProposal(context.Context, *connect.Request[v1.GetProposalRequest]) (*connect.Response[v1.GetProposalResponse], error) -} - -// NewProposalsServiceHandler builds an HTTP handler from the service implementation. It returns the -// path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewProposalsServiceHandler(svc ProposalsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - proposalsServiceMethods := v1.File_splitsecure_proposals_v1_provider_custom_proposals_service_proto.Services().ByName("ProposalsService").Methods() - proposalsServiceGetProposalHandler := connect.NewUnaryHandler( - ProposalsServiceGetProposalProcedure, - svc.GetProposal, - connect.WithSchema(proposalsServiceMethods.ByName("GetProposal")), - connect.WithHandlerOptions(opts...), - ) - return "/splitsecure.proposals.v1.ProposalsService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case ProposalsServiceGetProposalProcedure: - proposalsServiceGetProposalHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedProposalsServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedProposalsServiceHandler struct{} - -func (UnimplementedProposalsServiceHandler) GetProposal(context.Context, *connect.Request[v1.GetProposalRequest]) (*connect.Response[v1.GetProposalResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("splitsecure.proposals.v1.ProposalsService.GetProposal is not implemented")) -} diff --git a/gen/go/proto/splitsecure/proposals/v1/provider_custom_proposals_service.pb.go b/gen/go/proto/splitsecure/proposals/v1/provider_custom_proposals_service.pb.go deleted file mode 100644 index 5200dfe..0000000 --- a/gen/go/proto/splitsecure/proposals/v1/provider_custom_proposals_service.pb.go +++ /dev/null @@ -1,600 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/proposals/v1/provider_custom_proposals_service.proto - -package proposalsv1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/requestsigning/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GetProposalRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Signed *v1.SignedRequest `protobuf:"bytes,1,opt,name=signed,proto3" json:"signed,omitempty"` - Base *GetProposalRequest_Base `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProposalRequest) Reset() { - *x = GetProposalRequest{} - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProposalRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalRequest) ProtoMessage() {} - -func (x *GetProposalRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalRequest.ProtoReflect.Descriptor instead. -func (*GetProposalRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP(), []int{0} -} - -func (x *GetProposalRequest) GetSigned() *v1.SignedRequest { - if x != nil { - return x.Signed - } - return nil -} - -func (x *GetProposalRequest) GetBase() *GetProposalRequest_Base { - if x != nil { - return x.Base - } - return nil -} - -type GetProposalResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Metadata *ProposalMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - StreamId []byte `protobuf:"bytes,2,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProposalResponse) Reset() { - *x = GetProposalResponse{} - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProposalResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalResponse) ProtoMessage() {} - -func (x *GetProposalResponse) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalResponse.ProtoReflect.Descriptor instead. -func (*GetProposalResponse) Descriptor() ([]byte, []int) { - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP(), []int{1} -} - -func (x *GetProposalResponse) GetMetadata() *ProposalMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *GetProposalResponse) GetStreamId() []byte { - if x != nil { - return x.StreamId - } - return nil -} - -type ProposalMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` - ProposalId []byte `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - Status *ProposalStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - CurrentStep int32 `protobuf:"varint,5,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"` - InitiatorEnclaveId []byte `protobuf:"bytes,6,opt,name=initiator_enclave_id,json=initiatorEnclaveId,proto3" json:"initiator_enclave_id,omitempty"` - TeamIds [][]byte `protobuf:"bytes,7,rep,name=team_ids,json=teamIds,proto3" json:"team_ids,omitempty"` - FlowId string `protobuf:"bytes,8,opt,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ProposalMetadata) Reset() { - *x = ProposalMetadata{} - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ProposalMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProposalMetadata) ProtoMessage() {} - -func (x *ProposalMetadata) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProposalMetadata.ProtoReflect.Descriptor instead. -func (*ProposalMetadata) Descriptor() ([]byte, []int) { - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP(), []int{2} -} - -func (x *ProposalMetadata) GetProposalId() []byte { - if x != nil { - return x.ProposalId - } - return nil -} - -func (x *ProposalMetadata) GetStatus() *ProposalStatus { - if x != nil { - return x.Status - } - return nil -} - -func (x *ProposalMetadata) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *ProposalMetadata) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -func (x *ProposalMetadata) GetCurrentStep() int32 { - if x != nil { - return x.CurrentStep - } - return 0 -} - -func (x *ProposalMetadata) GetInitiatorEnclaveId() []byte { - if x != nil { - return x.InitiatorEnclaveId - } - return nil -} - -func (x *ProposalMetadata) GetTeamIds() [][]byte { - if x != nil { - return x.TeamIds - } - return nil -} - -func (x *ProposalMetadata) GetFlowId() string { - if x != nil { - return x.FlowId - } - return "" -} - -type ProposalStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Status: - // - // *ProposalStatus_InProgress_ - // *ProposalStatus_Completed_ - // *ProposalStatus_Error_ - Status isProposalStatus_Status `protobuf_oneof:"status"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ProposalStatus) Reset() { - *x = ProposalStatus{} - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ProposalStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProposalStatus) ProtoMessage() {} - -func (x *ProposalStatus) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProposalStatus.ProtoReflect.Descriptor instead. -func (*ProposalStatus) Descriptor() ([]byte, []int) { - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP(), []int{3} -} - -func (x *ProposalStatus) GetStatus() isProposalStatus_Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ProposalStatus) GetInProgress() *ProposalStatus_InProgress { - if x != nil { - if x, ok := x.Status.(*ProposalStatus_InProgress_); ok { - return x.InProgress - } - } - return nil -} - -func (x *ProposalStatus) GetCompleted() *ProposalStatus_Completed { - if x != nil { - if x, ok := x.Status.(*ProposalStatus_Completed_); ok { - return x.Completed - } - } - return nil -} - -func (x *ProposalStatus) GetError() *ProposalStatus_Error { - if x != nil { - if x, ok := x.Status.(*ProposalStatus_Error_); ok { - return x.Error - } - } - return nil -} - -type isProposalStatus_Status interface { - isProposalStatus_Status() -} - -type ProposalStatus_InProgress_ struct { - InProgress *ProposalStatus_InProgress `protobuf:"bytes,1,opt,name=in_progress,json=inProgress,proto3,oneof"` -} - -type ProposalStatus_Completed_ struct { - Completed *ProposalStatus_Completed `protobuf:"bytes,2,opt,name=completed,proto3,oneof"` -} - -type ProposalStatus_Error_ struct { - Error *ProposalStatus_Error `protobuf:"bytes,3,opt,name=error,proto3,oneof"` -} - -func (*ProposalStatus_InProgress_) isProposalStatus_Status() {} - -func (*ProposalStatus_Completed_) isProposalStatus_Status() {} - -func (*ProposalStatus_Error_) isProposalStatus_Status() {} - -type GetProposalRequest_Base struct { - state protoimpl.MessageState `protogen:"open.v1"` - ProposalId []byte `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProposalRequest_Base) Reset() { - *x = GetProposalRequest_Base{} - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProposalRequest_Base) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProposalRequest_Base) ProtoMessage() {} - -func (x *GetProposalRequest_Base) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProposalRequest_Base.ProtoReflect.Descriptor instead. -func (*GetProposalRequest_Base) Descriptor() ([]byte, []int) { - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *GetProposalRequest_Base) GetProposalId() []byte { - if x != nil { - return x.ProposalId - } - return nil -} - -type ProposalStatus_InProgress struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ProposalStatus_InProgress) Reset() { - *x = ProposalStatus_InProgress{} - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ProposalStatus_InProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProposalStatus_InProgress) ProtoMessage() {} - -func (x *ProposalStatus_InProgress) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProposalStatus_InProgress.ProtoReflect.Descriptor instead. -func (*ProposalStatus_InProgress) Descriptor() ([]byte, []int) { - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP(), []int{3, 0} -} - -type ProposalStatus_Completed struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ProposalStatus_Completed) Reset() { - *x = ProposalStatus_Completed{} - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ProposalStatus_Completed) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProposalStatus_Completed) ProtoMessage() {} - -func (x *ProposalStatus_Completed) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProposalStatus_Completed.ProtoReflect.Descriptor instead. -func (*ProposalStatus_Completed) Descriptor() ([]byte, []int) { - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP(), []int{3, 1} -} - -type ProposalStatus_Error struct { - state protoimpl.MessageState `protogen:"open.v1"` - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ProposalStatus_Error) Reset() { - *x = ProposalStatus_Error{} - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ProposalStatus_Error) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProposalStatus_Error) ProtoMessage() {} - -func (x *ProposalStatus_Error) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProposalStatus_Error.ProtoReflect.Descriptor instead. -func (*ProposalStatus_Error) Descriptor() ([]byte, []int) { - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP(), []int{3, 2} -} - -func (x *ProposalStatus_Error) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -var File_splitsecure_proposals_v1_provider_custom_proposals_service_proto protoreflect.FileDescriptor - -const file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDesc = "" + - "\n" + - "@splitsecure/proposals/v1/provider_custom_proposals_service.proto\x12\x18splitsecure.proposals.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a2splitsecure/requestsigning/v1/signed_request.proto\"\xca\x01\n" + - "\x12GetProposalRequest\x12D\n" + - "\x06signed\x18\x01 \x01(\v2,.splitsecure.requestsigning.v1.SignedRequestR\x06signed\x12E\n" + - "\x04base\x18\x02 \x01(\v21.splitsecure.proposals.v1.GetProposalRequest.BaseR\x04base\x1a'\n" + - "\x04Base\x12\x1f\n" + - "\vproposal_id\x18\x01 \x01(\fR\n" + - "proposalId\"z\n" + - "\x13GetProposalResponse\x12F\n" + - "\bmetadata\x18\x01 \x01(\v2*.splitsecure.proposals.v1.ProposalMetadataR\bmetadata\x12\x1b\n" + - "\tstream_id\x18\x02 \x01(\fR\bstreamId\"\xf4\x02\n" + - "\x10ProposalMetadata\x12\x1f\n" + - "\vproposal_id\x18\x01 \x01(\fR\n" + - "proposalId\x12@\n" + - "\x06status\x18\x02 \x01(\v2(.splitsecure.proposals.v1.ProposalStatusR\x06status\x129\n" + - "\n" + - "created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + - "\n" + - "updated_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12!\n" + - "\fcurrent_step\x18\x05 \x01(\x05R\vcurrentStep\x120\n" + - "\x14initiator_enclave_id\x18\x06 \x01(\fR\x12initiatorEnclaveId\x12\x19\n" + - "\bteam_ids\x18\a \x03(\fR\ateamIds\x12\x17\n" + - "\aflow_id\x18\b \x01(\tR\x06flowId\"\xcc\x02\n" + - "\x0eProposalStatus\x12V\n" + - "\vin_progress\x18\x01 \x01(\v23.splitsecure.proposals.v1.ProposalStatus.InProgressH\x00R\n" + - "inProgress\x12R\n" + - "\tcompleted\x18\x02 \x01(\v22.splitsecure.proposals.v1.ProposalStatus.CompletedH\x00R\tcompleted\x12F\n" + - "\x05error\x18\x03 \x01(\v2..splitsecure.proposals.v1.ProposalStatus.ErrorH\x00R\x05error\x1a\f\n" + - "\n" + - "InProgress\x1a\v\n" + - "\tCompleted\x1a!\n" + - "\x05Error\x12\x18\n" + - "\amessage\x18\x01 \x01(\tR\amessageB\b\n" + - "\x06status2~\n" + - "\x10ProposalsService\x12j\n" + - "\vGetProposal\x12,.splitsecure.proposals.v1.GetProposalRequest\x1a-.splitsecure.proposals.v1.GetProposalResponseB\xae\x02\n" + - "\x1ccom.splitsecure.proposals.v1B#ProviderCustomProposalsServiceProtoP\x01Zggithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/proposals/v1;proposalsv1\xa2\x02\x03SPX\xaa\x02\x18Splitsecure.Proposals.V1\xca\x02\x18Splitsecure\\Proposals\\V1\xe2\x02$Splitsecure\\Proposals\\V1\\GPBMetadata\xea\x02\x1aSplitsecure::Proposals::V1b\x06proto3" - -var ( - file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescOnce sync.Once - file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescData []byte -) - -func file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescGZIP() []byte { - file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescOnce.Do(func() { - file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDesc), len(file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDesc))) - }) - return file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDescData -} - -var file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_goTypes = []any{ - (*GetProposalRequest)(nil), // 0: splitsecure.proposals.v1.GetProposalRequest - (*GetProposalResponse)(nil), // 1: splitsecure.proposals.v1.GetProposalResponse - (*ProposalMetadata)(nil), // 2: splitsecure.proposals.v1.ProposalMetadata - (*ProposalStatus)(nil), // 3: splitsecure.proposals.v1.ProposalStatus - (*GetProposalRequest_Base)(nil), // 4: splitsecure.proposals.v1.GetProposalRequest.Base - (*ProposalStatus_InProgress)(nil), // 5: splitsecure.proposals.v1.ProposalStatus.InProgress - (*ProposalStatus_Completed)(nil), // 6: splitsecure.proposals.v1.ProposalStatus.Completed - (*ProposalStatus_Error)(nil), // 7: splitsecure.proposals.v1.ProposalStatus.Error - (*v1.SignedRequest)(nil), // 8: splitsecure.requestsigning.v1.SignedRequest - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp -} -var file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_depIdxs = []int32{ - 8, // 0: splitsecure.proposals.v1.GetProposalRequest.signed:type_name -> splitsecure.requestsigning.v1.SignedRequest - 4, // 1: splitsecure.proposals.v1.GetProposalRequest.base:type_name -> splitsecure.proposals.v1.GetProposalRequest.Base - 2, // 2: splitsecure.proposals.v1.GetProposalResponse.metadata:type_name -> splitsecure.proposals.v1.ProposalMetadata - 3, // 3: splitsecure.proposals.v1.ProposalMetadata.status:type_name -> splitsecure.proposals.v1.ProposalStatus - 9, // 4: splitsecure.proposals.v1.ProposalMetadata.created_at:type_name -> google.protobuf.Timestamp - 9, // 5: splitsecure.proposals.v1.ProposalMetadata.updated_at:type_name -> google.protobuf.Timestamp - 5, // 6: splitsecure.proposals.v1.ProposalStatus.in_progress:type_name -> splitsecure.proposals.v1.ProposalStatus.InProgress - 6, // 7: splitsecure.proposals.v1.ProposalStatus.completed:type_name -> splitsecure.proposals.v1.ProposalStatus.Completed - 7, // 8: splitsecure.proposals.v1.ProposalStatus.error:type_name -> splitsecure.proposals.v1.ProposalStatus.Error - 0, // 9: splitsecure.proposals.v1.ProposalsService.GetProposal:input_type -> splitsecure.proposals.v1.GetProposalRequest - 1, // 10: splitsecure.proposals.v1.ProposalsService.GetProposal:output_type -> splitsecure.proposals.v1.GetProposalResponse - 10, // [10:11] is the sub-list for method output_type - 9, // [9:10] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_init() } -func file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_init() { - if File_splitsecure_proposals_v1_provider_custom_proposals_service_proto != nil { - return - } - file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes[3].OneofWrappers = []any{ - (*ProposalStatus_InProgress_)(nil), - (*ProposalStatus_Completed_)(nil), - (*ProposalStatus_Error_)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDesc), len(file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_rawDesc)), - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_goTypes, - DependencyIndexes: file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_depIdxs, - MessageInfos: file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_msgTypes, - }.Build() - File_splitsecure_proposals_v1_provider_custom_proposals_service_proto = out.File - file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_goTypes = nil - file_splitsecure_proposals_v1_provider_custom_proposals_service_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/requestsigning/v1/signed_request.pb.go b/gen/go/proto/splitsecure/requestsigning/v1/signed_request.pb.go deleted file mode 100644 index b3e80ba..0000000 --- a/gen/go/proto/splitsecure/requestsigning/v1/signed_request.pb.go +++ /dev/null @@ -1,125 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/requestsigning/v1/signed_request.proto - -package requestsigningv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Stub: SA callers never populate this field. -// Avoids syncing the full delegation graph / attestation / keys dependency tree. -type SignedRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - RequestorId []byte `protobuf:"bytes,1,opt,name=requestor_id,json=requestorId,proto3" json:"requestor_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SignedRequest) Reset() { - *x = SignedRequest{} - mi := &file_splitsecure_requestsigning_v1_signed_request_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SignedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignedRequest) ProtoMessage() {} - -func (x *SignedRequest) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_requestsigning_v1_signed_request_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignedRequest.ProtoReflect.Descriptor instead. -func (*SignedRequest) Descriptor() ([]byte, []int) { - return file_splitsecure_requestsigning_v1_signed_request_proto_rawDescGZIP(), []int{0} -} - -func (x *SignedRequest) GetRequestorId() []byte { - if x != nil { - return x.RequestorId - } - return nil -} - -var File_splitsecure_requestsigning_v1_signed_request_proto protoreflect.FileDescriptor - -const file_splitsecure_requestsigning_v1_signed_request_proto_rawDesc = "" + - "\n" + - "2splitsecure/requestsigning/v1/signed_request.proto\x12\x1dsplitsecure.requestsigning.v1\"2\n" + - "\rSignedRequest\x12!\n" + - "\frequestor_id\x18\x01 \x01(\fR\vrequestorIdB\xc0\x02\n" + - "!com.splitsecure.requestsigning.v1B\x12SignedRequestProtoP\x01Zqgithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/requestsigning/v1;requestsigningv1\xa2\x02\x03SRX\xaa\x02\x1dSplitsecure.Requestsigning.V1\xca\x02\x1dSplitsecure\\Requestsigning\\V1\xe2\x02)Splitsecure\\Requestsigning\\V1\\GPBMetadata\xea\x02\x1fSplitsecure::Requestsigning::V1b\x06proto3" - -var ( - file_splitsecure_requestsigning_v1_signed_request_proto_rawDescOnce sync.Once - file_splitsecure_requestsigning_v1_signed_request_proto_rawDescData []byte -) - -func file_splitsecure_requestsigning_v1_signed_request_proto_rawDescGZIP() []byte { - file_splitsecure_requestsigning_v1_signed_request_proto_rawDescOnce.Do(func() { - file_splitsecure_requestsigning_v1_signed_request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_requestsigning_v1_signed_request_proto_rawDesc), len(file_splitsecure_requestsigning_v1_signed_request_proto_rawDesc))) - }) - return file_splitsecure_requestsigning_v1_signed_request_proto_rawDescData -} - -var file_splitsecure_requestsigning_v1_signed_request_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_splitsecure_requestsigning_v1_signed_request_proto_goTypes = []any{ - (*SignedRequest)(nil), // 0: splitsecure.requestsigning.v1.SignedRequest -} -var file_splitsecure_requestsigning_v1_signed_request_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_splitsecure_requestsigning_v1_signed_request_proto_init() } -func file_splitsecure_requestsigning_v1_signed_request_proto_init() { - if File_splitsecure_requestsigning_v1_signed_request_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_requestsigning_v1_signed_request_proto_rawDesc), len(file_splitsecure_requestsigning_v1_signed_request_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_requestsigning_v1_signed_request_proto_goTypes, - DependencyIndexes: file_splitsecure_requestsigning_v1_signed_request_proto_depIdxs, - MessageInfos: file_splitsecure_requestsigning_v1_signed_request_proto_msgTypes, - }.Build() - File_splitsecure_requestsigning_v1_signed_request_proto = out.File - file_splitsecure_requestsigning_v1_signed_request_proto_goTypes = nil - file_splitsecure_requestsigning_v1_signed_request_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/saml2metadatafetcherservice/v1/metadata.pb.go b/gen/go/proto/splitsecure/saml2metadatafetcherservice/v1/metadata.pb.go deleted file mode 100644 index 09d296a..0000000 --- a/gen/go/proto/splitsecure/saml2metadatafetcherservice/v1/metadata.pb.go +++ /dev/null @@ -1,2528 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/saml2metadatafetcherservice/v1/metadata.proto - -package saml2metadatafetcherservicev1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type KeyType int32 - -const ( - KeyType_KEY_TYPE_UNSPECIFIED KeyType = 0 - KeyType_KEY_TYPE_SIGNING KeyType = 1 - KeyType_KEY_TYPE_ENCRYPTION KeyType = 2 -) - -// Enum value maps for KeyType. -var ( - KeyType_name = map[int32]string{ - 0: "KEY_TYPE_UNSPECIFIED", - 1: "KEY_TYPE_SIGNING", - 2: "KEY_TYPE_ENCRYPTION", - } - KeyType_value = map[string]int32{ - "KEY_TYPE_UNSPECIFIED": 0, - "KEY_TYPE_SIGNING": 1, - "KEY_TYPE_ENCRYPTION": 2, - } -) - -func (x KeyType) Enum() *KeyType { - p := new(KeyType) - *p = x - return p -} - -func (x KeyType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (KeyType) Descriptor() protoreflect.EnumDescriptor { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_enumTypes[0].Descriptor() -} - -func (KeyType) Type() protoreflect.EnumType { - return &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_enumTypes[0] -} - -func (x KeyType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use KeyType.Descriptor instead. -func (KeyType) EnumDescriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{0} -} - -type ContactType int32 - -const ( - ContactType_CONTACT_TYPE_UNSPECIFIED ContactType = 0 - ContactType_CONTACT_TYPE_TECHNICAL ContactType = 1 - ContactType_CONTACT_TYPE_SUPPORT ContactType = 2 - ContactType_CONTACT_TYPE_ADMINISTRATIVE ContactType = 3 - ContactType_CONTACT_TYPE_BILLING ContactType = 4 - ContactType_CONTACT_TYPE_OTHER ContactType = 5 -) - -// Enum value maps for ContactType. -var ( - ContactType_name = map[int32]string{ - 0: "CONTACT_TYPE_UNSPECIFIED", - 1: "CONTACT_TYPE_TECHNICAL", - 2: "CONTACT_TYPE_SUPPORT", - 3: "CONTACT_TYPE_ADMINISTRATIVE", - 4: "CONTACT_TYPE_BILLING", - 5: "CONTACT_TYPE_OTHER", - } - ContactType_value = map[string]int32{ - "CONTACT_TYPE_UNSPECIFIED": 0, - "CONTACT_TYPE_TECHNICAL": 1, - "CONTACT_TYPE_SUPPORT": 2, - "CONTACT_TYPE_ADMINISTRATIVE": 3, - "CONTACT_TYPE_BILLING": 4, - "CONTACT_TYPE_OTHER": 5, - } -) - -func (x ContactType) Enum() *ContactType { - p := new(ContactType) - *p = x - return p -} - -func (x ContactType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ContactType) Descriptor() protoreflect.EnumDescriptor { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_enumTypes[1].Descriptor() -} - -func (ContactType) Type() protoreflect.EnumType { - return &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_enumTypes[1] -} - -func (x ContactType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ContactType.Descriptor instead. -func (ContactType) EnumDescriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{1} -} - -// Metadata is the top-level wrapper for SAML metadata -type Metadata struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Content: - // - // *Metadata_EntityDescriptor - Content isMetadata_Content `protobuf_oneof:"content"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Metadata) Reset() { - *x = Metadata{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Metadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Metadata) ProtoMessage() {} - -func (x *Metadata) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. -func (*Metadata) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{0} -} - -func (x *Metadata) GetContent() isMetadata_Content { - if x != nil { - return x.Content - } - return nil -} - -func (x *Metadata) GetEntityDescriptor() *EntityDescriptor { - if x != nil { - if x, ok := x.Content.(*Metadata_EntityDescriptor); ok { - return x.EntityDescriptor - } - } - return nil -} - -type isMetadata_Content interface { - isMetadata_Content() -} - -type Metadata_EntityDescriptor struct { - EntityDescriptor *EntityDescriptor `protobuf:"bytes,1,opt,name=entity_descriptor,json=entityDescriptor,proto3,oneof"` // EntitiesDescriptor entities_descriptor = 2; -} - -func (*Metadata_EntityDescriptor) isMetadata_Content() {} - -// EntityDescriptor represents a SAML entity (IdP or SP) -type EntityDescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: unique identifier for the entity (max 1024 chars) - EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` - // Optional: signature over the descriptor - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - // Optional: extension elements - Extensions *Extensions `protobuf:"bytes,3,opt,name=extensions,proto3" json:"extensions,omitempty"` - // Role descriptors - at least one required - IdpSsoDescriptor []*IDPSSODescriptor `protobuf:"bytes,4,rep,name=idp_sso_descriptor,json=idpSsoDescriptor,proto3" json:"idp_sso_descriptor,omitempty"` - SpSsoDescriptor []*SPSSODescriptor `protobuf:"bytes,5,rep,name=sp_sso_descriptor,json=spSsoDescriptor,proto3" json:"sp_sso_descriptor,omitempty"` - AuthnAuthorityDescriptor []*AuthnAuthorityDescriptor `protobuf:"bytes,6,rep,name=authn_authority_descriptor,json=authnAuthorityDescriptor,proto3" json:"authn_authority_descriptor,omitempty"` - AttributeAuthorityDescriptor []*AttributeAuthorityDescriptor `protobuf:"bytes,7,rep,name=attribute_authority_descriptor,json=attributeAuthorityDescriptor,proto3" json:"attribute_authority_descriptor,omitempty"` - PdpDescriptor []*PDPDescriptor `protobuf:"bytes,8,rep,name=pdp_descriptor,json=pdpDescriptor,proto3" json:"pdp_descriptor,omitempty"` - // Alternative: affiliation descriptor (mutually exclusive with role descriptors) - AffiliationDescriptor *AffiliationDescriptor `protobuf:"bytes,9,opt,name=affiliation_descriptor,json=affiliationDescriptor,proto3" json:"affiliation_descriptor,omitempty"` - // Optional: organization information - Organization *Organization `protobuf:"bytes,10,opt,name=organization,proto3" json:"organization,omitempty"` - // Optional: contact persons - ContactPerson []*ContactPerson `protobuf:"bytes,11,rep,name=contact_person,json=contactPerson,proto3" json:"contact_person,omitempty"` - // Optional: additional metadata locations - AdditionalMetadataLocation []*AdditionalMetadataLocation `protobuf:"bytes,12,rep,name=additional_metadata_location,json=additionalMetadataLocation,proto3" json:"additional_metadata_location,omitempty"` - // Optional: validity period - ValidUntil *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` - // Optional: cache duration - CacheDuration *durationpb.Duration `protobuf:"bytes,14,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"` - // Optional: ID attribute - Id string `protobuf:"bytes,15,opt,name=id,proto3" json:"id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EntityDescriptor) Reset() { - *x = EntityDescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EntityDescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EntityDescriptor) ProtoMessage() {} - -func (x *EntityDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EntityDescriptor.ProtoReflect.Descriptor instead. -func (*EntityDescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{1} -} - -func (x *EntityDescriptor) GetEntityId() string { - if x != nil { - return x.EntityId - } - return "" -} - -func (x *EntityDescriptor) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (x *EntityDescriptor) GetExtensions() *Extensions { - if x != nil { - return x.Extensions - } - return nil -} - -func (x *EntityDescriptor) GetIdpSsoDescriptor() []*IDPSSODescriptor { - if x != nil { - return x.IdpSsoDescriptor - } - return nil -} - -func (x *EntityDescriptor) GetSpSsoDescriptor() []*SPSSODescriptor { - if x != nil { - return x.SpSsoDescriptor - } - return nil -} - -func (x *EntityDescriptor) GetAuthnAuthorityDescriptor() []*AuthnAuthorityDescriptor { - if x != nil { - return x.AuthnAuthorityDescriptor - } - return nil -} - -func (x *EntityDescriptor) GetAttributeAuthorityDescriptor() []*AttributeAuthorityDescriptor { - if x != nil { - return x.AttributeAuthorityDescriptor - } - return nil -} - -func (x *EntityDescriptor) GetPdpDescriptor() []*PDPDescriptor { - if x != nil { - return x.PdpDescriptor - } - return nil -} - -func (x *EntityDescriptor) GetAffiliationDescriptor() *AffiliationDescriptor { - if x != nil { - return x.AffiliationDescriptor - } - return nil -} - -func (x *EntityDescriptor) GetOrganization() *Organization { - if x != nil { - return x.Organization - } - return nil -} - -func (x *EntityDescriptor) GetContactPerson() []*ContactPerson { - if x != nil { - return x.ContactPerson - } - return nil -} - -func (x *EntityDescriptor) GetAdditionalMetadataLocation() []*AdditionalMetadataLocation { - if x != nil { - return x.AdditionalMetadataLocation - } - return nil -} - -func (x *EntityDescriptor) GetValidUntil() *timestamppb.Timestamp { - if x != nil { - return x.ValidUntil - } - return nil -} - -func (x *EntityDescriptor) GetCacheDuration() *durationpb.Duration { - if x != nil { - return x.CacheDuration - } - return nil -} - -func (x *EntityDescriptor) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// EntitiesDescriptor represents a collection of entities -type EntitiesDescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Optional: signature over the descriptor - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - // Optional: extension elements - Extensions *Extensions `protobuf:"bytes,2,opt,name=extensions,proto3" json:"extensions,omitempty"` - // Child entity or entities descriptors (at least one required) - EntityDescriptor []*EntityDescriptor `protobuf:"bytes,3,rep,name=entity_descriptor,json=entityDescriptor,proto3" json:"entity_descriptor,omitempty"` - EntitiesDescriptor []*EntitiesDescriptor `protobuf:"bytes,4,rep,name=entities_descriptor,json=entitiesDescriptor,proto3" json:"entities_descriptor,omitempty"` - // Optional: validity period - ValidUntil *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` - // Optional: cache duration - CacheDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"` - // Optional: name - Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` - // Optional: ID attribute - Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EntitiesDescriptor) Reset() { - *x = EntitiesDescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EntitiesDescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EntitiesDescriptor) ProtoMessage() {} - -func (x *EntitiesDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EntitiesDescriptor.ProtoReflect.Descriptor instead. -func (*EntitiesDescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{2} -} - -func (x *EntitiesDescriptor) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (x *EntitiesDescriptor) GetExtensions() *Extensions { - if x != nil { - return x.Extensions - } - return nil -} - -func (x *EntitiesDescriptor) GetEntityDescriptor() []*EntityDescriptor { - if x != nil { - return x.EntityDescriptor - } - return nil -} - -func (x *EntitiesDescriptor) GetEntitiesDescriptor() []*EntitiesDescriptor { - if x != nil { - return x.EntitiesDescriptor - } - return nil -} - -func (x *EntitiesDescriptor) GetValidUntil() *timestamppb.Timestamp { - if x != nil { - return x.ValidUntil - } - return nil -} - -func (x *EntitiesDescriptor) GetCacheDuration() *durationpb.Duration { - if x != nil { - return x.CacheDuration - } - return nil -} - -func (x *EntitiesDescriptor) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *EntitiesDescriptor) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// IDPSSODescriptor represents an Identity Provider SSO descriptor -type IDPSSODescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Base SSO descriptor fields - Base *SSODescriptorType `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Optional: whether the IdP wants AuthnRequests to be signed - WantAuthnRequestsSigned bool `protobuf:"varint,2,opt,name=want_authn_requests_signed,json=wantAuthnRequestsSigned,proto3" json:"want_authn_requests_signed,omitempty"` - // Required: single sign-on service endpoints (at least one) - SingleSignOnService []*Endpoint `protobuf:"bytes,3,rep,name=single_sign_on_service,json=singleSignOnService,proto3" json:"single_sign_on_service,omitempty"` - // Optional: name ID mapping service endpoints - NameIdMappingService []*Endpoint `protobuf:"bytes,4,rep,name=name_id_mapping_service,json=nameIdMappingService,proto3" json:"name_id_mapping_service,omitempty"` - // Optional: assertion ID request service endpoints - AssertionIdRequestService []*Endpoint `protobuf:"bytes,5,rep,name=assertion_id_request_service,json=assertionIdRequestService,proto3" json:"assertion_id_request_service,omitempty"` - // Optional: supported attribute profiles - AttributeProfile []string `protobuf:"bytes,6,rep,name=attribute_profile,json=attributeProfile,proto3" json:"attribute_profile,omitempty"` - // Optional: supported attributes - Attribute []*Attribute `protobuf:"bytes,7,rep,name=attribute,proto3" json:"attribute,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IDPSSODescriptor) Reset() { - *x = IDPSSODescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IDPSSODescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IDPSSODescriptor) ProtoMessage() {} - -func (x *IDPSSODescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IDPSSODescriptor.ProtoReflect.Descriptor instead. -func (*IDPSSODescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{3} -} - -func (x *IDPSSODescriptor) GetBase() *SSODescriptorType { - if x != nil { - return x.Base - } - return nil -} - -func (x *IDPSSODescriptor) GetWantAuthnRequestsSigned() bool { - if x != nil { - return x.WantAuthnRequestsSigned - } - return false -} - -func (x *IDPSSODescriptor) GetSingleSignOnService() []*Endpoint { - if x != nil { - return x.SingleSignOnService - } - return nil -} - -func (x *IDPSSODescriptor) GetNameIdMappingService() []*Endpoint { - if x != nil { - return x.NameIdMappingService - } - return nil -} - -func (x *IDPSSODescriptor) GetAssertionIdRequestService() []*Endpoint { - if x != nil { - return x.AssertionIdRequestService - } - return nil -} - -func (x *IDPSSODescriptor) GetAttributeProfile() []string { - if x != nil { - return x.AttributeProfile - } - return nil -} - -func (x *IDPSSODescriptor) GetAttribute() []*Attribute { - if x != nil { - return x.Attribute - } - return nil -} - -// SPSSODescriptor represents a Service Provider SSO descriptor -type SPSSODescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Base SSO descriptor fields - Base *SSODescriptorType `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Optional: whether the SP signs AuthnRequests - AuthnRequestsSigned bool `protobuf:"varint,2,opt,name=authn_requests_signed,json=authnRequestsSigned,proto3" json:"authn_requests_signed,omitempty"` - // Optional: whether the SP wants assertions to be signed - WantAssertionsSigned bool `protobuf:"varint,3,opt,name=want_assertions_signed,json=wantAssertionsSigned,proto3" json:"want_assertions_signed,omitempty"` - // Required: assertion consumer service endpoints (at least one) - AssertionConsumerService []*IndexedEndpoint `protobuf:"bytes,4,rep,name=assertion_consumer_service,json=assertionConsumerService,proto3" json:"assertion_consumer_service,omitempty"` - // Optional: attribute consuming services - AttributeConsumingService []*AttributeConsumingService `protobuf:"bytes,5,rep,name=attribute_consuming_service,json=attributeConsumingService,proto3" json:"attribute_consuming_service,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SPSSODescriptor) Reset() { - *x = SPSSODescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SPSSODescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SPSSODescriptor) ProtoMessage() {} - -func (x *SPSSODescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SPSSODescriptor.ProtoReflect.Descriptor instead. -func (*SPSSODescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{4} -} - -func (x *SPSSODescriptor) GetBase() *SSODescriptorType { - if x != nil { - return x.Base - } - return nil -} - -func (x *SPSSODescriptor) GetAuthnRequestsSigned() bool { - if x != nil { - return x.AuthnRequestsSigned - } - return false -} - -func (x *SPSSODescriptor) GetWantAssertionsSigned() bool { - if x != nil { - return x.WantAssertionsSigned - } - return false -} - -func (x *SPSSODescriptor) GetAssertionConsumerService() []*IndexedEndpoint { - if x != nil { - return x.AssertionConsumerService - } - return nil -} - -func (x *SPSSODescriptor) GetAttributeConsumingService() []*AttributeConsumingService { - if x != nil { - return x.AttributeConsumingService - } - return nil -} - -// AuthnAuthorityDescriptor represents an Authentication Authority descriptor -type AuthnAuthorityDescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Base role descriptor fields - Base *RoleDescriptorType `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Required: authentication query service endpoints (at least one) - AuthnQueryService []*Endpoint `protobuf:"bytes,2,rep,name=authn_query_service,json=authnQueryService,proto3" json:"authn_query_service,omitempty"` - // Optional: assertion ID request service endpoints - AssertionIdRequestService []*Endpoint `protobuf:"bytes,3,rep,name=assertion_id_request_service,json=assertionIdRequestService,proto3" json:"assertion_id_request_service,omitempty"` - // Optional: supported name ID formats - NameIdFormat []string `protobuf:"bytes,4,rep,name=name_id_format,json=nameIdFormat,proto3" json:"name_id_format,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AuthnAuthorityDescriptor) Reset() { - *x = AuthnAuthorityDescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AuthnAuthorityDescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthnAuthorityDescriptor) ProtoMessage() {} - -func (x *AuthnAuthorityDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuthnAuthorityDescriptor.ProtoReflect.Descriptor instead. -func (*AuthnAuthorityDescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{5} -} - -func (x *AuthnAuthorityDescriptor) GetBase() *RoleDescriptorType { - if x != nil { - return x.Base - } - return nil -} - -func (x *AuthnAuthorityDescriptor) GetAuthnQueryService() []*Endpoint { - if x != nil { - return x.AuthnQueryService - } - return nil -} - -func (x *AuthnAuthorityDescriptor) GetAssertionIdRequestService() []*Endpoint { - if x != nil { - return x.AssertionIdRequestService - } - return nil -} - -func (x *AuthnAuthorityDescriptor) GetNameIdFormat() []string { - if x != nil { - return x.NameIdFormat - } - return nil -} - -// PDPDescriptor represents a Policy Decision Point descriptor -type PDPDescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Base role descriptor fields - Base *RoleDescriptorType `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Required: authorization service endpoints (at least one) - AuthzService []*Endpoint `protobuf:"bytes,2,rep,name=authz_service,json=authzService,proto3" json:"authz_service,omitempty"` - // Optional: assertion ID request service endpoints - AssertionIdRequestService []*Endpoint `protobuf:"bytes,3,rep,name=assertion_id_request_service,json=assertionIdRequestService,proto3" json:"assertion_id_request_service,omitempty"` - // Optional: supported name ID formats - NameIdFormat []string `protobuf:"bytes,4,rep,name=name_id_format,json=nameIdFormat,proto3" json:"name_id_format,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PDPDescriptor) Reset() { - *x = PDPDescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PDPDescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PDPDescriptor) ProtoMessage() {} - -func (x *PDPDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PDPDescriptor.ProtoReflect.Descriptor instead. -func (*PDPDescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{6} -} - -func (x *PDPDescriptor) GetBase() *RoleDescriptorType { - if x != nil { - return x.Base - } - return nil -} - -func (x *PDPDescriptor) GetAuthzService() []*Endpoint { - if x != nil { - return x.AuthzService - } - return nil -} - -func (x *PDPDescriptor) GetAssertionIdRequestService() []*Endpoint { - if x != nil { - return x.AssertionIdRequestService - } - return nil -} - -func (x *PDPDescriptor) GetNameIdFormat() []string { - if x != nil { - return x.NameIdFormat - } - return nil -} - -// AttributeAuthorityDescriptor represents an Attribute Authority descriptor -type AttributeAuthorityDescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Base role descriptor fields - Base *RoleDescriptorType `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Required: attribute service endpoints (at least one) - AttributeService []*Endpoint `protobuf:"bytes,2,rep,name=attribute_service,json=attributeService,proto3" json:"attribute_service,omitempty"` - // Optional: assertion ID request service endpoints - AssertionIdRequestService []*Endpoint `protobuf:"bytes,3,rep,name=assertion_id_request_service,json=assertionIdRequestService,proto3" json:"assertion_id_request_service,omitempty"` - // Optional: supported name ID formats - NameIdFormat []string `protobuf:"bytes,4,rep,name=name_id_format,json=nameIdFormat,proto3" json:"name_id_format,omitempty"` - // Optional: supported attribute profiles - AttributeProfile []string `protobuf:"bytes,5,rep,name=attribute_profile,json=attributeProfile,proto3" json:"attribute_profile,omitempty"` - // Optional: supported attributes - Attribute []*Attribute `protobuf:"bytes,6,rep,name=attribute,proto3" json:"attribute,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AttributeAuthorityDescriptor) Reset() { - *x = AttributeAuthorityDescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AttributeAuthorityDescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AttributeAuthorityDescriptor) ProtoMessage() {} - -func (x *AttributeAuthorityDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AttributeAuthorityDescriptor.ProtoReflect.Descriptor instead. -func (*AttributeAuthorityDescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{7} -} - -func (x *AttributeAuthorityDescriptor) GetBase() *RoleDescriptorType { - if x != nil { - return x.Base - } - return nil -} - -func (x *AttributeAuthorityDescriptor) GetAttributeService() []*Endpoint { - if x != nil { - return x.AttributeService - } - return nil -} - -func (x *AttributeAuthorityDescriptor) GetAssertionIdRequestService() []*Endpoint { - if x != nil { - return x.AssertionIdRequestService - } - return nil -} - -func (x *AttributeAuthorityDescriptor) GetNameIdFormat() []string { - if x != nil { - return x.NameIdFormat - } - return nil -} - -func (x *AttributeAuthorityDescriptor) GetAttributeProfile() []string { - if x != nil { - return x.AttributeProfile - } - return nil -} - -func (x *AttributeAuthorityDescriptor) GetAttribute() []*Attribute { - if x != nil { - return x.Attribute - } - return nil -} - -// SSODescriptorType is the base type for SSO descriptors -type SSODescriptorType struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Base role descriptor fields - Base *RoleDescriptorType `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Optional: artifact resolution service endpoints - ArtifactResolutionService []*IndexedEndpoint `protobuf:"bytes,2,rep,name=artifact_resolution_service,json=artifactResolutionService,proto3" json:"artifact_resolution_service,omitempty"` - // Optional: single logout service endpoints - SingleLogoutService []*Endpoint `protobuf:"bytes,3,rep,name=single_logout_service,json=singleLogoutService,proto3" json:"single_logout_service,omitempty"` - // Optional: manage name ID service endpoints - ManageNameIdService []*Endpoint `protobuf:"bytes,4,rep,name=manage_name_id_service,json=manageNameIdService,proto3" json:"manage_name_id_service,omitempty"` - // Optional: supported name ID formats - NameIdFormat []string `protobuf:"bytes,5,rep,name=name_id_format,json=nameIdFormat,proto3" json:"name_id_format,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SSODescriptorType) Reset() { - *x = SSODescriptorType{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SSODescriptorType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SSODescriptorType) ProtoMessage() {} - -func (x *SSODescriptorType) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SSODescriptorType.ProtoReflect.Descriptor instead. -func (*SSODescriptorType) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{8} -} - -func (x *SSODescriptorType) GetBase() *RoleDescriptorType { - if x != nil { - return x.Base - } - return nil -} - -func (x *SSODescriptorType) GetArtifactResolutionService() []*IndexedEndpoint { - if x != nil { - return x.ArtifactResolutionService - } - return nil -} - -func (x *SSODescriptorType) GetSingleLogoutService() []*Endpoint { - if x != nil { - return x.SingleLogoutService - } - return nil -} - -func (x *SSODescriptorType) GetManageNameIdService() []*Endpoint { - if x != nil { - return x.ManageNameIdService - } - return nil -} - -func (x *SSODescriptorType) GetNameIdFormat() []string { - if x != nil { - return x.NameIdFormat - } - return nil -} - -// RoleDescriptorType is the base type for all role descriptors -type RoleDescriptorType struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Optional: signature over the descriptor - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - // Optional: extension elements - Extensions *Extensions `protobuf:"bytes,2,opt,name=extensions,proto3" json:"extensions,omitempty"` - // Optional: key descriptors - KeyDescriptor []*KeyDescriptor `protobuf:"bytes,3,rep,name=key_descriptor,json=keyDescriptor,proto3" json:"key_descriptor,omitempty"` - // Optional: organization - Organization *Organization `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` - // Optional: contact persons - ContactPerson []*ContactPerson `protobuf:"bytes,5,rep,name=contact_person,json=contactPerson,proto3" json:"contact_person,omitempty"` - // Optional: protocol support enumeration (required, space-separated URIs) - ProtocolSupportEnumeration []string `protobuf:"bytes,6,rep,name=protocol_support_enumeration,json=protocolSupportEnumeration,proto3" json:"protocol_support_enumeration,omitempty"` - // Optional: error URL - ErrorUrl string `protobuf:"bytes,7,opt,name=error_url,json=errorUrl,proto3" json:"error_url,omitempty"` - // Optional: validity period - ValidUntil *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` - // Optional: cache duration - CacheDuration *durationpb.Duration `protobuf:"bytes,9,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"` - // Optional: ID attribute - Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RoleDescriptorType) Reset() { - *x = RoleDescriptorType{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RoleDescriptorType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RoleDescriptorType) ProtoMessage() {} - -func (x *RoleDescriptorType) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RoleDescriptorType.ProtoReflect.Descriptor instead. -func (*RoleDescriptorType) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{9} -} - -func (x *RoleDescriptorType) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (x *RoleDescriptorType) GetExtensions() *Extensions { - if x != nil { - return x.Extensions - } - return nil -} - -func (x *RoleDescriptorType) GetKeyDescriptor() []*KeyDescriptor { - if x != nil { - return x.KeyDescriptor - } - return nil -} - -func (x *RoleDescriptorType) GetOrganization() *Organization { - if x != nil { - return x.Organization - } - return nil -} - -func (x *RoleDescriptorType) GetContactPerson() []*ContactPerson { - if x != nil { - return x.ContactPerson - } - return nil -} - -func (x *RoleDescriptorType) GetProtocolSupportEnumeration() []string { - if x != nil { - return x.ProtocolSupportEnumeration - } - return nil -} - -func (x *RoleDescriptorType) GetErrorUrl() string { - if x != nil { - return x.ErrorUrl - } - return "" -} - -func (x *RoleDescriptorType) GetValidUntil() *timestamppb.Timestamp { - if x != nil { - return x.ValidUntil - } - return nil -} - -func (x *RoleDescriptorType) GetCacheDuration() *durationpb.Duration { - if x != nil { - return x.CacheDuration - } - return nil -} - -func (x *RoleDescriptorType) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// KeyDescriptor describes a cryptographic key -type KeyDescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Optional: key use (signing or encryption) - Use KeyType `protobuf:"varint,1,opt,name=use,proto3,enum=splitsecure.saml2metadatafetcherservice.v1.KeyType" json:"use,omitempty"` - // Required: key information (X.509 certificate, etc.) - KeyInfo *KeyInfo `protobuf:"bytes,2,opt,name=key_info,json=keyInfo,proto3" json:"key_info,omitempty"` - // Optional: encryption methods supported - EncryptionMethod []*EncryptionMethod `protobuf:"bytes,3,rep,name=encryption_method,json=encryptionMethod,proto3" json:"encryption_method,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *KeyDescriptor) Reset() { - *x = KeyDescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *KeyDescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyDescriptor) ProtoMessage() {} - -func (x *KeyDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyDescriptor.ProtoReflect.Descriptor instead. -func (*KeyDescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{10} -} - -func (x *KeyDescriptor) GetUse() KeyType { - if x != nil { - return x.Use - } - return KeyType_KEY_TYPE_UNSPECIFIED -} - -func (x *KeyDescriptor) GetKeyInfo() *KeyInfo { - if x != nil { - return x.KeyInfo - } - return nil -} - -func (x *KeyDescriptor) GetEncryptionMethod() []*EncryptionMethod { - if x != nil { - return x.EncryptionMethod - } - return nil -} - -// KeyInfo represents key information (simplified from XML dsig) -type KeyInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - // X.509 certificate data - X509Certificate []byte `protobuf:"bytes,1,opt,name=x509_certificate,json=x509Certificate,proto3" json:"x509_certificate,omitempty"` - // Optional: key name - KeyName string `protobuf:"bytes,2,opt,name=key_name,json=keyName,proto3" json:"key_name,omitempty"` - // Optional: raw key value - KeyValue []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *KeyInfo) Reset() { - *x = KeyInfo{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *KeyInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyInfo) ProtoMessage() {} - -func (x *KeyInfo) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyInfo.ProtoReflect.Descriptor instead. -func (*KeyInfo) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{11} -} - -func (x *KeyInfo) GetX509Certificate() []byte { - if x != nil { - return x.X509Certificate - } - return nil -} - -func (x *KeyInfo) GetKeyName() string { - if x != nil { - return x.KeyName - } - return "" -} - -func (x *KeyInfo) GetKeyValue() []byte { - if x != nil { - return x.KeyValue - } - return nil -} - -// EncryptionMethod describes an encryption algorithm -type EncryptionMethod struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: algorithm URI - Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"` - // Optional: key size - KeySize int32 `protobuf:"varint,2,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` - // Optional: OAEP parameters - OaepParams []byte `protobuf:"bytes,3,opt,name=oaep_params,json=oaepParams,proto3" json:"oaep_params,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EncryptionMethod) Reset() { - *x = EncryptionMethod{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EncryptionMethod) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EncryptionMethod) ProtoMessage() {} - -func (x *EncryptionMethod) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EncryptionMethod.ProtoReflect.Descriptor instead. -func (*EncryptionMethod) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{12} -} - -func (x *EncryptionMethod) GetAlgorithm() string { - if x != nil { - return x.Algorithm - } - return "" -} - -func (x *EncryptionMethod) GetKeySize() int32 { - if x != nil { - return x.KeySize - } - return 0 -} - -func (x *EncryptionMethod) GetOaepParams() []byte { - if x != nil { - return x.OaepParams - } - return nil -} - -// Endpoint represents a SAML endpoint -type Endpoint struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: binding URI - Binding string `protobuf:"bytes,1,opt,name=binding,proto3" json:"binding,omitempty"` - // Required: location URI - Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` - // Optional: response location URI - ResponseLocation string `protobuf:"bytes,3,opt,name=response_location,json=responseLocation,proto3" json:"response_location,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Endpoint) Reset() { - *x = Endpoint{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Endpoint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Endpoint) ProtoMessage() {} - -func (x *Endpoint) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. -func (*Endpoint) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{13} -} - -func (x *Endpoint) GetBinding() string { - if x != nil { - return x.Binding - } - return "" -} - -func (x *Endpoint) GetLocation() string { - if x != nil { - return x.Location - } - return "" -} - -func (x *Endpoint) GetResponseLocation() string { - if x != nil { - return x.ResponseLocation - } - return "" -} - -// IndexedEndpoint represents an indexed SAML endpoint -type IndexedEndpoint struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Base endpoint fields - Base *Endpoint `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` - // Required: index - Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` - // Optional: is default - IsDefault bool `protobuf:"varint,3,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IndexedEndpoint) Reset() { - *x = IndexedEndpoint{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IndexedEndpoint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IndexedEndpoint) ProtoMessage() {} - -func (x *IndexedEndpoint) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[14] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IndexedEndpoint.ProtoReflect.Descriptor instead. -func (*IndexedEndpoint) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{14} -} - -func (x *IndexedEndpoint) GetBase() *Endpoint { - if x != nil { - return x.Base - } - return nil -} - -func (x *IndexedEndpoint) GetIndex() uint32 { - if x != nil { - return x.Index - } - return 0 -} - -func (x *IndexedEndpoint) GetIsDefault() bool { - if x != nil { - return x.IsDefault - } - return false -} - -// Organization describes an organization -type Organization struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Optional: extensions - Extensions *Extensions `protobuf:"bytes,1,opt,name=extensions,proto3" json:"extensions,omitempty"` - // Required: organization names (at least one, with language tags) - OrganizationName []*LocalizedName `protobuf:"bytes,2,rep,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` - // Required: organization display names (at least one, with language tags) - OrganizationDisplayName []*LocalizedName `protobuf:"bytes,3,rep,name=organization_display_name,json=organizationDisplayName,proto3" json:"organization_display_name,omitempty"` - // Required: organization URLs (at least one, with language tags) - OrganizationUrl []*LocalizedURI `protobuf:"bytes,4,rep,name=organization_url,json=organizationUrl,proto3" json:"organization_url,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Organization) Reset() { - *x = Organization{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Organization) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Organization) ProtoMessage() {} - -func (x *Organization) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[15] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Organization.ProtoReflect.Descriptor instead. -func (*Organization) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{15} -} - -func (x *Organization) GetExtensions() *Extensions { - if x != nil { - return x.Extensions - } - return nil -} - -func (x *Organization) GetOrganizationName() []*LocalizedName { - if x != nil { - return x.OrganizationName - } - return nil -} - -func (x *Organization) GetOrganizationDisplayName() []*LocalizedName { - if x != nil { - return x.OrganizationDisplayName - } - return nil -} - -func (x *Organization) GetOrganizationUrl() []*LocalizedURI { - if x != nil { - return x.OrganizationUrl - } - return nil -} - -// ContactPerson describes a contact person -type ContactPerson struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: contact type - ContactType ContactType `protobuf:"varint,1,opt,name=contact_type,json=contactType,proto3,enum=splitsecure.saml2metadatafetcherservice.v1.ContactType" json:"contact_type,omitempty"` - // Optional: extensions - Extensions *Extensions `protobuf:"bytes,2,opt,name=extensions,proto3" json:"extensions,omitempty"` - // Optional: company - Company string `protobuf:"bytes,3,opt,name=company,proto3" json:"company,omitempty"` - // Optional: given name - GivenName string `protobuf:"bytes,4,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` - // Optional: surname - Surname string `protobuf:"bytes,5,opt,name=surname,proto3" json:"surname,omitempty"` - // Optional: email addresses - EmailAddress []string `protobuf:"bytes,6,rep,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` - // Optional: telephone numbers - TelephoneNumber []string `protobuf:"bytes,7,rep,name=telephone_number,json=telephoneNumber,proto3" json:"telephone_number,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ContactPerson) Reset() { - *x = ContactPerson{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ContactPerson) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContactPerson) ProtoMessage() {} - -func (x *ContactPerson) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContactPerson.ProtoReflect.Descriptor instead. -func (*ContactPerson) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{16} -} - -func (x *ContactPerson) GetContactType() ContactType { - if x != nil { - return x.ContactType - } - return ContactType_CONTACT_TYPE_UNSPECIFIED -} - -func (x *ContactPerson) GetExtensions() *Extensions { - if x != nil { - return x.Extensions - } - return nil -} - -func (x *ContactPerson) GetCompany() string { - if x != nil { - return x.Company - } - return "" -} - -func (x *ContactPerson) GetGivenName() string { - if x != nil { - return x.GivenName - } - return "" -} - -func (x *ContactPerson) GetSurname() string { - if x != nil { - return x.Surname - } - return "" -} - -func (x *ContactPerson) GetEmailAddress() []string { - if x != nil { - return x.EmailAddress - } - return nil -} - -func (x *ContactPerson) GetTelephoneNumber() []string { - if x != nil { - return x.TelephoneNumber - } - return nil -} - -// AttributeConsumingService describes a service that consumes attributes -type AttributeConsumingService struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: index - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - // Optional: is default - IsDefault bool `protobuf:"varint,2,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` - // Required: service names (at least one, with language tags) - ServiceName []*LocalizedName `protobuf:"bytes,3,rep,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` - // Optional: service descriptions (with language tags) - ServiceDescription []*LocalizedName `protobuf:"bytes,4,rep,name=service_description,json=serviceDescription,proto3" json:"service_description,omitempty"` - // Required: requested attributes (at least one) - RequestedAttribute []*RequestedAttribute `protobuf:"bytes,5,rep,name=requested_attribute,json=requestedAttribute,proto3" json:"requested_attribute,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AttributeConsumingService) Reset() { - *x = AttributeConsumingService{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AttributeConsumingService) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AttributeConsumingService) ProtoMessage() {} - -func (x *AttributeConsumingService) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[17] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AttributeConsumingService.ProtoReflect.Descriptor instead. -func (*AttributeConsumingService) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{17} -} - -func (x *AttributeConsumingService) GetIndex() uint32 { - if x != nil { - return x.Index - } - return 0 -} - -func (x *AttributeConsumingService) GetIsDefault() bool { - if x != nil { - return x.IsDefault - } - return false -} - -func (x *AttributeConsumingService) GetServiceName() []*LocalizedName { - if x != nil { - return x.ServiceName - } - return nil -} - -func (x *AttributeConsumingService) GetServiceDescription() []*LocalizedName { - if x != nil { - return x.ServiceDescription - } - return nil -} - -func (x *AttributeConsumingService) GetRequestedAttribute() []*RequestedAttribute { - if x != nil { - return x.RequestedAttribute - } - return nil -} - -// RequestedAttribute describes an attribute requested by a service -type RequestedAttribute struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Attribute definition - Attribute *Attribute `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"` - // Optional: is required - IsRequired bool `protobuf:"varint,2,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RequestedAttribute) Reset() { - *x = RequestedAttribute{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RequestedAttribute) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestedAttribute) ProtoMessage() {} - -func (x *RequestedAttribute) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestedAttribute.ProtoReflect.Descriptor instead. -func (*RequestedAttribute) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{18} -} - -func (x *RequestedAttribute) GetAttribute() *Attribute { - if x != nil { - return x.Attribute - } - return nil -} - -func (x *RequestedAttribute) GetIsRequired() bool { - if x != nil { - return x.IsRequired - } - return false -} - -// Attribute represents a SAML attribute -type Attribute struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: attribute name - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional: name format - NameFormat string `protobuf:"bytes,2,opt,name=name_format,json=nameFormat,proto3" json:"name_format,omitempty"` - // Optional: friendly name - FriendlyName string `protobuf:"bytes,3,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"` - // Optional: attribute values - AttributeValue []string `protobuf:"bytes,4,rep,name=attribute_value,json=attributeValue,proto3" json:"attribute_value,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Attribute) Reset() { - *x = Attribute{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Attribute) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Attribute) ProtoMessage() {} - -func (x *Attribute) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[19] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Attribute.ProtoReflect.Descriptor instead. -func (*Attribute) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{19} -} - -func (x *Attribute) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Attribute) GetNameFormat() string { - if x != nil { - return x.NameFormat - } - return "" -} - -func (x *Attribute) GetFriendlyName() string { - if x != nil { - return x.FriendlyName - } - return "" -} - -func (x *Attribute) GetAttributeValue() []string { - if x != nil { - return x.AttributeValue - } - return nil -} - -// AffiliationDescriptor describes an affiliation of entities -type AffiliationDescriptor struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: affiliation owner ID - AffiliationOwnerId string `protobuf:"bytes,1,opt,name=affiliation_owner_id,json=affiliationOwnerId,proto3" json:"affiliation_owner_id,omitempty"` - // Optional: signature - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - // Optional: extensions - Extensions *Extensions `protobuf:"bytes,3,opt,name=extensions,proto3" json:"extensions,omitempty"` - // Required: affiliated member entity IDs (at least one) - AffiliateMember []string `protobuf:"bytes,4,rep,name=affiliate_member,json=affiliateMember,proto3" json:"affiliate_member,omitempty"` - // Optional: key descriptors - KeyDescriptor []*KeyDescriptor `protobuf:"bytes,5,rep,name=key_descriptor,json=keyDescriptor,proto3" json:"key_descriptor,omitempty"` - // Optional: validity period - ValidUntil *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` - // Optional: cache duration - CacheDuration *durationpb.Duration `protobuf:"bytes,7,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"` - // Optional: ID attribute - Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AffiliationDescriptor) Reset() { - *x = AffiliationDescriptor{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AffiliationDescriptor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AffiliationDescriptor) ProtoMessage() {} - -func (x *AffiliationDescriptor) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[20] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AffiliationDescriptor.ProtoReflect.Descriptor instead. -func (*AffiliationDescriptor) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{20} -} - -func (x *AffiliationDescriptor) GetAffiliationOwnerId() string { - if x != nil { - return x.AffiliationOwnerId - } - return "" -} - -func (x *AffiliationDescriptor) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (x *AffiliationDescriptor) GetExtensions() *Extensions { - if x != nil { - return x.Extensions - } - return nil -} - -func (x *AffiliationDescriptor) GetAffiliateMember() []string { - if x != nil { - return x.AffiliateMember - } - return nil -} - -func (x *AffiliationDescriptor) GetKeyDescriptor() []*KeyDescriptor { - if x != nil { - return x.KeyDescriptor - } - return nil -} - -func (x *AffiliationDescriptor) GetValidUntil() *timestamppb.Timestamp { - if x != nil { - return x.ValidUntil - } - return nil -} - -func (x *AffiliationDescriptor) GetCacheDuration() *durationpb.Duration { - if x != nil { - return x.CacheDuration - } - return nil -} - -func (x *AffiliationDescriptor) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// AdditionalMetadataLocation points to additional metadata -type AdditionalMetadataLocation struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: namespace - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // Required: location URI - Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AdditionalMetadataLocation) Reset() { - *x = AdditionalMetadataLocation{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AdditionalMetadataLocation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdditionalMetadataLocation) ProtoMessage() {} - -func (x *AdditionalMetadataLocation) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[21] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdditionalMetadataLocation.ProtoReflect.Descriptor instead. -func (*AdditionalMetadataLocation) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{21} -} - -func (x *AdditionalMetadataLocation) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *AdditionalMetadataLocation) GetLocation() string { - if x != nil { - return x.Location - } - return "" -} - -// LocalizedName represents a name with language tag -type LocalizedName struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: name value - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - // Required: language tag (e.g., "en", "es") - Lang string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *LocalizedName) Reset() { - *x = LocalizedName{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *LocalizedName) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LocalizedName) ProtoMessage() {} - -func (x *LocalizedName) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[22] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LocalizedName.ProtoReflect.Descriptor instead. -func (*LocalizedName) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{22} -} - -func (x *LocalizedName) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -func (x *LocalizedName) GetLang() string { - if x != nil { - return x.Lang - } - return "" -} - -// LocalizedURI represents a URI with language tag -type LocalizedURI struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Required: URI value - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - // Required: language tag (e.g., "en", "es") - Lang string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *LocalizedURI) Reset() { - *x = LocalizedURI{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *LocalizedURI) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LocalizedURI) ProtoMessage() {} - -func (x *LocalizedURI) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[23] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LocalizedURI.ProtoReflect.Descriptor instead. -func (*LocalizedURI) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{23} -} - -func (x *LocalizedURI) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -func (x *LocalizedURI) GetLang() string { - if x != nil { - return x.Lang - } - return "" -} - -// Extensions represents extension elements -type Extensions struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Arbitrary extension data (could be structured or raw XML) - Extension []*Extension `protobuf:"bytes,1,rep,name=extension,proto3" json:"extension,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Extensions) Reset() { - *x = Extensions{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Extensions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Extensions) ProtoMessage() {} - -func (x *Extensions) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[24] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Extensions.ProtoReflect.Descriptor instead. -func (*Extensions) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{24} -} - -func (x *Extensions) GetExtension() []*Extension { - if x != nil { - return x.Extension - } - return nil -} - -// Extension represents a single extension element -type Extension struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Extension namespace - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // Extension local name - LocalName string `protobuf:"bytes,2,opt,name=local_name,json=localName,proto3" json:"local_name,omitempty"` - // Extension data (raw XML or serialized proto) - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Extension) Reset() { - *x = Extension{} - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Extension) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Extension) ProtoMessage() {} - -func (x *Extension) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[25] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Extension.ProtoReflect.Descriptor instead. -func (*Extension) Descriptor() ([]byte, []int) { - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP(), []int{25} -} - -func (x *Extension) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *Extension) GetLocalName() string { - if x != nil { - return x.LocalName - } - return "" -} - -func (x *Extension) GetData() []byte { - if x != nil { - return x.Data - } - return nil -} - -var File_splitsecure_saml2metadatafetcherservice_v1_metadata_proto protoreflect.FileDescriptor - -const file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDesc = "" + - "\n" + - "9splitsecure/saml2metadatafetcherservice/v1/metadata.proto\x12*splitsecure.saml2metadatafetcherservice.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x82\x01\n" + - "\bMetadata\x12k\n" + - "\x11entity_descriptor\x18\x01 \x01(\v2<.splitsecure.saml2metadatafetcherservice.v1.EntityDescriptorH\x00R\x10entityDescriptorB\t\n" + - "\acontent\"\xc6\n" + - "\n" + - "\x10EntityDescriptor\x12\x1b\n" + - "\tentity_id\x18\x01 \x01(\tR\bentityId\x12\x1c\n" + - "\tsignature\x18\x02 \x01(\fR\tsignature\x12V\n" + - "\n" + - "extensions\x18\x03 \x01(\v26.splitsecure.saml2metadatafetcherservice.v1.ExtensionsR\n" + - "extensions\x12j\n" + - "\x12idp_sso_descriptor\x18\x04 \x03(\v2<.splitsecure.saml2metadatafetcherservice.v1.IDPSSODescriptorR\x10idpSsoDescriptor\x12g\n" + - "\x11sp_sso_descriptor\x18\x05 \x03(\v2;.splitsecure.saml2metadatafetcherservice.v1.SPSSODescriptorR\x0fspSsoDescriptor\x12\x82\x01\n" + - "\x1aauthn_authority_descriptor\x18\x06 \x03(\v2D.splitsecure.saml2metadatafetcherservice.v1.AuthnAuthorityDescriptorR\x18authnAuthorityDescriptor\x12\x8e\x01\n" + - "\x1eattribute_authority_descriptor\x18\a \x03(\v2H.splitsecure.saml2metadatafetcherservice.v1.AttributeAuthorityDescriptorR\x1cattributeAuthorityDescriptor\x12`\n" + - "\x0epdp_descriptor\x18\b \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.PDPDescriptorR\rpdpDescriptor\x12x\n" + - "\x16affiliation_descriptor\x18\t \x01(\v2A.splitsecure.saml2metadatafetcherservice.v1.AffiliationDescriptorR\x15affiliationDescriptor\x12\\\n" + - "\forganization\x18\n" + - " \x01(\v28.splitsecure.saml2metadatafetcherservice.v1.OrganizationR\forganization\x12`\n" + - "\x0econtact_person\x18\v \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.ContactPersonR\rcontactPerson\x12\x88\x01\n" + - "\x1cadditional_metadata_location\x18\f \x03(\v2F.splitsecure.saml2metadatafetcherservice.v1.AdditionalMetadataLocationR\x1aadditionalMetadataLocation\x12;\n" + - "\vvalid_until\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\n" + - "validUntil\x12@\n" + - "\x0ecache_duration\x18\x0e \x01(\v2\x19.google.protobuf.DurationR\rcacheDuration\x12\x0e\n" + - "\x02id\x18\x0f \x01(\tR\x02id\"\x89\x04\n" + - "\x12EntitiesDescriptor\x12\x1c\n" + - "\tsignature\x18\x01 \x01(\fR\tsignature\x12V\n" + - "\n" + - "extensions\x18\x02 \x01(\v26.splitsecure.saml2metadatafetcherservice.v1.ExtensionsR\n" + - "extensions\x12i\n" + - "\x11entity_descriptor\x18\x03 \x03(\v2<.splitsecure.saml2metadatafetcherservice.v1.EntityDescriptorR\x10entityDescriptor\x12o\n" + - "\x13entities_descriptor\x18\x04 \x03(\v2>.splitsecure.saml2metadatafetcherservice.v1.EntitiesDescriptorR\x12entitiesDescriptor\x12;\n" + - "\vvalid_until\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" + - "validUntil\x12@\n" + - "\x0ecache_duration\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\rcacheDuration\x12\x12\n" + - "\x04name\x18\a \x01(\tR\x04name\x12\x0e\n" + - "\x02id\x18\b \x01(\tR\x02id\"\xf3\x04\n" + - "\x10IDPSSODescriptor\x12Q\n" + - "\x04base\x18\x01 \x01(\v2=.splitsecure.saml2metadatafetcherservice.v1.SSODescriptorTypeR\x04base\x12;\n" + - "\x1awant_authn_requests_signed\x18\x02 \x01(\bR\x17wantAuthnRequestsSigned\x12i\n" + - "\x16single_sign_on_service\x18\x03 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x13singleSignOnService\x12k\n" + - "\x17name_id_mapping_service\x18\x04 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x14nameIdMappingService\x12u\n" + - "\x1cassertion_id_request_service\x18\x05 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x19assertionIdRequestService\x12+\n" + - "\x11attribute_profile\x18\x06 \x03(\tR\x10attributeProfile\x12S\n" + - "\tattribute\x18\a \x03(\v25.splitsecure.saml2metadatafetcherservice.v1.AttributeR\tattribute\"\xd1\x03\n" + - "\x0fSPSSODescriptor\x12Q\n" + - "\x04base\x18\x01 \x01(\v2=.splitsecure.saml2metadatafetcherservice.v1.SSODescriptorTypeR\x04base\x122\n" + - "\x15authn_requests_signed\x18\x02 \x01(\bR\x13authnRequestsSigned\x124\n" + - "\x16want_assertions_signed\x18\x03 \x01(\bR\x14wantAssertionsSigned\x12y\n" + - "\x1aassertion_consumer_service\x18\x04 \x03(\v2;.splitsecure.saml2metadatafetcherservice.v1.IndexedEndpointR\x18assertionConsumerService\x12\x85\x01\n" + - "\x1battribute_consuming_service\x18\x05 \x03(\v2E.splitsecure.saml2metadatafetcherservice.v1.AttributeConsumingServiceR\x19attributeConsumingService\"\xf1\x02\n" + - "\x18AuthnAuthorityDescriptor\x12R\n" + - "\x04base\x18\x01 \x01(\v2>.splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorTypeR\x04base\x12d\n" + - "\x13authn_query_service\x18\x02 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x11authnQueryService\x12u\n" + - "\x1cassertion_id_request_service\x18\x03 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x19assertionIdRequestService\x12$\n" + - "\x0ename_id_format\x18\x04 \x03(\tR\fnameIdFormat\"\xdb\x02\n" + - "\rPDPDescriptor\x12R\n" + - "\x04base\x18\x01 \x01(\v2>.splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorTypeR\x04base\x12Y\n" + - "\rauthz_service\x18\x02 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\fauthzService\x12u\n" + - "\x1cassertion_id_request_service\x18\x03 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x19assertionIdRequestService\x12$\n" + - "\x0ename_id_format\x18\x04 \x03(\tR\fnameIdFormat\"\xf4\x03\n" + - "\x1cAttributeAuthorityDescriptor\x12R\n" + - "\x04base\x18\x01 \x01(\v2>.splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorTypeR\x04base\x12a\n" + - "\x11attribute_service\x18\x02 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x10attributeService\x12u\n" + - "\x1cassertion_id_request_service\x18\x03 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x19assertionIdRequestService\x12$\n" + - "\x0ename_id_format\x18\x04 \x03(\tR\fnameIdFormat\x12+\n" + - "\x11attribute_profile\x18\x05 \x03(\tR\x10attributeProfile\x12S\n" + - "\tattribute\x18\x06 \x03(\v25.splitsecure.saml2metadatafetcherservice.v1.AttributeR\tattribute\"\xdf\x03\n" + - "\x11SSODescriptorType\x12R\n" + - "\x04base\x18\x01 \x01(\v2>.splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorTypeR\x04base\x12{\n" + - "\x1bartifact_resolution_service\x18\x02 \x03(\v2;.splitsecure.saml2metadatafetcherservice.v1.IndexedEndpointR\x19artifactResolutionService\x12h\n" + - "\x15single_logout_service\x18\x03 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x13singleLogoutService\x12i\n" + - "\x16manage_name_id_service\x18\x04 \x03(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x13manageNameIdService\x12$\n" + - "\x0ename_id_format\x18\x05 \x03(\tR\fnameIdFormat\"\x9a\x05\n" + - "\x12RoleDescriptorType\x12\x1c\n" + - "\tsignature\x18\x01 \x01(\fR\tsignature\x12V\n" + - "\n" + - "extensions\x18\x02 \x01(\v26.splitsecure.saml2metadatafetcherservice.v1.ExtensionsR\n" + - "extensions\x12`\n" + - "\x0ekey_descriptor\x18\x03 \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.KeyDescriptorR\rkeyDescriptor\x12\\\n" + - "\forganization\x18\x04 \x01(\v28.splitsecure.saml2metadatafetcherservice.v1.OrganizationR\forganization\x12`\n" + - "\x0econtact_person\x18\x05 \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.ContactPersonR\rcontactPerson\x12@\n" + - "\x1cprotocol_support_enumeration\x18\x06 \x03(\tR\x1aprotocolSupportEnumeration\x12\x1b\n" + - "\terror_url\x18\a \x01(\tR\berrorUrl\x12;\n" + - "\vvalid_until\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\n" + - "validUntil\x12@\n" + - "\x0ecache_duration\x18\t \x01(\v2\x19.google.protobuf.DurationR\rcacheDuration\x12\x0e\n" + - "\x02id\x18\n" + - " \x01(\tR\x02id\"\x91\x02\n" + - "\rKeyDescriptor\x12E\n" + - "\x03use\x18\x01 \x01(\x0e23.splitsecure.saml2metadatafetcherservice.v1.KeyTypeR\x03use\x12N\n" + - "\bkey_info\x18\x02 \x01(\v23.splitsecure.saml2metadatafetcherservice.v1.KeyInfoR\akeyInfo\x12i\n" + - "\x11encryption_method\x18\x03 \x03(\v2<.splitsecure.saml2metadatafetcherservice.v1.EncryptionMethodR\x10encryptionMethod\"l\n" + - "\aKeyInfo\x12)\n" + - "\x10x509_certificate\x18\x01 \x01(\fR\x0fx509Certificate\x12\x19\n" + - "\bkey_name\x18\x02 \x01(\tR\akeyName\x12\x1b\n" + - "\tkey_value\x18\x03 \x01(\fR\bkeyValue\"l\n" + - "\x10EncryptionMethod\x12\x1c\n" + - "\talgorithm\x18\x01 \x01(\tR\talgorithm\x12\x19\n" + - "\bkey_size\x18\x02 \x01(\x05R\akeySize\x12\x1f\n" + - "\voaep_params\x18\x03 \x01(\fR\n" + - "oaepParams\"m\n" + - "\bEndpoint\x12\x18\n" + - "\abinding\x18\x01 \x01(\tR\abinding\x12\x1a\n" + - "\blocation\x18\x02 \x01(\tR\blocation\x12+\n" + - "\x11response_location\x18\x03 \x01(\tR\x10responseLocation\"\x90\x01\n" + - "\x0fIndexedEndpoint\x12H\n" + - "\x04base\x18\x01 \x01(\v24.splitsecure.saml2metadatafetcherservice.v1.EndpointR\x04base\x12\x14\n" + - "\x05index\x18\x02 \x01(\rR\x05index\x12\x1d\n" + - "\n" + - "is_default\x18\x03 \x01(\bR\tisDefault\"\xaa\x03\n" + - "\fOrganization\x12V\n" + - "\n" + - "extensions\x18\x01 \x01(\v26.splitsecure.saml2metadatafetcherservice.v1.ExtensionsR\n" + - "extensions\x12f\n" + - "\x11organization_name\x18\x02 \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.LocalizedNameR\x10organizationName\x12u\n" + - "\x19organization_display_name\x18\x03 \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.LocalizedNameR\x17organizationDisplayName\x12c\n" + - "\x10organization_url\x18\x04 \x03(\v28.splitsecure.saml2metadatafetcherservice.v1.LocalizedURIR\x0forganizationUrl\"\xe6\x02\n" + - "\rContactPerson\x12Z\n" + - "\fcontact_type\x18\x01 \x01(\x0e27.splitsecure.saml2metadatafetcherservice.v1.ContactTypeR\vcontactType\x12V\n" + - "\n" + - "extensions\x18\x02 \x01(\v26.splitsecure.saml2metadatafetcherservice.v1.ExtensionsR\n" + - "extensions\x12\x18\n" + - "\acompany\x18\x03 \x01(\tR\acompany\x12\x1d\n" + - "\n" + - "given_name\x18\x04 \x01(\tR\tgivenName\x12\x18\n" + - "\asurname\x18\x05 \x01(\tR\asurname\x12#\n" + - "\remail_address\x18\x06 \x03(\tR\femailAddress\x12)\n" + - "\x10telephone_number\x18\a \x03(\tR\x0ftelephoneNumber\"\x8b\x03\n" + - "\x19AttributeConsumingService\x12\x14\n" + - "\x05index\x18\x01 \x01(\rR\x05index\x12\x1d\n" + - "\n" + - "is_default\x18\x02 \x01(\bR\tisDefault\x12\\\n" + - "\fservice_name\x18\x03 \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.LocalizedNameR\vserviceName\x12j\n" + - "\x13service_description\x18\x04 \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.LocalizedNameR\x12serviceDescription\x12o\n" + - "\x13requested_attribute\x18\x05 \x03(\v2>.splitsecure.saml2metadatafetcherservice.v1.RequestedAttributeR\x12requestedAttribute\"\x8a\x01\n" + - "\x12RequestedAttribute\x12S\n" + - "\tattribute\x18\x01 \x01(\v25.splitsecure.saml2metadatafetcherservice.v1.AttributeR\tattribute\x12\x1f\n" + - "\vis_required\x18\x02 \x01(\bR\n" + - "isRequired\"\x8e\x01\n" + - "\tAttribute\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n" + - "\vname_format\x18\x02 \x01(\tR\n" + - "nameFormat\x12#\n" + - "\rfriendly_name\x18\x03 \x01(\tR\ffriendlyName\x12'\n" + - "\x0fattribute_value\x18\x04 \x03(\tR\x0eattributeValue\"\xdb\x03\n" + - "\x15AffiliationDescriptor\x120\n" + - "\x14affiliation_owner_id\x18\x01 \x01(\tR\x12affiliationOwnerId\x12\x1c\n" + - "\tsignature\x18\x02 \x01(\fR\tsignature\x12V\n" + - "\n" + - "extensions\x18\x03 \x01(\v26.splitsecure.saml2metadatafetcherservice.v1.ExtensionsR\n" + - "extensions\x12)\n" + - "\x10affiliate_member\x18\x04 \x03(\tR\x0faffiliateMember\x12`\n" + - "\x0ekey_descriptor\x18\x05 \x03(\v29.splitsecure.saml2metadatafetcherservice.v1.KeyDescriptorR\rkeyDescriptor\x12;\n" + - "\vvalid_until\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\n" + - "validUntil\x12@\n" + - "\x0ecache_duration\x18\a \x01(\v2\x19.google.protobuf.DurationR\rcacheDuration\x12\x0e\n" + - "\x02id\x18\b \x01(\tR\x02id\"V\n" + - "\x1aAdditionalMetadataLocation\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + - "\blocation\x18\x02 \x01(\tR\blocation\"9\n" + - "\rLocalizedName\x12\x14\n" + - "\x05value\x18\x01 \x01(\tR\x05value\x12\x12\n" + - "\x04lang\x18\x02 \x01(\tR\x04lang\"8\n" + - "\fLocalizedURI\x12\x14\n" + - "\x05value\x18\x01 \x01(\tR\x05value\x12\x12\n" + - "\x04lang\x18\x02 \x01(\tR\x04lang\"a\n" + - "\n" + - "Extensions\x12S\n" + - "\textension\x18\x01 \x03(\v25.splitsecure.saml2metadatafetcherservice.v1.ExtensionR\textension\"\\\n" + - "\tExtension\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1d\n" + - "\n" + - "local_name\x18\x02 \x01(\tR\tlocalName\x12\x12\n" + - "\x04data\x18\x03 \x01(\fR\x04data*R\n" + - "\aKeyType\x12\x18\n" + - "\x14KEY_TYPE_UNSPECIFIED\x10\x00\x12\x14\n" + - "\x10KEY_TYPE_SIGNING\x10\x01\x12\x17\n" + - "\x13KEY_TYPE_ENCRYPTION\x10\x02*\xb4\x01\n" + - "\vContactType\x12\x1c\n" + - "\x18CONTACT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" + - "\x16CONTACT_TYPE_TECHNICAL\x10\x01\x12\x18\n" + - "\x14CONTACT_TYPE_SUPPORT\x10\x02\x12\x1f\n" + - "\x1bCONTACT_TYPE_ADMINISTRATIVE\x10\x03\x12\x18\n" + - "\x14CONTACT_TYPE_BILLING\x10\x04\x12\x16\n" + - "\x12CONTACT_TYPE_OTHER\x10\x05B\x97\x03\n" + - ".com.splitsecure.saml2metadatafetcherservice.v1B\rMetadataProtoP\x01Z\x8b\x01github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/saml2metadatafetcherservice/v1;saml2metadatafetcherservicev1\xa2\x02\x03SSX\xaa\x02*Splitsecure.Saml2metadatafetcherservice.V1\xca\x02*Splitsecure\\Saml2metadatafetcherservice\\V1\xe2\x026Splitsecure\\Saml2metadatafetcherservice\\V1\\GPBMetadata\xea\x02,Splitsecure::Saml2metadatafetcherservice::V1b\x06proto3" - -var ( - file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescOnce sync.Once - file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescData []byte -) - -func file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescGZIP() []byte { - file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescOnce.Do(func() { - file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDesc), len(file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDesc))) - }) - return file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDescData -} - -var file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 26) -var file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_goTypes = []any{ - (KeyType)(0), // 0: splitsecure.saml2metadatafetcherservice.v1.KeyType - (ContactType)(0), // 1: splitsecure.saml2metadatafetcherservice.v1.ContactType - (*Metadata)(nil), // 2: splitsecure.saml2metadatafetcherservice.v1.Metadata - (*EntityDescriptor)(nil), // 3: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor - (*EntitiesDescriptor)(nil), // 4: splitsecure.saml2metadatafetcherservice.v1.EntitiesDescriptor - (*IDPSSODescriptor)(nil), // 5: splitsecure.saml2metadatafetcherservice.v1.IDPSSODescriptor - (*SPSSODescriptor)(nil), // 6: splitsecure.saml2metadatafetcherservice.v1.SPSSODescriptor - (*AuthnAuthorityDescriptor)(nil), // 7: splitsecure.saml2metadatafetcherservice.v1.AuthnAuthorityDescriptor - (*PDPDescriptor)(nil), // 8: splitsecure.saml2metadatafetcherservice.v1.PDPDescriptor - (*AttributeAuthorityDescriptor)(nil), // 9: splitsecure.saml2metadatafetcherservice.v1.AttributeAuthorityDescriptor - (*SSODescriptorType)(nil), // 10: splitsecure.saml2metadatafetcherservice.v1.SSODescriptorType - (*RoleDescriptorType)(nil), // 11: splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType - (*KeyDescriptor)(nil), // 12: splitsecure.saml2metadatafetcherservice.v1.KeyDescriptor - (*KeyInfo)(nil), // 13: splitsecure.saml2metadatafetcherservice.v1.KeyInfo - (*EncryptionMethod)(nil), // 14: splitsecure.saml2metadatafetcherservice.v1.EncryptionMethod - (*Endpoint)(nil), // 15: splitsecure.saml2metadatafetcherservice.v1.Endpoint - (*IndexedEndpoint)(nil), // 16: splitsecure.saml2metadatafetcherservice.v1.IndexedEndpoint - (*Organization)(nil), // 17: splitsecure.saml2metadatafetcherservice.v1.Organization - (*ContactPerson)(nil), // 18: splitsecure.saml2metadatafetcherservice.v1.ContactPerson - (*AttributeConsumingService)(nil), // 19: splitsecure.saml2metadatafetcherservice.v1.AttributeConsumingService - (*RequestedAttribute)(nil), // 20: splitsecure.saml2metadatafetcherservice.v1.RequestedAttribute - (*Attribute)(nil), // 21: splitsecure.saml2metadatafetcherservice.v1.Attribute - (*AffiliationDescriptor)(nil), // 22: splitsecure.saml2metadatafetcherservice.v1.AffiliationDescriptor - (*AdditionalMetadataLocation)(nil), // 23: splitsecure.saml2metadatafetcherservice.v1.AdditionalMetadataLocation - (*LocalizedName)(nil), // 24: splitsecure.saml2metadatafetcherservice.v1.LocalizedName - (*LocalizedURI)(nil), // 25: splitsecure.saml2metadatafetcherservice.v1.LocalizedURI - (*Extensions)(nil), // 26: splitsecure.saml2metadatafetcherservice.v1.Extensions - (*Extension)(nil), // 27: splitsecure.saml2metadatafetcherservice.v1.Extension - (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 29: google.protobuf.Duration -} -var file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_depIdxs = []int32{ - 3, // 0: splitsecure.saml2metadatafetcherservice.v1.Metadata.entity_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor - 26, // 1: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.extensions:type_name -> splitsecure.saml2metadatafetcherservice.v1.Extensions - 5, // 2: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.idp_sso_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.IDPSSODescriptor - 6, // 3: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.sp_sso_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.SPSSODescriptor - 7, // 4: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.authn_authority_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.AuthnAuthorityDescriptor - 9, // 5: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.attribute_authority_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.AttributeAuthorityDescriptor - 8, // 6: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.pdp_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.PDPDescriptor - 22, // 7: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.affiliation_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.AffiliationDescriptor - 17, // 8: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.organization:type_name -> splitsecure.saml2metadatafetcherservice.v1.Organization - 18, // 9: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.contact_person:type_name -> splitsecure.saml2metadatafetcherservice.v1.ContactPerson - 23, // 10: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.additional_metadata_location:type_name -> splitsecure.saml2metadatafetcherservice.v1.AdditionalMetadataLocation - 28, // 11: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.valid_until:type_name -> google.protobuf.Timestamp - 29, // 12: splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor.cache_duration:type_name -> google.protobuf.Duration - 26, // 13: splitsecure.saml2metadatafetcherservice.v1.EntitiesDescriptor.extensions:type_name -> splitsecure.saml2metadatafetcherservice.v1.Extensions - 3, // 14: splitsecure.saml2metadatafetcherservice.v1.EntitiesDescriptor.entity_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.EntityDescriptor - 4, // 15: splitsecure.saml2metadatafetcherservice.v1.EntitiesDescriptor.entities_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.EntitiesDescriptor - 28, // 16: splitsecure.saml2metadatafetcherservice.v1.EntitiesDescriptor.valid_until:type_name -> google.protobuf.Timestamp - 29, // 17: splitsecure.saml2metadatafetcherservice.v1.EntitiesDescriptor.cache_duration:type_name -> google.protobuf.Duration - 10, // 18: splitsecure.saml2metadatafetcherservice.v1.IDPSSODescriptor.base:type_name -> splitsecure.saml2metadatafetcherservice.v1.SSODescriptorType - 15, // 19: splitsecure.saml2metadatafetcherservice.v1.IDPSSODescriptor.single_sign_on_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 15, // 20: splitsecure.saml2metadatafetcherservice.v1.IDPSSODescriptor.name_id_mapping_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 15, // 21: splitsecure.saml2metadatafetcherservice.v1.IDPSSODescriptor.assertion_id_request_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 21, // 22: splitsecure.saml2metadatafetcherservice.v1.IDPSSODescriptor.attribute:type_name -> splitsecure.saml2metadatafetcherservice.v1.Attribute - 10, // 23: splitsecure.saml2metadatafetcherservice.v1.SPSSODescriptor.base:type_name -> splitsecure.saml2metadatafetcherservice.v1.SSODescriptorType - 16, // 24: splitsecure.saml2metadatafetcherservice.v1.SPSSODescriptor.assertion_consumer_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.IndexedEndpoint - 19, // 25: splitsecure.saml2metadatafetcherservice.v1.SPSSODescriptor.attribute_consuming_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.AttributeConsumingService - 11, // 26: splitsecure.saml2metadatafetcherservice.v1.AuthnAuthorityDescriptor.base:type_name -> splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType - 15, // 27: splitsecure.saml2metadatafetcherservice.v1.AuthnAuthorityDescriptor.authn_query_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 15, // 28: splitsecure.saml2metadatafetcherservice.v1.AuthnAuthorityDescriptor.assertion_id_request_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 11, // 29: splitsecure.saml2metadatafetcherservice.v1.PDPDescriptor.base:type_name -> splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType - 15, // 30: splitsecure.saml2metadatafetcherservice.v1.PDPDescriptor.authz_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 15, // 31: splitsecure.saml2metadatafetcherservice.v1.PDPDescriptor.assertion_id_request_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 11, // 32: splitsecure.saml2metadatafetcherservice.v1.AttributeAuthorityDescriptor.base:type_name -> splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType - 15, // 33: splitsecure.saml2metadatafetcherservice.v1.AttributeAuthorityDescriptor.attribute_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 15, // 34: splitsecure.saml2metadatafetcherservice.v1.AttributeAuthorityDescriptor.assertion_id_request_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 21, // 35: splitsecure.saml2metadatafetcherservice.v1.AttributeAuthorityDescriptor.attribute:type_name -> splitsecure.saml2metadatafetcherservice.v1.Attribute - 11, // 36: splitsecure.saml2metadatafetcherservice.v1.SSODescriptorType.base:type_name -> splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType - 16, // 37: splitsecure.saml2metadatafetcherservice.v1.SSODescriptorType.artifact_resolution_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.IndexedEndpoint - 15, // 38: splitsecure.saml2metadatafetcherservice.v1.SSODescriptorType.single_logout_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 15, // 39: splitsecure.saml2metadatafetcherservice.v1.SSODescriptorType.manage_name_id_service:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 26, // 40: splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType.extensions:type_name -> splitsecure.saml2metadatafetcherservice.v1.Extensions - 12, // 41: splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType.key_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.KeyDescriptor - 17, // 42: splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType.organization:type_name -> splitsecure.saml2metadatafetcherservice.v1.Organization - 18, // 43: splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType.contact_person:type_name -> splitsecure.saml2metadatafetcherservice.v1.ContactPerson - 28, // 44: splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType.valid_until:type_name -> google.protobuf.Timestamp - 29, // 45: splitsecure.saml2metadatafetcherservice.v1.RoleDescriptorType.cache_duration:type_name -> google.protobuf.Duration - 0, // 46: splitsecure.saml2metadatafetcherservice.v1.KeyDescriptor.use:type_name -> splitsecure.saml2metadatafetcherservice.v1.KeyType - 13, // 47: splitsecure.saml2metadatafetcherservice.v1.KeyDescriptor.key_info:type_name -> splitsecure.saml2metadatafetcherservice.v1.KeyInfo - 14, // 48: splitsecure.saml2metadatafetcherservice.v1.KeyDescriptor.encryption_method:type_name -> splitsecure.saml2metadatafetcherservice.v1.EncryptionMethod - 15, // 49: splitsecure.saml2metadatafetcherservice.v1.IndexedEndpoint.base:type_name -> splitsecure.saml2metadatafetcherservice.v1.Endpoint - 26, // 50: splitsecure.saml2metadatafetcherservice.v1.Organization.extensions:type_name -> splitsecure.saml2metadatafetcherservice.v1.Extensions - 24, // 51: splitsecure.saml2metadatafetcherservice.v1.Organization.organization_name:type_name -> splitsecure.saml2metadatafetcherservice.v1.LocalizedName - 24, // 52: splitsecure.saml2metadatafetcherservice.v1.Organization.organization_display_name:type_name -> splitsecure.saml2metadatafetcherservice.v1.LocalizedName - 25, // 53: splitsecure.saml2metadatafetcherservice.v1.Organization.organization_url:type_name -> splitsecure.saml2metadatafetcherservice.v1.LocalizedURI - 1, // 54: splitsecure.saml2metadatafetcherservice.v1.ContactPerson.contact_type:type_name -> splitsecure.saml2metadatafetcherservice.v1.ContactType - 26, // 55: splitsecure.saml2metadatafetcherservice.v1.ContactPerson.extensions:type_name -> splitsecure.saml2metadatafetcherservice.v1.Extensions - 24, // 56: splitsecure.saml2metadatafetcherservice.v1.AttributeConsumingService.service_name:type_name -> splitsecure.saml2metadatafetcherservice.v1.LocalizedName - 24, // 57: splitsecure.saml2metadatafetcherservice.v1.AttributeConsumingService.service_description:type_name -> splitsecure.saml2metadatafetcherservice.v1.LocalizedName - 20, // 58: splitsecure.saml2metadatafetcherservice.v1.AttributeConsumingService.requested_attribute:type_name -> splitsecure.saml2metadatafetcherservice.v1.RequestedAttribute - 21, // 59: splitsecure.saml2metadatafetcherservice.v1.RequestedAttribute.attribute:type_name -> splitsecure.saml2metadatafetcherservice.v1.Attribute - 26, // 60: splitsecure.saml2metadatafetcherservice.v1.AffiliationDescriptor.extensions:type_name -> splitsecure.saml2metadatafetcherservice.v1.Extensions - 12, // 61: splitsecure.saml2metadatafetcherservice.v1.AffiliationDescriptor.key_descriptor:type_name -> splitsecure.saml2metadatafetcherservice.v1.KeyDescriptor - 28, // 62: splitsecure.saml2metadatafetcherservice.v1.AffiliationDescriptor.valid_until:type_name -> google.protobuf.Timestamp - 29, // 63: splitsecure.saml2metadatafetcherservice.v1.AffiliationDescriptor.cache_duration:type_name -> google.protobuf.Duration - 27, // 64: splitsecure.saml2metadatafetcherservice.v1.Extensions.extension:type_name -> splitsecure.saml2metadatafetcherservice.v1.Extension - 65, // [65:65] is the sub-list for method output_type - 65, // [65:65] is the sub-list for method input_type - 65, // [65:65] is the sub-list for extension type_name - 65, // [65:65] is the sub-list for extension extendee - 0, // [0:65] is the sub-list for field type_name -} - -func init() { file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_init() } -func file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_init() { - if File_splitsecure_saml2metadatafetcherservice_v1_metadata_proto != nil { - return - } - file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes[0].OneofWrappers = []any{ - (*Metadata_EntityDescriptor)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDesc), len(file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_rawDesc)), - NumEnums: 2, - NumMessages: 26, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_goTypes, - DependencyIndexes: file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_depIdxs, - EnumInfos: file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_enumTypes, - MessageInfos: file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_msgTypes, - }.Build() - File_splitsecure_saml2metadatafetcherservice_v1_metadata_proto = out.File - file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_goTypes = nil - file_splitsecure_saml2metadatafetcherservice_v1_metadata_proto_depIdxs = nil -} diff --git a/gen/go/proto/splitsecure/teamresource/v1/team_resource.pb.go b/gen/go/proto/splitsecure/teamresource/v1/team_resource.pb.go deleted file mode 100644 index c1b9dad..0000000 --- a/gen/go/proto/splitsecure/teamresource/v1/team_resource.pb.go +++ /dev/null @@ -1,531 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc (unknown) -// source: splitsecure/teamresource/v1/team_resource.proto - -package teamresourcev1 - -import ( - v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/hybridkeyset/v1" - v11 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/notifications/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type AccountSensitivityLevel int32 - -const ( - AccountSensitivityLevel_ACCOUNT_SENSITIVITY_LEVEL_UNSPECIFIED AccountSensitivityLevel = 0 - AccountSensitivityLevel_ACCOUNT_SENSITIVITY_LEVEL_LOW AccountSensitivityLevel = 1 - AccountSensitivityLevel_ACCOUNT_SENSITIVITY_LEVEL_MEDIUM AccountSensitivityLevel = 2 - AccountSensitivityLevel_ACCOUNT_SENSITIVITY_LEVEL_HIGH AccountSensitivityLevel = 3 - AccountSensitivityLevel_ACCOUNT_SENSITIVITY_LEVEL_CRITICAL AccountSensitivityLevel = 4 -) - -// Enum value maps for AccountSensitivityLevel. -var ( - AccountSensitivityLevel_name = map[int32]string{ - 0: "ACCOUNT_SENSITIVITY_LEVEL_UNSPECIFIED", - 1: "ACCOUNT_SENSITIVITY_LEVEL_LOW", - 2: "ACCOUNT_SENSITIVITY_LEVEL_MEDIUM", - 3: "ACCOUNT_SENSITIVITY_LEVEL_HIGH", - 4: "ACCOUNT_SENSITIVITY_LEVEL_CRITICAL", - } - AccountSensitivityLevel_value = map[string]int32{ - "ACCOUNT_SENSITIVITY_LEVEL_UNSPECIFIED": 0, - "ACCOUNT_SENSITIVITY_LEVEL_LOW": 1, - "ACCOUNT_SENSITIVITY_LEVEL_MEDIUM": 2, - "ACCOUNT_SENSITIVITY_LEVEL_HIGH": 3, - "ACCOUNT_SENSITIVITY_LEVEL_CRITICAL": 4, - } -) - -func (x AccountSensitivityLevel) Enum() *AccountSensitivityLevel { - p := new(AccountSensitivityLevel) - *p = x - return p -} - -func (x AccountSensitivityLevel) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AccountSensitivityLevel) Descriptor() protoreflect.EnumDescriptor { - return file_splitsecure_teamresource_v1_team_resource_proto_enumTypes[0].Descriptor() -} - -func (AccountSensitivityLevel) Type() protoreflect.EnumType { - return &file_splitsecure_teamresource_v1_team_resource_proto_enumTypes[0] -} - -func (x AccountSensitivityLevel) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AccountSensitivityLevel.Descriptor instead. -func (AccountSensitivityLevel) EnumDescriptor() ([]byte, []int) { - return file_splitsecure_teamresource_v1_team_resource_proto_rawDescGZIP(), []int{0} -} - -// TeamSignature binds a resource to a team. -// The team's base signer signs serialized authenticated bytes. -type TeamSignature struct { - state protoimpl.MessageState `protogen:"open.v1"` - // team_id is the hash of the team's base identity. - TeamId []byte `protobuf:"bytes,1,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` - // signature is the team base signer's signature over the authenticated bytes. - Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *TeamSignature) Reset() { - *x = TeamSignature{} - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TeamSignature) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TeamSignature) ProtoMessage() {} - -func (x *TeamSignature) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TeamSignature.ProtoReflect.Descriptor instead. -func (*TeamSignature) Descriptor() ([]byte, []int) { - return file_splitsecure_teamresource_v1_team_resource_proto_rawDescGZIP(), []int{0} -} - -func (x *TeamSignature) GetTeamId() []byte { - if x != nil { - return x.TeamId - } - return nil -} - -func (x *TeamSignature) GetSignature() *v1.Signature { - if x != nil { - return x.Signature - } - return nil -} - -// NotificationMode specifies how team members should be notified for a request. -type NotificationMode struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Mode: - // - // *NotificationMode_NotifyEveryone_ - // *NotificationMode_Selective - Mode isNotificationMode_Mode `protobuf_oneof:"mode"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *NotificationMode) Reset() { - *x = NotificationMode{} - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *NotificationMode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NotificationMode) ProtoMessage() {} - -func (x *NotificationMode) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NotificationMode.ProtoReflect.Descriptor instead. -func (*NotificationMode) Descriptor() ([]byte, []int) { - return file_splitsecure_teamresource_v1_team_resource_proto_rawDescGZIP(), []int{1} -} - -func (x *NotificationMode) GetMode() isNotificationMode_Mode { - if x != nil { - return x.Mode - } - return nil -} - -func (x *NotificationMode) GetNotifyEveryone() *NotificationMode_NotifyEveryone { - if x != nil { - if x, ok := x.Mode.(*NotificationMode_NotifyEveryone_); ok { - return x.NotifyEveryone - } - } - return nil -} - -func (x *NotificationMode) GetSelective() *NotificationMode_SelectiveNotification { - if x != nil { - if x, ok := x.Mode.(*NotificationMode_Selective); ok { - return x.Selective - } - } - return nil -} - -type isNotificationMode_Mode interface { - isNotificationMode_Mode() -} - -type NotificationMode_NotifyEveryone_ struct { - // notify_everyone sends push notifications to all team members. - NotifyEveryone *NotificationMode_NotifyEveryone `protobuf:"bytes,1,opt,name=notify_everyone,json=notifyEveryone,proto3,oneof"` -} - -type NotificationMode_Selective struct { - // selective sends push notifications only to the specified devices; - // all others receive silent notifications (stored but no push). - Selective *NotificationMode_SelectiveNotification `protobuf:"bytes,2,opt,name=selective,proto3,oneof"` -} - -func (*NotificationMode_NotifyEveryone_) isNotificationMode_Mode() {} - -func (*NotificationMode_Selective) isNotificationMode_Mode() {} - -// BaseResourceAttributes holds the common metadata shared by all managed resources. -type BaseResourceAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - NotificationPolicy v11.NotificationPolicy `protobuf:"varint,3,opt,name=notification_policy,json=notificationPolicy,proto3,enum=splitsecure.notifications.v1.NotificationPolicy" json:"notification_policy,omitempty"` - Sensitivity *AccountSensitivity `protobuf:"bytes,4,opt,name=sensitivity,proto3" json:"sensitivity,omitempty"` - ProposalId []byte `protobuf:"bytes,5,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *BaseResourceAttributes) Reset() { - *x = BaseResourceAttributes{} - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *BaseResourceAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BaseResourceAttributes) ProtoMessage() {} - -func (x *BaseResourceAttributes) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BaseResourceAttributes.ProtoReflect.Descriptor instead. -func (*BaseResourceAttributes) Descriptor() ([]byte, []int) { - return file_splitsecure_teamresource_v1_team_resource_proto_rawDescGZIP(), []int{2} -} - -func (x *BaseResourceAttributes) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *BaseResourceAttributes) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *BaseResourceAttributes) GetNotificationPolicy() v11.NotificationPolicy { - if x != nil { - return x.NotificationPolicy - } - return v11.NotificationPolicy(0) -} - -func (x *BaseResourceAttributes) GetSensitivity() *AccountSensitivity { - if x != nil { - return x.Sensitivity - } - return nil -} - -func (x *BaseResourceAttributes) GetProposalId() []byte { - if x != nil { - return x.ProposalId - } - return nil -} - -type AccountSensitivity struct { - state protoimpl.MessageState `protogen:"open.v1"` - Level AccountSensitivityLevel `protobuf:"varint,1,opt,name=level,proto3,enum=splitsecure.teamresource.v1.AccountSensitivityLevel" json:"level,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AccountSensitivity) Reset() { - *x = AccountSensitivity{} - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AccountSensitivity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountSensitivity) ProtoMessage() {} - -func (x *AccountSensitivity) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AccountSensitivity.ProtoReflect.Descriptor instead. -func (*AccountSensitivity) Descriptor() ([]byte, []int) { - return file_splitsecure_teamresource_v1_team_resource_proto_rawDescGZIP(), []int{3} -} - -func (x *AccountSensitivity) GetLevel() AccountSensitivityLevel { - if x != nil { - return x.Level - } - return AccountSensitivityLevel_ACCOUNT_SENSITIVITY_LEVEL_UNSPECIFIED -} - -func (x *AccountSensitivity) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -type NotificationMode_NotifyEveryone struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *NotificationMode_NotifyEveryone) Reset() { - *x = NotificationMode_NotifyEveryone{} - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *NotificationMode_NotifyEveryone) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NotificationMode_NotifyEveryone) ProtoMessage() {} - -func (x *NotificationMode_NotifyEveryone) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NotificationMode_NotifyEveryone.ProtoReflect.Descriptor instead. -func (*NotificationMode_NotifyEveryone) Descriptor() ([]byte, []int) { - return file_splitsecure_teamresource_v1_team_resource_proto_rawDescGZIP(), []int{1, 0} -} - -type NotificationMode_SelectiveNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` - ActivelyNotifyEnclaveIds [][]byte `protobuf:"bytes,1,rep,name=actively_notify_enclave_ids,json=activelyNotifyEnclaveIds,proto3" json:"actively_notify_enclave_ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *NotificationMode_SelectiveNotification) Reset() { - *x = NotificationMode_SelectiveNotification{} - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *NotificationMode_SelectiveNotification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NotificationMode_SelectiveNotification) ProtoMessage() {} - -func (x *NotificationMode_SelectiveNotification) ProtoReflect() protoreflect.Message { - mi := &file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NotificationMode_SelectiveNotification.ProtoReflect.Descriptor instead. -func (*NotificationMode_SelectiveNotification) Descriptor() ([]byte, []int) { - return file_splitsecure_teamresource_v1_team_resource_proto_rawDescGZIP(), []int{1, 1} -} - -func (x *NotificationMode_SelectiveNotification) GetActivelyNotifyEnclaveIds() [][]byte { - if x != nil { - return x.ActivelyNotifyEnclaveIds - } - return nil -} - -var File_splitsecure_teamresource_v1_team_resource_proto protoreflect.FileDescriptor - -const file_splitsecure_teamresource_v1_team_resource_proto_rawDesc = "" + - "\n" + - "/splitsecure/teamresource/v1/team_resource.proto\x12\x1bsplitsecure.teamresource.v1\x1a.splitsecure/hybridkeyset/v1/hybridkeyset.proto\x1a6splitsecure/notifications/v1/notification_policy.proto\"n\n" + - "\rTeamSignature\x12\x17\n" + - "\ateam_id\x18\x01 \x01(\fR\x06teamId\x12D\n" + - "\tsignature\x18\x02 \x01(\v2&.splitsecure.hybridkeyset.v1.SignatureR\tsignature\"\xd2\x02\n" + - "\x10NotificationMode\x12g\n" + - "\x0fnotify_everyone\x18\x01 \x01(\v2<.splitsecure.teamresource.v1.NotificationMode.NotifyEveryoneH\x00R\x0enotifyEveryone\x12c\n" + - "\tselective\x18\x02 \x01(\v2C.splitsecure.teamresource.v1.NotificationMode.SelectiveNotificationH\x00R\tselective\x1a\x10\n" + - "\x0eNotifyEveryone\x1aV\n" + - "\x15SelectiveNotification\x12=\n" + - "\x1bactively_notify_enclave_ids\x18\x01 \x03(\fR\x18activelyNotifyEnclaveIdsB\x06\n" + - "\x04mode\"\xa5\x02\n" + - "\x16BaseResourceAttributes\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + - "\vdescription\x18\x02 \x01(\tR\vdescription\x12a\n" + - "\x13notification_policy\x18\x03 \x01(\x0e20.splitsecure.notifications.v1.NotificationPolicyR\x12notificationPolicy\x12Q\n" + - "\vsensitivity\x18\x04 \x01(\v2/.splitsecure.teamresource.v1.AccountSensitivityR\vsensitivity\x12\x1f\n" + - "\vproposal_id\x18\x05 \x01(\fR\n" + - "proposalId\"\x82\x01\n" + - "\x12AccountSensitivity\x12J\n" + - "\x05level\x18\x01 \x01(\x0e24.splitsecure.teamresource.v1.AccountSensitivityLevelR\x05level\x12 \n" + - "\vdescription\x18\x02 \x01(\tR\vdescription*\xd9\x01\n" + - "\x17AccountSensitivityLevel\x12)\n" + - "%ACCOUNT_SENSITIVITY_LEVEL_UNSPECIFIED\x10\x00\x12!\n" + - "\x1dACCOUNT_SENSITIVITY_LEVEL_LOW\x10\x01\x12$\n" + - " ACCOUNT_SENSITIVITY_LEVEL_MEDIUM\x10\x02\x12\"\n" + - "\x1eACCOUNT_SENSITIVITY_LEVEL_HIGH\x10\x03\x12&\n" + - "\"ACCOUNT_SENSITIVITY_LEVEL_CRITICAL\x10\x04B\xb1\x02\n" + - "\x1fcom.splitsecure.teamresource.v1B\x11TeamResourceProtoP\x01Zmgithub.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1;teamresourcev1\xa2\x02\x03STX\xaa\x02\x1bSplitsecure.Teamresource.V1\xca\x02\x1bSplitsecure\\Teamresource\\V1\xe2\x02'Splitsecure\\Teamresource\\V1\\GPBMetadata\xea\x02\x1dSplitsecure::Teamresource::V1b\x06proto3" - -var ( - file_splitsecure_teamresource_v1_team_resource_proto_rawDescOnce sync.Once - file_splitsecure_teamresource_v1_team_resource_proto_rawDescData []byte -) - -func file_splitsecure_teamresource_v1_team_resource_proto_rawDescGZIP() []byte { - file_splitsecure_teamresource_v1_team_resource_proto_rawDescOnce.Do(func() { - file_splitsecure_teamresource_v1_team_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_splitsecure_teamresource_v1_team_resource_proto_rawDesc), len(file_splitsecure_teamresource_v1_team_resource_proto_rawDesc))) - }) - return file_splitsecure_teamresource_v1_team_resource_proto_rawDescData -} - -var file_splitsecure_teamresource_v1_team_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_splitsecure_teamresource_v1_team_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_splitsecure_teamresource_v1_team_resource_proto_goTypes = []any{ - (AccountSensitivityLevel)(0), // 0: splitsecure.teamresource.v1.AccountSensitivityLevel - (*TeamSignature)(nil), // 1: splitsecure.teamresource.v1.TeamSignature - (*NotificationMode)(nil), // 2: splitsecure.teamresource.v1.NotificationMode - (*BaseResourceAttributes)(nil), // 3: splitsecure.teamresource.v1.BaseResourceAttributes - (*AccountSensitivity)(nil), // 4: splitsecure.teamresource.v1.AccountSensitivity - (*NotificationMode_NotifyEveryone)(nil), // 5: splitsecure.teamresource.v1.NotificationMode.NotifyEveryone - (*NotificationMode_SelectiveNotification)(nil), // 6: splitsecure.teamresource.v1.NotificationMode.SelectiveNotification - (*v1.Signature)(nil), // 7: splitsecure.hybridkeyset.v1.Signature - (v11.NotificationPolicy)(0), // 8: splitsecure.notifications.v1.NotificationPolicy -} -var file_splitsecure_teamresource_v1_team_resource_proto_depIdxs = []int32{ - 7, // 0: splitsecure.teamresource.v1.TeamSignature.signature:type_name -> splitsecure.hybridkeyset.v1.Signature - 5, // 1: splitsecure.teamresource.v1.NotificationMode.notify_everyone:type_name -> splitsecure.teamresource.v1.NotificationMode.NotifyEveryone - 6, // 2: splitsecure.teamresource.v1.NotificationMode.selective:type_name -> splitsecure.teamresource.v1.NotificationMode.SelectiveNotification - 8, // 3: splitsecure.teamresource.v1.BaseResourceAttributes.notification_policy:type_name -> splitsecure.notifications.v1.NotificationPolicy - 4, // 4: splitsecure.teamresource.v1.BaseResourceAttributes.sensitivity:type_name -> splitsecure.teamresource.v1.AccountSensitivity - 0, // 5: splitsecure.teamresource.v1.AccountSensitivity.level:type_name -> splitsecure.teamresource.v1.AccountSensitivityLevel - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_splitsecure_teamresource_v1_team_resource_proto_init() } -func file_splitsecure_teamresource_v1_team_resource_proto_init() { - if File_splitsecure_teamresource_v1_team_resource_proto != nil { - return - } - file_splitsecure_teamresource_v1_team_resource_proto_msgTypes[1].OneofWrappers = []any{ - (*NotificationMode_NotifyEveryone_)(nil), - (*NotificationMode_Selective)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_splitsecure_teamresource_v1_team_resource_proto_rawDesc), len(file_splitsecure_teamresource_v1_team_resource_proto_rawDesc)), - NumEnums: 1, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_splitsecure_teamresource_v1_team_resource_proto_goTypes, - DependencyIndexes: file_splitsecure_teamresource_v1_team_resource_proto_depIdxs, - EnumInfos: file_splitsecure_teamresource_v1_team_resource_proto_enumTypes, - MessageInfos: file_splitsecure_teamresource_v1_team_resource_proto_msgTypes, - }.Build() - File_splitsecure_teamresource_v1_team_resource_proto = out.File - file_splitsecure_teamresource_v1_team_resource_proto_goTypes = nil - file_splitsecure_teamresource_v1_team_resource_proto_depIdxs = nil -} diff --git a/go.mod b/go.mod index eb5d7a0..6064db5 100644 --- a/go.mod +++ b/go.mod @@ -10,6 +10,7 @@ require ( github.com/hashicorp/terraform-plugin-framework-validators v0.19.0 github.com/hashicorp/terraform-plugin-go v0.31.0 github.com/hashicorp/terraform-plugin-log v0.10.0 + github.com/splitsecure/apis v0.0.0-20260514001223-f52c82fb5959 google.golang.org/protobuf v1.36.11 ) diff --git a/go.sum b/go.sum index ebfa1e9..3fc26eb 100644 --- a/go.sum +++ b/go.sum @@ -168,6 +168,8 @@ github.com/skeema/knownhosts v1.3.1/go.mod h1:r7KTdC8l4uxWRyK2TpQZ/1o5HaSzh06ePQ github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= +github.com/splitsecure/apis v0.0.0-20260514001223-f52c82fb5959 h1:qKSnoDvD7Dc6AKBIKjHrLtGyB6aeOu84VUqlCJnFq/E= +github.com/splitsecure/apis v0.0.0-20260514001223-f52c82fb5959/go.mod h1:wUlW3JTT8bCwxhF+EvEazUtdofaoPjAFRCvYWh49sr4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= diff --git a/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.proto b/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.proto deleted file mode 100644 index 28daaad..0000000 --- a/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.proto +++ /dev/null @@ -1,48 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "google/protobuf/timestamp.proto"; -import "splitsecure/teamresource/v1/team_resource.proto"; - -// GenerateCreateSAML2IdentityProviderProposalRequest assembles the -// MintProposalRequest payload for creating a SAML2 IdP on the named -// team. The server does team autofill: resolves team_s2r to the team -// base id, verifies the caller is a service account in the team's -// owning org, and loads the active TeamInfo. The response is not a -// Send -- the caller drives EnclaveRoundtripService.Send itself with -// the returned invoke_request and target_org_s2r. -message GenerateCreateSAML2IdentityProviderProposalRequest { - Base base = 1; - message Base { - string team_s2r = 1; - - // attributes carries the shared resource metadata (name, - // description, notification_policy). The sensitivity field is - // ignored for IdPs (IdPState has no sensitivity), and proposal_id - // is server-stamped. - splitsecure.teamresource.v1.BaseResourceAttributes attributes = 2; - - // provider_id is the SAML EntityID baked into the IdP's signing - // cert subject, every assertion's , and the metadata - // entityID attribute. When unset, the server stamps - // https:///saml/idp/ -- the same - // shape the web UI's IdP create form generates client-side. - // Override here for stable URN-form EntityIDs (e.g. terraform). - string provider_id = 3; - - // sso_url and sso_url_post are the IdP's HTTP-Redirect and - // HTTP-POST SSO endpoints. When unset, the server stamps the - // canonical SAML SP login URLs for the deployment. Override - // here only if traffic should route through a non-default host. - string sso_url = 4; - string sso_url_post = 5; - - // not_before / not_after bound the IdP signing cert's validity - // window. When unset, the server stamps now / now + 10y -- - // matches the web UI's IdP create form defaults. - google.protobuf.Timestamp not_before = 6; - google.protobuf.Timestamp not_after = 7; - - string justification = 200; - } -} diff --git a/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.proto b/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.proto deleted file mode 100644 index 440cdb3..0000000 --- a/proto/splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/enclave/v1/enclave.proto"; - -message GenerateCreateSAML2IdentityProviderProposalResponse { - // invoke_request is the fully built payload the caller should pass to - // EnclaveRoundtripService.Send.Base.invoke_request. The caller - // supplies new_proposal_scoped_enclave = the org s2r it already knows - // from having picked the team. - splitsecure.enclave.v1.InvokeRequest invoke_request = 1; -} diff --git a/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.proto b/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.proto deleted file mode 100644 index c0a41b2..0000000 --- a/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.proto +++ /dev/null @@ -1,63 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto"; -import "splitsecure/teamresource/v1/team_resource.proto"; - -// GenerateCreateSAML2ServiceProviderProposalRequest assembles the -// MintProposalRequest payload for creating a SAML2 SP on the named -// team. idp_resource_s2r selects the IdP record whose signed state -// will be embedded into CreateServiceProviderRequest.signed_idp; the -// IdP must exist on the same team. Other inputs are flat fields -// the server stitches into the saml2v2.SAML2ServiceProvider proto, -// also stamping the computed fields (id, proposal_id, idp_auth_sum, -// idp_coord_id_hint, metadata). -message GenerateCreateSAML2ServiceProviderProposalRequest { - Base base = 1; - message Base { - string team_s2r = 1; - - // idp_resource_s2r is the s2r URI of the IdP this SP binds to. - // Kind must be "saml2idp" and the team portion must match team_s2r. - string idp_resource_s2r = 2; - - // attributes carries the shared resource metadata (name, - // description, notification_policy, sensitivity) in the same - // shape used internally by the saml2v2 enclave service. The - // proposal_id field is server-stamped and ignored on input. - splitsecure.teamresource.v1.BaseResourceAttributes attributes = 3; - - // entity_id and acs_url populate - // metadata.entity_descriptor.{entity_id, sp_sso_descriptor[0] - // .assertion_consumer_service[0].location} server-side. Format - // depends on the integration; see the saml2v2 enclave service - // docs for per-kind expected shapes. - string entity_id = 4; - string acs_url = 5; - - // Account variant. Exactly one branch must be populated; mirrors - // the SAML2ServiceProvider.account oneof in saml2v2 so the same - // typed messages flow through both layers without redefinition. - oneof account { - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.AWS aws = 100; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Cloudflare cloudflare = 101; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.EventBrite event_brite = 102; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GCP gcp = 103; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspace google_workspace = 104; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.GoogleWorkspaceLegacy google_workspace_legacy = 105; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.IBMCloud ibm_cloud = 106; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Kandji kandji = 107; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.MicrosoftEntraID microsoft_entra_id = 108; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Okta okta = 109; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.OracleCloud oracle_cloud = 110; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PagerDuty pager_duty = 111; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.PitchBook pitch_book = 112; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Rapid7 rapid7 = 113; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Stripe stripe = 114; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Veeam veeam = 115; - splitsecure.enclaveservices.saml2.v2.SAML2ServiceProvider.Workday workday = 116; - } - - string justification = 200; - } -} diff --git a/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.proto b/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.proto deleted file mode 100644 index 4a731fd..0000000 --- a/proto/splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.proto +++ /dev/null @@ -1,8 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/enclave/v1/enclave.proto"; - -message GenerateCreateSAML2ServiceProviderProposalResponse { - splitsecure.enclave.v1.InvokeRequest invoke_request = 1; -} diff --git a/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.proto b/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.proto deleted file mode 100644 index 1efa66c..0000000 --- a/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -// GenerateDeleteSAML2IdentityProviderProposalRequest assembles the -// MintProposalRequest payload for deleting a SAML2 IdP. The server -// parses resource_s2r to derive the owning team and the target -// SAML2ResourceRecord, then wraps it in a -// coordresourcemgmt.DeleteResourceRequest. -message GenerateDeleteSAML2IdentityProviderProposalRequest { - Base base = 1; - message Base { - // resource_s2r is the s2r URI of the SAML2 IdP to delete. Kind must - // be "saml2idp". The team and resource ids are derived from it. - string resource_s2r = 1; - - string justification = 2; - } -} diff --git a/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.proto b/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.proto deleted file mode 100644 index 5ba20e5..0000000 --- a/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.proto +++ /dev/null @@ -1,8 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/enclave/v1/enclave.proto"; - -message GenerateDeleteSAML2IdentityProviderProposalResponse { - splitsecure.enclave.v1.InvokeRequest invoke_request = 1; -} diff --git a/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.proto b/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.proto deleted file mode 100644 index 8d1ad05..0000000 --- a/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -// GenerateDeleteSAML2ServiceProviderProposalRequest assembles the -// MintProposalRequest payload for deleting a SAML2 SP. The server -// parses resource_s2r to derive the owning team and the target -// SAML2ResourceRecord, then wraps it in a -// coordresourcemgmt.DeleteResourceRequest. -message GenerateDeleteSAML2ServiceProviderProposalRequest { - Base base = 1; - message Base { - // resource_s2r is the s2r URI of the SAML2 SP to delete. Kind must - // be "saml2sp". The team and resource ids are derived from it. - string resource_s2r = 1; - - string justification = 2; - } -} diff --git a/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.proto b/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.proto deleted file mode 100644 index b7af277..0000000 --- a/proto/splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.proto +++ /dev/null @@ -1,8 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/enclave/v1/enclave.proto"; - -message GenerateDeleteSAML2ServiceProviderProposalResponse { - splitsecure.enclave.v1.InvokeRequest invoke_request = 1; -} diff --git a/proto/splitsecure/conveniencestore/v1/get_proposal_resource.proto b/proto/splitsecure/conveniencestore/v1/get_proposal_resource.proto deleted file mode 100644 index beb99dc..0000000 --- a/proto/splitsecure/conveniencestore/v1/get_proposal_resource.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/requestsigning/v1/signed_request.proto"; - -// GetProposalResourceRequest asks for the s2r URI of the team resource -// a proposal minted. Direct proposal_id -> resource_s2r lookup. -message GetProposalResourceRequest { - splitsecure.requestsigning.v1.SignedRequest signed = 1; - - Base base = 2; - message Base { - // proposal_id as returned by EnclaveRoundtrip.GetProposalForRequest. - bytes proposal_id = 1; - } -} - -message GetProposalResourceResponse { - // resource_s2r is the URI of the record the proposal minted. Empty - // until execution lands; poll. - string resource_s2r = 1; -} diff --git a/proto/splitsecure/conveniencestore/v1/get_saml2_resource.proto b/proto/splitsecure/conveniencestore/v1/get_saml2_resource.proto deleted file mode 100644 index 9d627b3..0000000 --- a/proto/splitsecure/conveniencestore/v1/get_saml2_resource.proto +++ /dev/null @@ -1,27 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/conveniencestore/v1/saml2_resource.proto"; -import "splitsecure/requestsigning/v1/signed_request.proto"; - -// GetSAML2ResourcesRequest fetches specific SAML2 IdP or SP records by -// their s2r URIs. Callers holding a known set of resource_s2rs can use -// this instead of ListSAML2Resources + client-side filter. -message GetSAML2ResourcesRequest { - splitsecure.requestsigning.v1.SignedRequest signed = 1; - - Base base = 2; - message Base { - // resource_s2rs are the SAML2 resource URIs to look up. Each must - // be a saml2idp or saml2sp URI; the two kinds may be mixed. - repeated string resource_s2rs = 1; - } -} - -message GetSAML2ResourcesResponse { - // resources maps each found record's resource_s2r to the record. - // Keys absent from the map mean the record was not found, the - // caller is unauthorized on its owning team, the s2r was malformed, - // or the minting proposal has not yet completed. - map resources = 1; -} diff --git a/proto/splitsecure/conveniencestore/v1/list_saml2_resources.proto b/proto/splitsecure/conveniencestore/v1/list_saml2_resources.proto deleted file mode 100644 index cc4045c..0000000 --- a/proto/splitsecure/conveniencestore/v1/list_saml2_resources.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/conveniencestore/v1/saml2_resource.proto"; -import "splitsecure/requestsigning/v1/signed_request.proto"; - -message ListSAML2ResourcesRequest { - splitsecure.requestsigning.v1.SignedRequest signed = 1; - - Base base = 2; - message Base { - bytes enclave_id = 1; // Used for authorization (enclave caller path) - // team selects the target team. team_id (SHA3-512 base identity hash - // bytes) and team_s2r (s2r:{deployment}:team:{snowflake}) are mutually - // exclusive; server resolves team_s2r to team_base_id internally. - oneof team { - bytes team_id = 2; - string team_s2r = 3; - } - } -} - -message ListSAML2ResourcesResponse { - repeated SAML2ResourceRecord resources = 1; -} diff --git a/proto/splitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.proto b/proto/splitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.proto deleted file mode 100644 index db1eb9f..0000000 --- a/proto/splitsecure/conveniencestore/v1/provider_custom_conveniencestore_service.proto +++ /dev/null @@ -1,26 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.proto"; -import "splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.proto"; -import "splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.proto"; -import "splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.proto"; -import "splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.proto"; -import "splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.proto"; -import "splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.proto"; -import "splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.proto"; -import "splitsecure/conveniencestore/v1/get_proposal_resource.proto"; -import "splitsecure/conveniencestore/v1/get_saml2_resource.proto"; -import "splitsecure/conveniencestore/v1/list_saml2_resources.proto"; - -// Slim service definition for the Terraform provider. -// Only declares RPCs the provider uses. -service ConvenienceStoreService { - rpc ListSAML2Resources(ListSAML2ResourcesRequest) returns (ListSAML2ResourcesResponse); - rpc GetSAML2Resources(GetSAML2ResourcesRequest) returns (GetSAML2ResourcesResponse); - rpc GetProposalResource(GetProposalResourceRequest) returns (GetProposalResourceResponse); - rpc GenerateCreateSAML2IdentityProviderProposal(GenerateCreateSAML2IdentityProviderProposalRequest) returns (GenerateCreateSAML2IdentityProviderProposalResponse); - rpc GenerateCreateSAML2ServiceProviderProposal(GenerateCreateSAML2ServiceProviderProposalRequest) returns (GenerateCreateSAML2ServiceProviderProposalResponse); - rpc GenerateDeleteSAML2IdentityProviderProposal(GenerateDeleteSAML2IdentityProviderProposalRequest) returns (GenerateDeleteSAML2IdentityProviderProposalResponse); - rpc GenerateDeleteSAML2ServiceProviderProposal(GenerateDeleteSAML2ServiceProviderProposalRequest) returns (GenerateDeleteSAML2ServiceProviderProposalResponse); -} diff --git a/proto/splitsecure/conveniencestore/v1/saml2_resource.proto b/proto/splitsecure/conveniencestore/v1/saml2_resource.proto deleted file mode 100644 index 47ab542..0000000 --- a/proto/splitsecure/conveniencestore/v1/saml2_resource.proto +++ /dev/null @@ -1,158 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -import "google/protobuf/timestamp.proto"; -import "splitsecure/conveniencestore/v1/tombstone.proto"; -import "splitsecure/enclaveservices/saml2/v1/idp_state.proto"; -import "splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.proto"; -import "splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.proto"; -import "splitsecure/notifications/v1/notification_policy.proto"; -import "splitsecure/saml2metadatafetcherservice/v1/metadata.proto"; -import "splitsecure/teamresource/v1/team_resource.proto"; - -message SAML2ResourceRecord { - bytes id = 1; - google.protobuf.Timestamp created_at = 2; - Content content = 3; - - // resource_s2r is the stable resource URI. Kind is "saml2idp" for an IdP - // record or "saml2sp" for an SP record. Populated server-side on read - // from the team snowflake and the resource id; not persisted in DDB. - // Empty for pure-tombstone records that can't be classified from content. - string resource_s2r = 4; - - oneof record { - Tombstone tombstone = 10; - SAML2ServiceProvider provider = 11; // v1 - splitsecure.enclaveservices.saml2.v1.IdPStateAndKey idp = 12; // v1 - splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProvider signed_service_provider = 13; // v2 - splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKey signed_idp = 14; // v2 - } - - message Content { - oneof union { - Tombstone tombstone = 1; - UpdateableRecord updateable_record = 2; - } - } - - message UpdateableRecord { - // The ID of the canonical resource record - bytes original_id = 1; - - // The last time this record was updated - google.protobuf.Timestamp updated_at = 2; - - UpdateableContent content = 3; - } - - message UpdateableContent { - oneof union { - splitsecure.enclaveservices.saml2.v2.AuthenticatedSAML2ServiceProvider signed_service_provider = 1; - splitsecure.enclaveservices.saml2.v2.AuthenticatedIdPStateAndKey signed_idp = 2; - } - } -} - -message SAML2ServiceProvider { - string name = 1; - string acs = 2; - string idp_id = 3; - string entity_id = 4 [deprecated = true]; // Deprecated in favor of metadata.entity_descriptor.entity_id - splitsecure.saml2metadatafetcherservice.v1.Metadata metadata = 5; - splitsecure.teamresource.v1.AccountSensitivity sensitivity = 7; - - // notification_policy controls how notifications are sent for proposals - // involving this service provider. Copied from IdPState at creation time. - splitsecure.notifications.v1.NotificationPolicy notification_policy = 6; - - // base_resource_attributes is the unified resource metadata view. - // When present, consumers should prefer this over the flat fields above. - // Both paths are supported for backwards compatibility. - splitsecure.teamresource.v1.BaseResourceAttributes base_resource_attributes = 8; - - oneof account { - AWS aws = 100; - Cloudflare cloudflare = 112; - EventBrite event_brite = 105; - GCP gcp = 106; - GoogleWorkspace google_workspace = 101; - GoogleWorkspaceLegacy google_workspace_legacy = 110; - IBMCloud ibm_cloud = 113; - Kandji kandji = 111; - MicrosoftEntraID microsoft_entra_id = 107; - Okta okta = 103; - OracleCloud oracle_cloud = 114; - PagerDuty pager_duty = 115; - PitchBook pitch_book = 108; - Rapid7 rapid7 = 116; - Stripe stripe = 102; - Veeam veeam = 104; - Workday workday = 109; - } - - message AWS { - // string account_id = 1; - string saml_provider_arn = 2; - string default_role_arn = 3 [deprecated = true]; - repeated string allowed_role_arns = 4; - } - - message Cloudflare { - string sso_endpoint = 1; - string default_email = 2; - } - - message EventBrite {} - - message GCP { - string default_email = 1; - } - - message GoogleWorkspace { - // tbd - } - - message GoogleWorkspaceLegacy { - string default_email = 1; - string domain_name = 2; - } - - message IBMCloud { - string login_url = 1; - } - - message Kandji { - string default_email = 1; - } - - message MicrosoftEntraID {} - - message Okta { - repeated string allowed_emails = 1; - } - - message OracleCloud {} - - message PagerDuty {} - - message PitchBook {} - - message Rapid7 { - string default_relay_state = 1; - string default_email = 2; - string default_first_name = 3; - string default_last_name = 4; - repeated string default_rbac_groups = 5; - } - - message Stripe { - string account_id = 1; - } - - message Veeam {} - message Workday {} - - // GlobalRelay - // DeepVue -} diff --git a/proto/splitsecure/conveniencestore/v1/tombstone.proto b/proto/splitsecure/conveniencestore/v1/tombstone.proto deleted file mode 100644 index 85b12e9..0000000 --- a/proto/splitsecure/conveniencestore/v1/tombstone.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto3"; -package splitsecure.conveniencestore.v1; - -message Tombstone { - bytes target_id = 1; -} diff --git a/proto/splitsecure/enclave/v1/enclave.proto b/proto/splitsecure/enclave/v1/enclave.proto deleted file mode 100644 index 8eb7a2d..0000000 --- a/proto/splitsecure/enclave/v1/enclave.proto +++ /dev/null @@ -1,33 +0,0 @@ -syntax = "proto3"; -package splitsecure.enclave.v1; - -message InvokeRequest { - string app_fqn = 1; - bytes payload = 2; -} - -message ExplainRequest { - InvokeRequest invoke_request = 1; -} - -message InvokeResponse { - oneof union { - bytes success = 1; - Error error = 2; - } -} - -message ExplainResponse { - Error runtime_error = 1; - string explanation = 2; -} - -message Error { - uint32 code = 1; - string message = 2; -} - -service EnclaveService { - rpc Invoke(InvokeRequest) returns (InvokeResponse) {} - rpc Explain(ExplainRequest) returns (ExplainResponse) {} -} diff --git a/proto/splitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.proto b/proto/splitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.proto deleted file mode 100644 index b444417..0000000 --- a/proto/splitsecure/enclaveroundtrip/v1/provider_custom_enclaveroundtrip_service.proto +++ /dev/null @@ -1,37 +0,0 @@ -syntax = "proto3"; -package splitsecure.enclaveroundtrip.v1; - -import "splitsecure/enclave/v1/enclave.proto"; -import "splitsecure/requestsigning/v1/signed_request.proto"; - -// Slim service definition for the Terraform provider. -// Only declares RPCs the provider uses (Send + GetProposalForRequest; -// Watch / Reply stay out of the provider's trust surface). -service EnclaveRoundtripService { - rpc Send(SendRequest) returns (SendResponse); - rpc GetProposalForRequest(GetProposalForRequestRequest) returns (GetProposalForRequestResponse); -} - -message SendRequest { - requestsigning.v1.SignedRequest signed = 1; - Base base = 2; - message Base { - oneof target { - bytes target_enclave_id = 1; - string new_proposal_scoped_enclave = 3; - } - enclave.v1.InvokeRequest invoke_request = 2; - } -} - -message SendResponse { - bytes request_id = 1; -} - -message GetProposalForRequestRequest { - bytes request_id = 1; -} - -message GetProposalForRequestResponse { - bytes proposal_id = 1; -} diff --git a/proto/splitsecure/enclaveservices/saml2/v1/idp_state.proto b/proto/splitsecure/enclaveservices/saml2/v1/idp_state.proto deleted file mode 100644 index 71a8c9d..0000000 --- a/proto/splitsecure/enclaveservices/saml2/v1/idp_state.proto +++ /dev/null @@ -1,36 +0,0 @@ -syntax = "proto3"; -package splitsecure.enclaveservices.saml2.v1; - -import "splitsecure/enclaveservices/threshold/v1/threshold_key.proto"; -import "splitsecure/notifications/v1/notification_policy.proto"; -import "splitsecure/teamresource/v1/team_resource.proto"; - -message IdPState { - bytes x509_certificate = 1; - string provider_id = 2; - string name = 4; - // sso_url, when omitted, is assumed to be https://app.splitsecure.com/saml2idp/login - string sso_url = 3; - string sso_url_post = 5; - - // notification_policy controls how notifications are sent for proposals - // involving this IdP. Set at creation time, immutable. - splitsecure.notifications.v1.NotificationPolicy notification_policy = 6; - - // description is an optional free-form description of this identity provider - string description = 7; - - // proposal_id is the SHA3-512 hash of the execution context bottle that - // created this resource, linking it to the audit log. Set by the enclave. - bytes proposal_id = 8; -} - -message IdPStateAndKey { - IdPState idp_state = 1; - threshold.v1.ThresholdKey signing_key = 2; // team_ids live in DerivedKey.team_ids - - // Team authentication (added for v2 flow). - // authenticated contains serialized IdPStateAndKey (fields 1-2 only) - exact bytes signed. - bytes authenticated = 3; - repeated splitsecure.teamresource.v1.TeamSignature team_signatures = 4; -} diff --git a/proto/splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.proto b/proto/splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.proto deleted file mode 100644 index b0242bb..0000000 --- a/proto/splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -package splitsecure.enclaveservices.saml2.v2; - -import "splitsecure/teamresource/v1/team_resource.proto"; - -message AuthenticatedIdPStateAndKey { - bytes authenticated = 1; // Serialized saml2.v1.IdPStateAndKey (fields 1-2 only) - repeated splitsecure.teamresource.v1.TeamSignature team_signatures = 2; -} diff --git a/proto/splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.proto b/proto/splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.proto deleted file mode 100644 index dd75782..0000000 --- a/proto/splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -package splitsecure.enclaveservices.saml2.v2; - -import "splitsecure/teamresource/v1/team_resource.proto"; - -message AuthenticatedSAML2ServiceProvider { - bytes authenticated = 1; // Serialized saml2.v2.SAML2ServiceProvider - repeated splitsecure.teamresource.v1.TeamSignature team_signatures = 2; -} diff --git a/proto/splitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto b/proto/splitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto deleted file mode 100644 index b46cf2e..0000000 --- a/proto/splitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto +++ /dev/null @@ -1,118 +0,0 @@ -syntax = "proto3"; -package splitsecure.enclaveservices.saml2.v2; - -import "splitsecure/notifications/v1/notification_policy.proto"; -import "splitsecure/saml2metadatafetcherservice/v1/metadata.proto"; -import "splitsecure/teamresource/v1/team_resource.proto"; - -message SAML2ServiceProvider { - string name = 1; - // acs (2) removed: use metadata.entity_descriptor.sp_sso_descriptor[].assertion_consumer_service[].base.location - reserved 2; - // idp_auth_sum is the SHA3-256 hash of the AuthenticatedIdPStateAndKey.authenticated - // bytes that were presented when this SP was created. Used by the enclave at sign time - // to guarantee the SP was created against the exact same IdP. - bytes idp_auth_sum = 3; - - // idp_coord_id_hint is the coordination-layer snowflake ID of the IdP resource. - // Used as a hint by the coordination service to look up the matching IdP for this SP. - string idp_coord_id_hint = 4; - - splitsecure.saml2metadatafetcherservice.v1.Metadata metadata = 5; - splitsecure.teamresource.v1.AccountSensitivity sensitivity = 7; - - // notification_policy controls how notifications are sent for proposals - // involving this service provider. Copied from IdPState at creation time. - splitsecure.notifications.v1.NotificationPolicy notification_policy = 6; - - // description is an optional free-form description of this service provider - string description = 8; - - // proposal_id is the SHA3-512 hash of the execution context bottle that - // created this resource, linking it to the audit log. Set by the enclave. - bytes proposal_id = 9; - - // base_resource_attributes is the unified resource metadata view. - // When present, consumers should prefer this over the flat fields above. - // Both paths are supported for backwards compatibility. - splitsecure.teamresource.v1.BaseResourceAttributes base_resource_attributes = 10; - - oneof account { - AWS aws = 100; - Cloudflare cloudflare = 112; - EventBrite event_brite = 105; - GCP gcp = 106; - GoogleWorkspace google_workspace = 101; - GoogleWorkspaceLegacy google_workspace_legacy = 110; - IBMCloud ibm_cloud = 113; - Kandji kandji = 111; - MicrosoftEntraID microsoft_entra_id = 107; - Okta okta = 103; - OracleCloud oracle_cloud = 114; - PagerDuty pager_duty = 115; - PitchBook pitch_book = 108; - Rapid7 rapid7 = 116; - Stripe stripe = 102; - Veeam veeam = 104; - Workday workday = 109; - } - - message AWS { - string saml_provider_arn = 2; - string default_role_arn = 3 [deprecated = true]; - repeated string allowed_role_arns = 4; - } - - message Cloudflare { - string sso_endpoint = 1; - string default_email = 2; - } - - message EventBrite {} - - message GCP { - string default_email = 1; - } - - message GoogleWorkspace {} - - message GoogleWorkspaceLegacy { - string default_email = 1; - string domain_name = 2; - } - - message IBMCloud { - string login_url = 1; - } - - message Kandji { - string default_email = 1; - } - - message MicrosoftEntraID {} - - message Okta { - repeated string allowed_emails = 1; - } - - message OracleCloud {} - - message PagerDuty {} - - message PitchBook {} - - message Rapid7 { - string default_relay_state = 1; - string default_email = 2; - string default_first_name = 3; - string default_last_name = 4; - repeated string default_rbac_groups = 5; - } - - message Stripe { - string account_id = 1; - } - - message Veeam {} - message Workday {} -} diff --git a/proto/splitsecure/enclaveservices/threshold/v1/threshold_key.proto b/proto/splitsecure/enclaveservices/threshold/v1/threshold_key.proto deleted file mode 100644 index 1f58a1a..0000000 --- a/proto/splitsecure/enclaveservices/threshold/v1/threshold_key.proto +++ /dev/null @@ -1,26 +0,0 @@ -syntax = "proto3"; -package splitsecure.enclaveservices.threshold.v1; - -import "splitsecure/keys/v1/spec.proto"; - -message ThresholdKey { - oneof union { - DerivedKey derived_key = 1; - WrappedKey wrapped_key = 2; - } -} - -message DerivedKey { - // team_id can be repeated if this key depends on multiple teams. - repeated bytes team_ids = 1; - keys.v1.Spec spec = 2; - bytes derivation = 3; -} - -// WrappedKey is a key that has been wrapped by -// a derived key. -message WrappedKey { - ThresholdKey wrapping_key = 1; - keys.v1.Spec spec = 2; - bytes wrapped_data = 3; -} diff --git a/proto/splitsecure/hybridkeyset/v1/hybridkeyset.proto b/proto/splitsecure/hybridkeyset/v1/hybridkeyset.proto deleted file mode 100644 index 301aea8..0000000 --- a/proto/splitsecure/hybridkeyset/v1/hybridkeyset.proto +++ /dev/null @@ -1,58 +0,0 @@ -syntax = "proto3"; -package splitsecure.hybridkeyset.v1; - -import "splitsecure/keys/v1/spec.proto"; - -message HybridKeySet { - repeated KeyInfo keys = 1; -} - -message KeyInfo { - bytes hash = 1; - keys.v1.Spec public_key_spec = 2; - uint32 default_digest_algorithm = 3; -} - -message DetachedKey { - uint32 index = 1; - bytes key = 2; -} - -message HybridKeySetWithDetachedKeys { - // hybrid_key_set holds a serialized HybridKeySet - bytes hybrid_key_set = 1; - repeated DetachedKey keys = 2; -} - -message Signature { - // keys_bitfield has a high bit for each key that was used to generate this signature - // this field is authenticated by the signature itself in order to prevent - // the removal of a signature. - // The only issue that this faces is: if it becomes possible to generate a signature - // by only knowing a public key, the adversary can remove all other signatures - // and provide a bitfield with only keys of the broken algo. - // In order to paliate thi issue, the signature verification process returns - // the list of keys that have been used to verify and should expect a minimal set of algos. - // In the name of flexibility, the receiver could specify that it expects `n`` different - // signatures schemes of at least `b` level of security. - // This is up to the verifier. - uint32 keys_bitfield = 1; - - // signatures contains the signatures for each key specified in the bitfield. - // They are ordered from LSB to MSB based on the order of appearance in `keys_bitfield`. - repeated bytes signatures = 2; -} - -// ExchangeEphemeralCiphertext contains one matching entry for each public exchange key provided by the initiator -// Those entries are: -// - for Diffie-Hellman: a public key -// - for Key Encapsulation Mechanism (KEM): a ciphertext / encapsulated key -// -// An entry index is meant to map to the index of an exchange key provided in the initiator's keyset. -message ExchangeEphemeralCiphertext { - repeated Entry ciphertexts = 1; - message Entry { - uint32 index = 1; - bytes key = 2; - } -} diff --git a/proto/splitsecure/keys/v1/aes.proto b/proto/splitsecure/keys/v1/aes.proto deleted file mode 100644 index e05722d..0000000 --- a/proto/splitsecure/keys/v1/aes.proto +++ /dev/null @@ -1,31 +0,0 @@ -syntax = "proto3"; -package splitsecure.keys.v1; - -import "google/protobuf/empty.proto"; - -message AES { - enum Length { - LENGTH_UNSPECIFIED = 0; - LENGTH_128 = 1; - LENGTH_256 = 2; - } - - AESBlockMode block_mode = 1; - Length length = 2; -} - -message AESBlockMode { - oneof mode { - google.protobuf.Empty ecb = 1; - google.protobuf.Empty cbc = 2; - BlockModeGCM gcm = 3; - BlockModeCCM ccm = 4; - } -} - -message BlockModeGCM { - // there is no optonality with regards to nonce size or tag length - // the values to comply with FIPS-140-3 are used (respectively 96 and 128 bits). -} - -message BlockModeCCM {} diff --git a/proto/splitsecure/keys/v1/diffie_hellman_spec.proto b/proto/splitsecure/keys/v1/diffie_hellman_spec.proto deleted file mode 100644 index ffb8608..0000000 --- a/proto/splitsecure/keys/v1/diffie_hellman_spec.proto +++ /dev/null @@ -1,20 +0,0 @@ -syntax = "proto3"; -package splitsecure.keys.v1; - -import "google/protobuf/empty.proto"; - -message DiffieHellmanSpec { - oneof union { - ECDHSpec ecdh = 1; - } -} - -message ECDHSpec { - oneof union { - google.protobuf.Empty p256 = 1; - google.protobuf.Empty p384 = 2; - google.protobuf.Empty p521 = 3; - google.protobuf.Empty x25519 = 4; - google.protobuf.Empty x448 = 5; - } -} diff --git a/proto/splitsecure/keys/v1/key_encapsulation_spec.proto b/proto/splitsecure/keys/v1/key_encapsulation_spec.proto deleted file mode 100644 index a1449e6..0000000 --- a/proto/splitsecure/keys/v1/key_encapsulation_spec.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; -package splitsecure.keys.v1; - -import "google/protobuf/empty.proto"; - -message KeyEncapsulationSpec { - oneof union { - MLKEM mlkem = 1; - } -} - -message MLKEM { - oneof union { - google.protobuf.Empty v512 = 1; - google.protobuf.Empty v768 = 2; - google.protobuf.Empty v1024 = 3; - } -} diff --git a/proto/splitsecure/keys/v1/signature_spec.proto b/proto/splitsecure/keys/v1/signature_spec.proto deleted file mode 100644 index 86f582b..0000000 --- a/proto/splitsecure/keys/v1/signature_spec.proto +++ /dev/null @@ -1,73 +0,0 @@ -syntax = "proto3"; -package splitsecure.keys.v1; - -import "google/protobuf/empty.proto"; - -message SignatureSpec { - oneof union { - ECDSA ecdsa = 1; - EDDSA eddsa = 2; - MLDSA mldsa = 3; // FIPS 204 - RSA rsa = 4; - } -} - -enum ECDSA { - ECDSA_UNSPECIFIED = 0; - // NIST curves - ECDSA_NIST_P224 = 1; - ECDSA_NIST_P256 = 2; - ECDSA_NIST_P384 = 3; - ECDSA_NIST_P521 = 4; - - // NIST pseudorandom curves - ECDSA_NIST_B233 = 5; - ECDSA_NIST_B283 = 6; - ECDSA_NIST_B409 = 7; - ECDSA_NIST_B571 = 8; - - // NIST Koblitz curves - ECDSA_NIST_K233 = 9; - ECDSA_NIST_K283 = 10; - ECDSA_NIST_K409 = 11; - ECDSA_NIST_K571 = 12; - - // SEC curves - ECDSA_SEC_P192K1 = 13; - ECDSA_SEC_P224K1 = 14; - ECDSA_SEC_P256K1 = 15; - - // Brainpool curves - ECDSA_BRAINPOOL_P256R1 = 16; - ECDSA_BRAINPOOL_P384R1 = 17; - ECDSA_BRAINPOOL_P512R1 = 18; -} - -message EDDSA { - oneof union { - ED25519 ed25519 = 1; - ED448 ed448 = 2; - } - - message ED25519 {} - message ED448 {} -} - -message MLDSA { - oneof union { - google.protobuf.Empty v44 = 1; - google.protobuf.Empty v65 = 2; - google.protobuf.Empty v87 = 3; - } -} - -message RSA { - uint32 bits = 1; - SignatureScheme signature_scheme = 2; - - enum SignatureScheme { - SIGNATURE_SCHEME_UNSPECIFIED = 0; - SIGNATURE_SCHEME_PKCS1V15 = 1; - SIGNATURE_SCHEME_PSS = 2; - } -} diff --git a/proto/splitsecure/keys/v1/spec.proto b/proto/splitsecure/keys/v1/spec.proto deleted file mode 100644 index f328bc7..0000000 --- a/proto/splitsecure/keys/v1/spec.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; -package splitsecure.keys.v1; - -import "splitsecure/keys/v1/diffie_hellman_spec.proto"; -import "splitsecure/keys/v1/key_encapsulation_spec.proto"; -import "splitsecure/keys/v1/signature_spec.proto"; -import "splitsecure/keys/v1/symmetric_encryption_spec.proto"; - -message Spec { - oneof union { - SymmetricEncryptionSpec symmetric_encryption = 1; - SignatureSpec signature = 2; - DiffieHellmanSpec diffie_hellman = 3; - KeyEncapsulationSpec key_encapsulation = 4; - } -} diff --git a/proto/splitsecure/keys/v1/symmetric_encryption_spec.proto b/proto/splitsecure/keys/v1/symmetric_encryption_spec.proto deleted file mode 100644 index 3bc96a9..0000000 --- a/proto/splitsecure/keys/v1/symmetric_encryption_spec.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -package splitsecure.keys.v1; - -import "splitsecure/keys/v1/aes.proto"; - -message SymmetricEncryptionSpec { - oneof union { - AES aes = 1; - } -} diff --git a/proto/splitsecure/notifications/v1/notification_policy.proto b/proto/splitsecure/notifications/v1/notification_policy.proto deleted file mode 100644 index 4e0a273..0000000 --- a/proto/splitsecure/notifications/v1/notification_policy.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -package splitsecure.notifications.v1; - -enum NotificationPolicy { - // UNSPECIFIED behaves as NOTIFICATION_POLICY_NOTIFY_EVERYONE. - NOTIFICATION_POLICY_UNSPECIFIED = 0; - NOTIFICATION_POLICY_NOTIFY_EVERYONE = 1; - NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS = 2; -} diff --git a/proto/splitsecure/proposals/v1/provider_custom_proposals_service.proto b/proto/splitsecure/proposals/v1/provider_custom_proposals_service.proto deleted file mode 100644 index bada2e8..0000000 --- a/proto/splitsecure/proposals/v1/provider_custom_proposals_service.proto +++ /dev/null @@ -1,51 +0,0 @@ -syntax = "proto3"; -package splitsecure.proposals.v1; - -import "google/protobuf/timestamp.proto"; -import "splitsecure/requestsigning/v1/signed_request.proto"; - -// Slim service definition for the Terraform provider. Only declares -// GetProposal (+ its supporting types). The full server-side -// ProposalsService also has Publish/Vote/Complete/Watch/List/... but -// the provider polls GetProposal only; bringing in the rest would drag -// threshold + bottle + hybridkeyset dependencies. -service ProposalsService { - rpc GetProposal(GetProposalRequest) returns (GetProposalResponse); -} - -message GetProposalRequest { - requestsigning.v1.SignedRequest signed = 1; - Base base = 2; - message Base { - bytes proposal_id = 1; - } -} - -message GetProposalResponse { - ProposalMetadata metadata = 1; - bytes stream_id = 2; -} - -message ProposalMetadata { - bytes proposal_id = 1; - ProposalStatus status = 2; - google.protobuf.Timestamp created_at = 3; - google.protobuf.Timestamp updated_at = 4; - int32 current_step = 5; - bytes initiator_enclave_id = 6; - repeated bytes team_ids = 7; - string flow_id = 8; -} - -message ProposalStatus { - oneof status { - InProgress in_progress = 1; - Completed completed = 2; - Error error = 3; - } - message InProgress {} - message Completed {} - message Error { - string message = 1; - } -} diff --git a/proto/splitsecure/requestsigning/v1/signed_request.proto b/proto/splitsecure/requestsigning/v1/signed_request.proto deleted file mode 100644 index 970b2ed..0000000 --- a/proto/splitsecure/requestsigning/v1/signed_request.proto +++ /dev/null @@ -1,8 +0,0 @@ -syntax = "proto3"; -package splitsecure.requestsigning.v1; - -// Stub: SA callers never populate this field. -// Avoids syncing the full delegation graph / attestation / keys dependency tree. -message SignedRequest { - bytes requestor_id = 1; -} diff --git a/proto/splitsecure/saml2metadatafetcherservice/v1/metadata.proto b/proto/splitsecure/saml2metadatafetcherservice/v1/metadata.proto deleted file mode 100644 index 2f2f4ae..0000000 --- a/proto/splitsecure/saml2metadatafetcherservice/v1/metadata.proto +++ /dev/null @@ -1,450 +0,0 @@ -syntax = "proto3"; -package splitsecure.saml2metadatafetcherservice.v1; - -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -// Metadata is the top-level wrapper for SAML metadata -message Metadata { - oneof content { - EntityDescriptor entity_descriptor = 1; - // EntitiesDescriptor entities_descriptor = 2; - } -} - -// EntityDescriptor represents a SAML entity (IdP or SP) -message EntityDescriptor { - // Required: unique identifier for the entity (max 1024 chars) - string entity_id = 1; - - // Optional: signature over the descriptor - bytes signature = 2; - - // Optional: extension elements - Extensions extensions = 3; - - // Role descriptors - at least one required - repeated IDPSSODescriptor idp_sso_descriptor = 4; - repeated SPSSODescriptor sp_sso_descriptor = 5; - repeated AuthnAuthorityDescriptor authn_authority_descriptor = 6; - repeated AttributeAuthorityDescriptor attribute_authority_descriptor = 7; - repeated PDPDescriptor pdp_descriptor = 8; - - // Alternative: affiliation descriptor (mutually exclusive with role descriptors) - AffiliationDescriptor affiliation_descriptor = 9; - - // Optional: organization information - Organization organization = 10; - - // Optional: contact persons - repeated ContactPerson contact_person = 11; - - // Optional: additional metadata locations - repeated AdditionalMetadataLocation additional_metadata_location = 12; - - // Optional: validity period - google.protobuf.Timestamp valid_until = 13; - - // Optional: cache duration - google.protobuf.Duration cache_duration = 14; - - // Optional: ID attribute - string id = 15; -} - -// EntitiesDescriptor represents a collection of entities -message EntitiesDescriptor { - // Optional: signature over the descriptor - bytes signature = 1; - - // Optional: extension elements - Extensions extensions = 2; - - // Child entity or entities descriptors (at least one required) - repeated EntityDescriptor entity_descriptor = 3; - repeated EntitiesDescriptor entities_descriptor = 4; - - // Optional: validity period - google.protobuf.Timestamp valid_until = 5; - - // Optional: cache duration - google.protobuf.Duration cache_duration = 6; - - // Optional: name - string name = 7; - - // Optional: ID attribute - string id = 8; -} - -// IDPSSODescriptor represents an Identity Provider SSO descriptor -message IDPSSODescriptor { - // Base SSO descriptor fields - SSODescriptorType base = 1; - - // Optional: whether the IdP wants AuthnRequests to be signed - bool want_authn_requests_signed = 2; - - // Required: single sign-on service endpoints (at least one) - repeated Endpoint single_sign_on_service = 3; - - // Optional: name ID mapping service endpoints - repeated Endpoint name_id_mapping_service = 4; - - // Optional: assertion ID request service endpoints - repeated Endpoint assertion_id_request_service = 5; - - // Optional: supported attribute profiles - repeated string attribute_profile = 6; - - // Optional: supported attributes - repeated Attribute attribute = 7; -} - -// SPSSODescriptor represents a Service Provider SSO descriptor -message SPSSODescriptor { - // Base SSO descriptor fields - SSODescriptorType base = 1; - - // Optional: whether the SP signs AuthnRequests - bool authn_requests_signed = 2; - - // Optional: whether the SP wants assertions to be signed - bool want_assertions_signed = 3; - - // Required: assertion consumer service endpoints (at least one) - repeated IndexedEndpoint assertion_consumer_service = 4; - - // Optional: attribute consuming services - repeated AttributeConsumingService attribute_consuming_service = 5; -} - -// AuthnAuthorityDescriptor represents an Authentication Authority descriptor -message AuthnAuthorityDescriptor { - // Base role descriptor fields - RoleDescriptorType base = 1; - - // Required: authentication query service endpoints (at least one) - repeated Endpoint authn_query_service = 2; - - // Optional: assertion ID request service endpoints - repeated Endpoint assertion_id_request_service = 3; - - // Optional: supported name ID formats - repeated string name_id_format = 4; -} - -// PDPDescriptor represents a Policy Decision Point descriptor -message PDPDescriptor { - // Base role descriptor fields - RoleDescriptorType base = 1; - - // Required: authorization service endpoints (at least one) - repeated Endpoint authz_service = 2; - - // Optional: assertion ID request service endpoints - repeated Endpoint assertion_id_request_service = 3; - - // Optional: supported name ID formats - repeated string name_id_format = 4; -} - -// AttributeAuthorityDescriptor represents an Attribute Authority descriptor -message AttributeAuthorityDescriptor { - // Base role descriptor fields - RoleDescriptorType base = 1; - - // Required: attribute service endpoints (at least one) - repeated Endpoint attribute_service = 2; - - // Optional: assertion ID request service endpoints - repeated Endpoint assertion_id_request_service = 3; - - // Optional: supported name ID formats - repeated string name_id_format = 4; - - // Optional: supported attribute profiles - repeated string attribute_profile = 5; - - // Optional: supported attributes - repeated Attribute attribute = 6; -} - -// SSODescriptorType is the base type for SSO descriptors -message SSODescriptorType { - // Base role descriptor fields - RoleDescriptorType base = 1; - - // Optional: artifact resolution service endpoints - repeated IndexedEndpoint artifact_resolution_service = 2; - - // Optional: single logout service endpoints - repeated Endpoint single_logout_service = 3; - - // Optional: manage name ID service endpoints - repeated Endpoint manage_name_id_service = 4; - - // Optional: supported name ID formats - repeated string name_id_format = 5; -} - -// RoleDescriptorType is the base type for all role descriptors -message RoleDescriptorType { - // Optional: signature over the descriptor - bytes signature = 1; - - // Optional: extension elements - Extensions extensions = 2; - - // Optional: key descriptors - repeated KeyDescriptor key_descriptor = 3; - - // Optional: organization - Organization organization = 4; - - // Optional: contact persons - repeated ContactPerson contact_person = 5; - - // Optional: protocol support enumeration (required, space-separated URIs) - repeated string protocol_support_enumeration = 6; - - // Optional: error URL - string error_url = 7; - - // Optional: validity period - google.protobuf.Timestamp valid_until = 8; - - // Optional: cache duration - google.protobuf.Duration cache_duration = 9; - - // Optional: ID attribute - string id = 10; -} - -// KeyDescriptor describes a cryptographic key -message KeyDescriptor { - // Optional: key use (signing or encryption) - KeyType use = 1; - - // Required: key information (X.509 certificate, etc.) - KeyInfo key_info = 2; - - // Optional: encryption methods supported - repeated EncryptionMethod encryption_method = 3; -} - -enum KeyType { - KEY_TYPE_UNSPECIFIED = 0; - KEY_TYPE_SIGNING = 1; - KEY_TYPE_ENCRYPTION = 2; -} - -// KeyInfo represents key information (simplified from XML dsig) -message KeyInfo { - // X.509 certificate data - bytes x509_certificate = 1; - - // Optional: key name - string key_name = 2; - - // Optional: raw key value - bytes key_value = 3; -} - -// EncryptionMethod describes an encryption algorithm -message EncryptionMethod { - // Required: algorithm URI - string algorithm = 1; - - // Optional: key size - int32 key_size = 2; - - // Optional: OAEP parameters - bytes oaep_params = 3; -} - -// Endpoint represents a SAML endpoint -message Endpoint { - // Required: binding URI - string binding = 1; - - // Required: location URI - string location = 2; - - // Optional: response location URI - string response_location = 3; -} - -// IndexedEndpoint represents an indexed SAML endpoint -message IndexedEndpoint { - // Base endpoint fields - Endpoint base = 1; - - // Required: index - uint32 index = 2; - - // Optional: is default - bool is_default = 3; -} - -// Organization describes an organization -message Organization { - // Optional: extensions - Extensions extensions = 1; - - // Required: organization names (at least one, with language tags) - repeated LocalizedName organization_name = 2; - - // Required: organization display names (at least one, with language tags) - repeated LocalizedName organization_display_name = 3; - - // Required: organization URLs (at least one, with language tags) - repeated LocalizedURI organization_url = 4; -} - -// ContactPerson describes a contact person -message ContactPerson { - // Required: contact type - ContactType contact_type = 1; - - // Optional: extensions - Extensions extensions = 2; - - // Optional: company - string company = 3; - - // Optional: given name - string given_name = 4; - - // Optional: surname - string surname = 5; - - // Optional: email addresses - repeated string email_address = 6; - - // Optional: telephone numbers - repeated string telephone_number = 7; -} - -enum ContactType { - CONTACT_TYPE_UNSPECIFIED = 0; - CONTACT_TYPE_TECHNICAL = 1; - CONTACT_TYPE_SUPPORT = 2; - CONTACT_TYPE_ADMINISTRATIVE = 3; - CONTACT_TYPE_BILLING = 4; - CONTACT_TYPE_OTHER = 5; -} - -// AttributeConsumingService describes a service that consumes attributes -message AttributeConsumingService { - // Required: index - uint32 index = 1; - - // Optional: is default - bool is_default = 2; - - // Required: service names (at least one, with language tags) - repeated LocalizedName service_name = 3; - - // Optional: service descriptions (with language tags) - repeated LocalizedName service_description = 4; - - // Required: requested attributes (at least one) - repeated RequestedAttribute requested_attribute = 5; -} - -// RequestedAttribute describes an attribute requested by a service -message RequestedAttribute { - // Attribute definition - Attribute attribute = 1; - - // Optional: is required - bool is_required = 2; -} - -// Attribute represents a SAML attribute -message Attribute { - // Required: attribute name - string name = 1; - - // Optional: name format - string name_format = 2; - - // Optional: friendly name - string friendly_name = 3; - - // Optional: attribute values - repeated string attribute_value = 4; -} - -// AffiliationDescriptor describes an affiliation of entities -message AffiliationDescriptor { - // Required: affiliation owner ID - string affiliation_owner_id = 1; - - // Optional: signature - bytes signature = 2; - - // Optional: extensions - Extensions extensions = 3; - - // Required: affiliated member entity IDs (at least one) - repeated string affiliate_member = 4; - - // Optional: key descriptors - repeated KeyDescriptor key_descriptor = 5; - - // Optional: validity period - google.protobuf.Timestamp valid_until = 6; - - // Optional: cache duration - google.protobuf.Duration cache_duration = 7; - - // Optional: ID attribute - string id = 8; -} - -// AdditionalMetadataLocation points to additional metadata -message AdditionalMetadataLocation { - // Required: namespace - string namespace = 1; - - // Required: location URI - string location = 2; -} - -// LocalizedName represents a name with language tag -message LocalizedName { - // Required: name value - string value = 1; - - // Required: language tag (e.g., "en", "es") - string lang = 2; -} - -// LocalizedURI represents a URI with language tag -message LocalizedURI { - // Required: URI value - string value = 1; - - // Required: language tag (e.g., "en", "es") - string lang = 2; -} - -// Extensions represents extension elements -message Extensions { - // Arbitrary extension data (could be structured or raw XML) - repeated Extension extension = 1; -} - -// Extension represents a single extension element -message Extension { - // Extension namespace - string namespace = 1; - - // Extension local name - string local_name = 2; - - // Extension data (raw XML or serialized proto) - bytes data = 3; -} diff --git a/proto/splitsecure/teamresource/v1/team_resource.proto b/proto/splitsecure/teamresource/v1/team_resource.proto deleted file mode 100644 index 3a7f625..0000000 --- a/proto/splitsecure/teamresource/v1/team_resource.proto +++ /dev/null @@ -1,55 +0,0 @@ -syntax = "proto3"; -package splitsecure.teamresource.v1; - -import "splitsecure/hybridkeyset/v1/hybridkeyset.proto"; -import "splitsecure/notifications/v1/notification_policy.proto"; - -// TeamSignature binds a resource to a team. -// The team's base signer signs serialized authenticated bytes. -message TeamSignature { - // team_id is the hash of the team's base identity. - bytes team_id = 1; - - // signature is the team base signer's signature over the authenticated bytes. - splitsecure.hybridkeyset.v1.Signature signature = 2; -} - -// NotificationMode specifies how team members should be notified for a request. -message NotificationMode { - oneof mode { - // notify_everyone sends push notifications to all team members. - NotifyEveryone notify_everyone = 1; - - // selective sends push notifications only to the specified devices; - // all others receive silent notifications (stored but no push). - SelectiveNotification selective = 2; - } - - message NotifyEveryone {} - - message SelectiveNotification { - repeated bytes actively_notify_enclave_ids = 1; - } -} - -// BaseResourceAttributes holds the common metadata shared by all managed resources. -message BaseResourceAttributes { - string name = 1; - string description = 2; - splitsecure.notifications.v1.NotificationPolicy notification_policy = 3; - AccountSensitivity sensitivity = 4; - bytes proposal_id = 5; -} - -enum AccountSensitivityLevel { - ACCOUNT_SENSITIVITY_LEVEL_UNSPECIFIED = 0; - ACCOUNT_SENSITIVITY_LEVEL_LOW = 1; - ACCOUNT_SENSITIVITY_LEVEL_MEDIUM = 2; - ACCOUNT_SENSITIVITY_LEVEL_HIGH = 3; - ACCOUNT_SENSITIVITY_LEVEL_CRITICAL = 4; -} - -message AccountSensitivity { - AccountSensitivityLevel level = 1; - string description = 2; -} diff --git a/scripts/sync-protos.sh b/scripts/sync-protos.sh deleted file mode 100755 index d4167fa..0000000 --- a/scripts/sync-protos.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -# Syncs an allowlisted subset of proto definitions from the source repository. -# -# Usage: -# ./scripts/sync-protos.sh /path/to/source/apis/proto - -SRC="${1:-}" -DST="$(cd "$(dirname "$0")/.." && pwd)/proto" - -if [ -z "$SRC" ] || [ ! -d "$SRC" ]; then - echo "usage: $0 /path/to/source/apis/proto" >&2 - exit 1 -fi - -ALLOWLIST=( - # ConvenienceStore SAML2 RPC + resources - splitsecure/conveniencestore/v1/list_saml2_resources.proto - splitsecure/conveniencestore/v1/saml2_resource.proto - splitsecure/conveniencestore/v1/tombstone.proto - - # ConvenienceStore Generate/Get RPCs used for Create + Delete + Read - splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_request.proto - splitsecure/conveniencestore/v1/generate_create_saml2_idp_proposal_response.proto - splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_request.proto - splitsecure/conveniencestore/v1/generate_create_saml2_sp_proposal_response.proto - splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_request.proto - splitsecure/conveniencestore/v1/generate_delete_saml2_idp_proposal_response.proto - splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_request.proto - splitsecure/conveniencestore/v1/generate_delete_saml2_sp_proposal_response.proto - splitsecure/conveniencestore/v1/get_saml2_resource.proto - splitsecure/conveniencestore/v1/get_proposal_resource.proto - - # Enclave invoke types (needed by EnclaveRoundtripService) - splitsecure/enclave/v1/enclave.proto - - # SAML2 inner types (for decoding authenticated bytes) - splitsecure/enclaveservices/saml2/v1/idp_state.proto - splitsecure/enclaveservices/saml2/v2/authenticated_idp_state_and_key.proto - splitsecure/enclaveservices/saml2/v2/authenticated_saml2_service_provider.proto - splitsecure/enclaveservices/saml2/v2/saml2_service_provider.proto - - # Transitive deps - splitsecure/enclaveservices/threshold/v1/threshold_key.proto - splitsecure/hybridkeyset/v1/hybridkeyset.proto - splitsecure/keys/v1/aes.proto - splitsecure/keys/v1/diffie_hellman_spec.proto - splitsecure/keys/v1/key_encapsulation_spec.proto - splitsecure/keys/v1/signature_spec.proto - splitsecure/keys/v1/spec.proto - splitsecure/keys/v1/symmetric_encryption_spec.proto - splitsecure/notifications/v1/notification_policy.proto - splitsecure/saml2metadatafetcherservice/v1/metadata.proto - splitsecure/teamresource/v1/team_resource.proto -) - -# Clean synced protos (preserve provider-owned files) -find "$DST/splitsecure" -name '*.proto' \ - ! -name 'provider_custom_*' \ - ! -path '*/requestsigning/v1/signed_request.proto' \ - -delete 2>/dev/null || true -find "$DST/splitsecure" -type d -empty -delete 2>/dev/null || true - -for f in "${ALLOWLIST[@]}"; do - mkdir -p "$DST/$(dirname "$f")" - cp "$SRC/$f" "$DST/$f" -done - -echo "synced ${#ALLOWLIST[@]} proto files from $SRC" diff --git a/splitsecure/client/client.go b/splitsecure/client/client.go index 2ac4eae..8f43d0f 100644 --- a/splitsecure/client/client.go +++ b/splitsecure/client/client.go @@ -8,9 +8,9 @@ import ( "github.com/hashicorp/go-retryablehttp" "github.com/hashicorp/terraform-plugin-log/tflog" - conveniencestorev1connect "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1/conveniencestorev1connect" - enclaveroundtripv1connect "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveroundtrip/v1/enclaveroundtripv1connect" - proposalsv1connect "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/proposals/v1/proposalsv1connect" + conveniencestorev1connect "github.com/splitsecure/apis/gen/go/proto/splitsecure/conveniencestore/v1/conveniencestorev1connect" + enclaveroundtripv1connect "github.com/splitsecure/apis/gen/go/proto/splitsecure/enclaveroundtrip/v1/enclaveroundtripv1connect" + proposalsv1connect "github.com/splitsecure/apis/gen/go/proto/splitsecure/proposals/v1/proposalsv1connect" ) // Client wraps the SplitSecure Connect RPC clients plus the diff --git a/splitsecure/services/saml2/identity_provider.go b/splitsecure/services/saml2/identity_provider.go index 7130d22..1d13362 100644 --- a/splitsecure/services/saml2/identity_provider.go +++ b/splitsecure/services/saml2/identity_provider.go @@ -17,9 +17,9 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "google.golang.org/protobuf/proto" - conveniencestorev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1" - saml2v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v1" - teamresourcev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" + conveniencestorev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/conveniencestore/v1" + saml2v2 "github.com/splitsecure/apis/gen/go/proto/splitsecure/saml2/v2" + teamresourcev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/teamresource/v1" "github.com/splitsecure/terraform-provider-splitsecure/splitsecure/client" ) @@ -177,14 +177,16 @@ func (r *saml2IdentityProvider) Create(ctx context.Context, req resource.CreateR genResp, err := r.client.ConvenienceStoreService.GenerateCreateSAML2IdentityProviderProposal(ctx, connect.NewRequest(&conveniencestorev1.GenerateCreateSAML2IdentityProviderProposalRequest{ Base: &conveniencestorev1.GenerateCreateSAML2IdentityProviderProposalRequest_Base{ TeamS2R: plan.TeamS2R.ValueString(), - Attributes: &teamresourcev1.BaseResourceAttributes{ - Name: plan.Name.ValueString(), - Description: plan.Description.ValueString(), - NotificationPolicy: notificationPolicyFromString(plan.NotificationPolicy.ValueString()), + Idp: &saml2v2.IdPState{ + ProviderId: plan.ProviderID.ValueString(), + SsoUrl: plan.SSOURL.ValueString(), + SsoUrlPost: plan.SSOURLPost.ValueString(), + BaseResourceAttributes: &teamresourcev1.BaseResourceAttributes{ + Name: plan.Name.ValueString(), + Description: plan.Description.ValueString(), + NotificationPolicy: notificationPolicyFromString(plan.NotificationPolicy.ValueString()), + }, }, - ProviderId: plan.ProviderID.ValueString(), - SsoUrl: plan.SSOURL.ValueString(), - SsoUrlPost: plan.SSOURLPost.ValueString(), Justification: config.Justification.ValueString(), }, })) @@ -300,10 +302,6 @@ func (r *saml2IdentityProvider) ImportState(ctx context.Context, req resource.Im // populates computed attributes, and renders metadata_xml. func populateIDPModel(m *saml2IdentityProviderModel, resourceS2R string, rec *conveniencestorev1.SAML2ResourceRecord) diag.Diagnostics { signed := rec.GetContent().GetUpdateableRecord().GetContent().GetSignedIdp() - if signed == nil { - // Fallback for legacy top-level record variants. - signed = rec.GetSignedIdp() - } if signed == nil { var d diag.Diagnostics d.AddError("Decoding SAML2 IdP", "record has no signed_idp content") @@ -311,7 +309,7 @@ func populateIDPModel(m *saml2IdentityProviderModel, resourceS2R string, rec *co return d } - var state saml2v1.IdPStateAndKey + var state saml2v2.IdPStateAndKey err := proto.Unmarshal(signed.GetAuthenticated(), &state) if err != nil { var d diag.Diagnostics @@ -325,10 +323,11 @@ func populateIDPModel(m *saml2IdentityProviderModel, resourceS2R string, rec *co if teamS2R := teamS2RFromResourceS2R(resourceS2R); teamS2R != "" { m.TeamS2R = types.StringValue(teamS2R) } + bra := idp.GetBaseResourceAttributes() m.ProviderID = types.StringValue(idp.GetProviderId()) - m.Name = types.StringValue(idp.GetName()) - m.Description = types.StringValue(idp.GetDescription()) - m.NotificationPolicy = types.StringValue(notificationPolicyToString(idp.GetNotificationPolicy())) + m.Name = types.StringValue(bra.GetName()) + m.Description = types.StringValue(bra.GetDescription()) + m.NotificationPolicy = types.StringValue(notificationPolicyToString(bra.GetNotificationPolicy())) m.SSOURL = types.StringValue(idp.GetSsoUrl()) m.SSOURLPost = types.StringValue(idp.GetSsoUrlPost()) diff --git a/splitsecure/services/saml2/metadata.go b/splitsecure/services/saml2/metadata.go index fe45ca6..bb6a9cd 100644 --- a/splitsecure/services/saml2/metadata.go +++ b/splitsecure/services/saml2/metadata.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - saml2v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v1" + saml2v2 "github.com/splitsecure/apis/gen/go/proto/splitsecure/saml2/v2" ) // idpMetadataXML renders the SAML 2.0 EntityDescriptor for an IdPState. @@ -16,7 +16,7 @@ import ( // drift on every plan. Mirrors the rendering rules in priv's // common/saml2.MetadataOfIDPState; if those diverge, metadata_test.go's // golden fixture catches it. -func idpMetadataXML(idp *saml2v1.IdPState) ([]byte, error) { +func idpMetadataXML(idp *saml2v2.IdPState) ([]byte, error) { wantAuthnRequestsSigned := false descriptor := idpSSODescriptor{ ProtocolSupportEnumeration: "urn:oasis:names:tc:SAML:2.0:protocol", diff --git a/splitsecure/services/saml2/metadata_test.go b/splitsecure/services/saml2/metadata_test.go index d0befcf..bbcbbb7 100644 --- a/splitsecure/services/saml2/metadata_test.go +++ b/splitsecure/services/saml2/metadata_test.go @@ -11,13 +11,13 @@ import ( "testing" "time" - saml2v1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v1" + saml2v2 "github.com/splitsecure/apis/gen/go/proto/splitsecure/saml2/v2" ) // freshIDPState builds an IdPState with a fresh ECDSA cert valid 10 // years out. Used by tests that don't care about the cert bytes // themselves, only that the cert parses and renders. -func freshIDPState(t *testing.T) *saml2v1.IdPState { +func freshIDPState(t *testing.T) *saml2v2.IdPState { t.Helper() priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) if err != nil { @@ -34,7 +34,7 @@ func freshIDPState(t *testing.T) *saml2v1.IdPState { t.Fatalf("creating test cert: %v", err) } - return &saml2v1.IdPState{ + return &saml2v2.IdPState{ X509Certificate: der, ProviderId: "https://idp.example.com/saml/idp/test", SsoUrl: "https://companion.example.com/saml2/sp/login", @@ -90,7 +90,7 @@ func TestIdpMetadataXML_HTTPPostOmitted(t *testing.T) { func TestIdpMetadataXML_RejectsUnparseableCert(t *testing.T) { t.Parallel() - state := &saml2v1.IdPState{ + state := &saml2v2.IdPState{ X509Certificate: []byte("not a real cert"), ProviderId: "https://idp.example.com/saml/idp/test", SsoUrl: "https://companion.example.com/saml2/sp/login", diff --git a/splitsecure/services/saml2/notification_policy.go b/splitsecure/services/saml2/notification_policy.go index 849edc1..39cabf0 100644 --- a/splitsecure/services/saml2/notification_policy.go +++ b/splitsecure/services/saml2/notification_policy.go @@ -1,8 +1,8 @@ package saml2 -import notificationsv1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/notifications/v1" +import teamresourcev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/teamresource/v1" -// HCL surface for notifications.v1.NotificationPolicy. Strings match +// HCL surface for teamresource.v1.NotificationPolicy. Strings match // the proto enum suffix in lower_snake_case so HCL stays readable // while the Validators.OneOf set still gives a single source of truth. const ( @@ -20,24 +20,24 @@ func notificationPolicyValues() []string { // notificationPolicyFromString maps an HCL string to the proto enum. // Empty / unknown values default to NotifyEveryone, matching the // server-side default and the web frontend's create payload. -func notificationPolicyFromString(s string) notificationsv1.NotificationPolicy { +func notificationPolicyFromString(s string) teamresourcev1.NotificationPolicy { switch s { case notificationPolicySelective: - return notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS + return teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS default: - return notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE + return teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE } } // notificationPolicyToString maps the proto enum back to its HCL // surface form. Unspecified is normalized to NotifyEveryone (server // behavior) so Read never produces a value the schema rejects. -func notificationPolicyToString(p notificationsv1.NotificationPolicy) string { +func notificationPolicyToString(p teamresourcev1.NotificationPolicy) string { switch p { - case notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS: + case teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS: return notificationPolicySelective - case notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE, - notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_UNSPECIFIED: + case teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE, + teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_UNSPECIFIED: return notificationPolicyNotifyEveryone default: return notificationPolicyNotifyEveryone diff --git a/splitsecure/services/saml2/notification_policy_test.go b/splitsecure/services/saml2/notification_policy_test.go index 4e26489..7f10631 100644 --- a/splitsecure/services/saml2/notification_policy_test.go +++ b/splitsecure/services/saml2/notification_policy_test.go @@ -3,7 +3,7 @@ package saml2 import ( "testing" - notificationsv1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/notifications/v1" + teamresourcev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/teamresource/v1" ) func TestNotificationPolicyRoundTrip(t *testing.T) { @@ -12,10 +12,10 @@ func TestNotificationPolicyRoundTrip(t *testing.T) { cases := []struct { name string hcl string - want notificationsv1.NotificationPolicy + want teamresourcev1.NotificationPolicy }{ - {"notify_everyone", notificationPolicyNotifyEveryone, notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE}, - {"allow_selective", notificationPolicySelective, notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS}, + {"notify_everyone", notificationPolicyNotifyEveryone, teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE}, + {"allow_selective", notificationPolicySelective, teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_ALLOW_SELECTIVE_NOTIFICATIONS}, } for _, tc := range cases { @@ -37,13 +37,13 @@ func TestNotificationPolicyRoundTrip(t *testing.T) { func TestNotificationPolicyDefaults(t *testing.T) { t.Parallel() - if got := notificationPolicyFromString(""); got != notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE { + if got := notificationPolicyFromString(""); got != teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE { t.Fatalf("empty fromString = %v, want NOTIFY_EVERYONE", got) } - if got := notificationPolicyFromString("nonsense"); got != notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE { + if got := notificationPolicyFromString("nonsense"); got != teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_NOTIFY_EVERYONE { t.Fatalf("unknown fromString = %v, want NOTIFY_EVERYONE", got) } - if got := notificationPolicyToString(notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_UNSPECIFIED); got != notificationPolicyNotifyEveryone { + if got := notificationPolicyToString(teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_UNSPECIFIED); got != notificationPolicyNotifyEveryone { t.Fatalf("UNSPECIFIED toString = %q, want %q", got, notificationPolicyNotifyEveryone) } } @@ -60,7 +60,7 @@ func TestNotificationPolicyValuesCoverage(t *testing.T) { t.Parallel() proto := notificationPolicyFromString(hcl) - if proto == notificationsv1.NotificationPolicy_NOTIFICATION_POLICY_UNSPECIFIED { + if proto == teamresourcev1.NotificationPolicy_NOTIFICATION_POLICY_UNSPECIFIED { t.Fatalf("%q maps to UNSPECIFIED -- missing branch in notificationPolicyFromString", hcl) } if back := notificationPolicyToString(proto); back != hcl { diff --git a/splitsecure/services/saml2/proposal.go b/splitsecure/services/saml2/proposal.go index f31516c..881113d 100644 --- a/splitsecure/services/saml2/proposal.go +++ b/splitsecure/services/saml2/proposal.go @@ -9,10 +9,10 @@ import ( "connectrpc.com/connect" "github.com/hashicorp/terraform-plugin-log/tflog" - conveniencestorev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1" - enclavev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1" - enclaveroundtripv1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveroundtrip/v1" - proposalsv1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/proposals/v1" + conveniencestorev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/conveniencestore/v1" + enclavev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/enclave/v1" + enclaveroundtripv1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/enclaveroundtrip/v1" + proposalsv1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/proposals/v1" "github.com/splitsecure/terraform-provider-splitsecure/splitsecure/client" ) diff --git a/splitsecure/services/saml2/proposal_internal_test.go b/splitsecure/services/saml2/proposal_internal_test.go index a6eb7f7..121e498 100644 --- a/splitsecure/services/saml2/proposal_internal_test.go +++ b/splitsecure/services/saml2/proposal_internal_test.go @@ -8,13 +8,13 @@ import ( "connectrpc.com/connect" - conveniencestorev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1" - "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1/conveniencestorev1connect" - enclavev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclave/v1" - enclaveroundtripv1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveroundtrip/v1" - "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveroundtrip/v1/enclaveroundtripv1connect" - proposalsv1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/proposals/v1" - "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/proposals/v1/proposalsv1connect" + conveniencestorev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/conveniencestore/v1" + "github.com/splitsecure/apis/gen/go/proto/splitsecure/conveniencestore/v1/conveniencestorev1connect" + enclavev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/enclave/v1" + enclaveroundtripv1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/enclaveroundtrip/v1" + "github.com/splitsecure/apis/gen/go/proto/splitsecure/enclaveroundtrip/v1/enclaveroundtripv1connect" + proposalsv1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/proposals/v1" + "github.com/splitsecure/apis/gen/go/proto/splitsecure/proposals/v1/proposalsv1connect" "github.com/splitsecure/terraform-provider-splitsecure/splitsecure/client" ) diff --git a/splitsecure/services/saml2/sensitivity.go b/splitsecure/services/saml2/sensitivity.go index b0d3012..e287e69 100644 --- a/splitsecure/services/saml2/sensitivity.go +++ b/splitsecure/services/saml2/sensitivity.go @@ -1,6 +1,6 @@ package saml2 -import teamresourcev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" +import teamresourcev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/teamresource/v1" // HCL surface for teamresource.v1.AccountSensitivityLevel. Strings // match the proto enum suffix in lower_snake_case so the OneOf diff --git a/splitsecure/services/saml2/sensitivity_test.go b/splitsecure/services/saml2/sensitivity_test.go index 5544f5a..4dc3d36 100644 --- a/splitsecure/services/saml2/sensitivity_test.go +++ b/splitsecure/services/saml2/sensitivity_test.go @@ -3,7 +3,7 @@ package saml2 import ( "testing" - teamresourcev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" + teamresourcev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/teamresource/v1" ) func TestSensitivityRoundTrip(t *testing.T) { diff --git a/splitsecure/services/saml2/service_provider.go b/splitsecure/services/saml2/service_provider.go index 351eefe..0f3e1fa 100644 --- a/splitsecure/services/saml2/service_provider.go +++ b/splitsecure/services/saml2/service_provider.go @@ -18,9 +18,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "google.golang.org/protobuf/proto" - conveniencestorev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1" - saml2v2 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v2" - teamresourcev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/teamresource/v1" + conveniencestorev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/conveniencestore/v1" + saml2v2 "github.com/splitsecure/apis/gen/go/proto/splitsecure/saml2/v2" + providersv1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/saml2/v2/providers/v1" + teamresourcev1 "github.com/splitsecure/apis/gen/go/proto/splitsecure/teamresource/v1" "github.com/splitsecure/terraform-provider-splitsecure/splitsecure/client" ) @@ -605,28 +606,28 @@ func (r *saml2ServiceProvider) Create(ctx context.Context, req resource.CreateRe return } - base := &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base{ - TeamS2R: plan.TeamS2R.ValueString(), - IdpResourceS2R: plan.IdpResourceS2R.ValueString(), - Attributes: &teamresourcev1.BaseResourceAttributes{ + sp := &saml2v2.SAML2ServiceProvider{ + BaseResourceAttributes: &teamresourcev1.BaseResourceAttributes{ Name: plan.Name.ValueString(), Description: plan.Description.ValueString(), NotificationPolicy: notificationPolicyFromString(plan.NotificationPolicy.ValueString()), Sensitivity: sensitivityFromString(plan.Sensitivity.ValueString()), }, - EntityId: plan.EntityID.ValueString(), - AcsUrl: plan.ACSURL.ValueString(), - Justification: config.Justification.ValueString(), + Metadata: spMetadataFromPlan(plan.EntityID.ValueString(), plan.ACSURL.ValueString()), } - - accountType, diags := setAccountOnRequest(ctx, base, &plan) + accountType, diags := setKnownProviderOnSP(ctx, sp, &plan) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } genResp, err := r.client.ConvenienceStoreService.GenerateCreateSAML2ServiceProviderProposal(ctx, connect.NewRequest(&conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest{ - Base: base, + Base: &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base{ + TeamS2R: plan.TeamS2R.ValueString(), + IdpResourceS2R: plan.IdpResourceS2R.ValueString(), + Sp: sp, + Justification: config.Justification.ValueString(), + }, })) if err != nil { resp.Diagnostics.AddError("GenerateCreateSAML2ServiceProviderProposal", err.Error()) @@ -725,14 +726,37 @@ func (r *saml2ServiceProvider) ImportState(ctx context.Context, req resource.Imp resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp) } -// setAccountOnRequest assigns the per-integration account oneof on the -// request from the plan's account block. Returns the kind string used -// for the account_type computed attribute. The request's account oneof -// reuses the saml2v2 nested per-integration types directly, so each -// branch is a thin wrap. +// spMetadataFromPlan builds a partial SAML 2.0 Metadata payload from +// the two HCL strings the resource exposes: entity_id and acs_url. The +// server stamps the remainder (signing cert, IdP-side fields) when it +// finalizes the SP record. +func spMetadataFromPlan(entityID, acsURL string) *saml2v2.Metadata { + md := &saml2v2.Metadata{ + Content: &saml2v2.Metadata_EntityDescriptor{ + EntityDescriptor: &saml2v2.EntityDescriptor{EntityId: entityID}, + }, + } + if acsURL == "" { + return md + } + md.GetEntityDescriptor().SpSsoDescriptor = []*saml2v2.SPSSODescriptor{{ + AssertionConsumerService: []*saml2v2.IndexedEndpoint{{ + Base: &saml2v2.Endpoint{ + Binding: "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", + Location: acsURL, + }, + }}, + }} + + return md +} + +// setKnownProviderOnSP assigns the per-integration KnownProvider variant +// on the SP from the plan's account block. Returns the kind string used +// for the account_type computed attribute. // //nolint:cyclop // one branch per account variant; refactoring per-variant helpers would hurt readability. -func setAccountOnRequest(ctx context.Context, base *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base, plan *saml2ServiceProviderModel) (string, diag.Diagnostics) { +func setKnownProviderOnSP(ctx context.Context, sp *saml2v2.SAML2ServiceProvider, plan *saml2ServiceProviderModel) (string, diag.Diagnostics) { var diags diag.Diagnostics if plan.Account == nil { diags.AddError("account is required", "account block must be set with a kind") @@ -746,52 +770,53 @@ func setAccountOnRequest(ctx context.Context, base *conveniencestorev1.GenerateC return "", diags } + kp := &providersv1.KnownProvider{} switch kind { case kindAWS: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Aws{Aws: &saml2v2.SAML2ServiceProvider_AWS{ + kp.Union = &providersv1.KnownProvider_Aws{Aws: &providersv1.AWS{ SamlProviderArn: plan.Account.AWS.SAMLProviderARN.ValueString(), AllowedRoleArns: listToStrings(ctx, plan.Account.AWS.AllowedRoleARNs, &diags), }} case kindCloudflare: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Cloudflare{Cloudflare: &saml2v2.SAML2ServiceProvider_Cloudflare{ + kp.Union = &providersv1.KnownProvider_Cloudflare{Cloudflare: &providersv1.Cloudflare{ SsoEndpoint: plan.Account.Cloudflare.SSOEndpoint.ValueString(), DefaultEmail: plan.Account.Cloudflare.DefaultEmail.ValueString(), }} case kindEventBrite: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_EventBrite{EventBrite: &saml2v2.SAML2ServiceProvider_EventBrite{}} + kp.Union = &providersv1.KnownProvider_EventBrite{EventBrite: &providersv1.EventBrite{}} case kindGCP: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Gcp{Gcp: &saml2v2.SAML2ServiceProvider_GCP{ + kp.Union = &providersv1.KnownProvider_Gcp{Gcp: &providersv1.GCP{ DefaultEmail: plan.Account.GCP.DefaultEmail.ValueString(), }} case kindGoogleWorkspace: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspace{GoogleWorkspace: &saml2v2.SAML2ServiceProvider_GoogleWorkspace{}} + kp.Union = &providersv1.KnownProvider_GoogleWorkspace{GoogleWorkspace: &providersv1.GoogleWorkspace{}} case kindGoogleWorkspaceLegacy: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspaceLegacy{GoogleWorkspaceLegacy: &saml2v2.SAML2ServiceProvider_GoogleWorkspaceLegacy{ + kp.Union = &providersv1.KnownProvider_GoogleWorkspaceLegacy{GoogleWorkspaceLegacy: &providersv1.GoogleWorkspaceLegacy{ DefaultEmail: plan.Account.GoogleWorkspaceLegacy.DefaultEmail.ValueString(), DomainName: plan.Account.GoogleWorkspaceLegacy.DomainName.ValueString(), }} case kindIBMCloud: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_IbmCloud{IbmCloud: &saml2v2.SAML2ServiceProvider_IBMCloud{ + kp.Union = &providersv1.KnownProvider_IbmCloud{IbmCloud: &providersv1.IBMCloud{ LoginUrl: plan.Account.IBMCloud.LoginURL.ValueString(), }} case kindKandji: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Kandji{Kandji: &saml2v2.SAML2ServiceProvider_Kandji{ + kp.Union = &providersv1.KnownProvider_Kandji{Kandji: &providersv1.Kandji{ DefaultEmail: plan.Account.Kandji.DefaultEmail.ValueString(), }} case kindMicrosoftEntraID: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_MicrosoftEntraId{MicrosoftEntraId: &saml2v2.SAML2ServiceProvider_MicrosoftEntraID{}} + kp.Union = &providersv1.KnownProvider_MicrosoftEntraId{MicrosoftEntraId: &providersv1.MicrosoftEntraID{}} case kindOkta: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Okta{Okta: &saml2v2.SAML2ServiceProvider_Okta{ + kp.Union = &providersv1.KnownProvider_Okta{Okta: &providersv1.Okta{ AllowedEmails: listToStrings(ctx, plan.Account.Okta.AllowedEmails, &diags), }} case kindOracleCloud: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_OracleCloud{OracleCloud: &saml2v2.SAML2ServiceProvider_OracleCloud{}} + kp.Union = &providersv1.KnownProvider_OracleCloud{OracleCloud: &providersv1.OracleCloud{}} case kindPagerDuty: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_PagerDuty{PagerDuty: &saml2v2.SAML2ServiceProvider_PagerDuty{}} + kp.Union = &providersv1.KnownProvider_PagerDuty{PagerDuty: &providersv1.PagerDuty{}} case kindPitchBook: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_PitchBook{PitchBook: &saml2v2.SAML2ServiceProvider_PitchBook{}} + kp.Union = &providersv1.KnownProvider_PitchBook{PitchBook: &providersv1.PitchBook{}} case kindRapid7: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Rapid7{Rapid7: &saml2v2.SAML2ServiceProvider_Rapid7{ + kp.Union = &providersv1.KnownProvider_Rapid7{Rapid7: &providersv1.Rapid7{ DefaultRelayState: plan.Account.Rapid7.DefaultRelayState.ValueString(), DefaultEmail: plan.Account.Rapid7.DefaultEmail.ValueString(), DefaultFirstName: plan.Account.Rapid7.DefaultFirstName.ValueString(), @@ -799,18 +824,19 @@ func setAccountOnRequest(ctx context.Context, base *conveniencestorev1.GenerateC DefaultRbacGroups: listToStrings(ctx, plan.Account.Rapid7.DefaultRBACGroups, &diags), }} case kindStripe: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Stripe{Stripe: &saml2v2.SAML2ServiceProvider_Stripe{ + kp.Union = &providersv1.KnownProvider_Stripe{Stripe: &providersv1.Stripe{ AccountId: plan.Account.Stripe.AccountID.ValueString(), }} case kindVeeam: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Veeam{Veeam: &saml2v2.SAML2ServiceProvider_Veeam{}} + kp.Union = &providersv1.KnownProvider_Veeam{Veeam: &providersv1.Veeam{}} case kindWorkday: - base.Account = &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Workday{Workday: &saml2v2.SAML2ServiceProvider_Workday{}} + kp.Union = &providersv1.KnownProvider_Workday{Workday: &providersv1.Workday{}} default: diags.AddError("unknown account variant", kind) return "", diags } + sp.KnownProvider = kp return kind, diags } @@ -828,10 +854,6 @@ func populateSPModel(ctx context.Context, m *saml2ServiceProviderModel, resource } signed := rec.GetContent().GetUpdateableRecord().GetContent().GetSignedServiceProvider() - if signed == nil { - //nolint:staticcheck // fallback for legacy top-level record variant - signed = rec.GetSignedServiceProvider() - } if signed == nil { m.AccountType = types.StringValue(accountType) @@ -850,10 +872,11 @@ func populateSPModel(ctx context.Context, m *saml2ServiceProviderModel, resource // record only carries idp_coord_id_hint (raw IdP id), whose encoding // doesn't round-trip cleanly into an s2r URI without the obfuscation // helpers. Bare imports leave it empty until the user populates HCL. - m.Name = types.StringValue(sp.GetName()) - m.Description = types.StringValue(sp.GetDescription()) - m.NotificationPolicy = types.StringValue(notificationPolicyToString(sp.GetNotificationPolicy())) - m.Sensitivity = types.StringValue(sensitivityLevelToString(sp.GetSensitivity().GetLevel())) + attrs := sp.GetBaseResourceAttributes() + m.Name = types.StringValue(attrs.GetName()) + m.Description = types.StringValue(attrs.GetDescription()) + m.NotificationPolicy = types.StringValue(notificationPolicyToString(attrs.GetNotificationPolicy())) + m.Sensitivity = types.StringValue(sensitivityLevelToString(attrs.GetSensitivity().GetLevel())) m.EntityID = types.StringValue(sp.GetMetadata().GetEntityDescriptor().GetEntityId()) if descs := sp.GetMetadata().GetEntityDescriptor().GetSpSsoDescriptor(); len(descs) > 0 { if endpoints := descs[0].GetAssertionConsumerService(); len(endpoints) > 0 { @@ -870,17 +893,16 @@ func populateSPModel(ctx context.Context, m *saml2ServiceProviderModel, resource } // accountFromSP rebuilds the typed account block from the SP record's -// authenticated state. Mirrors setAccountOnRequest in reverse: walks -// the saml2v2 oneof, populates the matching sub-block, sets Kind. The -// per-list-variant fields (AWS allowed_role_arns, Okta allowed_emails, -// Rapid7 default_rbac_groups) round-trip via stringsToList. Returns -// (nil, "") for unknown / unset variants so the caller falls back to -// preserving plan-state. +// authenticated state. Walks the KnownProvider union and populates the +// matching sub-block. The per-list-variant fields (AWS allowed_role_arns, +// Okta allowed_emails, Rapid7 default_rbac_groups) round-trip via +// stringsToList. Returns (nil, "") for unknown / unset variants so the +// caller falls back to preserving plan-state. // //nolint:cyclop // one branch per account variant; collapsing them obscures the round-trip. func accountFromSP(ctx context.Context, sp *saml2v2.SAML2ServiceProvider, diags *diag.Diagnostics) (*accountModel, string) { - switch a := sp.GetAccount().(type) { - case *saml2v2.SAML2ServiceProvider_Aws: + switch a := sp.GetKnownProvider().GetUnion().(type) { + case *providersv1.KnownProvider_Aws: return &accountModel{ Kind: types.StringValue(kindAWS), AWS: &accountAWSModel{ @@ -888,7 +910,7 @@ func accountFromSP(ctx context.Context, sp *saml2v2.SAML2ServiceProvider, diags AllowedRoleARNs: stringsToList(ctx, a.Aws.GetAllowedRoleArns(), diags), }, }, kindAWS - case *saml2v2.SAML2ServiceProvider_Cloudflare_: + case *providersv1.KnownProvider_Cloudflare: return &accountModel{ Kind: types.StringValue(kindCloudflare), Cloudflare: &accountCloudflareModel{ @@ -896,16 +918,16 @@ func accountFromSP(ctx context.Context, sp *saml2v2.SAML2ServiceProvider, diags DefaultEmail: types.StringValue(a.Cloudflare.GetDefaultEmail()), }, }, kindCloudflare - case *saml2v2.SAML2ServiceProvider_EventBrite_: + case *providersv1.KnownProvider_EventBrite: return &accountModel{Kind: types.StringValue(kindEventBrite), EventBrite: &accountEventBriteModel{}}, kindEventBrite - case *saml2v2.SAML2ServiceProvider_Gcp: + case *providersv1.KnownProvider_Gcp: return &accountModel{ Kind: types.StringValue(kindGCP), GCP: &accountGCPModel{DefaultEmail: types.StringValue(a.Gcp.GetDefaultEmail())}, }, kindGCP - case *saml2v2.SAML2ServiceProvider_GoogleWorkspace_: + case *providersv1.KnownProvider_GoogleWorkspace: return &accountModel{Kind: types.StringValue(kindGoogleWorkspace), GoogleWorkspace: &accountGoogleWorkspaceModel{}}, kindGoogleWorkspace - case *saml2v2.SAML2ServiceProvider_GoogleWorkspaceLegacy_: + case *providersv1.KnownProvider_GoogleWorkspaceLegacy: return &accountModel{ Kind: types.StringValue(kindGoogleWorkspaceLegacy), GoogleWorkspaceLegacy: &accountGoogleWorkspaceLegacyModel{ @@ -913,30 +935,30 @@ func accountFromSP(ctx context.Context, sp *saml2v2.SAML2ServiceProvider, diags DomainName: types.StringValue(a.GoogleWorkspaceLegacy.GetDomainName()), }, }, kindGoogleWorkspaceLegacy - case *saml2v2.SAML2ServiceProvider_IbmCloud: + case *providersv1.KnownProvider_IbmCloud: return &accountModel{ Kind: types.StringValue(kindIBMCloud), IBMCloud: &accountIBMCloudModel{LoginURL: types.StringValue(a.IbmCloud.GetLoginUrl())}, }, kindIBMCloud - case *saml2v2.SAML2ServiceProvider_Kandji_: + case *providersv1.KnownProvider_Kandji: return &accountModel{ Kind: types.StringValue(kindKandji), Kandji: &accountKandjiModel{DefaultEmail: types.StringValue(a.Kandji.GetDefaultEmail())}, }, kindKandji - case *saml2v2.SAML2ServiceProvider_MicrosoftEntraId: + case *providersv1.KnownProvider_MicrosoftEntraId: return &accountModel{Kind: types.StringValue(kindMicrosoftEntraID), MicrosoftEntraID: &accountMicrosoftEntraIDModel{}}, kindMicrosoftEntraID - case *saml2v2.SAML2ServiceProvider_Okta_: + case *providersv1.KnownProvider_Okta: return &accountModel{ Kind: types.StringValue(kindOkta), Okta: &accountOktaModel{AllowedEmails: stringsToList(ctx, a.Okta.GetAllowedEmails(), diags)}, }, kindOkta - case *saml2v2.SAML2ServiceProvider_OracleCloud_: + case *providersv1.KnownProvider_OracleCloud: return &accountModel{Kind: types.StringValue(kindOracleCloud), OracleCloud: &accountOracleCloudModel{}}, kindOracleCloud - case *saml2v2.SAML2ServiceProvider_PagerDuty_: + case *providersv1.KnownProvider_PagerDuty: return &accountModel{Kind: types.StringValue(kindPagerDuty), PagerDuty: &accountPagerDutyModel{}}, kindPagerDuty - case *saml2v2.SAML2ServiceProvider_PitchBook_: + case *providersv1.KnownProvider_PitchBook: return &accountModel{Kind: types.StringValue(kindPitchBook), PitchBook: &accountPitchBookModel{}}, kindPitchBook - case *saml2v2.SAML2ServiceProvider_Rapid7_: + case *providersv1.KnownProvider_Rapid7: return &accountModel{ Kind: types.StringValue(kindRapid7), Rapid7: &accountRapid7Model{ @@ -947,14 +969,14 @@ func accountFromSP(ctx context.Context, sp *saml2v2.SAML2ServiceProvider, diags DefaultRBACGroups: stringsToList(ctx, a.Rapid7.GetDefaultRbacGroups(), diags), }, }, kindRapid7 - case *saml2v2.SAML2ServiceProvider_Stripe_: + case *providersv1.KnownProvider_Stripe: return &accountModel{ Kind: types.StringValue(kindStripe), Stripe: &accountStripeModel{AccountID: types.StringValue(a.Stripe.GetAccountId())}, }, kindStripe - case *saml2v2.SAML2ServiceProvider_Veeam_: + case *providersv1.KnownProvider_Veeam: return &accountModel{Kind: types.StringValue(kindVeeam), Veeam: &accountVeeamModel{}}, kindVeeam - case *saml2v2.SAML2ServiceProvider_Workday_: + case *providersv1.KnownProvider_Workday: return &accountModel{Kind: types.StringValue(kindWorkday), Workday: &accountWorkdayModel{}}, kindWorkday } diff --git a/splitsecure/services/saml2/service_provider_internal_test.go b/splitsecure/services/saml2/service_provider_internal_test.go index a6802f5..95e7000 100644 --- a/splitsecure/services/saml2/service_provider_internal_test.go +++ b/splitsecure/services/saml2/service_provider_internal_test.go @@ -8,58 +8,9 @@ import ( "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" - conveniencestorev1 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/conveniencestore/v1" - saml2v2 "github.com/splitsecure/terraform-provider-splitsecure/gen/go/proto/splitsecure/enclaveservices/saml2/v2" + saml2v2 "github.com/splitsecure/apis/gen/go/proto/splitsecure/saml2/v2" ) -// setSAML2SPAccountFromRequest mirrors what the server's -// GenerateCreateSAML2ServiceProviderProposal handler does: lifts the -// inner saml2v2 message out of the request's per-kind oneof wrapper -// and assigns it to the SAML2ServiceProvider's matching wrapper. -// In-place mutation so the test doesn't have to round-trip the value -// through the unexported isSAML2ServiceProvider_Account interface -// (which can't be referenced across packages). -// -//nolint:cyclop // 17 branches mirror the SP account variants; consolidating obscures the wrap. -func setSAML2SPAccountFromRequest(sp *saml2v2.SAML2ServiceProvider, req any) { - switch w := req.(type) { - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Aws: - sp.Account = &saml2v2.SAML2ServiceProvider_Aws{Aws: w.Aws} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Cloudflare: - sp.Account = &saml2v2.SAML2ServiceProvider_Cloudflare_{Cloudflare: w.Cloudflare} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_EventBrite: - sp.Account = &saml2v2.SAML2ServiceProvider_EventBrite_{EventBrite: w.EventBrite} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Gcp: - sp.Account = &saml2v2.SAML2ServiceProvider_Gcp{Gcp: w.Gcp} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspace: - sp.Account = &saml2v2.SAML2ServiceProvider_GoogleWorkspace_{GoogleWorkspace: w.GoogleWorkspace} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_GoogleWorkspaceLegacy: - sp.Account = &saml2v2.SAML2ServiceProvider_GoogleWorkspaceLegacy_{GoogleWorkspaceLegacy: w.GoogleWorkspaceLegacy} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_IbmCloud: - sp.Account = &saml2v2.SAML2ServiceProvider_IbmCloud{IbmCloud: w.IbmCloud} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Kandji: - sp.Account = &saml2v2.SAML2ServiceProvider_Kandji_{Kandji: w.Kandji} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_MicrosoftEntraId: - sp.Account = &saml2v2.SAML2ServiceProvider_MicrosoftEntraId{MicrosoftEntraId: w.MicrosoftEntraId} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Okta: - sp.Account = &saml2v2.SAML2ServiceProvider_Okta_{Okta: w.Okta} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_OracleCloud: - sp.Account = &saml2v2.SAML2ServiceProvider_OracleCloud_{OracleCloud: w.OracleCloud} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_PagerDuty: - sp.Account = &saml2v2.SAML2ServiceProvider_PagerDuty_{PagerDuty: w.PagerDuty} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_PitchBook: - sp.Account = &saml2v2.SAML2ServiceProvider_PitchBook_{PitchBook: w.PitchBook} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Rapid7: - sp.Account = &saml2v2.SAML2ServiceProvider_Rapid7_{Rapid7: w.Rapid7} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Stripe: - sp.Account = &saml2v2.SAML2ServiceProvider_Stripe_{Stripe: w.Stripe} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Veeam: - sp.Account = &saml2v2.SAML2ServiceProvider_Veeam_{Veeam: w.Veeam} - case *conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base_Workday: - sp.Account = &saml2v2.SAML2ServiceProvider_Workday_{Workday: w.Workday} - } -} - // accountVariantFixtures returns one synthetic accountModel per // supported SP variant. Each entry carries a non-zero value in every // field that the variant exposes so a round-trip catches any field @@ -165,9 +116,9 @@ func TestSPAccountVariantsCovered(t *testing.T) { } // TestSPAccountRoundTrip exercises every variant through the full -// HCL-plan -> request-wrapper -> saml2v2 oneof -> HCL-plan loop, so a -// per-variant encoder/decoder mismatch (wrong wrapper type, missing -// field) surfaces here instead of mid-Send. +// HCL-plan -> KnownProvider union -> HCL-plan loop, so a per-variant +// encoder/decoder mismatch (wrong wrapper type, missing field) +// surfaces here instead of mid-Send. func TestSPAccountRoundTrip(t *testing.T) { t.Parallel() @@ -177,22 +128,16 @@ func TestSPAccountRoundTrip(t *testing.T) { t.Parallel() plan := &saml2ServiceProviderModel{Account: original} - base := &conveniencestorev1.GenerateCreateSAML2ServiceProviderProposalRequest_Base{} - gotKind, diags := setAccountOnRequest(ctx, base, plan) + sp := &saml2v2.SAML2ServiceProvider{} + gotKind, diags := setKnownProviderOnSP(ctx, sp, plan) if diags.HasError() { - t.Fatalf("setAccountOnRequest: %v", diags) + t.Fatalf("setKnownProviderOnSP: %v", diags) } if gotKind != kind { - t.Fatalf("setAccountOnRequest returned kind %q, want %q", gotKind, kind) - } - if base.Account == nil { - t.Fatalf("setAccountOnRequest left base.Account nil for kind %q", kind) + t.Fatalf("setKnownProviderOnSP returned kind %q, want %q", gotKind, kind) } - - sp := &saml2v2.SAML2ServiceProvider{} - setSAML2SPAccountFromRequest(sp, base.GetAccount()) - if sp.Account == nil { - t.Fatalf("setSAML2SPAccountFromRequest left sp.Account nil for kind %q", kind) + if sp.GetKnownProvider().GetUnion() == nil { + t.Fatalf("setKnownProviderOnSP left sp.KnownProvider.Union nil for kind %q", kind) } var rtDiags diag.Diagnostics