Struct google_api_proto::google::devtools::artifactregistry::v1::artifact_registry_client::ArtifactRegistryClient
source · pub struct ArtifactRegistryClient<T> { /* private fields */ }
Expand description
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§
source§impl<T> ArtifactRegistryClient<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> ArtifactRegistryClient<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,
) -> ArtifactRegistryClient<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_docker_images(
&mut self,
request: impl IntoRequest<ListDockerImagesRequest>,
) -> Result<Response<ListDockerImagesResponse>, Status>
pub async fn list_docker_images( &mut self, request: impl IntoRequest<ListDockerImagesRequest>, ) -> Result<Response<ListDockerImagesResponse>, Status>
Lists docker images.
sourcepub async fn get_docker_image(
&mut self,
request: impl IntoRequest<GetDockerImageRequest>,
) -> Result<Response<DockerImage>, Status>
pub async fn get_docker_image( &mut self, request: impl IntoRequest<GetDockerImageRequest>, ) -> Result<Response<DockerImage>, Status>
Gets a docker image.
sourcepub async fn list_maven_artifacts(
&mut self,
request: impl IntoRequest<ListMavenArtifactsRequest>,
) -> Result<Response<ListMavenArtifactsResponse>, Status>
pub async fn list_maven_artifacts( &mut self, request: impl IntoRequest<ListMavenArtifactsRequest>, ) -> Result<Response<ListMavenArtifactsResponse>, Status>
Lists maven artifacts.
sourcepub async fn get_maven_artifact(
&mut self,
request: impl IntoRequest<GetMavenArtifactRequest>,
) -> Result<Response<MavenArtifact>, Status>
pub async fn get_maven_artifact( &mut self, request: impl IntoRequest<GetMavenArtifactRequest>, ) -> Result<Response<MavenArtifact>, Status>
Gets a maven artifact.
sourcepub async fn list_npm_packages(
&mut self,
request: impl IntoRequest<ListNpmPackagesRequest>,
) -> Result<Response<ListNpmPackagesResponse>, Status>
pub async fn list_npm_packages( &mut self, request: impl IntoRequest<ListNpmPackagesRequest>, ) -> Result<Response<ListNpmPackagesResponse>, Status>
Lists npm packages.
sourcepub async fn get_npm_package(
&mut self,
request: impl IntoRequest<GetNpmPackageRequest>,
) -> Result<Response<NpmPackage>, Status>
pub async fn get_npm_package( &mut self, request: impl IntoRequest<GetNpmPackageRequest>, ) -> Result<Response<NpmPackage>, Status>
Gets a npm package.
sourcepub async fn list_python_packages(
&mut self,
request: impl IntoRequest<ListPythonPackagesRequest>,
) -> Result<Response<ListPythonPackagesResponse>, Status>
pub async fn list_python_packages( &mut self, request: impl IntoRequest<ListPythonPackagesRequest>, ) -> Result<Response<ListPythonPackagesResponse>, Status>
Lists python packages.
sourcepub async fn get_python_package(
&mut self,
request: impl IntoRequest<GetPythonPackageRequest>,
) -> Result<Response<PythonPackage>, Status>
pub async fn get_python_package( &mut self, request: impl IntoRequest<GetPythonPackageRequest>, ) -> Result<Response<PythonPackage>, Status>
Gets a python package.
sourcepub async fn import_apt_artifacts(
&mut self,
request: impl IntoRequest<ImportAptArtifactsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn import_apt_artifacts( &mut self, request: impl IntoRequest<ImportAptArtifactsRequest>, ) -> Result<Response<Operation>, Status>
Imports Apt artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
sourcepub async fn import_yum_artifacts(
&mut self,
request: impl IntoRequest<ImportYumArtifactsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn import_yum_artifacts( &mut self, request: impl IntoRequest<ImportYumArtifactsRequest>, ) -> Result<Response<Operation>, Status>
Imports Yum (RPM) artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
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.
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 a repository.
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. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
sourcepub async fn update_repository(
&mut self,
request: impl IntoRequest<UpdateRepositoryRequest>,
) -> Result<Response<Repository>, Status>
pub async fn update_repository( &mut self, request: impl IntoRequest<UpdateRepositoryRequest>, ) -> Result<Response<Repository>, Status>
Updates a repository.
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 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.
sourcepub async fn list_packages(
&mut self,
request: impl IntoRequest<ListPackagesRequest>,
) -> Result<Response<ListPackagesResponse>, Status>
pub async fn list_packages( &mut self, request: impl IntoRequest<ListPackagesRequest>, ) -> Result<Response<ListPackagesResponse>, Status>
Lists packages.
sourcepub async fn get_package(
&mut self,
request: impl IntoRequest<GetPackageRequest>,
) -> Result<Response<Package>, Status>
pub async fn get_package( &mut self, request: impl IntoRequest<GetPackageRequest>, ) -> Result<Response<Package>, Status>
Gets a package.
sourcepub async fn delete_package(
&mut self,
request: impl IntoRequest<DeletePackageRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_package( &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.
sourcepub async fn list_versions(
&mut self,
request: impl IntoRequest<ListVersionsRequest>,
) -> Result<Response<ListVersionsResponse>, Status>
pub async fn list_versions( &mut self, request: impl IntoRequest<ListVersionsRequest>, ) -> Result<Response<ListVersionsResponse>, Status>
Lists versions.
sourcepub async fn get_version(
&mut self,
request: impl IntoRequest<GetVersionRequest>,
) -> Result<Response<Version>, Status>
pub async fn get_version( &mut self, request: impl IntoRequest<GetVersionRequest>, ) -> Result<Response<Version>, Status>
Gets a version
sourcepub async fn delete_version(
&mut self,
request: impl IntoRequest<DeleteVersionRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_version( &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.
sourcepub async fn batch_delete_versions(
&mut self,
request: impl IntoRequest<BatchDeleteVersionsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_delete_versions( &mut self, request: impl IntoRequest<BatchDeleteVersionsRequest>, ) -> Result<Response<Operation>, Status>
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
sourcepub async fn list_files(
&mut self,
request: impl IntoRequest<ListFilesRequest>,
) -> Result<Response<ListFilesResponse>, Status>
pub async fn list_files( &mut self, request: impl IntoRequest<ListFilesRequest>, ) -> Result<Response<ListFilesResponse>, Status>
Lists files.
sourcepub async fn get_file(
&mut self,
request: impl IntoRequest<GetFileRequest>,
) -> Result<Response<File>, Status>
pub async fn get_file( &mut self, request: impl IntoRequest<GetFileRequest>, ) -> Result<Response<File>, Status>
Gets a file.
Lists tags.
sourcepub async fn get_tag(
&mut self,
request: impl IntoRequest<GetTagRequest>,
) -> Result<Response<Tag>, Status>
pub async fn get_tag( &mut self, request: impl IntoRequest<GetTagRequest>, ) -> Result<Response<Tag>, Status>
Gets a tag.
sourcepub async fn create_tag(
&mut self,
request: impl IntoRequest<CreateTagRequest>,
) -> Result<Response<Tag>, Status>
pub async fn create_tag( &mut self, request: impl IntoRequest<CreateTagRequest>, ) -> Result<Response<Tag>, Status>
Creates a tag.
sourcepub async fn update_tag(
&mut self,
request: impl IntoRequest<UpdateTagRequest>,
) -> Result<Response<Tag>, Status>
pub async fn update_tag( &mut self, request: impl IntoRequest<UpdateTagRequest>, ) -> Result<Response<Tag>, Status>
Updates a tag.
sourcepub async fn delete_tag(
&mut self,
request: impl IntoRequest<DeleteTagRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_tag( &mut self, request: impl IntoRequest<DeleteTagRequest>, ) -> Result<Response<()>, Status>
Deletes a tag.
sourcepub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>,
) -> Result<Response<Policy>, Status>
pub async fn set_iam_policy( &mut self, request: impl IntoRequest<SetIamPolicyRequest>, ) -> Result<Response<Policy>, Status>
Updates the IAM policy for a given resource.
sourcepub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>,
) -> Result<Response<Policy>, Status>
pub async fn get_iam_policy( &mut self, request: impl IntoRequest<GetIamPolicyRequest>, ) -> Result<Response<Policy>, Status>
Gets the IAM policy for a given resource.
sourcepub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>,
) -> Result<Response<TestIamPermissionsResponse>, Status>
pub async fn test_iam_permissions( &mut self, request: impl IntoRequest<TestIamPermissionsRequest>, ) -> Result<Response<TestIamPermissionsResponse>, Status>
Tests if the caller has a list of permissions on a resource.
sourcepub async fn get_project_settings(
&mut self,
request: impl IntoRequest<GetProjectSettingsRequest>,
) -> Result<Response<ProjectSettings>, Status>
pub async fn get_project_settings( &mut self, request: impl IntoRequest<GetProjectSettingsRequest>, ) -> Result<Response<ProjectSettings>, Status>
Retrieves the Settings for the Project.
sourcepub async fn update_project_settings(
&mut self,
request: impl IntoRequest<UpdateProjectSettingsRequest>,
) -> Result<Response<ProjectSettings>, Status>
pub async fn update_project_settings( &mut self, request: impl IntoRequest<UpdateProjectSettingsRequest>, ) -> Result<Response<ProjectSettings>, Status>
Updates the Settings for the Project.
sourcepub async fn get_vpcsc_config(
&mut self,
request: impl IntoRequest<GetVpcscConfigRequest>,
) -> Result<Response<VpcscConfig>, Status>
pub async fn get_vpcsc_config( &mut self, request: impl IntoRequest<GetVpcscConfigRequest>, ) -> Result<Response<VpcscConfig>, Status>
Retrieves the VPCSC Config for the Project.
sourcepub async fn update_vpcsc_config(
&mut self,
request: impl IntoRequest<UpdateVpcscConfigRequest>,
) -> Result<Response<VpcscConfig>, Status>
pub async fn update_vpcsc_config( &mut self, request: impl IntoRequest<UpdateVpcscConfigRequest>, ) -> Result<Response<VpcscConfig>, Status>
Updates the VPCSC Config for the Project.
Trait Implementations§
source§impl<T: Clone> Clone for ArtifactRegistryClient<T>
impl<T: Clone> Clone for ArtifactRegistryClient<T>
source§fn clone(&self) -> ArtifactRegistryClient<T>
fn clone(&self) -> ArtifactRegistryClient<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 ArtifactRegistryClient<T>
impl<T> RefUnwindSafe for ArtifactRegistryClient<T>where
T: RefUnwindSafe,
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>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