npm_packages
Creates, updates, deletes, gets or lists a npm_packages
resource.
Overview
Name | npm_packages |
Type | Resource |
Id | google.artifactregistry.npm_packages |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. 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. |
createTime | string | Output only. Time the package was created. |
packageName | string | Package for the artifact. |
tags | array | Tags attached to this package. |
updateTime | string | Output only. Time the package was updated. |
version | string | Version of this package. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, npmPackagesId, projectsId, repositoriesId | Gets a npm package. |
list | SELECT | locationsId, projectsId, repositoriesId | Lists 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 }}';