Class ArtifactRegistryGrpc.ArtifactRegistryBlockingStub (1.15.0)

public static final class ArtifactRegistryGrpc.ArtifactRegistryBlockingStub extends AbstractBlockingStub<ArtifactRegistryGrpc.ArtifactRegistryBlockingStub>

A stub to allow clients to do synchronous rpc calls to service ArtifactRegistry.

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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > ArtifactRegistryGrpc.ArtifactRegistryBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected ArtifactRegistryGrpc.ArtifactRegistryBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
ArtifactRegistryGrpc.ArtifactRegistryBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createRepository(CreateRepositoryRequest request)

public Operation createRepository(CreateRepositoryRequest request)

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

Parameter
NameDescription
requestCreateRepositoryRequest
Returns
TypeDescription
Operation

createTag(CreateTagRequest request)

public Tag createTag(CreateTagRequest request)

Creates a tag.

Parameter
NameDescription
requestCreateTagRequest
Returns
TypeDescription
Tag

deletePackage(DeletePackageRequest request)

public Operation deletePackage(DeletePackageRequest request)

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

Parameter
NameDescription
requestDeletePackageRequest
Returns
TypeDescription
Operation

deleteRepository(DeleteRepositoryRequest request)

public Operation deleteRepository(DeleteRepositoryRequest request)

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.

Parameter
NameDescription
requestDeleteRepositoryRequest
Returns
TypeDescription
Operation

deleteTag(DeleteTagRequest request)

public Empty deleteTag(DeleteTagRequest request)

Deletes a tag.

Parameter
NameDescription
requestDeleteTagRequest
Returns
TypeDescription
Empty

deleteVersion(DeleteVersionRequest request)

public Operation deleteVersion(DeleteVersionRequest request)

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

Parameter
NameDescription
requestDeleteVersionRequest
Returns
TypeDescription
Operation

getFile(GetFileRequest request)

public File getFile(GetFileRequest request)

Gets a file.

Parameter
NameDescription
requestGetFileRequest
Returns
TypeDescription
File

getIamPolicy(GetIamPolicyRequest request)

public Policy getIamPolicy(GetIamPolicyRequest request)

Gets the IAM policy for a given resource.

Parameter
NameDescription
requestcom.google.iam.v1.GetIamPolicyRequest
Returns
TypeDescription
com.google.iam.v1.Policy

getPackage(GetPackageRequest request)

public Package getPackage(GetPackageRequest request)

Gets a package.

Parameter
NameDescription
requestGetPackageRequest
Returns
TypeDescription
Package

getProjectSettings(GetProjectSettingsRequest request)

public ProjectSettings getProjectSettings(GetProjectSettingsRequest request)

Retrieves the Settings for the Project.

Parameter
NameDescription
requestGetProjectSettingsRequest
Returns
TypeDescription
ProjectSettings

getRepository(GetRepositoryRequest request)

public Repository getRepository(GetRepositoryRequest request)

Gets a repository.

Parameter
NameDescription
requestGetRepositoryRequest
Returns
TypeDescription
Repository

getTag(GetTagRequest request)

public Tag getTag(GetTagRequest request)

Gets a tag.

Parameter
NameDescription
requestGetTagRequest
Returns
TypeDescription
Tag

getVersion(GetVersionRequest request)

public Version getVersion(GetVersionRequest request)

Gets a version

Parameter
NameDescription
requestGetVersionRequest
Returns
TypeDescription
Version

importAptArtifacts(ImportAptArtifactsRequest request)

public Operation importAptArtifacts(ImportAptArtifactsRequest request)

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.

Parameter
NameDescription
requestImportAptArtifactsRequest
Returns
TypeDescription
Operation

importYumArtifacts(ImportYumArtifactsRequest request)

public Operation importYumArtifacts(ImportYumArtifactsRequest request)

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.

Parameter
NameDescription
requestImportYumArtifactsRequest
Returns
TypeDescription
Operation

listFiles(ListFilesRequest request)

public ListFilesResponse listFiles(ListFilesRequest request)

Lists files.

Parameter
NameDescription
requestListFilesRequest
Returns
TypeDescription
ListFilesResponse

listPackages(ListPackagesRequest request)

public ListPackagesResponse listPackages(ListPackagesRequest request)

Lists packages.

Parameter
NameDescription
requestListPackagesRequest
Returns
TypeDescription
ListPackagesResponse

listRepositories(ListRepositoriesRequest request)

public ListRepositoriesResponse listRepositories(ListRepositoriesRequest request)

Lists repositories.

Parameter
NameDescription
requestListRepositoriesRequest
Returns
TypeDescription
ListRepositoriesResponse

listTags(ListTagsRequest request)

public ListTagsResponse listTags(ListTagsRequest request)

Lists tags.

Parameter
NameDescription
requestListTagsRequest
Returns
TypeDescription
ListTagsResponse

listVersions(ListVersionsRequest request)

public ListVersionsResponse listVersions(ListVersionsRequest request)

Lists versions.

Parameter
NameDescription
requestListVersionsRequest
Returns
TypeDescription
ListVersionsResponse

setIamPolicy(SetIamPolicyRequest request)

public Policy setIamPolicy(SetIamPolicyRequest request)

Updates the IAM policy for a given resource.

Parameter
NameDescription
requestcom.google.iam.v1.SetIamPolicyRequest
Returns
TypeDescription
com.google.iam.v1.Policy

testIamPermissions(TestIamPermissionsRequest request)

public TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)

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

Parameter
NameDescription
requestcom.google.iam.v1.TestIamPermissionsRequest
Returns
TypeDescription
com.google.iam.v1.TestIamPermissionsResponse

updateProjectSettings(UpdateProjectSettingsRequest request)

public ProjectSettings updateProjectSettings(UpdateProjectSettingsRequest request)

Updates the Settings for the Project.

Parameter
NameDescription
requestUpdateProjectSettingsRequest
Returns
TypeDescription
ProjectSettings

updateRepository(UpdateRepositoryRequest request)

public Repository updateRepository(UpdateRepositoryRequest request)

Updates a repository.

Parameter
NameDescription
requestUpdateRepositoryRequest
Returns
TypeDescription
Repository

updateTag(UpdateTagRequest request)

public Tag updateTag(UpdateTagRequest request)

Updates a tag.

Parameter
NameDescription
requestUpdateTagRequest
Returns
TypeDescription
Tag