Packages

Generated Elixir gRPC contracts for Cratis Chronicle - the open-source event-sourcing database

Current section

Files

Jump to
cratis_chronicle_contracts lib generated externalservices.pb.ex
Raw

lib/generated/externalservices.pb.ex

defmodule Cratis.Chronicle.Contracts.ExternalServices.AuthorizationType do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :None, 0
field :Basic, 1
field :Bearer, 2
field :OAuth, 3
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceEndpointType do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Http, 0
field :MsSql, 1
field :PostgreSql, 2
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ValidationResultSeverity do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Unknown, 0
field :Information, 1
field :Warning, 2
field :Error, 3
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.AddExternalServiceRequest.HeadersEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.AddExternalServiceRequest.OptionsEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.AddExternalServiceRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Id, 2, type: :string
field :Name, 3, type: :string
field :EndpointType, 4,
type: Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceEndpointType,
enum: true
field :Url, 5, type: :string
field :AuthorizationType, 6,
type: Cratis.Chronicle.Contracts.ExternalServices.AuthorizationType,
enum: true
field :BasicUsername, 7, type: :string
field :BasicPassword, 8, type: :string
field :BearerToken, 9, type: :string
field :OAuthAuthority, 10, type: :string
field :OAuthClientId, 11, type: :string
field :OAuthClientSecret, 12, type: :string
field :Headers, 13,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.AddExternalServiceRequest.HeadersEntry,
map: true
field :Host, 14, type: :string
field :Port, 15, type: :int32
field :Database, 16, type: :string
field :Username, 17, type: :string
field :Password, 18, type: :string
field :Options, 19,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.AddExternalServiceRequest.OptionsEntry,
map: true
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.AddExternalServicesRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :ExternalServices, 2,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceDefinition
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.BasicAuthorization do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Username, 1, type: :string
field :Password, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.BearerTokenAuthorization do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Token, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.CommandResult do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :CorrelationId, 1, type: Bcl.Guid
field :IsAuthorized, 2, type: :bool
field :ValidationResults, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :AuthorizationFailureReason, 6, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.DatabaseEndpointConfiguration.OptionsEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.DatabaseEndpointConfiguration do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Host, 1, type: :string
field :Port, 2, type: :int32
field :Database, 3, type: :string
field :Username, 4, type: :string
field :Password, 5, type: :string
field :Options, 6,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.DatabaseEndpointConfiguration.OptionsEntry,
map: true
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Id, 1, type: :string
field :Name, 2, type: :string
field :Endpoint, 3, type: Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceEndpoint
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceEndpoint do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Type, 1,
type: Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceEndpointType,
enum: true
field :Http, 2, type: Cratis.Chronicle.Contracts.ExternalServices.HttpEndpointConfiguration
field :Database, 3,
type: Cratis.Chronicle.Contracts.ExternalServices.DatabaseEndpointConfiguration
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceResponse.HeadersEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceResponse.OptionsEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Id, 1, type: :string
field :Name, 2, type: :string
field :EndpointType, 3,
type: Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceEndpointType,
enum: true
field :Url, 4, type: :string
field :AuthorizationType, 5,
type: Cratis.Chronicle.Contracts.ExternalServices.AuthorizationType,
enum: true
field :Headers, 6,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceResponse.HeadersEntry,
map: true
field :Host, 7, type: :string
field :Port, 8, type: :int32
field :Database, 9, type: :string
field :Username, 10, type: :string
field :Options, 11,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceResponse.OptionsEntry,
map: true
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.GetExternalServicesRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.HttpEndpointConfiguration.HeadersEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.HttpEndpointConfiguration do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Url, 1, type: :string
field :Authorization, 2,
type:
Cratis.Chronicle.Contracts.ExternalServices.OneOf_BasicAuthorization_BearerTokenAuthorization_OAuthAuthorization
field :Headers, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.HttpEndpointConfiguration.HeadersEntry,
map: true
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.OAuthAuthorization do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Authority, 1, type: :string
field :ClientId, 2, type: :string
field :ClientSecret, 3, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ObserveExternalServicesRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.OneOf_BasicAuthorization_BearerTokenAuthorization_OAuthAuthorization do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Value0, 1, type: Cratis.Chronicle.Contracts.ExternalServices.BasicAuthorization
field :Value1, 2, type: Cratis.Chronicle.Contracts.ExternalServices.BearerTokenAuthorization
field :Value2, 3, type: Cratis.Chronicle.Contracts.ExternalServices.OAuthAuthorization
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.QueryResult_IEnumerable_ExternalServiceResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :CorrelationId, 1, type: Bcl.Guid
field :IsAuthorized, 2, type: :bool
field :ValidationResults, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :Data, 6,
repeated: true,
type: Cratis.Chronicle.Contracts.ExternalServices.ExternalServiceResponse
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.RemoveExternalServiceRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :ExternalServiceId, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.RemoveExternalServicesRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :ExternalServices, 2, repeated: true, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ValidationResult do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Severity, 1,
type: Cratis.Chronicle.Contracts.ExternalServices.ValidationResultSeverity,
enum: true
field :Message, 2, type: :string
field :Members, 3, repeated: true, type: :string
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ExternalServices.Service do
@moduledoc false
use GRPC.Service,
name: "Cratis.Chronicle.Contracts.ExternalServices.ExternalServices",
protoc_gen_elixir_version: "0.17.0"
rpc :AddExternalService,
Cratis.Chronicle.Contracts.ExternalServices.AddExternalServiceRequest,
Cratis.Chronicle.Contracts.ExternalServices.CommandResult
rpc :AddExternalServices,
Cratis.Chronicle.Contracts.ExternalServices.AddExternalServicesRequest,
Cratis.Chronicle.Contracts.ExternalServices.CommandResult
rpc :GetExternalServices,
Cratis.Chronicle.Contracts.ExternalServices.GetExternalServicesRequest,
Cratis.Chronicle.Contracts.ExternalServices.QueryResult_IEnumerable_ExternalServiceResponse
rpc :ObserveExternalServices,
Cratis.Chronicle.Contracts.ExternalServices.ObserveExternalServicesRequest,
stream(
Cratis.Chronicle.Contracts.ExternalServices.QueryResult_IEnumerable_ExternalServiceResponse
)
rpc :RemoveExternalService,
Cratis.Chronicle.Contracts.ExternalServices.RemoveExternalServiceRequest,
Cratis.Chronicle.Contracts.ExternalServices.CommandResult
rpc :RemoveExternalServices,
Cratis.Chronicle.Contracts.ExternalServices.RemoveExternalServicesRequest,
Cratis.Chronicle.Contracts.ExternalServices.CommandResult
end
defmodule Cratis.Chronicle.Contracts.ExternalServices.ExternalServices.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.ExternalServices.ExternalServices.Service
end