Struct google_api_proto::google::cloud::developerconnect::v1::developer_connect_client::DeveloperConnectClient
source · pub struct DeveloperConnectClient<T> { /* private fields */ }
Expand description
Service describing handlers for resources
Implementations§
source§impl<T> DeveloperConnectClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> DeveloperConnectClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DeveloperConnectClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn list_connections(
&mut self,
request: impl IntoRequest<ListConnectionsRequest>,
) -> Result<Response<ListConnectionsResponse>, Status>
pub async fn list_connections( &mut self, request: impl IntoRequest<ListConnectionsRequest>, ) -> Result<Response<ListConnectionsResponse>, Status>
Lists Connections in a given project and location.
sourcepub async fn get_connection(
&mut self,
request: impl IntoRequest<GetConnectionRequest>,
) -> Result<Response<Connection>, Status>
pub async fn get_connection( &mut self, request: impl IntoRequest<GetConnectionRequest>, ) -> Result<Response<Connection>, Status>
Gets details of a single Connection.
sourcepub async fn create_connection(
&mut self,
request: impl IntoRequest<CreateConnectionRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_connection( &mut self, request: impl IntoRequest<CreateConnectionRequest>, ) -> Result<Response<Operation>, Status>
Creates a new Connection in a given project and location.
sourcepub async fn update_connection(
&mut self,
request: impl IntoRequest<UpdateConnectionRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_connection( &mut self, request: impl IntoRequest<UpdateConnectionRequest>, ) -> Result<Response<Operation>, Status>
Updates the parameters of a single Connection.
sourcepub async fn delete_connection(
&mut self,
request: impl IntoRequest<DeleteConnectionRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_connection( &mut self, request: impl IntoRequest<DeleteConnectionRequest>, ) -> Result<Response<Operation>, Status>
Deletes a single Connection.
sourcepub async fn create_git_repository_link(
&mut self,
request: impl IntoRequest<CreateGitRepositoryLinkRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_git_repository_link( &mut self, request: impl IntoRequest<CreateGitRepositoryLinkRequest>, ) -> Result<Response<Operation>, Status>
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.
sourcepub async fn delete_git_repository_link(
&mut self,
request: impl IntoRequest<DeleteGitRepositoryLinkRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_git_repository_link( &mut self, request: impl IntoRequest<DeleteGitRepositoryLinkRequest>, ) -> Result<Response<Operation>, Status>
Deletes a single GitRepositoryLink.
sourcepub async fn list_git_repository_links(
&mut self,
request: impl IntoRequest<ListGitRepositoryLinksRequest>,
) -> Result<Response<ListGitRepositoryLinksResponse>, Status>
pub async fn list_git_repository_links( &mut self, request: impl IntoRequest<ListGitRepositoryLinksRequest>, ) -> Result<Response<ListGitRepositoryLinksResponse>, Status>
Lists GitRepositoryLinks in a given project, location, and connection.
sourcepub async fn get_git_repository_link(
&mut self,
request: impl IntoRequest<GetGitRepositoryLinkRequest>,
) -> Result<Response<GitRepositoryLink>, Status>
pub async fn get_git_repository_link( &mut self, request: impl IntoRequest<GetGitRepositoryLinkRequest>, ) -> Result<Response<GitRepositoryLink>, Status>
Gets details of a single GitRepositoryLink.
sourcepub async fn fetch_read_write_token(
&mut self,
request: impl IntoRequest<FetchReadWriteTokenRequest>,
) -> Result<Response<FetchReadWriteTokenResponse>, Status>
pub async fn fetch_read_write_token( &mut self, request: impl IntoRequest<FetchReadWriteTokenRequest>, ) -> Result<Response<FetchReadWriteTokenResponse>, Status>
Fetches read/write token of a given gitRepositoryLink.
sourcepub async fn fetch_read_token(
&mut self,
request: impl IntoRequest<FetchReadTokenRequest>,
) -> Result<Response<FetchReadTokenResponse>, Status>
pub async fn fetch_read_token( &mut self, request: impl IntoRequest<FetchReadTokenRequest>, ) -> Result<Response<FetchReadTokenResponse>, Status>
Fetches read token of a given gitRepositoryLink.
sourcepub async fn fetch_linkable_git_repositories(
&mut self,
request: impl IntoRequest<FetchLinkableGitRepositoriesRequest>,
) -> Result<Response<FetchLinkableGitRepositoriesResponse>, Status>
pub async fn fetch_linkable_git_repositories( &mut self, request: impl IntoRequest<FetchLinkableGitRepositoriesRequest>, ) -> Result<Response<FetchLinkableGitRepositoriesResponse>, Status>
FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.
sourcepub async fn fetch_git_hub_installations(
&mut self,
request: impl IntoRequest<FetchGitHubInstallationsRequest>,
) -> Result<Response<FetchGitHubInstallationsResponse>, Status>
pub async fn fetch_git_hub_installations( &mut self, request: impl IntoRequest<FetchGitHubInstallationsRequest>, ) -> Result<Response<FetchGitHubInstallationsResponse>, Status>
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 async fn fetch_git_refs(
&mut self,
request: impl IntoRequest<FetchGitRefsRequest>,
) -> Result<Response<FetchGitRefsResponse>, Status>
pub async fn fetch_git_refs( &mut self, request: impl IntoRequest<FetchGitRefsRequest>, ) -> Result<Response<FetchGitRefsResponse>, Status>
Fetch the list of branches or tags for a given repository.
Trait Implementations§
source§impl<T: Clone> Clone for DeveloperConnectClient<T>
impl<T: Clone> Clone for DeveloperConnectClient<T>
source§fn clone(&self) -> DeveloperConnectClient<T>
fn clone(&self) -> DeveloperConnectClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for DeveloperConnectClient<T>
impl<T> RefUnwindSafe for DeveloperConnectClient<T>where
T: RefUnwindSafe,
impl<T> Send for DeveloperConnectClient<T>where
T: Send,
impl<T> Sync for DeveloperConnectClient<T>where
T: Sync,
impl<T> Unpin for DeveloperConnectClient<T>where
T: Unpin,
impl<T> UnwindSafe for DeveloperConnectClient<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request