dataset_versions
Creates, updates, deletes, gets or lists a dataset_versions
resource.
Overview
Name | dataset_versions |
Type | Resource |
Id | google.aiplatform.dataset_versions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. Identifier. The resource name of the DatasetVersion. |
bigQueryDatasetName | string | Output only. Name of the associated BigQuery dataset. |
createTime | string | Output only. Timestamp when this DatasetVersion was created. |
displayName | string | The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
etag | string | Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
metadata | any | Required. Output only. Additional information about the DatasetVersion. |
modelReference | string | Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions. |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
updateTime | string | Output only. Timestamp when this DatasetVersion was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | datasetVersionsId, datasetsId, locationsId, projectsId | Gets a Dataset version. |
list | SELECT | datasetsId, locationsId, projectsId | Lists DatasetVersions in a Dataset. |
create | INSERT | datasetsId, locationsId, projectsId | Create a version from a Dataset. |
delete | DELETE | datasetVersionsId, datasetsId, locationsId, projectsId | Deletes a Dataset version. |
patch | UPDATE | datasetVersionsId, datasetsId, locationsId, projectsId | Updates a DatasetVersion. |
restore | EXEC | datasetVersionsId, datasetsId, locationsId, projectsId | Restores a dataset version. |
SELECT
examples
Lists DatasetVersions in a Dataset.
SELECT
name,
bigQueryDatasetName,
createTime,
displayName,
etag,
metadata,
modelReference,
satisfiesPzi,
satisfiesPzs,
updateTime
FROM google.aiplatform.dataset_versions
WHERE datasetsId = '{{ datasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dataset_versions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.aiplatform.dataset_versions (
datasetsId,
locationsId,
projectsId,
etag,
displayName
)
SELECT
'{{ datasetsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ etag }}',
'{{ displayName }}'
;
- name: your_resource_model_name
props:
- name: satisfiesPzs
value: boolean
- name: etag
value: string
- name: modelReference
value: string
- name: metadata
value: any
- name: updateTime
value: string
- name: bigQueryDatasetName
value: string
- name: displayName
value: string
- name: satisfiesPzi
value: boolean
- name: name
value: string
- name: createTime
value: string
UPDATE
example
Updates a dataset_versions
resource.
/*+ update */
UPDATE google.aiplatform.dataset_versions
SET
etag = '{{ etag }}',
displayName = '{{ displayName }}'
WHERE
datasetVersionsId = '{{ datasetVersionsId }}'
AND datasetsId = '{{ datasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified dataset_versions
resource.
/*+ delete */
DELETE FROM google.aiplatform.dataset_versions
WHERE datasetVersionsId = '{{ datasetVersionsId }}'
AND datasetsId = '{{ datasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';