Struct google_api_proto::google::devtools::cloudbuild::v2::repository_manager_client::RepositoryManagerClient
source · pub struct RepositoryManagerClient<T> { /* private fields */ }
Expand description
Manages connections to source code repositories.
Implementations§
source§impl<T> RepositoryManagerClient<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> RepositoryManagerClient<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,
) -> RepositoryManagerClient<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 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 Connection.
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 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 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 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_repository(
&mut self,
request: impl IntoRequest<CreateRepositoryRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_repository( &mut self, request: impl IntoRequest<CreateRepositoryRequest>, ) -> Result<Response<Operation>, Status>
Creates a Repository.
sourcepub async fn batch_create_repositories(
&mut self,
request: impl IntoRequest<BatchCreateRepositoriesRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_create_repositories( &mut self, request: impl IntoRequest<BatchCreateRepositoriesRequest>, ) -> Result<Response<Operation>, Status>
Creates multiple repositories inside a connection.
sourcepub async fn get_repository(
&mut self,
request: impl IntoRequest<GetRepositoryRequest>,
) -> Result<Response<Repository>, Status>
pub async fn get_repository( &mut self, request: impl IntoRequest<GetRepositoryRequest>, ) -> Result<Response<Repository>, Status>
Gets details of a single repository.
sourcepub async fn list_repositories(
&mut self,
request: impl IntoRequest<ListRepositoriesRequest>,
) -> Result<Response<ListRepositoriesResponse>, Status>
pub async fn list_repositories( &mut self, request: impl IntoRequest<ListRepositoriesRequest>, ) -> Result<Response<ListRepositoriesResponse>, Status>
Lists Repositories in a given connection.
sourcepub async fn delete_repository(
&mut self,
request: impl IntoRequest<DeleteRepositoryRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_repository( &mut self, request: impl IntoRequest<DeleteRepositoryRequest>, ) -> Result<Response<Operation>, Status>
Deletes a single repository.
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 repository.
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 repository.
sourcepub async fn fetch_linkable_repositories(
&mut self,
request: impl IntoRequest<FetchLinkableRepositoriesRequest>,
) -> Result<Response<FetchLinkableRepositoriesResponse>, Status>
pub async fn fetch_linkable_repositories( &mut self, request: impl IntoRequest<FetchLinkableRepositoriesRequest>, ) -> Result<Response<FetchLinkableRepositoriesResponse>, Status>
FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection.
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 RepositoryManagerClient<T>
impl<T: Clone> Clone for RepositoryManagerClient<T>
source§fn clone(&self) -> RepositoryManagerClient<T>
fn clone(&self) -> RepositoryManagerClient<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 RepositoryManagerClient<T>
impl<T> RefUnwindSafe for RepositoryManagerClient<T>where
T: RefUnwindSafe,
impl<T> Send for RepositoryManagerClient<T>where
T: Send,
impl<T> Sync for RepositoryManagerClient<T>where
T: Sync,
impl<T> Unpin for RepositoryManagerClient<T>where
T: Unpin,
impl<T> UnwindSafe for RepositoryManagerClient<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