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.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
ArtifactRegistryClient(ArtifactRegistryClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
ArtifactRegistryClient const &
|
ArtifactRegistryClient(ArtifactRegistryClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
ArtifactRegistryClient &&
|
ArtifactRegistryClient(std::shared_ptr< ArtifactRegistryConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< ArtifactRegistryConnection >
|
opts |
Options
|
Operators
operator=(ArtifactRegistryClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
ArtifactRegistryClient const &
|
Returns | |
---|---|
Type | Description |
ArtifactRegistryClient & |
operator=(ArtifactRegistryClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
ArtifactRegistryClient &&
|
Returns | |
---|---|
Type | Description |
ArtifactRegistryClient & |
Functions
ListDockerImages(std::string const &, Options)
Lists docker images.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource whose docker images will be listed. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::DockerImage > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListDockerImages(google::devtools::artifactregistry::v1::ListDockerImagesRequest, Options)
Lists docker images.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListDockerImagesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::DockerImage > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetDockerImage(std::string const &, Options)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the docker images. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::DockerImage > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.DockerImage) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetDockerImage(google::devtools::artifactregistry::v1::GetDockerImageRequest const &, Options)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetDockerImageRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::DockerImage > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.DockerImage) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListMavenArtifacts(std::string const &, Options)
Lists maven artifacts.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource whose maven artifacts will be listed. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::MavenArtifact > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListMavenArtifacts(google::devtools::artifactregistry::v1::ListMavenArtifactsRequest, Options)
Lists maven artifacts.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListMavenArtifactsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::MavenArtifact > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetMavenArtifact(std::string const &, Options)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the maven artifact. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::MavenArtifact > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.MavenArtifact) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetMavenArtifact(google::devtools::artifactregistry::v1::GetMavenArtifactRequest const &, Options)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetMavenArtifactRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::MavenArtifact > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.MavenArtifact) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListNpmPackages(std::string const &, Options)
Lists npm packages.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource whose npm packages will be listed. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::NpmPackage > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListNpmPackages(google::devtools::artifactregistry::v1::ListNpmPackagesRequest, Options)
Lists npm packages.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListNpmPackagesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::NpmPackage > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetNpmPackage(std::string const &, Options)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the npm package. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::NpmPackage > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.NpmPackage) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetNpmPackage(google::devtools::artifactregistry::v1::GetNpmPackageRequest const &, Options)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetNpmPackageRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::NpmPackage > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.NpmPackage) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListPythonPackages(std::string const &, Options)
Lists python packages.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource whose python packages will be listed. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::PythonPackage > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListPythonPackages(google::devtools::artifactregistry::v1::ListPythonPackagesRequest, Options)
Lists python packages.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListPythonPackagesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::PythonPackage > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetPythonPackage(std::string const &, Options)
Gets a python package.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the python package. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::PythonPackage > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.PythonPackage) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetPythonPackage(google::devtools::artifactregistry::v1::GetPythonPackageRequest const &, Options)
Gets a python package.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetPythonPackageRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::PythonPackage > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.PythonPackage) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ImportAptArtifacts(google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const &, Options)
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 | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ImportAptArtifactsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::ImportAptArtifactsResponse > > |
A |
ImportYumArtifacts(google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const &, Options)
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 | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ImportYumArtifactsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::ImportYumArtifactsResponse > > |
A |
ListRepositories(std::string const &, Options)
Lists repositories.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource whose repositories will be listed. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::Repository > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListRepositories(google::devtools::artifactregistry::v1::ListRepositoriesRequest, Options)
Lists repositories.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListRepositoriesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::Repository > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetRepository(std::string const &, Options)
Gets a repository.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the repository to retrieve. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Repository > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Repository) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetRepository(google::devtools::artifactregistry::v1::GetRepositoryRequest const &, Options)
Gets a repository.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetRepositoryRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Repository > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Repository) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateRepository(std::string const &, google::devtools::artifactregistry::v1::Repository const &, std::string const &, Options)
Creates a repository.
The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource where the repository will be created. |
repository |
google::devtools::artifactregistry::v1::Repository const &
Required. The repository to be created. |
repository_id |
std::string const &
Required. The repository id to use for this repository. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::Repository > > |
A |
CreateRepository(google::devtools::artifactregistry::v1::CreateRepositoryRequest const &, Options)
Creates a repository.
The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::CreateRepositoryRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::Repository > > |
A |
UpdateRepository(google::devtools::artifactregistry::v1::Repository const &, google::protobuf::FieldMask const &, Options)
Updates a repository.
Parameters | |
---|---|
Name | Description |
repository |
google::devtools::artifactregistry::v1::Repository const &
The repository that replaces the resource on the server. |
update_mask |
google::protobuf::FieldMask const &
The update mask applies to the resource. For the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Repository > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Repository) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateRepository(google::devtools::artifactregistry::v1::UpdateRepositoryRequest const &, Options)
Updates a repository.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::UpdateRepositoryRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Repository > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Repository) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteRepository(std::string const &, Options)
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 | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the repository to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > > |
A |
DeleteRepository(google::devtools::artifactregistry::v1::DeleteRepositoryRequest const &, Options)
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 | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::DeleteRepositoryRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > > |
A |
ListPackages(std::string const &, Options)
Lists packages.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the parent resource whose packages will be listed. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::Package > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListPackages(google::devtools::artifactregistry::v1::ListPackagesRequest, Options)
Lists packages.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListPackagesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::Package > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetPackage(std::string const &, Options)
Gets a package.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the package to retrieve. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Package > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Package) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetPackage(google::devtools::artifactregistry::v1::GetPackageRequest const &, Options)
Gets a package.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetPackageRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Package > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Package) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeletePackage(std::string const &, Options)
Deletes a package and all of its versions and tags.
The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the package to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > > |
A |
DeletePackage(google::devtools::artifactregistry::v1::DeletePackageRequest const &, Options)
Deletes a package and all of its versions and tags.
The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::DeletePackageRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > > |
A |
ListVersions(std::string const &, Options)
Lists versions.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
The name of the parent resource whose versions will be listed. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::Version > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListVersions(google::devtools::artifactregistry::v1::ListVersionsRequest, Options)
Lists versions.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListVersionsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::Version > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetVersion(std::string const &, Options)
Gets a version.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the version to retrieve. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Version > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Version) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetVersion(google::devtools::artifactregistry::v1::GetVersionRequest const &, Options)
Gets a version.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetVersionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Version > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Version) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteVersion(std::string const &, Options)
Deletes a version and all of its content.
The returned operation will complete once the version has been deleted.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the version to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > > |
A |
DeleteVersion(google::devtools::artifactregistry::v1::DeleteVersionRequest const &, Options)
Deletes a version and all of its content.
The returned operation will complete once the version has been deleted.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::DeleteVersionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::OperationMetadata > > |
A |
BatchDeleteVersions(std::string const &, std::vector< std::string > const &, Options)
Deletes multiple versions across a repository.
The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
The name of the repository holding all requested versions. |
names |
std::vector< std::string > const &
Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata > > |
A |
BatchDeleteVersions(google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const &, Options)
Deletes multiple versions across a repository.
The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata > > |
A |
ListFiles(std::string const &, Options)
Lists files.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1" |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::File > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListFiles(google::devtools::artifactregistry::v1::ListFilesRequest, Options)
Lists files.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListFilesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::File > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetFile(std::string const &, Options)
Gets a file.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the file to retrieve. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::File > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.File) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetFile(google::devtools::artifactregistry::v1::GetFileRequest const &, Options)
Gets a file.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetFileRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::File > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.File) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListTags(std::string const &, Options)
Lists tags.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
The name of the parent package whose tags will be listed. For example: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::Tag > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListTags(google::devtools::artifactregistry::v1::ListTagsRequest, Options)
Lists tags.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::ListTagsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::artifactregistry::v1::Tag > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetTag(std::string const &, Options)
Gets a tag.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the tag to retrieve. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Tag > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Tag) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTag(google::devtools::artifactregistry::v1::GetTagRequest const &, Options)
Gets a tag.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetTagRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Tag > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Tag) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateTag(std::string const &, google::devtools::artifactregistry::v1::Tag const &, std::string const &, Options)
Creates a tag.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
The name of the parent resource where the tag will be created. |
tag |
google::devtools::artifactregistry::v1::Tag const &
The tag to be created. |
tag_id |
std::string const &
The tag id to use for this repository. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Tag > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Tag) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateTag(google::devtools::artifactregistry::v1::CreateTagRequest const &, Options)
Creates a tag.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::CreateTagRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Tag > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Tag) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateTag(google::devtools::artifactregistry::v1::Tag const &, google::protobuf::FieldMask const &, Options)
Updates a tag.
Parameters | |
---|---|
Name | Description |
tag |
google::devtools::artifactregistry::v1::Tag const &
The tag that replaces the resource on the server. |
update_mask |
google::protobuf::FieldMask const &
The update mask applies to the resource. For the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Tag > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Tag) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateTag(google::devtools::artifactregistry::v1::UpdateTagRequest const &, Options)
Updates a tag.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::UpdateTagRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::Tag > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.Tag) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteTag(std::string const &, Options)
Deletes a tag.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the tag to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteTag(google::devtools::artifactregistry::v1::DeleteTagRequest const &, Options)
Deletes a tag.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::DeleteTagRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
Updates the IAM policy for a given resource.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::SetIamPolicyRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::Policy > |
the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
Gets the IAM policy for a given resource.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::GetIamPolicyRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::Policy > |
the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
Tests if the caller has a list of permissions on a resource.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::TestIamPermissionsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::TestIamPermissionsResponse > |
the result of the RPC. The response message type (google.iam.v1.TestIamPermissionsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetProjectSettings(std::string const &, Options)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the projectSettings resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::ProjectSettings > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.ProjectSettings) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetProjectSettings(google::devtools::artifactregistry::v1::GetProjectSettingsRequest const &, Options)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetProjectSettingsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::ProjectSettings > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.ProjectSettings) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateProjectSettings(google::devtools::artifactregistry::v1::ProjectSettings const &, google::protobuf::FieldMask const &, Options)
Updates the Settings for the Project.
Parameters | |
---|---|
Name | Description |
project_settings |
google::devtools::artifactregistry::v1::ProjectSettings const &
The project settings. |
update_mask |
google::protobuf::FieldMask const &
Field mask to support partial updates. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::ProjectSettings > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.ProjectSettings) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateProjectSettings(google::devtools::artifactregistry::v1::UpdateProjectSettingsRequest const &, Options)
Updates the Settings for the Project.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::UpdateProjectSettingsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::ProjectSettings > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.ProjectSettings) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetVPCSCConfig(std::string const &, Options)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the VPCSCConfig resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::VPCSCConfig > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.VPCSCConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetVPCSCConfig(google::devtools::artifactregistry::v1::GetVPCSCConfigRequest const &, Options)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::GetVPCSCConfigRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::VPCSCConfig > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.VPCSCConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateVPCSCConfig(google::devtools::artifactregistry::v1::VPCSCConfig const &, google::protobuf::FieldMask const &, Options)
Updates the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
vpcsc_config |
google::devtools::artifactregistry::v1::VPCSCConfig const &
The project config. |
update_mask |
google::protobuf::FieldMask const &
Field mask to support partial updates. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::VPCSCConfig > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.VPCSCConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateVPCSCConfig(google::devtools::artifactregistry::v1::UpdateVPCSCConfigRequest const &, Options)
Updates the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::artifactregistry::v1::UpdateVPCSCConfigRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::artifactregistry::v1::VPCSCConfig > |
the result of the RPC. The response message type (google.devtools.artifactregistry.v1.VPCSCConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |