Interface ArtifactRegistryGrpc.AsyncService (1.31.0)

public static interface ArtifactRegistryGrpc.AsyncService

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.

Methods

batchDeleteVersions(BatchDeleteVersionsRequest request, StreamObserver<Operation> responseObserver)

public default void batchDeleteVersions(BatchDeleteVersionsRequest request, StreamObserver<Operation> responseObserver)

Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.

Parameters
NameDescription
requestBatchDeleteVersionsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

createRepository(CreateRepositoryRequest request, StreamObserver<Operation> responseObserver)

public default void createRepository(CreateRepositoryRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
NameDescription
requestCreateRepositoryRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

createTag(CreateTagRequest request, StreamObserver<Tag> responseObserver)

public default void createTag(CreateTagRequest request, StreamObserver<Tag> responseObserver)

Creates a tag.

Parameters
NameDescription
requestCreateTagRequest
responseObserverio.grpc.stub.StreamObserver<Tag>

deletePackage(DeletePackageRequest request, StreamObserver<Operation> responseObserver)

public default void deletePackage(DeletePackageRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
NameDescription
requestDeletePackageRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteRepository(DeleteRepositoryRequest request, StreamObserver<Operation> responseObserver)

public default void deleteRepository(DeleteRepositoryRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestDeleteRepositoryRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteTag(DeleteTagRequest request, StreamObserver<Empty> responseObserver)

public default void deleteTag(DeleteTagRequest request, StreamObserver<Empty> responseObserver)

Deletes a tag.

Parameters
NameDescription
requestDeleteTagRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteVersion(DeleteVersionRequest request, StreamObserver<Operation> responseObserver)

public default void deleteVersion(DeleteVersionRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
NameDescription
requestDeleteVersionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getDockerImage(GetDockerImageRequest request, StreamObserver<DockerImage> responseObserver)

public default void getDockerImage(GetDockerImageRequest request, StreamObserver<DockerImage> responseObserver)

Gets a docker image.

Parameters
NameDescription
requestGetDockerImageRequest
responseObserverio.grpc.stub.StreamObserver<DockerImage>

getFile(GetFileRequest request, StreamObserver<File> responseObserver)

public default void getFile(GetFileRequest request, StreamObserver<File> responseObserver)

Gets a file.

Parameters
NameDescription
requestGetFileRequest
responseObserverio.grpc.stub.StreamObserver<File>

getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public default void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Gets the IAM policy for a given resource.

Parameters
NameDescription
requestcom.google.iam.v1.GetIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getMavenArtifact(GetMavenArtifactRequest request, StreamObserver<MavenArtifact> responseObserver)

public default void getMavenArtifact(GetMavenArtifactRequest request, StreamObserver<MavenArtifact> responseObserver)

Gets a maven artifact.

Parameters
NameDescription
requestGetMavenArtifactRequest
responseObserverio.grpc.stub.StreamObserver<MavenArtifact>

getNpmPackage(GetNpmPackageRequest request, StreamObserver<NpmPackage> responseObserver)

public default void getNpmPackage(GetNpmPackageRequest request, StreamObserver<NpmPackage> responseObserver)

Gets a npm package.

Parameters
NameDescription
requestGetNpmPackageRequest
responseObserverio.grpc.stub.StreamObserver<NpmPackage>

getPackage(GetPackageRequest request, StreamObserver<Package> responseObserver)

public default void getPackage(GetPackageRequest request, StreamObserver<Package> responseObserver)

Gets a package.

Parameters
NameDescription
requestGetPackageRequest
responseObserverio.grpc.stub.StreamObserver<Package>

getProjectSettings(GetProjectSettingsRequest request, StreamObserver<ProjectSettings> responseObserver)

public default void getProjectSettings(GetProjectSettingsRequest request, StreamObserver<ProjectSettings> responseObserver)

Retrieves the Settings for the Project.

Parameters
NameDescription
requestGetProjectSettingsRequest
responseObserverio.grpc.stub.StreamObserver<ProjectSettings>

getPythonPackage(GetPythonPackageRequest request, StreamObserver<PythonPackage> responseObserver)

public default void getPythonPackage(GetPythonPackageRequest request, StreamObserver<PythonPackage> responseObserver)

Gets a python package.

Parameters
NameDescription
requestGetPythonPackageRequest
responseObserverio.grpc.stub.StreamObserver<PythonPackage>

getRepository(GetRepositoryRequest request, StreamObserver<Repository> responseObserver)

public default void getRepository(GetRepositoryRequest request, StreamObserver<Repository> responseObserver)

Gets a repository.

Parameters
NameDescription
requestGetRepositoryRequest
responseObserverio.grpc.stub.StreamObserver<Repository>

getTag(GetTagRequest request, StreamObserver<Tag> responseObserver)

public default void getTag(GetTagRequest request, StreamObserver<Tag> responseObserver)

Gets a tag.

Parameters
NameDescription
requestGetTagRequest
responseObserverio.grpc.stub.StreamObserver<Tag>

getVPCSCConfig(GetVPCSCConfigRequest request, StreamObserver<VPCSCConfig> responseObserver)

public default void getVPCSCConfig(GetVPCSCConfigRequest request, StreamObserver<VPCSCConfig> responseObserver)

Retrieves the VPCSC Config for the Project.

Parameters
NameDescription
requestGetVPCSCConfigRequest
responseObserverio.grpc.stub.StreamObserver<VPCSCConfig>

getVersion(GetVersionRequest request, StreamObserver<Version> responseObserver)

public default void getVersion(GetVersionRequest request, StreamObserver<Version> responseObserver)

Gets a version

Parameters
NameDescription
requestGetVersionRequest
responseObserverio.grpc.stub.StreamObserver<Version>

importAptArtifacts(ImportAptArtifactsRequest request, StreamObserver<Operation> responseObserver)

public default void importAptArtifacts(ImportAptArtifactsRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestImportAptArtifactsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

importYumArtifacts(ImportYumArtifactsRequest request, StreamObserver<Operation> responseObserver)

public default void importYumArtifacts(ImportYumArtifactsRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestImportYumArtifactsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

listDockerImages(ListDockerImagesRequest request, StreamObserver<ListDockerImagesResponse> responseObserver)

public default void listDockerImages(ListDockerImagesRequest request, StreamObserver<ListDockerImagesResponse> responseObserver)

Lists docker images.

Parameters
NameDescription
requestListDockerImagesRequest
responseObserverio.grpc.stub.StreamObserver<ListDockerImagesResponse>

listFiles(ListFilesRequest request, StreamObserver<ListFilesResponse> responseObserver)

public default void listFiles(ListFilesRequest request, StreamObserver<ListFilesResponse> responseObserver)

Lists files.

Parameters
NameDescription
requestListFilesRequest
responseObserverio.grpc.stub.StreamObserver<ListFilesResponse>

listMavenArtifacts(ListMavenArtifactsRequest request, StreamObserver<ListMavenArtifactsResponse> responseObserver)

public default void listMavenArtifacts(ListMavenArtifactsRequest request, StreamObserver<ListMavenArtifactsResponse> responseObserver)

Lists maven artifacts.

Parameters
NameDescription
requestListMavenArtifactsRequest
responseObserverio.grpc.stub.StreamObserver<ListMavenArtifactsResponse>

listNpmPackages(ListNpmPackagesRequest request, StreamObserver<ListNpmPackagesResponse> responseObserver)

public default void listNpmPackages(ListNpmPackagesRequest request, StreamObserver<ListNpmPackagesResponse> responseObserver)

Lists npm packages.

Parameters
NameDescription
requestListNpmPackagesRequest
responseObserverio.grpc.stub.StreamObserver<ListNpmPackagesResponse>

listPackages(ListPackagesRequest request, StreamObserver<ListPackagesResponse> responseObserver)

public default void listPackages(ListPackagesRequest request, StreamObserver<ListPackagesResponse> responseObserver)

Lists packages.

Parameters
NameDescription
requestListPackagesRequest
responseObserverio.grpc.stub.StreamObserver<ListPackagesResponse>

listPythonPackages(ListPythonPackagesRequest request, StreamObserver<ListPythonPackagesResponse> responseObserver)

public default void listPythonPackages(ListPythonPackagesRequest request, StreamObserver<ListPythonPackagesResponse> responseObserver)

Lists python packages.

Parameters
NameDescription
requestListPythonPackagesRequest
responseObserverio.grpc.stub.StreamObserver<ListPythonPackagesResponse>

listRepositories(ListRepositoriesRequest request, StreamObserver<ListRepositoriesResponse> responseObserver)

public default void listRepositories(ListRepositoriesRequest request, StreamObserver<ListRepositoriesResponse> responseObserver)

Lists repositories.

Parameters
NameDescription
requestListRepositoriesRequest
responseObserverio.grpc.stub.StreamObserver<ListRepositoriesResponse>

listTags(ListTagsRequest request, StreamObserver<ListTagsResponse> responseObserver)

public default void listTags(ListTagsRequest request, StreamObserver<ListTagsResponse> responseObserver)

Lists tags.

Parameters
NameDescription
requestListTagsRequest
responseObserverio.grpc.stub.StreamObserver<ListTagsResponse>

listVersions(ListVersionsRequest request, StreamObserver<ListVersionsResponse> responseObserver)

public default void listVersions(ListVersionsRequest request, StreamObserver<ListVersionsResponse> responseObserver)

Lists versions.

Parameters
NameDescription
requestListVersionsRequest
responseObserverio.grpc.stub.StreamObserver<ListVersionsResponse>

setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public default void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Updates the IAM policy for a given resource.

Parameters
NameDescription
requestcom.google.iam.v1.SetIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

public default void testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

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

Parameters
NameDescription
requestcom.google.iam.v1.TestIamPermissionsRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>

updateProjectSettings(UpdateProjectSettingsRequest request, StreamObserver<ProjectSettings> responseObserver)

public default void updateProjectSettings(UpdateProjectSettingsRequest request, StreamObserver<ProjectSettings> responseObserver)

Updates the Settings for the Project.

Parameters
NameDescription
requestUpdateProjectSettingsRequest
responseObserverio.grpc.stub.StreamObserver<ProjectSettings>

updateRepository(UpdateRepositoryRequest request, StreamObserver<Repository> responseObserver)

public default void updateRepository(UpdateRepositoryRequest request, StreamObserver<Repository> responseObserver)

Updates a repository.

Parameters
NameDescription
requestUpdateRepositoryRequest
responseObserverio.grpc.stub.StreamObserver<Repository>

updateTag(UpdateTagRequest request, StreamObserver<Tag> responseObserver)

public default void updateTag(UpdateTagRequest request, StreamObserver<Tag> responseObserver)

Updates a tag.

Parameters
NameDescription
requestUpdateTagRequest
responseObserverio.grpc.stub.StreamObserver<Tag>

updateVPCSCConfig(UpdateVPCSCConfigRequest request, StreamObserver<VPCSCConfig> responseObserver)

public default void updateVPCSCConfig(UpdateVPCSCConfigRequest request, StreamObserver<VPCSCConfig> responseObserver)

Updates the VPCSC Config for the Project.

Parameters
NameDescription
requestUpdateVPCSCConfigRequest
responseObserverio.grpc.stub.StreamObserver<VPCSCConfig>