#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetConditions {
#[prost(oneof="set_conditions::ConditionType", tags="1, 2, 3, 4")]
pub condition_type: ::core::option::Option<set_conditions::ConditionType>,
}
pub mod set_conditions {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ConditionType {
#[prost(message, tag="1")]
Request(super::SetRequestExecution),
#[prost(message, tag="2")]
Response(super::SetResponseExecution),
#[prost(string, tag="3")]
Function(::prost::alloc::string::String),
#[prost(message, tag="4")]
Event(super::SetEventExecution),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetRequestExecution {
#[prost(oneof="set_request_execution::Condition", tags="1, 2, 3")]
pub condition: ::core::option::Option<set_request_execution::Condition>,
}
pub mod set_request_execution {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Condition {
#[prost(string, tag="1")]
Method(::prost::alloc::string::String),
#[prost(string, tag="2")]
Service(::prost::alloc::string::String),
#[prost(bool, tag="3")]
All(bool),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetResponseExecution {
#[prost(oneof="set_response_execution::Condition", tags="1, 2, 3")]
pub condition: ::core::option::Option<set_response_execution::Condition>,
}
pub mod set_response_execution {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Condition {
#[prost(string, tag="1")]
Method(::prost::alloc::string::String),
#[prost(string, tag="2")]
Service(::prost::alloc::string::String),
#[prost(bool, tag="3")]
All(bool),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetEventExecution {
#[prost(oneof="set_event_execution::Condition", tags="1, 2, 3")]
pub condition: ::core::option::Option<set_event_execution::Condition>,
}
pub mod set_event_execution {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Condition {
#[prost(string, tag="1")]
Event(::prost::alloc::string::String),
#[prost(string, tag="2")]
Group(::prost::alloc::string::String),
#[prost(bool, tag="3")]
All(bool),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetRestWebhook {
#[prost(string, tag="1")]
pub url: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetRestRequestResponse {
#[prost(string, tag="1")]
pub url: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateTargetRequest {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag="4")]
pub timeout: ::core::option::Option<::pbjson_types::Duration>,
#[prost(oneof="create_target_request::TargetType", tags="2, 3")]
pub target_type: ::core::option::Option<create_target_request::TargetType>,
#[prost(oneof="create_target_request::ExecutionType", tags="5, 6")]
pub execution_type: ::core::option::Option<create_target_request::ExecutionType>,
}
pub mod create_target_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TargetType {
#[prost(message, tag="2")]
RestWebhook(super::SetRestWebhook),
#[prost(message, tag="3")]
RestRequestResponse(super::SetRestRequestResponse),
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ExecutionType {
#[prost(bool, tag="5")]
IsAsync(bool),
#[prost(bool, tag="6")]
InterruptOnError(bool),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateTargetResponse {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateTargetRequest {
#[prost(string, tag="1")]
pub target_id: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag="5")]
pub timeout: ::core::option::Option<::pbjson_types::Duration>,
#[prost(oneof="update_target_request::TargetType", tags="3, 4")]
pub target_type: ::core::option::Option<update_target_request::TargetType>,
#[prost(oneof="update_target_request::ExecutionType", tags="6, 7")]
pub execution_type: ::core::option::Option<update_target_request::ExecutionType>,
}
pub mod update_target_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TargetType {
#[prost(message, tag="3")]
RestWebhook(super::SetRestWebhook),
#[prost(message, tag="4")]
RestRequestResponse(super::SetRestRequestResponse),
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ExecutionType {
#[prost(bool, tag="6")]
IsAsync(bool),
#[prost(bool, tag="7")]
InterruptOnError(bool),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateTargetResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetRequest {
#[prost(string, tag="1")]
pub target_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetExecutionRequest {
#[prost(message, optional, tag="1")]
pub condition: ::core::option::Option<SetConditions>,
#[prost(string, repeated, tag="2")]
pub targets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag="3")]
pub includes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetExecutionResponse {
#[prost(message, optional, tag="2")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteExecutionRequest {
#[prost(message, optional, tag="1")]
pub condition: ::core::option::Option<SetConditions>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteExecutionResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionFunctionsRequest {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionFunctionsResponse {
#[prost(string, repeated, tag="1")]
pub functions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionMethodsRequest {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionMethodsResponse {
#[prost(string, repeated, tag="1")]
pub methods: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionServicesRequest {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionServicesResponse {
#[prost(string, repeated, tag="1")]
pub services: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
include!("zitadel.execution.v3alpha.tonic.rs");