versions
Creates, updates, deletes, gets or lists a versions
resource.
Overview
Name | versions |
Type | Resource |
Id | google.artifactregistry.versions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1". If the package or version ID parts contain slashes, the slashes are escaped. |
description | string | Optional. Description of the version, as specified in its metadata. |
createTime | string | The time when the version was created. |
metadata | object | Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the resources could be: DockerImage MavenArtifact |
relatedTags | array | Output only. A list of related tags. Will contain up to 100 tags that reference this version. |
updateTime | string | The time when the version was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, packagesId, projectsId, repositoriesId, versionsId | Gets a version |
list | SELECT | locationsId, packagesId, projectsId, repositoriesId | Lists versions. |
batch_delete | DELETE | locationsId, packagesId, projectsId, repositoriesId | Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted. |
delete | DELETE | locationsId, packagesId, projectsId, repositoriesId, versionsId | Deletes a version and all of its content. The returned operation will complete once the version has been deleted. |
SELECT
examples
Lists versions.
SELECT
name,
description,
createTime,
metadata,
relatedTags,
updateTime
FROM google.artifactregistry.versions
WHERE locationsId = '{{ locationsId }}'
AND packagesId = '{{ packagesId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';
DELETE
example
Deletes the specified versions
resource.
/*+ delete */
DELETE FROM google.artifactregistry.versions
WHERE locationsId = '{{ locationsId }}'
AND packagesId = '{{ packagesId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';