npm_packages
Creates, updates, deletes, gets or lists a npm_packages
resource.
Overview
Name | npm_packages |
Type | Resource |
Id | google.artifactregistry.npm_packages |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
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 (google-datetime) | Output only. Time the package was created. |
packageName | string | Package for the artifact. |
tags | array | Tags attached to this package. |
updateTime | string (google-datetime) | Output only. Time the package was updated. |
version | string | Version of this package. |
Successful response
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 (google-datetime) | Output only. Time the package was created. |
packageName | string | Package for the artifact. |
tags | array | Tags attached to this package. |
updateTime | string (google-datetime) | Output only. Time the package was updated. |
version | string | Version of this package. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , repositoriesId , npmPackagesId | Gets a npm package. | |
list | select | projectsId , locationsId , repositoriesId | pageSize , pageToken | Lists npm packages. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
npmPackagesId | string | |
projectsId | string | |
repositoriesId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Gets a npm package.
SELECT
name,
createTime,
packageName,
tags,
updateTime,
version
FROM google.artifactregistry.npm_packages
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND npmPackagesId = '{{ npmPackagesId }}' -- required;
Lists npm packages.
SELECT
name,
createTime,
packageName,
tags,
updateTime,
version
FROM google.artifactregistry.npm_packages
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';