#[async_trait::async_trait]
pub trait DeveloperConnect: std::fmt::Debug + Send + Sync {
async fn list_connections(
&self,
req: crate::model::ListConnectionsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListConnectionsResponse>>;
async fn get_connection(
&self,
req: crate::model::GetConnectionRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::Connection>>;
async fn create_connection(
&self,
req: crate::model::CreateConnectionRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn update_connection(
&self,
req: crate::model::UpdateConnectionRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn delete_connection(
&self,
req: crate::model::DeleteConnectionRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn create_git_repository_link(
&self,
req: crate::model::CreateGitRepositoryLinkRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn delete_git_repository_link(
&self,
req: crate::model::DeleteGitRepositoryLinkRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn list_git_repository_links(
&self,
req: crate::model::ListGitRepositoryLinksRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListGitRepositoryLinksResponse>>;
async fn get_git_repository_link(
&self,
req: crate::model::GetGitRepositoryLinkRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::GitRepositoryLink>>;
async fn fetch_read_write_token(
&self,
req: crate::model::FetchReadWriteTokenRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchReadWriteTokenResponse>>;
async fn fetch_read_token(
&self,
req: crate::model::FetchReadTokenRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchReadTokenResponse>>;
async fn fetch_linkable_git_repositories(
&self,
req: crate::model::FetchLinkableGitRepositoriesRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchLinkableGitRepositoriesResponse>>;
async fn fetch_git_hub_installations(
&self,
req: crate::model::FetchGitHubInstallationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchGitHubInstallationsResponse>>;
async fn fetch_git_refs(
&self,
req: crate::model::FetchGitRefsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchGitRefsResponse>>;
async fn list_account_connectors(
&self,
req: crate::model::ListAccountConnectorsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListAccountConnectorsResponse>>;
async fn get_account_connector(
&self,
req: crate::model::GetAccountConnectorRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::AccountConnector>>;
async fn create_account_connector(
&self,
req: crate::model::CreateAccountConnectorRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn update_account_connector(
&self,
req: crate::model::UpdateAccountConnectorRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn delete_account_connector(
&self,
req: crate::model::DeleteAccountConnectorRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn fetch_access_token(
&self,
req: crate::model::FetchAccessTokenRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchAccessTokenResponse>>;
async fn list_users(
&self,
req: crate::model::ListUsersRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListUsersResponse>>;
async fn delete_user(
&self,
req: crate::model::DeleteUserRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn fetch_self(
&self,
req: crate::model::FetchSelfRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::User>>;
async fn delete_self(
&self,
req: crate::model::DeleteSelfRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn start_o_auth(
&self,
req: crate::model::StartOAuthRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::StartOAuthResponse>>;
async fn finish_o_auth(
&self,
req: crate::model::FinishOAuthRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FinishOAuthResponse>>;
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::ListLocationsResponse>>;
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::Location>>;
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>>;
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>>;
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>>;
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy>;
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy>;
}
#[async_trait::async_trait]
impl<T: super::DeveloperConnect> DeveloperConnect for T {
async fn list_connections(
&self,
req: crate::model::ListConnectionsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListConnectionsResponse>> {
T::list_connections(self, req, options).await
}
async fn get_connection(
&self,
req: crate::model::GetConnectionRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::Connection>> {
T::get_connection(self, req, options).await
}
async fn create_connection(
&self,
req: crate::model::CreateConnectionRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::create_connection(self, req, options).await
}
async fn update_connection(
&self,
req: crate::model::UpdateConnectionRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::update_connection(self, req, options).await
}
async fn delete_connection(
&self,
req: crate::model::DeleteConnectionRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_connection(self, req, options).await
}
async fn create_git_repository_link(
&self,
req: crate::model::CreateGitRepositoryLinkRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::create_git_repository_link(self, req, options).await
}
async fn delete_git_repository_link(
&self,
req: crate::model::DeleteGitRepositoryLinkRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_git_repository_link(self, req, options).await
}
async fn list_git_repository_links(
&self,
req: crate::model::ListGitRepositoryLinksRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListGitRepositoryLinksResponse>> {
T::list_git_repository_links(self, req, options).await
}
async fn get_git_repository_link(
&self,
req: crate::model::GetGitRepositoryLinkRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::GitRepositoryLink>> {
T::get_git_repository_link(self, req, options).await
}
async fn fetch_read_write_token(
&self,
req: crate::model::FetchReadWriteTokenRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchReadWriteTokenResponse>> {
T::fetch_read_write_token(self, req, options).await
}
async fn fetch_read_token(
&self,
req: crate::model::FetchReadTokenRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchReadTokenResponse>> {
T::fetch_read_token(self, req, options).await
}
async fn fetch_linkable_git_repositories(
&self,
req: crate::model::FetchLinkableGitRepositoriesRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchLinkableGitRepositoriesResponse>> {
T::fetch_linkable_git_repositories(self, req, options).await
}
async fn fetch_git_hub_installations(
&self,
req: crate::model::FetchGitHubInstallationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchGitHubInstallationsResponse>> {
T::fetch_git_hub_installations(self, req, options).await
}
async fn fetch_git_refs(
&self,
req: crate::model::FetchGitRefsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchGitRefsResponse>> {
T::fetch_git_refs(self, req, options).await
}
async fn list_account_connectors(
&self,
req: crate::model::ListAccountConnectorsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListAccountConnectorsResponse>> {
T::list_account_connectors(self, req, options).await
}
async fn get_account_connector(
&self,
req: crate::model::GetAccountConnectorRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::AccountConnector>> {
T::get_account_connector(self, req, options).await
}
async fn create_account_connector(
&self,
req: crate::model::CreateAccountConnectorRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::create_account_connector(self, req, options).await
}
async fn update_account_connector(
&self,
req: crate::model::UpdateAccountConnectorRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::update_account_connector(self, req, options).await
}
async fn delete_account_connector(
&self,
req: crate::model::DeleteAccountConnectorRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_account_connector(self, req, options).await
}
async fn fetch_access_token(
&self,
req: crate::model::FetchAccessTokenRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FetchAccessTokenResponse>> {
T::fetch_access_token(self, req, options).await
}
async fn list_users(
&self,
req: crate::model::ListUsersRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListUsersResponse>> {
T::list_users(self, req, options).await
}
async fn delete_user(
&self,
req: crate::model::DeleteUserRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_user(self, req, options).await
}
async fn fetch_self(
&self,
req: crate::model::FetchSelfRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::User>> {
T::fetch_self(self, req, options).await
}
async fn delete_self(
&self,
req: crate::model::DeleteSelfRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_self(self, req, options).await
}
async fn start_o_auth(
&self,
req: crate::model::StartOAuthRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::StartOAuthResponse>> {
T::start_o_auth(self, req, options).await
}
async fn finish_o_auth(
&self,
req: crate::model::FinishOAuthRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::FinishOAuthResponse>> {
T::finish_o_auth(self, req, options).await
}
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
T::list_locations(self, req, options).await
}
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::Location>> {
T::get_location(self, req, options).await
}
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>>
{
T::list_operations(self, req, options).await
}
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::get_operation(self, req, options).await
}
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>> {
T::delete_operation(self, req, options).await
}
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>> {
T::cancel_operation(self, req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
T::get_polling_error_policy(self, options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
T::get_polling_backoff_policy(self, options)
}
}
#[async_trait::async_trait]
pub trait InsightsConfigService: std::fmt::Debug + Send + Sync {
async fn list_insights_configs(
&self,
req: crate::model::ListInsightsConfigsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListInsightsConfigsResponse>>;
async fn create_insights_config(
&self,
req: crate::model::CreateInsightsConfigRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn get_insights_config(
&self,
req: crate::model::GetInsightsConfigRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::InsightsConfig>>;
async fn update_insights_config(
&self,
req: crate::model::UpdateInsightsConfigRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn delete_insights_config(
&self,
req: crate::model::DeleteInsightsConfigRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn get_deployment_event(
&self,
req: crate::model::GetDeploymentEventRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::DeploymentEvent>>;
async fn list_deployment_events(
&self,
req: crate::model::ListDeploymentEventsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListDeploymentEventsResponse>>;
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::ListLocationsResponse>>;
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::Location>>;
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>>;
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>>;
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>>;
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy>;
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy>;
}
#[async_trait::async_trait]
impl<T: super::InsightsConfigService> InsightsConfigService for T {
async fn list_insights_configs(
&self,
req: crate::model::ListInsightsConfigsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListInsightsConfigsResponse>> {
T::list_insights_configs(self, req, options).await
}
async fn create_insights_config(
&self,
req: crate::model::CreateInsightsConfigRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::create_insights_config(self, req, options).await
}
async fn get_insights_config(
&self,
req: crate::model::GetInsightsConfigRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::InsightsConfig>> {
T::get_insights_config(self, req, options).await
}
async fn update_insights_config(
&self,
req: crate::model::UpdateInsightsConfigRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::update_insights_config(self, req, options).await
}
async fn delete_insights_config(
&self,
req: crate::model::DeleteInsightsConfigRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_insights_config(self, req, options).await
}
async fn get_deployment_event(
&self,
req: crate::model::GetDeploymentEventRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::DeploymentEvent>> {
T::get_deployment_event(self, req, options).await
}
async fn list_deployment_events(
&self,
req: crate::model::ListDeploymentEventsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListDeploymentEventsResponse>> {
T::list_deployment_events(self, req, options).await
}
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
T::list_locations(self, req, options).await
}
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::Location>> {
T::get_location(self, req, options).await
}
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>>
{
T::list_operations(self, req, options).await
}
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::get_operation(self, req, options).await
}
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>> {
T::delete_operation(self, req, options).await
}
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>> {
T::cancel_operation(self, req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
T::get_polling_error_policy(self, options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
T::get_polling_backoff_policy(self, options)
}
}