pub struct DeveloperConnect { /* private fields */ }Expand description
Implements a client for the Developer Connect API.
§Example
let client = DeveloperConnect::builder().build().await?;
// use `client` to make requests to the {Codec.APITitle}}.§Service Description
Service describing handlers for resources
§Configuration
To configure DeveloperConnect use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://developerconnect.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
DeveloperConnect holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap DeveloperConnect in
an Rc or Arc to reuse it, because it already uses an Arc
internally.
Implementations§
Source§impl DeveloperConnect
impl DeveloperConnect
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for DeveloperConnect.
let client = DeveloperConnect::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: DeveloperConnect + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: DeveloperConnect + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_connections(&self, parent: impl Into<String>) -> ListConnections
pub fn list_connections(&self, parent: impl Into<String>) -> ListConnections
Lists Connections in a given project and location.
Sourcepub fn get_connection(&self, name: impl Into<String>) -> GetConnection
pub fn get_connection(&self, name: impl Into<String>) -> GetConnection
Gets details of a single Connection.
Sourcepub fn create_connection(&self, parent: impl Into<String>) -> CreateConnection
pub fn create_connection(&self, parent: impl Into<String>) -> CreateConnection
Creates a new Connection in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_connection(
&self,
connection: impl Into<Connection>,
) -> UpdateConnection
pub fn update_connection( &self, connection: impl Into<Connection>, ) -> UpdateConnection
Updates the parameters of a single Connection.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_connection(&self, name: impl Into<String>) -> DeleteConnection
pub fn delete_connection(&self, name: impl Into<String>) -> DeleteConnection
Deletes a single Connection.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn create_git_repository_link(
&self,
parent: impl Into<String>,
) -> CreateGitRepositoryLink
pub fn create_git_repository_link( &self, parent: impl Into<String>, ) -> CreateGitRepositoryLink
Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. All other Connections will have events forwarded to Cloud Build.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_git_repository_link(
&self,
name: impl Into<String>,
) -> DeleteGitRepositoryLink
pub fn delete_git_repository_link( &self, name: impl Into<String>, ) -> DeleteGitRepositoryLink
Deletes a single GitRepositoryLink.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_git_repository_links(
&self,
parent: impl Into<String>,
) -> ListGitRepositoryLinks
pub fn list_git_repository_links( &self, parent: impl Into<String>, ) -> ListGitRepositoryLinks
Lists GitRepositoryLinks in a given project, location, and connection.
Sourcepub fn get_git_repository_link(
&self,
name: impl Into<String>,
) -> GetGitRepositoryLink
pub fn get_git_repository_link( &self, name: impl Into<String>, ) -> GetGitRepositoryLink
Gets details of a single GitRepositoryLink.
Sourcepub fn fetch_read_write_token(
&self,
git_repository_link: impl Into<String>,
) -> FetchReadWriteToken
pub fn fetch_read_write_token( &self, git_repository_link: impl Into<String>, ) -> FetchReadWriteToken
Fetches read/write token of a given gitRepositoryLink.
Sourcepub fn fetch_read_token(
&self,
git_repository_link: impl Into<String>,
) -> FetchReadToken
pub fn fetch_read_token( &self, git_repository_link: impl Into<String>, ) -> FetchReadToken
Fetches read token of a given gitRepositoryLink.
Sourcepub fn fetch_linkable_git_repositories(
&self,
connection: impl Into<String>,
) -> FetchLinkableGitRepositories
pub fn fetch_linkable_git_repositories( &self, connection: impl Into<String>, ) -> FetchLinkableGitRepositories
FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.
Sourcepub fn fetch_git_hub_installations(
&self,
connection: impl Into<String>,
) -> FetchGitHubInstallations
pub fn fetch_git_hub_installations( &self, connection: impl Into<String>, ) -> FetchGitHubInstallations
FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.
Sourcepub fn fetch_git_refs(
&self,
git_repository_link: impl Into<String>,
) -> FetchGitRefs
pub fn fetch_git_refs( &self, git_repository_link: impl Into<String>, ) -> FetchGitRefs
Fetch the list of branches or tags for a given repository.
Sourcepub fn list_locations(&self, name: impl Into<String>) -> ListLocations
pub fn list_locations(&self, name: impl Into<String>) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self, name: impl Into<String>) -> GetLocation
pub fn get_location(&self, name: impl Into<String>) -> GetLocation
Gets information about a location.
Sourcepub fn list_operations(&self, name: impl Into<String>) -> ListOperations
pub fn list_operations(&self, name: impl Into<String>) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self, name: impl Into<String>) -> GetOperation
pub fn get_operation(&self, name: impl Into<String>) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self, name: impl Into<String>) -> DeleteOperation
pub fn delete_operation(&self, name: impl Into<String>) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self, name: impl Into<String>) -> CancelOperation
pub fn cancel_operation(&self, name: impl Into<String>) -> CancelOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for DeveloperConnect
impl Clone for DeveloperConnect
Source§fn clone(&self) -> DeveloperConnect
fn clone(&self) -> DeveloperConnect
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more