Skip to main content

studies

Creates, updates, deletes, gets or lists a studies resource.

Overview

Namestudies
TypeResource
Idgoogle.aiplatform.studies

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The name of a study. The study's globally unique identifier. Format: projects/{project}/locations/{location}/studies/{study}
createTimestring (google-datetime)Output only. Time at which the study was created.
displayNamestringRequired. Describes the Study, default value is empty string.
inactiveReasonstringOutput only. A human readable reason why the Study is inactive. This should be empty if a study is ACTIVE or COMPLETED.
statestringOutput only. The detailed state of a Study.
studySpecobjectRequired. Configuration of the Study. (id: GoogleCloudAiplatformV1StudySpec)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, studiesIdGets a Study by name.
listselectprojectsId, locationsIdpageToken, pageSizeLists all the studies in a region for an associated project.
createinsertprojectsId, locationsIdCreates a Study. A resource name will be generated after creation of the Study.
deletedeleteprojectsId, locationsId, studiesIdDeletes a Study.
lookupexecprojectsId, locationsIdLooks a study up using the user-defined display_name field instead of the fully qualified resource name.

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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
studiesIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a Study by name.

SELECT
name,
createTime,
displayName,
inactiveReason,
state,
studySpec
FROM google.aiplatform.studies
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND studiesId = '{{ studiesId }}' -- required;

INSERT examples

Creates a Study. A resource name will be generated after creation of the Study.

INSERT INTO google.aiplatform.studies (
data__displayName,
data__studySpec,
projectsId,
locationsId
)
SELECT
'{{ displayName }}',
'{{ studySpec }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
createTime,
displayName,
inactiveReason,
state,
studySpec
;

DELETE examples

Deletes a Study.

DELETE FROM google.aiplatform.studies
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND studiesId = '{{ studiesId }}' --required;

Lifecycle Methods

Looks a study up using the user-defined display_name field instead of the fully qualified resource name.

EXEC google.aiplatform.studies.lookup 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"displayName": "{{ displayName }}"
}';