class ProjectsLocationsRepositoriesNpmPackages extends Resource (View source)

The "npmPackages" collection of methods.

Typical usage is:

 $artifactregistryService = new Google\Service\ArtifactRegistry(...);
 $npmPackages = $artifactregistryService->projects_locations_repositories_npmPackages;

Methods

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

Gets a npm package. (npmPackages.get)

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

Lists npm packages.

Details

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

Gets a npm package. (npmPackages.get)

Parameters

string $name

Required. The name of the npm package.

array $optParams

Optional parameters.

Return Value

NpmPackage

Exceptions

Exception

ListNpmPackagesResponse listProjectsLocationsRepositoriesNpmPackages(string $parent, array $optParams = [])

Lists npm packages.

(npmPackages.listProjectsLocationsRepositoriesNpmPackages)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListNpmPackagesResponse

Exceptions

Exception