nominal-api 0.1192.0

API bindings for the Nominal platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateConnectAppRequest {
    /// separate from the bundle title to allow for creating empty apps
    #[prost(string, tag = "1")]
    pub display_name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "3")]
    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, string", tag = "4")]
    pub properties: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(bool, optional, tag = "5")]
    pub is_published: ::core::option::Option<bool>,
    #[prost(string, tag = "6")]
    pub workspace: ::prost::alloc::string::String,
    /// optional to allow for creating "empty" in-progress connect apps
    #[prost(message, optional, tag = "7")]
    pub bundle: ::core::option::Option<ConnectAppBundle>,
    #[prost(string, tag = "8")]
    pub commit_message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateConnectAppResponse {
    #[prost(message, optional, tag = "1")]
    pub app: ::core::option::Option<ConnectApp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateConnectAppMetadataRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub display_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "4")]
    pub labels: ::core::option::Option<super::super::types::LabelUpdateWrapper>,
    #[prost(message, optional, tag = "5")]
    pub properties: ::core::option::Option<super::super::types::PropertyUpdateWrapper>,
    #[prost(bool, optional, tag = "6")]
    pub is_archived: ::core::option::Option<bool>,
    #[prost(bool, optional, tag = "7")]
    pub is_published: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectAppBundle {
    #[prost(message, optional, tag = "1")]
    pub s3_path: ::core::option::Option<super::super::types::Handle>,
    #[prost(message, optional, tag = "2")]
    pub metadata: ::core::option::Option<ConnectAppBundleMetadata>,
}
/// wrapper message for metadata that will probably be extended in the future
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectAppBundleMetadata {
    #[prost(string, tag = "1")]
    pub title: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub contains_experimental_features: bool,
    #[prost(string, tag = "3")]
    pub sha256_checksum: ::prost::alloc::string::String,
    /// name of the .connect file inside the bundle. Will default to app.connect
    #[prost(string, optional, tag = "4")]
    pub connect_file_path: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectAppSearchQuery {
    #[prost(oneof = "connect_app_search_query::Query", tags = "1, 2, 3, 4, 5, 6, 7")]
    pub query: ::core::option::Option<connect_app_search_query::Query>,
}
/// Nested message and enum types in `ConnectAppSearchQuery`.
pub mod connect_app_search_query {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ConnectAppSearchAndQuery {
        #[prost(message, repeated, tag = "1")]
        pub queries: ::prost::alloc::vec::Vec<super::ConnectAppSearchQuery>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ConnectAppSearchOrQuery {
        #[prost(message, repeated, tag = "1")]
        pub queries: ::prost::alloc::vec::Vec<super::ConnectAppSearchQuery>,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Query {
        #[prost(string, tag = "1")]
        SearchText(::prost::alloc::string::String),
        #[prost(string, tag = "2")]
        Label(::prost::alloc::string::String),
        #[prost(message, tag = "3")]
        Property(super::super::super::types::Property),
        #[prost(message, tag = "4")]
        And(ConnectAppSearchAndQuery),
        #[prost(message, tag = "5")]
        Or(ConnectAppSearchOrQuery),
        #[prost(string, tag = "6")]
        Workspace(::prost::alloc::string::String),
        #[prost(bool, tag = "7")]
        IsArchived(bool),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectAppMetadata {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub display_name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "4")]
    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, string", tag = "5")]
    pub properties: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(bool, tag = "6")]
    pub is_archived: bool,
    #[prost(bool, tag = "7")]
    pub is_published: bool,
    #[prost(message, optional, tag = "8")]
    pub created_at: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    #[prost(string, tag = "9")]
    pub created_by: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "10")]
    pub updated_at: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    #[prost(string, tag = "11")]
    pub workspace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectApp {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub commit: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub metadata: ::core::option::Option<ConnectAppMetadata>,
    #[prost(message, optional, tag = "4")]
    pub bundle: ::core::option::Option<ConnectAppBundle>,
    #[prost(uint64, tag = "5")]
    pub version_number: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectAppRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub branch_or_commit: ::core::option::Option<
        super::super::versioning::v1::BranchOrCommit,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectAppBundleDownloadUrlRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub branch_or_commit: ::core::option::Option<
        super::super::versioning::v1::BranchOrCommit,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectAppBundleDownloadUrlResponse {
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectAppResponse {
    #[prost(message, optional, tag = "1")]
    pub app: ::core::option::Option<ConnectApp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateConnectAppMetadataResponse {
    #[prost(message, optional, tag = "1")]
    pub app_metadata: ::core::option::Option<ConnectAppMetadata>,
}
/// only allow commits to the main branch
/// no latest commit id field to bypass conflict detection
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub bundle: ::core::option::Option<ConnectAppBundle>,
    #[prost(string, tag = "3")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitResponse {
    #[prost(message, optional, tag = "1")]
    pub app: ::core::option::Option<ConnectApp>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SearchConnectAppsOptions {
    /// default is true
    #[prost(bool, optional, tag = "1")]
    pub is_descending: ::core::option::Option<bool>,
    /// default is title
    #[prost(enumeration = "SearchConnectAppsSortField", optional, tag = "2")]
    pub sort_field: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchConnectAppsRequest {
    #[prost(message, optional, tag = "1")]
    pub query: ::core::option::Option<ConnectAppSearchQuery>,
    #[prost(message, optional, tag = "2")]
    pub options: ::core::option::Option<SearchConnectAppsOptions>,
    #[prost(int32, optional, tag = "3")]
    pub page_size: ::core::option::Option<i32>,
    #[prost(string, optional, tag = "4")]
    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchConnectAppsResponse {
    #[prost(message, repeated, tag = "1")]
    pub app_metadata: ::prost::alloc::vec::Vec<ConnectAppMetadata>,
    #[prost(string, optional, tag = "2")]
    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveConnectAppsRequest {
    #[prost(string, repeated, tag = "1")]
    pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnarchiveConnectAppsRequest {
    #[prost(string, repeated, tag = "1")]
    pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveConnectAppsResponse {
    #[prost(string, repeated, tag = "1")]
    pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnarchiveConnectAppsResponse {
    #[prost(string, repeated, tag = "1")]
    pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SearchConnectAppsSortField {
    Unspecified = 0,
    Title = 1,
    CreatedAt = 2,
    DisplayName = 3,
}
impl SearchConnectAppsSortField {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "SEARCH_CONNECT_APPS_SORT_FIELD_UNSPECIFIED",
            Self::Title => "SEARCH_CONNECT_APPS_SORT_FIELD_TITLE",
            Self::CreatedAt => "SEARCH_CONNECT_APPS_SORT_FIELD_CREATED_AT",
            Self::DisplayName => "SEARCH_CONNECT_APPS_SORT_FIELD_DISPLAY_NAME",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SEARCH_CONNECT_APPS_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
            "SEARCH_CONNECT_APPS_SORT_FIELD_TITLE" => Some(Self::Title),
            "SEARCH_CONNECT_APPS_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
            "SEARCH_CONNECT_APPS_SORT_FIELD_DISPLAY_NAME" => Some(Self::DisplayName),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ConnectAppsServiceError {
    Unspecified = 0,
    AppNotFound = 1,
    CommitNotFound = 2,
    CannotCommitToArchivedConnectApp = 3,
    InvalidSearchToken = 4,
    MissingBundle = 5,
}
impl ConnectAppsServiceError {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "CONNECT_APPS_SERVICE_ERROR_UNSPECIFIED",
            Self::AppNotFound => "CONNECT_APPS_SERVICE_ERROR_APP_NOT_FOUND",
            Self::CommitNotFound => "CONNECT_APPS_SERVICE_ERROR_COMMIT_NOT_FOUND",
            Self::CannotCommitToArchivedConnectApp => {
                "CONNECT_APPS_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_CONNECT_APP"
            }
            Self::InvalidSearchToken => "CONNECT_APPS_SERVICE_ERROR_INVALID_SEARCH_TOKEN",
            Self::MissingBundle => "CONNECT_APPS_SERVICE_ERROR_MISSING_BUNDLE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CONNECT_APPS_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
            "CONNECT_APPS_SERVICE_ERROR_APP_NOT_FOUND" => Some(Self::AppNotFound),
            "CONNECT_APPS_SERVICE_ERROR_COMMIT_NOT_FOUND" => Some(Self::CommitNotFound),
            "CONNECT_APPS_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_CONNECT_APP" => {
                Some(Self::CannotCommitToArchivedConnectApp)
            }
            "CONNECT_APPS_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
                Some(Self::InvalidSearchToken)
            }
            "CONNECT_APPS_SERVICE_ERROR_MISSING_BUNDLE" => Some(Self::MissingBundle),
            _ => None,
        }
    }
}
/// Generated client implementations.
pub mod connect_apps_service_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Service for creating and managing Connect Apps
    #[derive(Debug, Clone)]
    pub struct ConnectAppsServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl ConnectAppsServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> ConnectAppsServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::Body>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> ConnectAppsServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::Body>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::Body>,
            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
        {
            ConnectAppsServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Create a new Connect App, either with a bundle file or as an empty app
        pub async fn create_connect_app(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateConnectAppRequest>,
        ) -> std::result::Result<
            tonic::Response<super::CreateConnectAppResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/CreateConnectApp",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "CreateConnectApp",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get a Connect App by its RID
        pub async fn get_connect_app(
            &mut self,
            request: impl tonic::IntoRequest<super::GetConnectAppRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetConnectAppResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/GetConnectApp",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "GetConnectApp",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update metadata fields of a Connect App
        pub async fn update_connect_app_metadata(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateConnectAppMetadataRequest>,
        ) -> std::result::Result<
            tonic::Response<super::UpdateConnectAppMetadataResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/UpdateConnectAppMetadata",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "UpdateConnectAppMetadata",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Commit a bundle to the main branch
        pub async fn commit(
            &mut self,
            request: impl tonic::IntoRequest<super::CommitRequest>,
        ) -> std::result::Result<tonic::Response<super::CommitResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/Commit",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("nominal.connect.v1.ConnectAppsService", "Commit"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Searches for Connect Apps, returning paged results
        pub async fn search_connect_apps(
            &mut self,
            request: impl tonic::IntoRequest<super::SearchConnectAppsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::SearchConnectAppsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/SearchConnectApps",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "SearchConnectApps",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Archive Connect Apps
        pub async fn archive_connect_apps(
            &mut self,
            request: impl tonic::IntoRequest<super::ArchiveConnectAppsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ArchiveConnectAppsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/ArchiveConnectApps",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "ArchiveConnectApps",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Unarchive Connect Apps
        pub async fn unarchive_connect_apps(
            &mut self,
            request: impl tonic::IntoRequest<super::UnarchiveConnectAppsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::UnarchiveConnectAppsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/UnarchiveConnectApps",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "UnarchiveConnectApps",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get a pre-signed URL for downloading the bundle of a Connect App at a specific commit or the latest commit on the main branch
        pub async fn get_connect_app_bundle_download_url(
            &mut self,
            request: impl tonic::IntoRequest<
                super::GetConnectAppBundleDownloadUrlRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::GetConnectAppBundleDownloadUrlResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/GetConnectAppBundleDownloadUrl",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "GetConnectAppBundleDownloadUrl",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}