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 | Gets a Dataset version. |
list | SELECT | datasetsId | Lists DatasetVersions in a Dataset. |
create | INSERT | datasetsId | Create a version from a Dataset. |
delete | DELETE | datasetVersionsId, datasetsId | Deletes a Dataset version. |
patch | UPDATE | datasetVersionsId, datasetsId | Updates a DatasetVersion. |
restore | EXEC | datasetVersionsId, datasetsId | 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 }}';
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,
etag,
displayName
)
SELECT
'{{ datasetsId }}',
'{{ etag }}',
'{{ displayName }}'
;
etag: string
satisfiesPzi: boolean
createTime: string
updateTime: string
bigQueryDatasetName: string
modelReference: string
name: string
metadata: any
displayName: string
satisfiesPzs: boolean
UPDATE
example
Updates a dataset_versions
resource.
/*+ update */
UPDATE google.aiplatform.dataset_versions
SET
etag = '{{ etag }}',
displayName = '{{ displayName }}'
WHERE
datasetVersionsId = '{{ datasetVersionsId }}'
AND datasetsId = '{{ datasetsId }}';
DELETE
example
Deletes the specified dataset_versions
resource.
/*+ delete */
DELETE FROM google.aiplatform.dataset_versions
WHERE datasetVersionsId = '{{ datasetVersionsId }}'
AND datasetsId = '{{ datasetsId }}';