#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Target {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub creation_date: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag="3")]
pub change_date: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(string, tag="4")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag="8")]
pub timeout: ::core::option::Option<::pbjson_types::Duration>,
#[prost(string, tag="9")]
pub endpoint: ::prost::alloc::string::String,
#[prost(string, tag="10")]
pub signing_key: ::prost::alloc::string::String,
#[prost(oneof="target::TargetType", tags="5, 6, 7")]
pub target_type: ::core::option::Option<target::TargetType>,
}
pub mod target {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum TargetType {
#[prost(message, tag="5")]
RestWebhook(super::RestWebhook),
#[prost(message, tag="6")]
RestCall(super::RestCall),
#[prost(message, tag="7")]
RestAsync(super::RestAsync),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RestWebhook {
#[prost(bool, tag="1")]
pub interrupt_on_error: bool,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RestCall {
#[prost(bool, tag="1")]
pub interrupt_on_error: bool,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RestAsync {
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Execution {
#[prost(message, optional, tag="1")]
pub condition: ::core::option::Option<Condition>,
#[prost(message, optional, tag="2")]
pub creation_date: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag="3")]
pub change_date: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(string, repeated, tag="4")]
pub targets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Condition {
#[prost(oneof="condition::ConditionType", tags="1, 2, 3, 4")]
pub condition_type: ::core::option::Option<condition::ConditionType>,
}
pub mod condition {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ConditionType {
#[prost(message, tag="1")]
Request(super::RequestExecution),
#[prost(message, tag="2")]
Response(super::ResponseExecution),
#[prost(message, tag="3")]
Function(super::FunctionExecution),
#[prost(message, tag="4")]
Event(super::EventExecution),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestExecution {
#[prost(oneof="request_execution::Condition", tags="1, 2, 3")]
pub condition: ::core::option::Option<request_execution::Condition>,
}
pub mod request_execution {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[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),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseExecution {
#[prost(oneof="response_execution::Condition", tags="1, 2, 3")]
pub condition: ::core::option::Option<response_execution::Condition>,
}
pub mod response_execution {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[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),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FunctionExecution {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventExecution {
#[prost(oneof="event_execution::Condition", tags="1, 2, 3")]
pub condition: ::core::option::Option<event_execution::Condition>,
}
pub mod event_execution {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[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),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecutionSearchFilter {
#[prost(oneof="execution_search_filter::Filter", tags="1, 2, 3")]
pub filter: ::core::option::Option<execution_search_filter::Filter>,
}
pub mod execution_search_filter {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Filter {
#[prost(message, tag="1")]
InConditionsFilter(super::InConditionsFilter),
#[prost(message, tag="2")]
ExecutionTypeFilter(super::ExecutionTypeFilter),
#[prost(message, tag="3")]
TargetFilter(super::TargetFilter),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InConditionsFilter {
#[prost(message, repeated, tag="1")]
pub conditions: ::prost::alloc::vec::Vec<Condition>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ExecutionTypeFilter {
#[prost(enumeration="ExecutionType", tag="1")]
pub execution_type: i32,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetFilter {
#[prost(string, tag="1")]
pub target_id: ::prost::alloc::string::String,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetSearchFilter {
#[prost(oneof="target_search_filter::Filter", tags="1, 2")]
pub filter: ::core::option::Option<target_search_filter::Filter>,
}
pub mod target_search_filter {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Filter {
#[prost(message, tag="1")]
TargetNameFilter(super::TargetNameFilter),
#[prost(message, tag="2")]
InTargetIdsFilter(super::InTargetIDsFilter),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetNameFilter {
#[prost(string, tag="1")]
pub target_name: ::prost::alloc::string::String,
#[prost(enumeration="super::super::filter::v2beta::TextFilterMethod", tag="2")]
pub method: i32,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InTargetIDsFilter {
#[prost(string, repeated, tag="1")]
pub target_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TargetFieldName {
Unspecified = 0,
Id = 1,
CreatedDate = 2,
ChangedDate = 3,
Name = 4,
TargetType = 5,
Url = 6,
Timeout = 7,
InterruptOnError = 8,
}
impl TargetFieldName {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TARGET_FIELD_NAME_UNSPECIFIED",
Self::Id => "TARGET_FIELD_NAME_ID",
Self::CreatedDate => "TARGET_FIELD_NAME_CREATED_DATE",
Self::ChangedDate => "TARGET_FIELD_NAME_CHANGED_DATE",
Self::Name => "TARGET_FIELD_NAME_NAME",
Self::TargetType => "TARGET_FIELD_NAME_TARGET_TYPE",
Self::Url => "TARGET_FIELD_NAME_URL",
Self::Timeout => "TARGET_FIELD_NAME_TIMEOUT",
Self::InterruptOnError => "TARGET_FIELD_NAME_INTERRUPT_ON_ERROR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TARGET_FIELD_NAME_UNSPECIFIED" => Some(Self::Unspecified),
"TARGET_FIELD_NAME_ID" => Some(Self::Id),
"TARGET_FIELD_NAME_CREATED_DATE" => Some(Self::CreatedDate),
"TARGET_FIELD_NAME_CHANGED_DATE" => Some(Self::ChangedDate),
"TARGET_FIELD_NAME_NAME" => Some(Self::Name),
"TARGET_FIELD_NAME_TARGET_TYPE" => Some(Self::TargetType),
"TARGET_FIELD_NAME_URL" => Some(Self::Url),
"TARGET_FIELD_NAME_TIMEOUT" => Some(Self::Timeout),
"TARGET_FIELD_NAME_INTERRUPT_ON_ERROR" => Some(Self::InterruptOnError),
_ => None,
}
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ExecutionType {
Unspecified = 0,
Request = 1,
Response = 2,
Event = 3,
Function = 4,
}
impl ExecutionType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "EXECUTION_TYPE_UNSPECIFIED",
Self::Request => "EXECUTION_TYPE_REQUEST",
Self::Response => "EXECUTION_TYPE_RESPONSE",
Self::Event => "EXECUTION_TYPE_EVENT",
Self::Function => "EXECUTION_TYPE_FUNCTION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EXECUTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"EXECUTION_TYPE_REQUEST" => Some(Self::Request),
"EXECUTION_TYPE_RESPONSE" => Some(Self::Response),
"EXECUTION_TYPE_EVENT" => Some(Self::Event),
"EXECUTION_TYPE_FUNCTION" => Some(Self::Function),
_ => None,
}
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ExecutionFieldName {
Unspecified = 0,
Id = 1,
CreatedDate = 2,
ChangedDate = 3,
}
impl ExecutionFieldName {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "EXECUTION_FIELD_NAME_UNSPECIFIED",
Self::Id => "EXECUTION_FIELD_NAME_ID",
Self::CreatedDate => "EXECUTION_FIELD_NAME_CREATED_DATE",
Self::ChangedDate => "EXECUTION_FIELD_NAME_CHANGED_DATE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EXECUTION_FIELD_NAME_UNSPECIFIED" => Some(Self::Unspecified),
"EXECUTION_FIELD_NAME_ID" => Some(Self::Id),
"EXECUTION_FIELD_NAME_CREATED_DATE" => Some(Self::CreatedDate),
"EXECUTION_FIELD_NAME_CHANGED_DATE" => Some(Self::ChangedDate),
_ => None,
}
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateTargetRequest {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag="5")]
pub timeout: ::core::option::Option<::pbjson_types::Duration>,
#[prost(string, tag="6")]
pub endpoint: ::prost::alloc::string::String,
#[prost(oneof="create_target_request::TargetType", tags="2, 3, 4")]
pub target_type: ::core::option::Option<create_target_request::TargetType>,
}
pub mod create_target_request {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum TargetType {
#[prost(message, tag="2")]
RestWebhook(super::RestWebhook),
#[prost(message, tag="3")]
RestCall(super::RestCall),
#[prost(message, tag="4")]
RestAsync(super::RestAsync),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateTargetResponse {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub creation_date: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(string, tag="3")]
pub signing_key: ::prost::alloc::string::String,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateTargetRequest {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag="6")]
pub timeout: ::core::option::Option<::pbjson_types::Duration>,
#[prost(string, optional, tag="7")]
pub endpoint: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag="8")]
pub expiration_signing_key: ::core::option::Option<::pbjson_types::Duration>,
#[prost(oneof="update_target_request::TargetType", tags="3, 4, 5")]
pub target_type: ::core::option::Option<update_target_request::TargetType>,
}
pub mod update_target_request {
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum TargetType {
#[prost(message, tag="3")]
RestWebhook(super::RestWebhook),
#[prost(message, tag="4")]
RestCall(super::RestCall),
#[prost(message, tag="5")]
RestAsync(super::RestAsync),
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateTargetResponse {
#[prost(message, optional, tag="1")]
pub change_date: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(string, optional, tag="2")]
pub signing_key: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTargetRequest {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DeleteTargetResponse {
#[prost(message, optional, tag="3")]
pub deletion_date: ::core::option::Option<::pbjson_types::Timestamp>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetRequest {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTargetResponse {
#[prost(message, optional, tag="1")]
pub target: ::core::option::Option<Target>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetsRequest {
#[prost(message, optional, tag="1")]
pub pagination: ::core::option::Option<super::super::filter::v2beta::PaginationRequest>,
#[prost(enumeration="TargetFieldName", optional, tag="2")]
pub sorting_column: ::core::option::Option<i32>,
#[prost(message, repeated, tag="3")]
pub filters: ::prost::alloc::vec::Vec<TargetSearchFilter>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTargetsResponse {
#[prost(message, optional, tag="1")]
pub pagination: ::core::option::Option<super::super::filter::v2beta::PaginationResponse>,
#[prost(message, repeated, tag="2")]
pub targets: ::prost::alloc::vec::Vec<Target>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetExecutionRequest {
#[prost(message, optional, tag="1")]
pub condition: ::core::option::Option<Condition>,
#[prost(string, repeated, tag="2")]
pub targets: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SetExecutionResponse {
#[prost(message, optional, tag="1")]
pub set_date: ::core::option::Option<::pbjson_types::Timestamp>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionsRequest {
#[prost(message, optional, tag="1")]
pub pagination: ::core::option::Option<super::super::filter::v2beta::PaginationRequest>,
#[prost(enumeration="ExecutionFieldName", optional, tag="2")]
pub sorting_column: ::core::option::Option<i32>,
#[prost(message, repeated, tag="3")]
pub filters: ::prost::alloc::vec::Vec<ExecutionSearchFilter>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionsResponse {
#[prost(message, optional, tag="1")]
pub pagination: ::core::option::Option<super::super::filter::v2beta::PaginationResponse>,
#[prost(message, repeated, tag="2")]
pub executions: ::prost::alloc::vec::Vec<Execution>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ListExecutionFunctionsRequest {
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionFunctionsResponse {
#[prost(string, repeated, tag="1")]
pub functions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ListExecutionMethodsRequest {
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutionMethodsResponse {
#[prost(string, repeated, tag="1")]
pub methods: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ListExecutionServicesRequest {
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[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.action.v2beta.tonic.rs");