Class ArtifactRegistryConnection (2.14.0)

This interface defines virtual methods for each of the user-facing overload sets in ArtifactRegistryClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type ArtifactRegistryClient.

To create a concrete instance, see MakeArtifactRegistryConnection().

For mocking, see artifactregistry_v1_mocks::MockArtifactRegistryConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListDockerImages(google::devtools::artifactregistry::v1::ListDockerImagesRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListDockerImagesRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::DockerImage >

virtual GetDockerImage(google::devtools::artifactregistry::v1::GetDockerImageRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetDockerImageRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::DockerImage >

virtual ListMavenArtifacts(google::devtools::artifactregistry::v1::ListMavenArtifactsRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListMavenArtifactsRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::MavenArtifact >

virtual GetMavenArtifact(google::devtools::artifactregistry::v1::GetMavenArtifactRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetMavenArtifactRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::MavenArtifact >

virtual ListNpmPackages(google::devtools::artifactregistry::v1::ListNpmPackagesRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListNpmPackagesRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::NpmPackage >

virtual GetNpmPackage(google::devtools::artifactregistry::v1::GetNpmPackageRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetNpmPackageRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::NpmPackage >

virtual ListPythonPackages(google::devtools::artifactregistry::v1::ListPythonPackagesRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListPythonPackagesRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::PythonPackage >

virtual GetPythonPackage(google::devtools::artifactregistry::v1::GetPythonPackageRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetPythonPackageRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::PythonPackage >

virtual ImportAptArtifacts(google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::ImportAptArtifactsResponse > >

virtual ImportYumArtifacts(google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::ImportYumArtifactsResponse > >

virtual ListRepositories(google::devtools::artifactregistry::v1::ListRepositoriesRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListRepositoriesRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::Repository >

virtual GetRepository(google::devtools::artifactregistry::v1::GetRepositoryRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetRepositoryRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::Repository >

virtual CreateRepository(google::devtools::artifactregistry::v1::CreateRepositoryRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::CreateRepositoryRequest const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::Repository > >

virtual UpdateRepository(google::devtools::artifactregistry::v1::UpdateRepositoryRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::UpdateRepositoryRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::Repository >

virtual DeleteRepository(google::devtools::artifactregistry::v1::DeleteRepositoryRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::DeleteRepositoryRequest const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > >

virtual ListPackages(google::devtools::artifactregistry::v1::ListPackagesRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListPackagesRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::Package >

virtual GetPackage(google::devtools::artifactregistry::v1::GetPackageRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetPackageRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::Package >

virtual DeletePackage(google::devtools::artifactregistry::v1::DeletePackageRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::DeletePackageRequest const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > >

virtual ListVersions(google::devtools::artifactregistry::v1::ListVersionsRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListVersionsRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::Version >

virtual GetVersion(google::devtools::artifactregistry::v1::GetVersionRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetVersionRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::Version >

virtual DeleteVersion(google::devtools::artifactregistry::v1::DeleteVersionRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::DeleteVersionRequest const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > >

virtual ListFiles(google::devtools::artifactregistry::v1::ListFilesRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListFilesRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::File >

virtual GetFile(google::devtools::artifactregistry::v1::GetFileRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetFileRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::File >

virtual ListTags(google::devtools::artifactregistry::v1::ListTagsRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListTagsRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::Tag >

virtual GetTag(google::devtools::artifactregistry::v1::GetTagRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetTagRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::Tag >

virtual CreateTag(google::devtools::artifactregistry::v1::CreateTagRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::CreateTagRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::Tag >

virtual UpdateTag(google::devtools::artifactregistry::v1::UpdateTagRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::UpdateTagRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::Tag >

virtual DeleteTag(google::devtools::artifactregistry::v1::DeleteTagRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::DeleteTagRequest const &
Returns
Type Description
Status

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual GetProjectSettings(google::devtools::artifactregistry::v1::GetProjectSettingsRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetProjectSettingsRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::ProjectSettings >

virtual UpdateProjectSettings(google::devtools::artifactregistry::v1::UpdateProjectSettingsRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::UpdateProjectSettingsRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::ProjectSettings >

virtual GetVPCSCConfig(google::devtools::artifactregistry::v1::GetVPCSCConfigRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::GetVPCSCConfigRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::VPCSCConfig >

virtual UpdateVPCSCConfig(google::devtools::artifactregistry::v1::UpdateVPCSCConfigRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::UpdateVPCSCConfigRequest const &
Returns
Type Description
StatusOr< google::devtools::artifactregistry::v1::VPCSCConfig >