class ProjectsLocationsRepositoriesPackages extends Resource (View source)

The "packages" collection of methods.

Typical usage is:

 $artifactregistryService = new Google\Service\ArtifactRegistry(...);
 $packages = $artifactregistryService->projects_locations_repositories_packages;

Methods

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

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

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

Gets a package. (packages.get)

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

Lists packages. (packages.listProjectsLocationsRepositoriesPackages)

patch(string $name, Package $postBody, array $optParams = [])

Updates a package. (packages.patch)

Details

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

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

Parameters

string $name

Required. The name of the package to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets a package. (packages.get)

Parameters

string $name

Required. The name of the package to retrieve.

array $optParams

Optional parameters.

Return Value

Package

Exceptions

Exception

ListPackagesResponse listProjectsLocationsRepositoriesPackages(string $parent, array $optParams = [])

Lists packages. (packages.listProjectsLocationsRepositoriesPackages)

Parameters

string $parent

Required. The name of the parent resource whose packages will be listed.

array $optParams

Optional parameters.

Return Value

ListPackagesResponse

Exceptions

Exception

Package patch(string $name, Package $postBody, array $optParams = [])

Updates a package. (packages.patch)

Parameters

string $name

The name of the package, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1. If the package ID part contains slashes, the slashes are escaped.

Package $postBody
array $optParams

Optional parameters.

Return Value

Package

Exceptions

Exception