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 Developer Connect API.§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) -> ListConnections
pub fn list_connections(&self) -> ListConnections
Lists Connections in a given project and location.
Sourcepub fn get_connection(&self) -> GetConnection
pub fn get_connection(&self) -> GetConnection
Gets details of a single Connection.
Sourcepub fn create_connection(&self) -> CreateConnection
pub fn create_connection(&self) -> 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) -> UpdateConnection
pub fn update_connection(&self) -> 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) -> DeleteConnection
pub fn delete_connection(&self) -> 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) -> CreateGitRepositoryLink
pub fn create_git_repository_link(&self) -> 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) -> DeleteGitRepositoryLink
pub fn delete_git_repository_link(&self) -> 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) -> ListGitRepositoryLinks
pub fn list_git_repository_links(&self) -> ListGitRepositoryLinks
Lists GitRepositoryLinks in a given project, location, and connection.
Sourcepub fn get_git_repository_link(&self) -> GetGitRepositoryLink
pub fn get_git_repository_link(&self) -> GetGitRepositoryLink
Gets details of a single GitRepositoryLink.
Sourcepub fn fetch_read_write_token(&self) -> FetchReadWriteToken
pub fn fetch_read_write_token(&self) -> FetchReadWriteToken
Fetches read/write token of a given gitRepositoryLink.
Sourcepub fn fetch_read_token(&self) -> FetchReadToken
pub fn fetch_read_token(&self) -> FetchReadToken
Fetches read token of a given gitRepositoryLink.
Sourcepub fn fetch_linkable_git_repositories(&self) -> FetchLinkableGitRepositories
pub fn fetch_linkable_git_repositories(&self) -> 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) -> FetchGitHubInstallations
pub fn fetch_git_hub_installations(&self) -> 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) -> FetchGitRefs
pub fn fetch_git_refs(&self) -> FetchGitRefs
Fetch the list of branches or tags for a given repository.
Sourcepub fn list_account_connectors(&self) -> ListAccountConnectors
pub fn list_account_connectors(&self) -> ListAccountConnectors
Lists AccountConnectors in a given project and location.
Sourcepub fn get_account_connector(&self) -> GetAccountConnector
pub fn get_account_connector(&self) -> GetAccountConnector
Gets details of a single AccountConnector.
Sourcepub fn create_account_connector(&self) -> CreateAccountConnector
pub fn create_account_connector(&self) -> CreateAccountConnector
Creates a new AccountConnector 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_account_connector(&self) -> UpdateAccountConnector
pub fn update_account_connector(&self) -> UpdateAccountConnector
Updates the parameters of a single AccountConnector.
§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_account_connector(&self) -> DeleteAccountConnector
pub fn delete_account_connector(&self) -> DeleteAccountConnector
Deletes a single AccountConnector.
§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 fetch_access_token(&self) -> FetchAccessToken
pub fn fetch_access_token(&self) -> FetchAccessToken
Fetches OAuth access token based on end user credentials.
Sourcepub fn list_users(&self) -> ListUsers
pub fn list_users(&self) -> ListUsers
Lists Users in a given project, location, and account_connector.
Sourcepub fn delete_user(&self) -> DeleteUser
pub fn delete_user(&self) -> DeleteUser
Deletes a single User.
§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 fetch_self(&self) -> FetchSelf
pub fn fetch_self(&self) -> FetchSelf
Fetch the User based on the user credentials.
Sourcepub fn delete_self(&self) -> DeleteSelf
pub fn delete_self(&self) -> DeleteSelf
Delete the User based on the user credentials.
§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_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self) -> DeleteOperation
pub fn delete_operation(&self) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> 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