Struct gapi_grpc::google::devtools::artifactregistry::v1beta2::artifact_registry_client::ArtifactRegistryClient [−][src]
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:
- Repositories, which group packages and their data.
- Packages, which group versions and their tags.
- Versions, which are specific forms of a package.
- Tags, which represent alternative names for versions.
- Files, which contain content and are optionally associated with a Package or Version.
Implementations
impl ArtifactRegistryClient<Channel>
[src]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
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]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
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]
&mut self,
request: impl IntoRequest<ListRepositoriesRequest>
) -> Result<Response<ListRepositoriesResponse>, Status>
Lists repositories.
pub async fn get_repository(
&mut self,
request: impl IntoRequest<GetRepositoryRequest>
) -> Result<Response<Repository>, Status>
[src]
&mut self,
request: impl IntoRequest<GetRepositoryRequest>
) -> Result<Response<Repository>, Status>
Gets a repository.
pub async fn create_repository(
&mut self,
request: impl IntoRequest<CreateRepositoryRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateRepositoryRequest>
) -> Result<Response<Operation>, Status>
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]
&mut self,
request: impl IntoRequest<UpdateRepositoryRequest>
) -> Result<Response<Repository>, Status>
Updates a repository.
pub async fn delete_repository(
&mut self,
request: impl IntoRequest<DeleteRepositoryRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteRepositoryRequest>
) -> Result<Response<Operation>, Status>
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]
&mut self,
request: impl IntoRequest<ListPackagesRequest>
) -> Result<Response<ListPackagesResponse>, Status>
Lists packages.
pub async fn get_package(
&mut self,
request: impl IntoRequest<GetPackageRequest>
) -> Result<Response<Package>, Status>
[src]
&mut self,
request: impl IntoRequest<GetPackageRequest>
) -> Result<Response<Package>, Status>
Gets a package.
pub async fn delete_package(
&mut self,
request: impl IntoRequest<DeletePackageRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<DeletePackageRequest>
) -> Result<Response<Operation>, Status>
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]
&mut self,
request: impl IntoRequest<ListVersionsRequest>
) -> Result<Response<ListVersionsResponse>, Status>
Lists versions.
pub async fn get_version(
&mut self,
request: impl IntoRequest<GetVersionRequest>
) -> Result<Response<Version>, Status>
[src]
&mut self,
request: impl IntoRequest<GetVersionRequest>
) -> Result<Response<Version>, Status>
Gets a version
pub async fn delete_version(
&mut self,
request: impl IntoRequest<DeleteVersionRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteVersionRequest>
) -> Result<Response<Operation>, Status>
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]
&mut self,
request: impl IntoRequest<ListFilesRequest>
) -> Result<Response<ListFilesResponse>, Status>
Lists files.
pub async fn get_file(
&mut self,
request: impl IntoRequest<GetFileRequest>
) -> Result<Response<File>, Status>
[src]
&mut self,
request: impl IntoRequest<GetFileRequest>
) -> Result<Response<File>, Status>
Gets a file.
pub async fn list_tags(
&mut self,
request: impl IntoRequest<ListTagsRequest>
) -> Result<Response<ListTagsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListTagsRequest>
) -> Result<Response<ListTagsResponse>, Status>
Lists tags.
pub async fn get_tag(
&mut self,
request: impl IntoRequest<GetTagRequest>
) -> Result<Response<Tag>, Status>
[src]
&mut self,
request: impl IntoRequest<GetTagRequest>
) -> Result<Response<Tag>, Status>
Gets a tag.
pub async fn create_tag(
&mut self,
request: impl IntoRequest<CreateTagRequest>
) -> Result<Response<Tag>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateTagRequest>
) -> Result<Response<Tag>, Status>
Creates a tag.
pub async fn update_tag(
&mut self,
request: impl IntoRequest<UpdateTagRequest>
) -> Result<Response<Tag>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateTagRequest>
) -> Result<Response<Tag>, Status>
Updates a tag.
pub async fn delete_tag(
&mut self,
request: impl IntoRequest<DeleteTagRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteTagRequest>
) -> Result<Response<()>, Status>
Deletes a tag.
pub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
[src]
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
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]
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
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]
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>
) -> Result<Response<TestIamPermissionsResponse>, Status>
Tests if the caller has a list of permissions on a resource.
Trait Implementations
impl<T: Clone> Clone for ArtifactRegistryClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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,
T: Send,
impl<T> Sync for ArtifactRegistryClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ArtifactRegistryClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for ArtifactRegistryClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,