tags
Creates, updates, deletes, gets or lists a tags
resource.
Overview
Name | tags |
Type | Resource |
Id | google.artifactregistry.tags |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded. |
version | string | The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, packagesId, projectsId, repositoriesId, tagsId | Gets a tag. |
list | SELECT | locationsId, packagesId, projectsId, repositoriesId | Lists tags. |
create | INSERT | locationsId, packagesId, projectsId, repositoriesId | Creates a tag. |
delete | DELETE | locationsId, packagesId, projectsId, repositoriesId, tagsId | Deletes a tag. |
patch | UPDATE | locationsId, packagesId, projectsId, repositoriesId, tagsId | Updates a tag. |
SELECT
examples
Lists tags.
SELECT
name,
version
FROM google.artifactregistry.tags
WHERE locationsId = '{{ locationsId }}'
AND packagesId = '{{ packagesId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new tags
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.artifactregistry.tags (
locationsId,
packagesId,
projectsId,
repositoriesId,
name,
version
)
SELECT
'{{ locationsId }}',
'{{ packagesId }}',
'{{ projectsId }}',
'{{ repositoriesId }}',
'{{ name }}',
'{{ version }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: version
value: string
UPDATE
example
Updates a tags
resource.
/*+ update */
UPDATE google.artifactregistry.tags
SET
name = '{{ name }}',
version = '{{ version }}'
WHERE
locationsId = '{{ locationsId }}'
AND packagesId = '{{ packagesId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}'
AND tagsId = '{{ tagsId }}';
DELETE
example
Deletes the specified tags
resource.
/*+ delete */
DELETE FROM google.artifactregistry.tags
WHERE locationsId = '{{ locationsId }}'
AND packagesId = '{{ packagesId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}'
AND tagsId = '{{ tagsId }}';