1#[derive(serde::Serialize, serde::Deserialize)]
3#[serde(rename_all = "snake_case")]
4#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5pub struct GetDashboardCatalogRequest {}
6#[derive(serde::Serialize, serde::Deserialize)]
7#[serde(rename_all = "snake_case")]
8#[derive(Clone, PartialEq, ::prost::Message)]
9pub struct GetDashboardCatalogResponse {
10 #[prost(message, repeated, tag = "1")]
11 pub items: ::prost::alloc::vec::Vec<DashboardCatalogItem>,
12}
13#[derive(serde::Serialize, serde::Deserialize)]
14#[serde(rename_all = "snake_case")]
15#[derive(Clone, PartialEq, ::prost::Message)]
16pub struct DashboardCatalogItem {
17 #[prost(message, optional, tag = "1")]
19 pub id: ::core::option::Option<::prost::alloc::string::String>,
20 #[prost(message, optional, tag = "2")]
21 pub name: ::core::option::Option<::prost::alloc::string::String>,
22 #[prost(message, optional, tag = "3")]
23 pub description: ::core::option::Option<::prost::alloc::string::String>,
24 #[prost(message, optional, tag = "4")]
25 pub is_default: ::core::option::Option<bool>,
26 #[prost(message, optional, tag = "5")]
27 pub is_pinned: ::core::option::Option<bool>,
28 #[prost(message, optional, tag = "6")]
29 pub create_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
30 #[prost(message, optional, tag = "7")]
31 pub update_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
32 #[prost(message, optional, tag = "8")]
33 pub folder: ::core::option::Option<super::common::DashboardFolder>,
34 #[prost(message, optional, tag = "9")]
35 pub author_id: ::core::option::Option<::prost::alloc::string::String>,
36 #[prost(message, optional, tag = "10")]
37 pub is_locked: ::core::option::Option<bool>,
38 #[prost(message, optional, tag = "11")]
39 pub locker_author_id: ::core::option::Option<::prost::alloc::string::String>,
40}
41pub mod dashboard_catalog_service_client {
43 #![allow(
44 unused_variables,
45 dead_code,
46 missing_docs,
47 clippy::wildcard_imports,
48 clippy::let_unit_value,
49 )]
50 use tonic::codegen::*;
51 use tonic::codegen::http::Uri;
52 #[derive(Debug, Clone)]
53 pub struct DashboardCatalogServiceClient<T> {
54 inner: tonic::client::Grpc<T>,
55 }
56 impl DashboardCatalogServiceClient<tonic::transport::Channel> {
57 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
59 where
60 D: TryInto<tonic::transport::Endpoint>,
61 D::Error: Into<StdError>,
62 {
63 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
64 Ok(Self::new(conn))
65 }
66 }
67 impl<T> DashboardCatalogServiceClient<T>
68 where
69 T: tonic::client::GrpcService<tonic::body::BoxBody>,
70 T::Error: Into<StdError>,
71 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
72 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
73 {
74 pub fn new(inner: T) -> Self {
75 let inner = tonic::client::Grpc::new(inner);
76 Self { inner }
77 }
78 pub fn with_origin(inner: T, origin: Uri) -> Self {
79 let inner = tonic::client::Grpc::with_origin(inner, origin);
80 Self { inner }
81 }
82 pub fn with_interceptor<F>(
83 inner: T,
84 interceptor: F,
85 ) -> DashboardCatalogServiceClient<InterceptedService<T, F>>
86 where
87 F: tonic::service::Interceptor,
88 T::ResponseBody: Default,
89 T: tonic::codegen::Service<
90 http::Request<tonic::body::BoxBody>,
91 Response = http::Response<
92 <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
93 >,
94 >,
95 <T as tonic::codegen::Service<
96 http::Request<tonic::body::BoxBody>,
97 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
98 {
99 DashboardCatalogServiceClient::new(
100 InterceptedService::new(inner, interceptor),
101 )
102 }
103 #[must_use]
108 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
109 self.inner = self.inner.send_compressed(encoding);
110 self
111 }
112 #[must_use]
114 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
115 self.inner = self.inner.accept_compressed(encoding);
116 self
117 }
118 #[must_use]
122 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
123 self.inner = self.inner.max_decoding_message_size(limit);
124 self
125 }
126 #[must_use]
130 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
131 self.inner = self.inner.max_encoding_message_size(limit);
132 self
133 }
134 pub async fn get_dashboard_catalog(
135 &mut self,
136 request: impl tonic::IntoRequest<super::GetDashboardCatalogRequest>,
137 ) -> std::result::Result<
138 tonic::Response<super::GetDashboardCatalogResponse>,
139 tonic::Status,
140 > {
141 self.inner
142 .ready()
143 .await
144 .map_err(|e| {
145 tonic::Status::unknown(
146 format!("Service was not ready: {}", e.into()),
147 )
148 })?;
149 let codec = tonic::codec::ProstCodec::default();
150 let path = http::uri::PathAndQuery::from_static(
151 "/com.coralogixapis.dashboards.v1.services.DashboardCatalogService/GetDashboardCatalog",
152 );
153 let mut req = request.into_request();
154 req.extensions_mut()
155 .insert(
156 GrpcMethod::new(
157 "com.coralogixapis.dashboards.v1.services.DashboardCatalogService",
158 "GetDashboardCatalog",
159 ),
160 );
161 self.inner.unary(req, path, codec).await
162 }
163 }
164}
165#[derive(serde::Serialize, serde::Deserialize)]
166#[serde(rename_all = "snake_case")]
167#[derive(Clone, PartialEq, ::prost::Message)]
168pub struct CreateDashboardFolderRequest {
169 #[prost(message, optional, tag = "1")]
170 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
171 #[prost(message, optional, tag = "2")]
172 pub folder: ::core::option::Option<super::common::DashboardFolder>,
173}
174#[derive(serde::Serialize, serde::Deserialize)]
175#[serde(rename_all = "snake_case")]
176#[derive(Clone, Copy, PartialEq, ::prost::Message)]
177pub struct CreateDashboardFolderResponse {}
178#[derive(serde::Serialize, serde::Deserialize)]
179#[serde(rename_all = "snake_case")]
180#[derive(Clone, PartialEq, ::prost::Message)]
181pub struct ReplaceDashboardFolderRequest {
182 #[prost(message, optional, tag = "1")]
183 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
184 #[prost(message, optional, tag = "2")]
185 pub folder: ::core::option::Option<super::common::DashboardFolder>,
186}
187#[derive(serde::Serialize, serde::Deserialize)]
188#[serde(rename_all = "snake_case")]
189#[derive(Clone, Copy, PartialEq, ::prost::Message)]
190pub struct ReplaceDashboardFolderResponse {}
191#[derive(serde::Serialize, serde::Deserialize)]
192#[serde(rename_all = "snake_case")]
193#[derive(Clone, PartialEq, ::prost::Message)]
194pub struct DeleteDashboardFolderRequest {
195 #[prost(message, optional, tag = "1")]
196 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
197 #[prost(message, optional, tag = "2")]
198 pub folder_id: ::core::option::Option<::prost::alloc::string::String>,
199}
200#[derive(serde::Serialize, serde::Deserialize)]
201#[serde(rename_all = "snake_case")]
202#[derive(Clone, Copy, PartialEq, ::prost::Message)]
203pub struct DeleteDashboardFolderResponse {}
204#[derive(serde::Serialize, serde::Deserialize)]
205#[serde(rename_all = "snake_case")]
206#[derive(Clone, Copy, PartialEq, ::prost::Message)]
207pub struct ListDashboardFoldersRequest {}
208#[derive(serde::Serialize, serde::Deserialize)]
209#[serde(rename_all = "snake_case")]
210#[derive(Clone, PartialEq, ::prost::Message)]
211pub struct ListDashboardFoldersResponse {
212 #[prost(message, repeated, tag = "1")]
213 pub folder: ::prost::alloc::vec::Vec<super::common::DashboardFolder>,
214}
215#[derive(serde::Serialize, serde::Deserialize)]
216#[serde(rename_all = "snake_case")]
217#[derive(Clone, PartialEq, ::prost::Message)]
218pub struct GetDashboardFolderRequest {
219 #[prost(message, optional, tag = "1")]
220 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
221 #[prost(message, optional, tag = "2")]
222 pub folder_id: ::core::option::Option<::prost::alloc::string::String>,
223}
224#[derive(serde::Serialize, serde::Deserialize)]
225#[serde(rename_all = "snake_case")]
226#[derive(Clone, PartialEq, ::prost::Message)]
227pub struct GetDashboardFolderResponse {
228 #[prost(message, optional, tag = "1")]
229 pub folder: ::core::option::Option<super::common::DashboardFolder>,
230}
231pub mod dashboard_folders_service_client {
233 #![allow(
234 unused_variables,
235 dead_code,
236 missing_docs,
237 clippy::wildcard_imports,
238 clippy::let_unit_value,
239 )]
240 use tonic::codegen::*;
241 use tonic::codegen::http::Uri;
242 #[derive(Debug, Clone)]
243 pub struct DashboardFoldersServiceClient<T> {
244 inner: tonic::client::Grpc<T>,
245 }
246 impl DashboardFoldersServiceClient<tonic::transport::Channel> {
247 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
249 where
250 D: TryInto<tonic::transport::Endpoint>,
251 D::Error: Into<StdError>,
252 {
253 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
254 Ok(Self::new(conn))
255 }
256 }
257 impl<T> DashboardFoldersServiceClient<T>
258 where
259 T: tonic::client::GrpcService<tonic::body::BoxBody>,
260 T::Error: Into<StdError>,
261 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
262 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
263 {
264 pub fn new(inner: T) -> Self {
265 let inner = tonic::client::Grpc::new(inner);
266 Self { inner }
267 }
268 pub fn with_origin(inner: T, origin: Uri) -> Self {
269 let inner = tonic::client::Grpc::with_origin(inner, origin);
270 Self { inner }
271 }
272 pub fn with_interceptor<F>(
273 inner: T,
274 interceptor: F,
275 ) -> DashboardFoldersServiceClient<InterceptedService<T, F>>
276 where
277 F: tonic::service::Interceptor,
278 T::ResponseBody: Default,
279 T: tonic::codegen::Service<
280 http::Request<tonic::body::BoxBody>,
281 Response = http::Response<
282 <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
283 >,
284 >,
285 <T as tonic::codegen::Service<
286 http::Request<tonic::body::BoxBody>,
287 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
288 {
289 DashboardFoldersServiceClient::new(
290 InterceptedService::new(inner, interceptor),
291 )
292 }
293 #[must_use]
298 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
299 self.inner = self.inner.send_compressed(encoding);
300 self
301 }
302 #[must_use]
304 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
305 self.inner = self.inner.accept_compressed(encoding);
306 self
307 }
308 #[must_use]
312 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
313 self.inner = self.inner.max_decoding_message_size(limit);
314 self
315 }
316 #[must_use]
320 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
321 self.inner = self.inner.max_encoding_message_size(limit);
322 self
323 }
324 pub async fn list_dashboard_folders(
325 &mut self,
326 request: impl tonic::IntoRequest<super::ListDashboardFoldersRequest>,
327 ) -> std::result::Result<
328 tonic::Response<super::ListDashboardFoldersResponse>,
329 tonic::Status,
330 > {
331 self.inner
332 .ready()
333 .await
334 .map_err(|e| {
335 tonic::Status::unknown(
336 format!("Service was not ready: {}", e.into()),
337 )
338 })?;
339 let codec = tonic::codec::ProstCodec::default();
340 let path = http::uri::PathAndQuery::from_static(
341 "/com.coralogixapis.dashboards.v1.services.DashboardFoldersService/ListDashboardFolders",
342 );
343 let mut req = request.into_request();
344 req.extensions_mut()
345 .insert(
346 GrpcMethod::new(
347 "com.coralogixapis.dashboards.v1.services.DashboardFoldersService",
348 "ListDashboardFolders",
349 ),
350 );
351 self.inner.unary(req, path, codec).await
352 }
353 pub async fn get_dashboard_folder(
354 &mut self,
355 request: impl tonic::IntoRequest<super::GetDashboardFolderRequest>,
356 ) -> std::result::Result<
357 tonic::Response<super::GetDashboardFolderResponse>,
358 tonic::Status,
359 > {
360 self.inner
361 .ready()
362 .await
363 .map_err(|e| {
364 tonic::Status::unknown(
365 format!("Service was not ready: {}", e.into()),
366 )
367 })?;
368 let codec = tonic::codec::ProstCodec::default();
369 let path = http::uri::PathAndQuery::from_static(
370 "/com.coralogixapis.dashboards.v1.services.DashboardFoldersService/GetDashboardFolder",
371 );
372 let mut req = request.into_request();
373 req.extensions_mut()
374 .insert(
375 GrpcMethod::new(
376 "com.coralogixapis.dashboards.v1.services.DashboardFoldersService",
377 "GetDashboardFolder",
378 ),
379 );
380 self.inner.unary(req, path, codec).await
381 }
382 pub async fn create_dashboard_folder(
383 &mut self,
384 request: impl tonic::IntoRequest<super::CreateDashboardFolderRequest>,
385 ) -> std::result::Result<
386 tonic::Response<super::CreateDashboardFolderResponse>,
387 tonic::Status,
388 > {
389 self.inner
390 .ready()
391 .await
392 .map_err(|e| {
393 tonic::Status::unknown(
394 format!("Service was not ready: {}", e.into()),
395 )
396 })?;
397 let codec = tonic::codec::ProstCodec::default();
398 let path = http::uri::PathAndQuery::from_static(
399 "/com.coralogixapis.dashboards.v1.services.DashboardFoldersService/CreateDashboardFolder",
400 );
401 let mut req = request.into_request();
402 req.extensions_mut()
403 .insert(
404 GrpcMethod::new(
405 "com.coralogixapis.dashboards.v1.services.DashboardFoldersService",
406 "CreateDashboardFolder",
407 ),
408 );
409 self.inner.unary(req, path, codec).await
410 }
411 pub async fn replace_dashboard_folder(
412 &mut self,
413 request: impl tonic::IntoRequest<super::ReplaceDashboardFolderRequest>,
414 ) -> std::result::Result<
415 tonic::Response<super::ReplaceDashboardFolderResponse>,
416 tonic::Status,
417 > {
418 self.inner
419 .ready()
420 .await
421 .map_err(|e| {
422 tonic::Status::unknown(
423 format!("Service was not ready: {}", e.into()),
424 )
425 })?;
426 let codec = tonic::codec::ProstCodec::default();
427 let path = http::uri::PathAndQuery::from_static(
428 "/com.coralogixapis.dashboards.v1.services.DashboardFoldersService/ReplaceDashboardFolder",
429 );
430 let mut req = request.into_request();
431 req.extensions_mut()
432 .insert(
433 GrpcMethod::new(
434 "com.coralogixapis.dashboards.v1.services.DashboardFoldersService",
435 "ReplaceDashboardFolder",
436 ),
437 );
438 self.inner.unary(req, path, codec).await
439 }
440 pub async fn delete_dashboard_folder(
441 &mut self,
442 request: impl tonic::IntoRequest<super::DeleteDashboardFolderRequest>,
443 ) -> std::result::Result<
444 tonic::Response<super::DeleteDashboardFolderResponse>,
445 tonic::Status,
446 > {
447 self.inner
448 .ready()
449 .await
450 .map_err(|e| {
451 tonic::Status::unknown(
452 format!("Service was not ready: {}", e.into()),
453 )
454 })?;
455 let codec = tonic::codec::ProstCodec::default();
456 let path = http::uri::PathAndQuery::from_static(
457 "/com.coralogixapis.dashboards.v1.services.DashboardFoldersService/DeleteDashboardFolder",
458 );
459 let mut req = request.into_request();
460 req.extensions_mut()
461 .insert(
462 GrpcMethod::new(
463 "com.coralogixapis.dashboards.v1.services.DashboardFoldersService",
464 "DeleteDashboardFolder",
465 ),
466 );
467 self.inner.unary(req, path, codec).await
468 }
469 }
470}
471#[derive(serde::Serialize, serde::Deserialize)]
472#[serde(rename_all = "snake_case")]
473#[derive(Clone, PartialEq, ::prost::Message)]
474pub struct CreateDashboardRequest {
475 #[prost(message, optional, tag = "1")]
476 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
477 #[prost(message, optional, tag = "2")]
478 pub dashboard: ::core::option::Option<super::ast::Dashboard>,
479 #[prost(message, optional, tag = "3")]
480 pub is_locked: ::core::option::Option<bool>,
481}
482#[derive(serde::Serialize, serde::Deserialize)]
483#[serde(rename_all = "snake_case")]
484#[derive(Clone, PartialEq, ::prost::Message)]
485pub struct CreateDashboardResponse {
486 #[prost(message, optional, tag = "1")]
487 pub dashboard_id: ::core::option::Option<::prost::alloc::string::String>,
488}
489#[derive(serde::Serialize, serde::Deserialize)]
490#[serde(rename_all = "snake_case")]
491#[derive(Clone, PartialEq, ::prost::Message)]
492pub struct ReplaceDashboardRequest {
493 #[prost(message, optional, tag = "1")]
494 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
495 #[prost(message, optional, tag = "2")]
496 pub dashboard: ::core::option::Option<super::ast::Dashboard>,
497 #[prost(message, optional, tag = "3")]
498 pub is_locked: ::core::option::Option<bool>,
499}
500#[derive(serde::Serialize, serde::Deserialize)]
501#[serde(rename_all = "snake_case")]
502#[derive(Clone, Copy, PartialEq, ::prost::Message)]
503pub struct ReplaceDashboardResponse {}
504#[derive(serde::Serialize, serde::Deserialize)]
505#[serde(rename_all = "snake_case")]
506#[derive(Clone, PartialEq, ::prost::Message)]
507pub struct DeleteDashboardRequest {
508 #[prost(message, optional, tag = "1")]
509 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
510 #[prost(message, optional, tag = "2")]
511 pub dashboard_id: ::core::option::Option<::prost::alloc::string::String>,
512}
513#[derive(serde::Serialize, serde::Deserialize)]
514#[serde(rename_all = "snake_case")]
515#[derive(Clone, Copy, PartialEq, ::prost::Message)]
516pub struct DeleteDashboardResponse {}
517#[derive(serde::Serialize, serde::Deserialize)]
518#[serde(rename_all = "snake_case")]
519#[derive(Clone, PartialEq, ::prost::Message)]
520pub struct GetDashboardRequest {
521 #[prost(message, optional, tag = "1")]
522 pub dashboard_id: ::core::option::Option<::prost::alloc::string::String>,
523}
524#[derive(serde::Serialize, serde::Deserialize)]
525#[serde(rename_all = "snake_case")]
526#[derive(Clone, PartialEq, ::prost::Message)]
527pub struct GetDashboardResponse {
528 #[prost(message, optional, tag = "1")]
529 pub dashboard: ::core::option::Option<super::ast::Dashboard>,
530 #[prost(message, optional, tag = "2")]
531 pub updated_at: ::core::option::Option<::prost_wkt_types::Timestamp>,
532 #[prost(message, optional, tag = "3")]
533 pub created_at: ::core::option::Option<::prost_wkt_types::Timestamp>,
534 #[prost(message, optional, tag = "4")]
535 pub updater_author_id: ::core::option::Option<::prost::alloc::string::String>,
536 #[prost(message, optional, tag = "8")]
537 pub updater_name: ::core::option::Option<::prost::alloc::string::String>,
538 #[prost(message, optional, tag = "5")]
539 pub author_id: ::core::option::Option<::prost::alloc::string::String>,
540 #[prost(message, optional, tag = "9")]
541 pub author_name: ::core::option::Option<::prost::alloc::string::String>,
542 #[prost(enumeration = "TokenOriginType", tag = "6")]
543 pub updated_origin_type: i32,
544 #[prost(enumeration = "TokenOriginType", tag = "7")]
545 pub created_origin_type: i32,
546 #[prost(message, optional, tag = "10")]
547 pub is_locked: ::core::option::Option<bool>,
548 #[prost(message, optional, tag = "11")]
549 pub locker_author_id: ::core::option::Option<::prost::alloc::string::String>,
550 #[prost(message, optional, tag = "12")]
551 pub locker_name: ::core::option::Option<::prost::alloc::string::String>,
552}
553#[derive(serde::Serialize, serde::Deserialize)]
554#[serde(rename_all = "snake_case")]
555#[derive(Clone, PartialEq, ::prost::Message)]
556pub struct PinDashboardRequest {
557 #[prost(message, optional, tag = "1")]
558 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
559 #[prost(message, optional, tag = "2")]
560 pub dashboard_id: ::core::option::Option<::prost::alloc::string::String>,
561}
562#[derive(serde::Serialize, serde::Deserialize)]
563#[serde(rename_all = "snake_case")]
564#[derive(Clone, Copy, PartialEq, ::prost::Message)]
565pub struct PinDashboardResponse {}
566#[derive(serde::Serialize, serde::Deserialize)]
567#[serde(rename_all = "snake_case")]
568#[derive(Clone, PartialEq, ::prost::Message)]
569pub struct UnpinDashboardRequest {
570 #[prost(message, optional, tag = "1")]
571 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
572 #[prost(message, optional, tag = "2")]
573 pub dashboard_id: ::core::option::Option<::prost::alloc::string::String>,
574}
575#[derive(serde::Serialize, serde::Deserialize)]
576#[serde(rename_all = "snake_case")]
577#[derive(Clone, Copy, PartialEq, ::prost::Message)]
578pub struct UnpinDashboardResponse {}
579#[derive(serde::Serialize, serde::Deserialize)]
580#[serde(rename_all = "snake_case")]
581#[derive(Clone, PartialEq, ::prost::Message)]
582pub struct ReplaceDefaultDashboardRequest {
583 #[prost(message, optional, tag = "1")]
584 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
585 #[prost(message, optional, tag = "2")]
586 pub dashboard_id: ::core::option::Option<::prost::alloc::string::String>,
587}
588#[derive(serde::Serialize, serde::Deserialize)]
589#[serde(rename_all = "snake_case")]
590#[derive(Clone, Copy, PartialEq, ::prost::Message)]
591pub struct ReplaceDefaultDashboardResponse {}
592#[derive(serde::Serialize, serde::Deserialize)]
593#[serde(rename_all = "snake_case")]
594#[derive(Clone, PartialEq, ::prost::Message)]
595pub struct AssignDashboardFolderRequest {
596 #[prost(message, optional, tag = "1")]
597 pub request_id: ::core::option::Option<::prost::alloc::string::String>,
598 #[prost(message, optional, tag = "2")]
599 pub dashboard_id: ::core::option::Option<::prost::alloc::string::String>,
600 #[prost(message, optional, tag = "3")]
602 pub folder_id: ::core::option::Option<::prost::alloc::string::String>,
603}
604#[derive(serde::Serialize, serde::Deserialize)]
605#[serde(rename_all = "snake_case")]
606#[derive(Clone, Copy, PartialEq, ::prost::Message)]
607pub struct AssignDashboardFolderResponse {}
608#[derive(serde::Serialize, serde::Deserialize)]
609#[serde(rename_all = "snake_case")]
610#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
611#[repr(i32)]
612pub enum TokenOriginType {
613 Unspecified = 0,
614 User = 1,
615 Api = 2,
616}
617impl TokenOriginType {
618 pub fn as_str_name(&self) -> &'static str {
623 match self {
624 Self::Unspecified => "TOKEN_ORIGIN_TYPE_UNSPECIFIED",
625 Self::User => "TOKEN_ORIGIN_TYPE_USER",
626 Self::Api => "TOKEN_ORIGIN_TYPE_API",
627 }
628 }
629 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
631 match value {
632 "TOKEN_ORIGIN_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
633 "TOKEN_ORIGIN_TYPE_USER" => Some(Self::User),
634 "TOKEN_ORIGIN_TYPE_API" => Some(Self::Api),
635 _ => None,
636 }
637 }
638}
639pub mod dashboards_service_client {
641 #![allow(
642 unused_variables,
643 dead_code,
644 missing_docs,
645 clippy::wildcard_imports,
646 clippy::let_unit_value,
647 )]
648 use tonic::codegen::*;
649 use tonic::codegen::http::Uri;
650 #[derive(Debug, Clone)]
651 pub struct DashboardsServiceClient<T> {
652 inner: tonic::client::Grpc<T>,
653 }
654 impl DashboardsServiceClient<tonic::transport::Channel> {
655 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
657 where
658 D: TryInto<tonic::transport::Endpoint>,
659 D::Error: Into<StdError>,
660 {
661 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
662 Ok(Self::new(conn))
663 }
664 }
665 impl<T> DashboardsServiceClient<T>
666 where
667 T: tonic::client::GrpcService<tonic::body::BoxBody>,
668 T::Error: Into<StdError>,
669 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
670 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
671 {
672 pub fn new(inner: T) -> Self {
673 let inner = tonic::client::Grpc::new(inner);
674 Self { inner }
675 }
676 pub fn with_origin(inner: T, origin: Uri) -> Self {
677 let inner = tonic::client::Grpc::with_origin(inner, origin);
678 Self { inner }
679 }
680 pub fn with_interceptor<F>(
681 inner: T,
682 interceptor: F,
683 ) -> DashboardsServiceClient<InterceptedService<T, F>>
684 where
685 F: tonic::service::Interceptor,
686 T::ResponseBody: Default,
687 T: tonic::codegen::Service<
688 http::Request<tonic::body::BoxBody>,
689 Response = http::Response<
690 <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
691 >,
692 >,
693 <T as tonic::codegen::Service<
694 http::Request<tonic::body::BoxBody>,
695 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
696 {
697 DashboardsServiceClient::new(InterceptedService::new(inner, interceptor))
698 }
699 #[must_use]
704 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
705 self.inner = self.inner.send_compressed(encoding);
706 self
707 }
708 #[must_use]
710 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
711 self.inner = self.inner.accept_compressed(encoding);
712 self
713 }
714 #[must_use]
718 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
719 self.inner = self.inner.max_decoding_message_size(limit);
720 self
721 }
722 #[must_use]
726 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
727 self.inner = self.inner.max_encoding_message_size(limit);
728 self
729 }
730 pub async fn create_dashboard(
731 &mut self,
732 request: impl tonic::IntoRequest<super::CreateDashboardRequest>,
733 ) -> std::result::Result<
734 tonic::Response<super::CreateDashboardResponse>,
735 tonic::Status,
736 > {
737 self.inner
738 .ready()
739 .await
740 .map_err(|e| {
741 tonic::Status::unknown(
742 format!("Service was not ready: {}", e.into()),
743 )
744 })?;
745 let codec = tonic::codec::ProstCodec::default();
746 let path = http::uri::PathAndQuery::from_static(
747 "/com.coralogixapis.dashboards.v1.services.DashboardsService/CreateDashboard",
748 );
749 let mut req = request.into_request();
750 req.extensions_mut()
751 .insert(
752 GrpcMethod::new(
753 "com.coralogixapis.dashboards.v1.services.DashboardsService",
754 "CreateDashboard",
755 ),
756 );
757 self.inner.unary(req, path, codec).await
758 }
759 pub async fn replace_dashboard(
760 &mut self,
761 request: impl tonic::IntoRequest<super::ReplaceDashboardRequest>,
762 ) -> std::result::Result<
763 tonic::Response<super::ReplaceDashboardResponse>,
764 tonic::Status,
765 > {
766 self.inner
767 .ready()
768 .await
769 .map_err(|e| {
770 tonic::Status::unknown(
771 format!("Service was not ready: {}", e.into()),
772 )
773 })?;
774 let codec = tonic::codec::ProstCodec::default();
775 let path = http::uri::PathAndQuery::from_static(
776 "/com.coralogixapis.dashboards.v1.services.DashboardsService/ReplaceDashboard",
777 );
778 let mut req = request.into_request();
779 req.extensions_mut()
780 .insert(
781 GrpcMethod::new(
782 "com.coralogixapis.dashboards.v1.services.DashboardsService",
783 "ReplaceDashboard",
784 ),
785 );
786 self.inner.unary(req, path, codec).await
787 }
788 pub async fn delete_dashboard(
789 &mut self,
790 request: impl tonic::IntoRequest<super::DeleteDashboardRequest>,
791 ) -> std::result::Result<
792 tonic::Response<super::DeleteDashboardResponse>,
793 tonic::Status,
794 > {
795 self.inner
796 .ready()
797 .await
798 .map_err(|e| {
799 tonic::Status::unknown(
800 format!("Service was not ready: {}", e.into()),
801 )
802 })?;
803 let codec = tonic::codec::ProstCodec::default();
804 let path = http::uri::PathAndQuery::from_static(
805 "/com.coralogixapis.dashboards.v1.services.DashboardsService/DeleteDashboard",
806 );
807 let mut req = request.into_request();
808 req.extensions_mut()
809 .insert(
810 GrpcMethod::new(
811 "com.coralogixapis.dashboards.v1.services.DashboardsService",
812 "DeleteDashboard",
813 ),
814 );
815 self.inner.unary(req, path, codec).await
816 }
817 pub async fn get_dashboard(
818 &mut self,
819 request: impl tonic::IntoRequest<super::GetDashboardRequest>,
820 ) -> std::result::Result<
821 tonic::Response<super::GetDashboardResponse>,
822 tonic::Status,
823 > {
824 self.inner
825 .ready()
826 .await
827 .map_err(|e| {
828 tonic::Status::unknown(
829 format!("Service was not ready: {}", e.into()),
830 )
831 })?;
832 let codec = tonic::codec::ProstCodec::default();
833 let path = http::uri::PathAndQuery::from_static(
834 "/com.coralogixapis.dashboards.v1.services.DashboardsService/GetDashboard",
835 );
836 let mut req = request.into_request();
837 req.extensions_mut()
838 .insert(
839 GrpcMethod::new(
840 "com.coralogixapis.dashboards.v1.services.DashboardsService",
841 "GetDashboard",
842 ),
843 );
844 self.inner.unary(req, path, codec).await
845 }
846 pub async fn pin_dashboard(
847 &mut self,
848 request: impl tonic::IntoRequest<super::PinDashboardRequest>,
849 ) -> std::result::Result<
850 tonic::Response<super::PinDashboardResponse>,
851 tonic::Status,
852 > {
853 self.inner
854 .ready()
855 .await
856 .map_err(|e| {
857 tonic::Status::unknown(
858 format!("Service was not ready: {}", e.into()),
859 )
860 })?;
861 let codec = tonic::codec::ProstCodec::default();
862 let path = http::uri::PathAndQuery::from_static(
863 "/com.coralogixapis.dashboards.v1.services.DashboardsService/PinDashboard",
864 );
865 let mut req = request.into_request();
866 req.extensions_mut()
867 .insert(
868 GrpcMethod::new(
869 "com.coralogixapis.dashboards.v1.services.DashboardsService",
870 "PinDashboard",
871 ),
872 );
873 self.inner.unary(req, path, codec).await
874 }
875 pub async fn unpin_dashboard(
876 &mut self,
877 request: impl tonic::IntoRequest<super::UnpinDashboardRequest>,
878 ) -> std::result::Result<
879 tonic::Response<super::UnpinDashboardResponse>,
880 tonic::Status,
881 > {
882 self.inner
883 .ready()
884 .await
885 .map_err(|e| {
886 tonic::Status::unknown(
887 format!("Service was not ready: {}", e.into()),
888 )
889 })?;
890 let codec = tonic::codec::ProstCodec::default();
891 let path = http::uri::PathAndQuery::from_static(
892 "/com.coralogixapis.dashboards.v1.services.DashboardsService/UnpinDashboard",
893 );
894 let mut req = request.into_request();
895 req.extensions_mut()
896 .insert(
897 GrpcMethod::new(
898 "com.coralogixapis.dashboards.v1.services.DashboardsService",
899 "UnpinDashboard",
900 ),
901 );
902 self.inner.unary(req, path, codec).await
903 }
904 pub async fn replace_default_dashboard(
905 &mut self,
906 request: impl tonic::IntoRequest<super::ReplaceDefaultDashboardRequest>,
907 ) -> std::result::Result<
908 tonic::Response<super::ReplaceDefaultDashboardResponse>,
909 tonic::Status,
910 > {
911 self.inner
912 .ready()
913 .await
914 .map_err(|e| {
915 tonic::Status::unknown(
916 format!("Service was not ready: {}", e.into()),
917 )
918 })?;
919 let codec = tonic::codec::ProstCodec::default();
920 let path = http::uri::PathAndQuery::from_static(
921 "/com.coralogixapis.dashboards.v1.services.DashboardsService/ReplaceDefaultDashboard",
922 );
923 let mut req = request.into_request();
924 req.extensions_mut()
925 .insert(
926 GrpcMethod::new(
927 "com.coralogixapis.dashboards.v1.services.DashboardsService",
928 "ReplaceDefaultDashboard",
929 ),
930 );
931 self.inner.unary(req, path, codec).await
932 }
933 pub async fn assign_dashboard_folder(
934 &mut self,
935 request: impl tonic::IntoRequest<super::AssignDashboardFolderRequest>,
936 ) -> std::result::Result<
937 tonic::Response<super::AssignDashboardFolderResponse>,
938 tonic::Status,
939 > {
940 self.inner
941 .ready()
942 .await
943 .map_err(|e| {
944 tonic::Status::unknown(
945 format!("Service was not ready: {}", e.into()),
946 )
947 })?;
948 let codec = tonic::codec::ProstCodec::default();
949 let path = http::uri::PathAndQuery::from_static(
950 "/com.coralogixapis.dashboards.v1.services.DashboardsService/AssignDashboardFolder",
951 );
952 let mut req = request.into_request();
953 req.extensions_mut()
954 .insert(
955 GrpcMethod::new(
956 "com.coralogixapis.dashboards.v1.services.DashboardsService",
957 "AssignDashboardFolder",
958 ),
959 );
960 self.inner.unary(req, path, codec).await
961 }
962 }
963}