Class ArtifactRegistryConnection (2.33.0-rc)

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 ImportAptArtifacts(NoAwaitTag, google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportAptArtifacts(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 ImportYumArtifacts(NoAwaitTag, google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportYumArtifacts(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 CreateRepository(NoAwaitTag, google::devtools::artifactregistry::v1::CreateRepositoryRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::CreateRepositoryRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateRepository(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DeleteRepository(NoAwaitTag, google::devtools::artifactregistry::v1::DeleteRepositoryRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::DeleteRepositoryRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteRepository(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DeletePackage(NoAwaitTag, google::devtools::artifactregistry::v1::DeletePackageRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::DeletePackageRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeletePackage(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DeleteVersion(NoAwaitTag, google::devtools::artifactregistry::v1::DeleteVersionRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::DeleteVersionRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteVersion(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > >

virtual BatchDeleteVersions(google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const &)

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

virtual BatchDeleteVersions(NoAwaitTag, google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual BatchDeleteVersions(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata > >

virtual UpdateVersion(google::devtools::artifactregistry::v1::UpdateVersionRequest const &)

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

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 DeleteFile(google::devtools::artifactregistry::v1::DeleteFileRequest const &)

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

virtual DeleteFile(NoAwaitTag, google::devtools::artifactregistry::v1::DeleteFileRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::DeleteFileRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteFile(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > >

virtual UpdateFile(google::devtools::artifactregistry::v1::UpdateFileRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::UpdateFileRequest 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 CreateRule(google::devtools::artifactregistry::v1::CreateRuleRequest const &)

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

virtual ListRules(google::devtools::artifactregistry::v1::ListRulesRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListRulesRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::Rule >

virtual GetRule(google::devtools::artifactregistry::v1::GetRuleRequest const &)

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

virtual UpdateRule(google::devtools::artifactregistry::v1::UpdateRuleRequest const &)

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

virtual DeleteRule(google::devtools::artifactregistry::v1::DeleteRuleRequest const &)

Parameter
Name Description
request google::devtools::artifactregistry::v1::DeleteRuleRequest 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 >

virtual UpdatePackage(google::devtools::artifactregistry::v1::UpdatePackageRequest const &)

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

virtual ListAttachments(google::devtools::artifactregistry::v1::ListAttachmentsRequest)

Parameter
Name Description
request google::devtools::artifactregistry::v1::ListAttachmentsRequest
Returns
Type Description
StreamRange< google::devtools::artifactregistry::v1::Attachment >

virtual GetAttachment(google::devtools::artifactregistry::v1::GetAttachmentRequest const &)

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

virtual CreateAttachment(google::devtools::artifactregistry::v1::CreateAttachmentRequest const &)

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

virtual CreateAttachment(NoAwaitTag, google::devtools::artifactregistry::v1::CreateAttachmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::CreateAttachmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateAttachment(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::Attachment > >

virtual DeleteAttachment(google::devtools::artifactregistry::v1::DeleteAttachmentRequest const &)

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

virtual DeleteAttachment(NoAwaitTag, google::devtools::artifactregistry::v1::DeleteAttachmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::devtools::artifactregistry::v1::DeleteAttachmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteAttachment(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >