google_cloud_developerconnect_v1/
client.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16#![allow(rustdoc::redundant_explicit_links)]
17#![allow(rustdoc::broken_intra_doc_links)]
18
19/// Implements a client for the Developer Connect API.
20///
21/// # Example
22/// ```
23/// # tokio_test::block_on(async {
24/// # use google_cloud_developerconnect_v1::client::DeveloperConnect;
25/// let client = DeveloperConnect::builder().build().await?;
26/// // use `client` to make requests to the Developer Connect API.
27/// # gax::client_builder::Result::<()>::Ok(()) });
28/// ```
29///
30/// # Service Description
31///
32/// Service describing handlers for resources
33///
34/// # Configuration
35///
36/// To configure `DeveloperConnect` use the `with_*` methods in the type returned
37/// by [builder()][DeveloperConnect::builder]. The default configuration should
38/// work for most applications. Common configuration changes include
39///
40/// * [with_endpoint()]: by default this client uses the global default endpoint
41///   (`https://developerconnect.googleapis.com`). Applications using regional
42///   endpoints or running in restricted networks (e.g. a network configured
43//    with [Private Google Access with VPC Service Controls]) may want to
44///   override this default.
45/// * [with_credentials()]: by default this client uses
46///   [Application Default Credentials]. Applications using custom
47///   authentication may need to override this default.
48///
49/// [with_endpoint()]: super::builder::developer_connect::ClientBuilder::with_endpoint
50/// [with_credentials()]: super::builder::developer_connect::ClientBuilder::credentials
51/// [Private Google Access with VPC Service Controls]: https://cloud.google.com/vpc-service-controls/docs/private-connectivity
52/// [Application Default Credentials]: https://cloud.google.com/docs/authentication#adc
53///
54/// # Pooling and Cloning
55///
56/// `DeveloperConnect` holds a connection pool internally, it is advised to
57/// create one and the reuse it.  You do not need to wrap `DeveloperConnect` in
58/// an [Rc](std::rc::Rc) or [Arc](std::sync::Arc) to reuse it, because it
59/// already uses an `Arc` internally.
60#[derive(Clone, Debug)]
61pub struct DeveloperConnect {
62    inner: std::sync::Arc<dyn super::stub::dynamic::DeveloperConnect>,
63}
64
65impl DeveloperConnect {
66    /// Returns a builder for [DeveloperConnect].
67    ///
68    /// ```
69    /// # tokio_test::block_on(async {
70    /// # use google_cloud_developerconnect_v1::client::DeveloperConnect;
71    /// let client = DeveloperConnect::builder().build().await?;
72    /// # gax::client_builder::Result::<()>::Ok(()) });
73    /// ```
74    pub fn builder() -> super::builder::developer_connect::ClientBuilder {
75        gax::client_builder::internal::new_builder(
76            super::builder::developer_connect::client::Factory,
77        )
78    }
79
80    /// Creates a new client from the provided stub.
81    ///
82    /// The most common case for calling this function is in tests mocking the
83    /// client's behavior.
84    pub fn from_stub<T>(stub: T) -> Self
85    where
86        T: super::stub::DeveloperConnect + 'static,
87    {
88        Self {
89            inner: std::sync::Arc::new(stub),
90        }
91    }
92
93    pub(crate) async fn new(
94        config: gaxi::options::ClientConfig,
95    ) -> gax::client_builder::Result<Self> {
96        let inner = Self::build_inner(config).await?;
97        Ok(Self { inner })
98    }
99
100    async fn build_inner(
101        conf: gaxi::options::ClientConfig,
102    ) -> gax::client_builder::Result<std::sync::Arc<dyn super::stub::dynamic::DeveloperConnect>>
103    {
104        if gaxi::options::tracing_enabled(&conf) {
105            return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
106        }
107        Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
108    }
109
110    async fn build_transport(
111        conf: gaxi::options::ClientConfig,
112    ) -> gax::client_builder::Result<impl super::stub::DeveloperConnect> {
113        super::transport::DeveloperConnect::new(conf).await
114    }
115
116    async fn build_with_tracing(
117        conf: gaxi::options::ClientConfig,
118    ) -> gax::client_builder::Result<impl super::stub::DeveloperConnect> {
119        Self::build_transport(conf)
120            .await
121            .map(super::tracing::DeveloperConnect::new)
122    }
123
124    /// Lists Connections in a given project and location.
125    pub fn list_connections(&self) -> super::builder::developer_connect::ListConnections {
126        super::builder::developer_connect::ListConnections::new(self.inner.clone())
127    }
128
129    /// Gets details of a single Connection.
130    pub fn get_connection(&self) -> super::builder::developer_connect::GetConnection {
131        super::builder::developer_connect::GetConnection::new(self.inner.clone())
132    }
133
134    /// Creates a new Connection in a given project and location.
135    ///
136    /// # Long running operations
137    ///
138    /// This method is used to start, and/or poll a [long-running Operation].
139    /// The [Working with long-running operations] chapter in the [user guide]
140    /// covers these operations in detail.
141    ///
142    /// [long-running operation]: https://google.aip.dev/151
143    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
144    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
145    pub fn create_connection(&self) -> super::builder::developer_connect::CreateConnection {
146        super::builder::developer_connect::CreateConnection::new(self.inner.clone())
147    }
148
149    /// Updates the parameters of a single Connection.
150    ///
151    /// # Long running operations
152    ///
153    /// This method is used to start, and/or poll a [long-running Operation].
154    /// The [Working with long-running operations] chapter in the [user guide]
155    /// covers these operations in detail.
156    ///
157    /// [long-running operation]: https://google.aip.dev/151
158    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
159    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
160    pub fn update_connection(&self) -> super::builder::developer_connect::UpdateConnection {
161        super::builder::developer_connect::UpdateConnection::new(self.inner.clone())
162    }
163
164    /// Deletes a single Connection.
165    ///
166    /// # Long running operations
167    ///
168    /// This method is used to start, and/or poll a [long-running Operation].
169    /// The [Working with long-running operations] chapter in the [user guide]
170    /// covers these operations in detail.
171    ///
172    /// [long-running operation]: https://google.aip.dev/151
173    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
174    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
175    pub fn delete_connection(&self) -> super::builder::developer_connect::DeleteConnection {
176        super::builder::developer_connect::DeleteConnection::new(self.inner.clone())
177    }
178
179    /// Creates a GitRepositoryLink. Upon linking a Git Repository, Developer
180    /// Connect will configure the Git Repository to send webhook events to
181    /// Developer Connect. Connections that use Firebase GitHub Application will
182    /// have events forwarded to the Firebase service. All other Connections will
183    /// have events forwarded to Cloud Build.
184    ///
185    /// # Long running operations
186    ///
187    /// This method is used to start, and/or poll a [long-running Operation].
188    /// The [Working with long-running operations] chapter in the [user guide]
189    /// covers these operations in detail.
190    ///
191    /// [long-running operation]: https://google.aip.dev/151
192    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
193    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
194    pub fn create_git_repository_link(
195        &self,
196    ) -> super::builder::developer_connect::CreateGitRepositoryLink {
197        super::builder::developer_connect::CreateGitRepositoryLink::new(self.inner.clone())
198    }
199
200    /// Deletes a single GitRepositoryLink.
201    ///
202    /// # Long running operations
203    ///
204    /// This method is used to start, and/or poll a [long-running Operation].
205    /// The [Working with long-running operations] chapter in the [user guide]
206    /// covers these operations in detail.
207    ///
208    /// [long-running operation]: https://google.aip.dev/151
209    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
210    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
211    pub fn delete_git_repository_link(
212        &self,
213    ) -> super::builder::developer_connect::DeleteGitRepositoryLink {
214        super::builder::developer_connect::DeleteGitRepositoryLink::new(self.inner.clone())
215    }
216
217    /// Lists GitRepositoryLinks in a given project, location, and connection.
218    pub fn list_git_repository_links(
219        &self,
220    ) -> super::builder::developer_connect::ListGitRepositoryLinks {
221        super::builder::developer_connect::ListGitRepositoryLinks::new(self.inner.clone())
222    }
223
224    /// Gets details of a single GitRepositoryLink.
225    pub fn get_git_repository_link(
226        &self,
227    ) -> super::builder::developer_connect::GetGitRepositoryLink {
228        super::builder::developer_connect::GetGitRepositoryLink::new(self.inner.clone())
229    }
230
231    /// Fetches read/write token of a given gitRepositoryLink.
232    pub fn fetch_read_write_token(&self) -> super::builder::developer_connect::FetchReadWriteToken {
233        super::builder::developer_connect::FetchReadWriteToken::new(self.inner.clone())
234    }
235
236    /// Fetches read token of a given gitRepositoryLink.
237    pub fn fetch_read_token(&self) -> super::builder::developer_connect::FetchReadToken {
238        super::builder::developer_connect::FetchReadToken::new(self.inner.clone())
239    }
240
241    /// FetchLinkableGitRepositories returns a list of git repositories from an SCM
242    /// that are available to be added to a Connection.
243    pub fn fetch_linkable_git_repositories(
244        &self,
245    ) -> super::builder::developer_connect::FetchLinkableGitRepositories {
246        super::builder::developer_connect::FetchLinkableGitRepositories::new(self.inner.clone())
247    }
248
249    /// FetchGitHubInstallations returns the list of GitHub Installations that
250    /// are available to be added to a Connection.
251    /// For github.com, only installations accessible to the authorizer token
252    /// are returned. For GitHub Enterprise, all installations are returned.
253    pub fn fetch_git_hub_installations(
254        &self,
255    ) -> super::builder::developer_connect::FetchGitHubInstallations {
256        super::builder::developer_connect::FetchGitHubInstallations::new(self.inner.clone())
257    }
258
259    /// Fetch the list of branches or tags for a given repository.
260    pub fn fetch_git_refs(&self) -> super::builder::developer_connect::FetchGitRefs {
261        super::builder::developer_connect::FetchGitRefs::new(self.inner.clone())
262    }
263
264    /// Lists AccountConnectors in a given project and location.
265    pub fn list_account_connectors(
266        &self,
267    ) -> super::builder::developer_connect::ListAccountConnectors {
268        super::builder::developer_connect::ListAccountConnectors::new(self.inner.clone())
269    }
270
271    /// Gets details of a single AccountConnector.
272    pub fn get_account_connector(&self) -> super::builder::developer_connect::GetAccountConnector {
273        super::builder::developer_connect::GetAccountConnector::new(self.inner.clone())
274    }
275
276    /// Creates a new AccountConnector in a given project and location.
277    ///
278    /// # Long running operations
279    ///
280    /// This method is used to start, and/or poll a [long-running Operation].
281    /// The [Working with long-running operations] chapter in the [user guide]
282    /// covers these operations in detail.
283    ///
284    /// [long-running operation]: https://google.aip.dev/151
285    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
286    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
287    pub fn create_account_connector(
288        &self,
289    ) -> super::builder::developer_connect::CreateAccountConnector {
290        super::builder::developer_connect::CreateAccountConnector::new(self.inner.clone())
291    }
292
293    /// Updates the parameters of a single AccountConnector.
294    ///
295    /// # Long running operations
296    ///
297    /// This method is used to start, and/or poll a [long-running Operation].
298    /// The [Working with long-running operations] chapter in the [user guide]
299    /// covers these operations in detail.
300    ///
301    /// [long-running operation]: https://google.aip.dev/151
302    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
303    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
304    pub fn update_account_connector(
305        &self,
306    ) -> super::builder::developer_connect::UpdateAccountConnector {
307        super::builder::developer_connect::UpdateAccountConnector::new(self.inner.clone())
308    }
309
310    /// Deletes a single AccountConnector.
311    ///
312    /// # Long running operations
313    ///
314    /// This method is used to start, and/or poll a [long-running Operation].
315    /// The [Working with long-running operations] chapter in the [user guide]
316    /// covers these operations in detail.
317    ///
318    /// [long-running operation]: https://google.aip.dev/151
319    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
320    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
321    pub fn delete_account_connector(
322        &self,
323    ) -> super::builder::developer_connect::DeleteAccountConnector {
324        super::builder::developer_connect::DeleteAccountConnector::new(self.inner.clone())
325    }
326
327    /// Fetches OAuth access token based on end user credentials.
328    pub fn fetch_access_token(&self) -> super::builder::developer_connect::FetchAccessToken {
329        super::builder::developer_connect::FetchAccessToken::new(self.inner.clone())
330    }
331
332    /// Lists Users in a given project, location, and account_connector.
333    pub fn list_users(&self) -> super::builder::developer_connect::ListUsers {
334        super::builder::developer_connect::ListUsers::new(self.inner.clone())
335    }
336
337    /// Deletes a single User.
338    ///
339    /// # Long running operations
340    ///
341    /// This method is used to start, and/or poll a [long-running Operation].
342    /// The [Working with long-running operations] chapter in the [user guide]
343    /// covers these operations in detail.
344    ///
345    /// [long-running operation]: https://google.aip.dev/151
346    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
347    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
348    pub fn delete_user(&self) -> super::builder::developer_connect::DeleteUser {
349        super::builder::developer_connect::DeleteUser::new(self.inner.clone())
350    }
351
352    /// Fetch the User based on the user credentials.
353    pub fn fetch_self(&self) -> super::builder::developer_connect::FetchSelf {
354        super::builder::developer_connect::FetchSelf::new(self.inner.clone())
355    }
356
357    /// Delete the User based on the user credentials.
358    ///
359    /// # Long running operations
360    ///
361    /// This method is used to start, and/or poll a [long-running Operation].
362    /// The [Working with long-running operations] chapter in the [user guide]
363    /// covers these operations in detail.
364    ///
365    /// [long-running operation]: https://google.aip.dev/151
366    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
367    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
368    pub fn delete_self(&self) -> super::builder::developer_connect::DeleteSelf {
369        super::builder::developer_connect::DeleteSelf::new(self.inner.clone())
370    }
371
372    /// Lists information about the supported locations for this service.
373    pub fn list_locations(&self) -> super::builder::developer_connect::ListLocations {
374        super::builder::developer_connect::ListLocations::new(self.inner.clone())
375    }
376
377    /// Gets information about a location.
378    pub fn get_location(&self) -> super::builder::developer_connect::GetLocation {
379        super::builder::developer_connect::GetLocation::new(self.inner.clone())
380    }
381
382    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
383    ///
384    /// [google.longrunning.Operations]: longrunning::client::Operations
385    pub fn list_operations(&self) -> super::builder::developer_connect::ListOperations {
386        super::builder::developer_connect::ListOperations::new(self.inner.clone())
387    }
388
389    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
390    ///
391    /// [google.longrunning.Operations]: longrunning::client::Operations
392    pub fn get_operation(&self) -> super::builder::developer_connect::GetOperation {
393        super::builder::developer_connect::GetOperation::new(self.inner.clone())
394    }
395
396    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
397    ///
398    /// [google.longrunning.Operations]: longrunning::client::Operations
399    pub fn delete_operation(&self) -> super::builder::developer_connect::DeleteOperation {
400        super::builder::developer_connect::DeleteOperation::new(self.inner.clone())
401    }
402
403    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
404    ///
405    /// [google.longrunning.Operations]: longrunning::client::Operations
406    pub fn cancel_operation(&self) -> super::builder::developer_connect::CancelOperation {
407        super::builder::developer_connect::CancelOperation::new(self.inner.clone())
408    }
409}
410
411/// Implements a client for the Developer Connect API.
412///
413/// # Example
414/// ```
415/// # tokio_test::block_on(async {
416/// # use google_cloud_developerconnect_v1::client::InsightsConfigService;
417/// let client = InsightsConfigService::builder().build().await?;
418/// // use `client` to make requests to the Developer Connect API.
419/// # gax::client_builder::Result::<()>::Ok(()) });
420/// ```
421///
422/// # Service Description
423///
424/// Creates and manages InsightsConfigs.
425///
426/// The InsightsConfig resource is the core configuration object to capture
427/// events from your Software Development Lifecycle. It acts as the central hub
428/// for managing how Developer connect understands your application, its runtime
429/// environments, and the artifacts deployed within them.
430/// A user can create an InsightsConfig, list previously-requested
431/// InsightsConfigs or get InsightsConfigs by their ID to determine the status of
432/// the InsightsConfig.
433///
434/// # Configuration
435///
436/// To configure `InsightsConfigService` use the `with_*` methods in the type returned
437/// by [builder()][InsightsConfigService::builder]. The default configuration should
438/// work for most applications. Common configuration changes include
439///
440/// * [with_endpoint()]: by default this client uses the global default endpoint
441///   (`https://developerconnect.googleapis.com`). Applications using regional
442///   endpoints or running in restricted networks (e.g. a network configured
443//    with [Private Google Access with VPC Service Controls]) may want to
444///   override this default.
445/// * [with_credentials()]: by default this client uses
446///   [Application Default Credentials]. Applications using custom
447///   authentication may need to override this default.
448///
449/// [with_endpoint()]: super::builder::insights_config_service::ClientBuilder::with_endpoint
450/// [with_credentials()]: super::builder::insights_config_service::ClientBuilder::credentials
451/// [Private Google Access with VPC Service Controls]: https://cloud.google.com/vpc-service-controls/docs/private-connectivity
452/// [Application Default Credentials]: https://cloud.google.com/docs/authentication#adc
453///
454/// # Pooling and Cloning
455///
456/// `InsightsConfigService` holds a connection pool internally, it is advised to
457/// create one and the reuse it.  You do not need to wrap `InsightsConfigService` in
458/// an [Rc](std::rc::Rc) or [Arc](std::sync::Arc) to reuse it, because it
459/// already uses an `Arc` internally.
460#[derive(Clone, Debug)]
461pub struct InsightsConfigService {
462    inner: std::sync::Arc<dyn super::stub::dynamic::InsightsConfigService>,
463}
464
465impl InsightsConfigService {
466    /// Returns a builder for [InsightsConfigService].
467    ///
468    /// ```
469    /// # tokio_test::block_on(async {
470    /// # use google_cloud_developerconnect_v1::client::InsightsConfigService;
471    /// let client = InsightsConfigService::builder().build().await?;
472    /// # gax::client_builder::Result::<()>::Ok(()) });
473    /// ```
474    pub fn builder() -> super::builder::insights_config_service::ClientBuilder {
475        gax::client_builder::internal::new_builder(
476            super::builder::insights_config_service::client::Factory,
477        )
478    }
479
480    /// Creates a new client from the provided stub.
481    ///
482    /// The most common case for calling this function is in tests mocking the
483    /// client's behavior.
484    pub fn from_stub<T>(stub: T) -> Self
485    where
486        T: super::stub::InsightsConfigService + 'static,
487    {
488        Self {
489            inner: std::sync::Arc::new(stub),
490        }
491    }
492
493    pub(crate) async fn new(
494        config: gaxi::options::ClientConfig,
495    ) -> gax::client_builder::Result<Self> {
496        let inner = Self::build_inner(config).await?;
497        Ok(Self { inner })
498    }
499
500    async fn build_inner(
501        conf: gaxi::options::ClientConfig,
502    ) -> gax::client_builder::Result<std::sync::Arc<dyn super::stub::dynamic::InsightsConfigService>>
503    {
504        if gaxi::options::tracing_enabled(&conf) {
505            return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
506        }
507        Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
508    }
509
510    async fn build_transport(
511        conf: gaxi::options::ClientConfig,
512    ) -> gax::client_builder::Result<impl super::stub::InsightsConfigService> {
513        super::transport::InsightsConfigService::new(conf).await
514    }
515
516    async fn build_with_tracing(
517        conf: gaxi::options::ClientConfig,
518    ) -> gax::client_builder::Result<impl super::stub::InsightsConfigService> {
519        Self::build_transport(conf)
520            .await
521            .map(super::tracing::InsightsConfigService::new)
522    }
523
524    /// Lists InsightsConfigs in a given project and location.
525    pub fn list_insights_configs(
526        &self,
527    ) -> super::builder::insights_config_service::ListInsightsConfigs {
528        super::builder::insights_config_service::ListInsightsConfigs::new(self.inner.clone())
529    }
530
531    /// Creates a new InsightsConfig in a given project and location.
532    ///
533    /// # Long running operations
534    ///
535    /// This method is used to start, and/or poll a [long-running Operation].
536    /// The [Working with long-running operations] chapter in the [user guide]
537    /// covers these operations in detail.
538    ///
539    /// [long-running operation]: https://google.aip.dev/151
540    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
541    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
542    pub fn create_insights_config(
543        &self,
544    ) -> super::builder::insights_config_service::CreateInsightsConfig {
545        super::builder::insights_config_service::CreateInsightsConfig::new(self.inner.clone())
546    }
547
548    /// Gets details of a single Insight.
549    pub fn get_insights_config(
550        &self,
551    ) -> super::builder::insights_config_service::GetInsightsConfig {
552        super::builder::insights_config_service::GetInsightsConfig::new(self.inner.clone())
553    }
554
555    /// Updates the parameters of a single InsightsConfig.
556    ///
557    /// # Long running operations
558    ///
559    /// This method is used to start, and/or poll a [long-running Operation].
560    /// The [Working with long-running operations] chapter in the [user guide]
561    /// covers these operations in detail.
562    ///
563    /// [long-running operation]: https://google.aip.dev/151
564    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
565    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
566    pub fn update_insights_config(
567        &self,
568    ) -> super::builder::insights_config_service::UpdateInsightsConfig {
569        super::builder::insights_config_service::UpdateInsightsConfig::new(self.inner.clone())
570    }
571
572    /// Delete a single Insight.
573    ///
574    /// # Long running operations
575    ///
576    /// This method is used to start, and/or poll a [long-running Operation].
577    /// The [Working with long-running operations] chapter in the [user guide]
578    /// covers these operations in detail.
579    ///
580    /// [long-running operation]: https://google.aip.dev/151
581    /// [user guide]: https://googleapis.github.io/google-cloud-rust/
582    /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
583    pub fn delete_insights_config(
584        &self,
585    ) -> super::builder::insights_config_service::DeleteInsightsConfig {
586        super::builder::insights_config_service::DeleteInsightsConfig::new(self.inner.clone())
587    }
588
589    /// Lists information about the supported locations for this service.
590    pub fn list_locations(&self) -> super::builder::insights_config_service::ListLocations {
591        super::builder::insights_config_service::ListLocations::new(self.inner.clone())
592    }
593
594    /// Gets information about a location.
595    pub fn get_location(&self) -> super::builder::insights_config_service::GetLocation {
596        super::builder::insights_config_service::GetLocation::new(self.inner.clone())
597    }
598
599    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
600    ///
601    /// [google.longrunning.Operations]: longrunning::client::Operations
602    pub fn list_operations(&self) -> super::builder::insights_config_service::ListOperations {
603        super::builder::insights_config_service::ListOperations::new(self.inner.clone())
604    }
605
606    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
607    ///
608    /// [google.longrunning.Operations]: longrunning::client::Operations
609    pub fn get_operation(&self) -> super::builder::insights_config_service::GetOperation {
610        super::builder::insights_config_service::GetOperation::new(self.inner.clone())
611    }
612
613    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
614    ///
615    /// [google.longrunning.Operations]: longrunning::client::Operations
616    pub fn delete_operation(&self) -> super::builder::insights_config_service::DeleteOperation {
617        super::builder::insights_config_service::DeleteOperation::new(self.inner.clone())
618    }
619
620    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
621    ///
622    /// [google.longrunning.Operations]: longrunning::client::Operations
623    pub fn cancel_operation(&self) -> super::builder::insights_config_service::CancelOperation {
624        super::builder::insights_config_service::CancelOperation::new(self.inner.clone())
625    }
626}