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,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

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,

source

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.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn list_docker_images( &mut self, request: impl IntoRequest<ListDockerImagesRequest> ) -> Result<Response<ListDockerImagesResponse>, Status>

Lists docker images.

source

pub async fn get_docker_image( &mut self, request: impl IntoRequest<GetDockerImageRequest> ) -> Result<Response<DockerImage>, Status>

Gets a docker image.

source

pub async fn list_maven_artifacts( &mut self, request: impl IntoRequest<ListMavenArtifactsRequest> ) -> Result<Response<ListMavenArtifactsResponse>, Status>

Lists maven artifacts.

source

pub async fn get_maven_artifact( &mut self, request: impl IntoRequest<GetMavenArtifactRequest> ) -> Result<Response<MavenArtifact>, Status>

Gets a maven artifact.

source

pub async fn list_npm_packages( &mut self, request: impl IntoRequest<ListNpmPackagesRequest> ) -> Result<Response<ListNpmPackagesResponse>, Status>

Lists npm packages.

source

pub async fn get_npm_package( &mut self, request: impl IntoRequest<GetNpmPackageRequest> ) -> Result<Response<NpmPackage>, Status>

Gets a npm package.

source

pub async fn list_python_packages( &mut self, request: impl IntoRequest<ListPythonPackagesRequest> ) -> Result<Response<ListPythonPackagesResponse>, Status>

Lists python packages.

source

pub async fn get_python_package( &mut self, request: impl IntoRequest<GetPythonPackageRequest> ) -> Result<Response<PythonPackage>, Status>

Gets a python package.

source

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.

source

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.

source

pub async fn list_repositories( &mut self, request: impl IntoRequest<ListRepositoriesRequest> ) -> Result<Response<ListRepositoriesResponse>, Status>

Lists repositories.

source

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

Gets a repository.

source

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.

source

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

Updates a repository.

source

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.

source

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

Lists packages.

source

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

Gets a package.

source

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.

source

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

Lists versions.

source

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

Gets a version

source

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.

source

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.

source

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

Lists files.

source

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

Gets a file.

source

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

Lists tags.

source

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

Gets a tag.

source

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

Creates a tag.

source

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

Updates a tag.

source

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

Deletes a tag.

source

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

Updates the IAM policy for a given resource.

source

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

Gets the IAM policy for a given resource.

source

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.

source

pub async fn get_project_settings( &mut self, request: impl IntoRequest<GetProjectSettingsRequest> ) -> Result<Response<ProjectSettings>, Status>

Retrieves the Settings for the Project.

source

pub async fn update_project_settings( &mut self, request: impl IntoRequest<UpdateProjectSettingsRequest> ) -> Result<Response<ProjectSettings>, Status>

Updates the Settings for the Project.

source

pub async fn get_vpcsc_config( &mut self, request: impl IntoRequest<GetVpcscConfigRequest> ) -> Result<Response<VpcscConfig>, Status>

Retrieves the VPCSC Config for the Project.

source

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>

source§

fn clone(&self) -> ArtifactRegistryClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for ArtifactRegistryClient<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more