Skip to main content

npm_packages

Creates, updates, deletes, gets or lists a npm_packages resource.

Overview

Namenpm_packages
TypeResource
Idgoogle.artifactregistry.npm_packages

Fields

NameDatatypeDescription
namestringRequired. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.
createTimestringOutput only. Time the package was created.
packageNamestringPackage for the artifact.
tagsarrayTags attached to this package.
updateTimestringOutput only. Time the package was updated.
versionstringVersion of this package.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, npmPackagesId, projectsId, repositoriesIdGets a npm package.
listSELECTlocationsId, projectsId, repositoriesIdLists npm packages.

SELECT examples

Lists npm packages.

SELECT
name,
createTime,
packageName,
tags,
updateTime,
version
FROM google.artifactregistry.npm_packages
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';