Skip to main content

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