packages
Creates, updates, deletes, gets or lists a packages
resource.
Overview
Name | packages |
Type | Resource |
Id | google.artifactregistry.packages |
Fields
Name | Datatype | Description |
---|---|---|
name | string | 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. |
annotations | object | Optional. Client specified annotations. |
createTime | string | The time when the package was created. |
displayName | string | The display name of the package. |
updateTime | string | The time when the package was last updated. This includes publishing a new version of the package. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, packagesId, projectsId, repositoriesId | Gets a package. |
list | SELECT | locationsId, projectsId, repositoriesId | Lists packages. |
delete | DELETE | locationsId, packagesId, projectsId, repositoriesId | Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted. |
patch | UPDATE | locationsId, packagesId, projectsId, repositoriesId | Updates a package. |
SELECT
examples
Lists packages.
SELECT
name,
annotations,
createTime,
displayName,
updateTime
FROM google.artifactregistry.packages
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';
UPDATE
example
Updates a packages
resource.
/*+ update */
UPDATE google.artifactregistry.packages
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
annotations = '{{ annotations }}'
WHERE
locationsId = '{{ locationsId }}'
AND packagesId = '{{ packagesId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';
DELETE
example
Deletes the specified packages
resource.
/*+ delete */
DELETE FROM google.artifactregistry.packages
WHERE locationsId = '{{ locationsId }}'
AND packagesId = '{{ packagesId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';