Struct gapi_grpc::google::devtools::artifactregistry::v1beta2::artifact_registry_client::ArtifactRegistryClient[][src]

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

The Artifact Registry API service.

Artifact Registry is an artifact management system for storing artifacts from different package management systems.

The resources managed by this API are:

Implementations

impl ArtifactRegistryClient<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> ArtifactRegistryClient<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_repositories(
    &mut self,
    request: impl IntoRequest<ListRepositoriesRequest>
) -> Result<Response<ListRepositoriesResponse>, Status>
[src]

Lists repositories.

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

Gets a repository.

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

Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

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

Updates a repository.

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

Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

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

Lists packages.

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

Gets a package.

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

Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.

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

Lists versions.

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

Gets a version

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

Deletes a version and all of its content. The returned operation will complete once the version has been deleted.

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

Lists files.

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

Gets a file.

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

Lists tags.

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

Gets a tag.

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

Creates a tag.

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

Updates a tag.

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

Deletes a tag.

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

Updates the IAM policy for a given resource.

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

Gets the IAM policy for a given resource.

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

Tests if the caller has a list of permissions on a resource.

Trait Implementations

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for ArtifactRegistryClient<T>

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

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

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

impl<T> !UnwindSafe for ArtifactRegistryClient<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]