#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OrderBy {
#[prost(string, tag = "1")]
pub field_name: ::prost::alloc::string::String,
#[prost(enumeration = "OrderByDirection", tag = "2")]
pub direction: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OrderByDirection {
Unspecified = 0,
Asc = 1,
Desc = 2,
}
impl OrderByDirection {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "ORDER_BY_DIRECTION_UNSPECIFIED",
Self::Asc => "ASC",
Self::Desc => "DESC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ORDER_BY_DIRECTION_UNSPECIFIED" => Some(Self::Unspecified),
"ASC" => Some(Self::Asc),
"DESC" => Some(Self::Desc),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ConnectorType {
Unspecified = 0,
Slack = 1,
GenericHttps = 2,
Pagerduty = 3,
Aws = 4,
}
impl ConnectorType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "CONNECTOR_TYPE_UNSPECIFIED",
Self::Slack => "SLACK",
Self::GenericHttps => "GENERIC_HTTPS",
Self::Pagerduty => "PAGERDUTY",
Self::Aws => "AWS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CONNECTOR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SLACK" => Some(Self::Slack),
"GENERIC_HTTPS" => Some(Self::GenericHttps),
"PAGERDUTY" => Some(Self::Pagerduty),
"AWS" => Some(Self::Aws),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectorConfigField {
#[prost(string, tag = "1")]
pub field_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub template: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MessageConfigField {
#[prost(string, tag = "1")]
pub field_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub template: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenderedConnectorConfigField {
#[prost(string, tag = "1")]
pub field_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenderedMessageConfigField {
#[prost(string, tag = "1")]
pub field_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConfigOverrides {
#[prost(message, optional, tag = "1")]
pub condition_type: ::core::option::Option<ConditionType>,
#[prost(string, tag = "2")]
pub output_schema_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub message_config: ::core::option::Option<MessageConfig>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConditionType {
#[prost(oneof = "condition_type::Condition", tags = "1, 2")]
pub condition: ::core::option::Option<condition_type::Condition>,
}
pub mod condition_type {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Condition {
#[prost(message, tag = "1")]
MatchEntityType(super::MatchEntityTypeCondition),
#[prost(message, tag = "2")]
MatchEntityTypeAndSubType(super::MatchEntityTypeAndSubTypeCondition),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MessageConfig {
#[prost(message, repeated, tag = "1")]
pub fields: ::prost::alloc::vec::Vec<MessageConfigField>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MatchEntityTypeCondition {
#[prost(string, tag = "1")]
pub entity_type: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MatchEntityTypeAndSubTypeCondition {
#[prost(string, tag = "1")]
pub entity_type: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub entity_sub_type: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseStatus {
#[prost(enumeration = "super::super::super::google::rpc::Code", tag = "1")]
pub status_code: i32,
#[prost(string, optional, tag = "2")]
pub message: ::core::option::Option<::prost::alloc::string::String>,
#[prost(map = "string, string", tag = "3")]
pub details: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}