class ProjectsLocationsRepositoriesPackagesVersions extends Resource (View source)

The "versions" collection of methods.

Typical usage is:

 $artifactregistryService = new Google\Service\ArtifactRegistry(...);
 $versions = $artifactregistryService->projects_locations_repositories_packages_versions;

Methods

batchDelete(string $parent, BatchDeleteVersionsRequest $postBody, array $optParams = [])

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

delete(string $name, array $optParams = [])

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

get(string $name, array $optParams = [])

Gets a version (versions.get)

listProjectsLocationsRepositoriesPackagesVersions(string $parent, array $optParams = [])

Lists versions. (versions.listProjectsLocationsRepositoriesPackagesVersions)

Details

Operation batchDelete(string $parent, BatchDeleteVersionsRequest $postBody, array $optParams = [])

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

Parameters

string $parent

The name of the repository holding all requested versions.

BatchDeleteVersionsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $name, array $optParams = [])

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

Parameters

string $name

The name of the version to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Version get(string $name, array $optParams = [])

Gets a version (versions.get)

Parameters

string $name

The name of the version to retrieve.

array $optParams

Optional parameters.

Return Value

Version

Exceptions

Exception

ListVersionsResponse listProjectsLocationsRepositoriesPackagesVersions(string $parent, array $optParams = [])

Lists versions. (versions.listProjectsLocationsRepositoriesPackagesVersions)

Parameters

string $parent

The name of the parent resource whose versions will be listed.

array $optParams

Optional parameters.

Return Value

ListVersionsResponse

Exceptions

Exception