Struct gapi_grpc::google::devtools::sourcerepo::v1::source_repo_client::SourceRepoClient[][src]

pub struct SourceRepoClient<T> { /* fields omitted */ }

The Source Repo API service.

Implementations

impl SourceRepoClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> SourceRepoClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn list_repos(
    &mut self,
    request: impl IntoRequest<ListReposRequest>
) -> Result<Response<ListReposResponse>, Status>
[src]

Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo.

pub async fn get_repo(
    &mut self,
    request: impl IntoRequest<GetRepoRequest>
) -> Result<Response<Repo>, Status>
[src]

Returns information about a repo.

pub async fn create_repo(
    &mut self,
    request: impl IntoRequest<CreateRepoRequest>
) -> Result<Response<Repo>, Status>
[src]

Creates a repo in the given project with the given name.

If the named repository already exists, CreateRepo returns ALREADY_EXISTS.

pub async fn delete_repo(
    &mut self,
    request: impl IntoRequest<DeleteRepoRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a repo.

pub async fn set_iam_policy(
    &mut self,
    request: impl IntoRequest<SetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
[src]

Sets the access control policy on the specified resource. Replaces any existing policy.

pub async fn get_iam_policy(
    &mut self,
    request: impl IntoRequest<GetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
[src]

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

pub async fn test_iam_permissions(
    &mut self,
    request: impl IntoRequest<TestIamPermissionsRequest>
) -> Result<Response<TestIamPermissionsResponse>, Status>
[src]

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Trait Implementations

impl<T: Clone> Clone for SourceRepoClient<T>[src]

impl<T> Debug for SourceRepoClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for SourceRepoClient<T>

impl<T> Send for SourceRepoClient<T> where
    T: Send

impl<T> Sync for SourceRepoClient<T> where
    T: Sync

impl<T> Unpin for SourceRepoClient<T> where
    T: Unpin

impl<T> !UnwindSafe for SourceRepoClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]