artifact_files
Creates, updates, deletes, gets or lists an artifact_files resource.
Overview​
| Name | artifact_files |
| Type | Resource |
| Id | nvidia.private_registry.artifact_files |
Fields​
The following fields are returned by SELECT queries:
- list_by_team
- list
| Name | Datatype | Description |
|---|---|---|
created_date | string | Creation date in ISO-8601 format (pattern: <code>\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z</code>) (wire: createdDate) |
description | string | Description of the file |
path | string | Relative file path from the root of the object |
size_in_bytes | integer (int64) | Size of the file in bytes (wire: sizeInBytes) |
updated_date | string | Updated date in ISO-8601 format (pattern: <code>\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z</code>) (wire: updatedDate) |
| Name | Datatype | Description |
|---|---|---|
created_date | string | Creation date in ISO-8601 format (pattern: <code>\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z</code>) (wire: createdDate) |
description | string | Description of the file |
path | string | Relative file path from the root of the object |
size_in_bytes | integer (int64) | Size of the file in bytes (wire: sizeInBytes) |
updated_date | string | Updated date in ISO-8601 format (pattern: <code>\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z</code>) (wire: updatedDate) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_team | select | artifact_type, team_name, artifact_name, version_id | page_size, page_number | List files of the artifact version in team |
list | select | artifact_type, artifact_name, version_id | page_size, page_number | List files of the artifact version in org |
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 |
|---|---|---|
artifact_name | string (UTF-8) | Artifact name |
artifact_type | string (UTF-8) | Artifact type |
team_name | string (UTF-8) | Team name |
version_id | string (UTF-8) | Version ID |
page_number | string (UTF-8) | Page number - zero based index |
page_size | string (UTF-8) | Page size |
SELECT examples​
- list_by_team
- list
List files of the artifact version in team
SELECT
created_date,
description,
path,
size_in_bytes,
updated_date
FROM nvidia.private_registry.artifact_files
WHERE artifact_type = '{{ artifact_type }}' -- required
AND team_name = '{{ team_name }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND version_id = '{{ version_id }}' -- required
AND page_size = '{{ page_size }}'
AND page_number = '{{ page_number }}'
;
List files of the artifact version in org
SELECT
created_date,
description,
path,
size_in_bytes,
updated_date
FROM nvidia.private_registry.artifact_files
WHERE artifact_type = '{{ artifact_type }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND version_id = '{{ version_id }}' -- required
AND page_size = '{{ page_size }}'
AND page_number = '{{ page_number }}'
;