cx_api/generated/
com.coralogixapis.notification_center.rs

1// This file is @generated by prost-build.
2#[derive(serde::Serialize, serde::Deserialize)]
3#[serde(rename_all = "snake_case")]
4#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5#[repr(i32)]
6pub enum ConnectorType {
7    Unspecified = 0,
8    Slack = 1,
9    GenericHttps = 2,
10    Pagerduty = 3,
11    Aws = 4,
12    IbmEventNotifications = 5,
13}
14impl ConnectorType {
15    /// String value of the enum field names used in the ProtoBuf definition.
16    ///
17    /// The values are not transformed in any way and thus are considered stable
18    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
19    pub fn as_str_name(&self) -> &'static str {
20        match self {
21            Self::Unspecified => "CONNECTOR_TYPE_UNSPECIFIED",
22            Self::Slack => "SLACK",
23            Self::GenericHttps => "GENERIC_HTTPS",
24            Self::Pagerduty => "PAGERDUTY",
25            Self::Aws => "AWS",
26            Self::IbmEventNotifications => "IBM_EVENT_NOTIFICATIONS",
27        }
28    }
29    /// Creates an enum from field names used in the ProtoBuf definition.
30    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
31        match value {
32            "CONNECTOR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
33            "SLACK" => Some(Self::Slack),
34            "GENERIC_HTTPS" => Some(Self::GenericHttps),
35            "PAGERDUTY" => Some(Self::Pagerduty),
36            "AWS" => Some(Self::Aws),
37            "IBM_EVENT_NOTIFICATIONS" => Some(Self::IbmEventNotifications),
38            _ => None,
39        }
40    }
41}
42#[derive(serde::Serialize, serde::Deserialize)]
43#[serde(rename_all = "snake_case")]
44#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
45#[repr(i32)]
46pub enum EntityType {
47    Unspecified = 0,
48    Alerts = 1,
49    TestNotifications = 2,
50}
51impl EntityType {
52    /// String value of the enum field names used in the ProtoBuf definition.
53    ///
54    /// The values are not transformed in any way and thus are considered stable
55    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
56    pub fn as_str_name(&self) -> &'static str {
57        match self {
58            Self::Unspecified => "ENTITY_TYPE_UNSPECIFIED",
59            Self::Alerts => "ALERTS",
60            Self::TestNotifications => "TEST_NOTIFICATIONS",
61        }
62    }
63    /// Creates an enum from field names used in the ProtoBuf definition.
64    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
65        match value {
66            "ENTITY_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
67            "ALERTS" => Some(Self::Alerts),
68            "TEST_NOTIFICATIONS" => Some(Self::TestNotifications),
69            _ => None,
70        }
71    }
72}
73#[derive(serde::Serialize, serde::Deserialize)]
74#[serde(rename_all = "snake_case")]
75#[derive(Clone, PartialEq, ::prost::Message)]
76pub struct ConnectorConfigField {
77    #[prost(string, tag = "1")]
78    pub field_name: ::prost::alloc::string::String,
79    #[prost(string, tag = "2")]
80    pub value: ::prost::alloc::string::String,
81}
82#[derive(serde::Serialize, serde::Deserialize)]
83#[serde(rename_all = "snake_case")]
84#[derive(Clone, PartialEq, ::prost::Message)]
85pub struct TemplatedConnectorConfigField {
86    #[prost(string, tag = "1")]
87    pub field_name: ::prost::alloc::string::String,
88    #[prost(string, tag = "2")]
89    pub template: ::prost::alloc::string::String,
90}
91#[derive(serde::Serialize, serde::Deserialize)]
92#[serde(rename_all = "snake_case")]
93#[derive(Clone, PartialEq, ::prost::Message)]
94pub struct MessageConfigField {
95    #[prost(string, tag = "1")]
96    pub field_name: ::prost::alloc::string::String,
97    #[prost(string, tag = "2")]
98    pub template: ::prost::alloc::string::String,
99}
100#[derive(serde::Serialize, serde::Deserialize)]
101#[serde(rename_all = "snake_case")]
102#[derive(Clone, PartialEq, ::prost::Message)]
103pub struct RenderedConnectorConfigField {
104    #[prost(string, tag = "1")]
105    pub field_name: ::prost::alloc::string::String,
106    #[prost(string, tag = "2")]
107    pub value: ::prost::alloc::string::String,
108}
109#[derive(serde::Serialize, serde::Deserialize)]
110#[serde(rename_all = "snake_case")]
111#[derive(Clone, PartialEq, ::prost::Message)]
112pub struct RenderedMessageConfigField {
113    #[prost(string, tag = "1")]
114    pub field_name: ::prost::alloc::string::String,
115    #[prost(string, tag = "2")]
116    pub value: ::prost::alloc::string::String,
117}
118/// Deprecated - use single id field instead
119#[derive(serde::Serialize, serde::Deserialize)]
120#[serde(rename_all = "snake_case")]
121#[derive(Clone, PartialEq, ::prost::Message)]
122pub struct ConnectorIdentifier {
123    #[prost(oneof = "connector_identifier::Value", tags = "1, 2")]
124    pub value: ::core::option::Option<connector_identifier::Value>,
125}
126/// Nested message and enum types in `ConnectorIdentifier`.
127pub mod connector_identifier {
128    #[derive(serde::Serialize, serde::Deserialize)]
129    #[serde(rename_all = "snake_case")]
130    #[derive(Clone, PartialEq, ::prost::Oneof)]
131    pub enum Value {
132        /// The unique identifier automatically generated by the service
133        #[prost(string, tag = "1")]
134        Id(::prost::alloc::string::String),
135        #[prost(string, tag = "2")]
136        UserDefinedId(::prost::alloc::string::String),
137    }
138}
139/// Deprecated - use single id field instead
140#[derive(serde::Serialize, serde::Deserialize)]
141#[serde(rename_all = "snake_case")]
142#[derive(Clone, PartialEq, ::prost::Message)]
143pub struct PresetIdentifier {
144    #[prost(oneof = "preset_identifier::Value", tags = "1, 2")]
145    pub value: ::core::option::Option<preset_identifier::Value>,
146}
147/// Nested message and enum types in `PresetIdentifier`.
148pub mod preset_identifier {
149    #[derive(serde::Serialize, serde::Deserialize)]
150    #[serde(rename_all = "snake_case")]
151    #[derive(Clone, PartialEq, ::prost::Oneof)]
152    pub enum Value {
153        /// The unique identifier automatically generated by the service
154        #[prost(string, tag = "1")]
155        Id(::prost::alloc::string::String),
156        /// The unique identifier provided by the user
157        #[prost(string, tag = "2")]
158        UserDefinedId(::prost::alloc::string::String),
159    }
160}
161/// Deprecated - use single id field instead
162#[derive(serde::Serialize, serde::Deserialize)]
163#[serde(rename_all = "snake_case")]
164#[derive(Clone, PartialEq, ::prost::Message)]
165pub struct GlobalRouterIdentifier {
166    #[prost(oneof = "global_router_identifier::Value", tags = "1, 2")]
167    pub value: ::core::option::Option<global_router_identifier::Value>,
168}
169/// Nested message and enum types in `GlobalRouterIdentifier`.
170pub mod global_router_identifier {
171    #[derive(serde::Serialize, serde::Deserialize)]
172    #[serde(rename_all = "snake_case")]
173    #[derive(Clone, PartialEq, ::prost::Oneof)]
174    pub enum Value {
175        /// The unique identifier automatically generated by the service
176        #[prost(string, tag = "1")]
177        Id(::prost::alloc::string::String),
178        /// The unique identifier provided by the user
179        #[prost(string, tag = "2")]
180        UserDefinedId(::prost::alloc::string::String),
181    }
182}
183#[derive(serde::Serialize, serde::Deserialize)]
184#[serde(rename_all = "snake_case")]
185#[derive(Clone, PartialEq, ::prost::Message)]
186pub struct ConfigOverrides {
187    #[prost(message, optional, tag = "1")]
188    pub condition_type: ::core::option::Option<ConditionType>,
189    #[prost(string, optional, tag = "2")]
190    pub payload_type: ::core::option::Option<::prost::alloc::string::String>,
191    #[prost(message, optional, tag = "3")]
192    pub message_config: ::core::option::Option<MessageConfig>,
193}
194#[derive(serde::Serialize, serde::Deserialize)]
195#[serde(rename_all = "snake_case")]
196#[derive(Clone, PartialEq, ::prost::Message)]
197pub struct ConditionType {
198    #[prost(oneof = "condition_type::Condition", tags = "1, 2")]
199    pub condition: ::core::option::Option<condition_type::Condition>,
200}
201/// Nested message and enum types in `ConditionType`.
202pub mod condition_type {
203    #[derive(serde::Serialize, serde::Deserialize)]
204    #[serde(rename_all = "snake_case")]
205    #[derive(Clone, PartialEq, ::prost::Oneof)]
206    pub enum Condition {
207        #[prost(message, tag = "1")]
208        MatchEntityType(super::MatchEntityTypeCondition),
209        #[prost(message, tag = "2")]
210        MatchEntityTypeAndSubType(super::MatchEntityTypeAndSubTypeCondition),
211    }
212}
213#[derive(serde::Serialize, serde::Deserialize)]
214#[serde(rename_all = "snake_case")]
215#[derive(Clone, PartialEq, ::prost::Message)]
216pub struct MessageConfig {
217    #[prost(message, repeated, tag = "1")]
218    pub fields: ::prost::alloc::vec::Vec<MessageConfigField>,
219}
220#[derive(serde::Serialize, serde::Deserialize)]
221#[serde(rename_all = "snake_case")]
222#[derive(Clone, PartialEq, ::prost::Message)]
223pub struct MatchEntityTypeCondition {
224    #[deprecated]
225    #[prost(string, tag = "1")]
226    pub deprecated_entity_type: ::prost::alloc::string::String,
227    #[deprecated]
228    #[prost(enumeration = "EntityType", tag = "2")]
229    pub entity_type: i32,
230}
231#[derive(serde::Serialize, serde::Deserialize)]
232#[serde(rename_all = "snake_case")]
233#[derive(Clone, PartialEq, ::prost::Message)]
234pub struct MatchEntityTypeAndSubTypeCondition {
235    #[deprecated]
236    #[prost(string, tag = "1")]
237    pub deprecated_entity_type: ::prost::alloc::string::String,
238    #[prost(string, tag = "2")]
239    pub entity_sub_type: ::prost::alloc::string::String,
240    #[deprecated]
241    #[prost(enumeration = "EntityType", tag = "3")]
242    pub entity_type: i32,
243}