Skip to main content

studies

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

Overview

Namestudies
TypeResource
Idgoogle.ml.studies

Fields

NameDatatypeDescription
namestringOutput only. The name of a study.
createTimestringOutput only. Time at which the study was created.
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.
studyConfigobjectRepresents configuration of a study.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_studies_getSELECTlocationsId, projectsId, studiesIdGets a study.
projects_locations_studies_listSELECTlocationsId, projectsIdLists all the studies in a region for an associated project.
projects_locations_studies_createINSERTlocationsId, projectsIdCreates a study.
projects_locations_studies_deleteDELETElocationsId, projectsId, studiesIdDeletes a study.

SELECT examples

Lists all the studies in a region for an associated project.

SELECT
name,
createTime,
inactiveReason,
state,
studyConfig
FROM google.ml.studies
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new studies resource.

/*+ create */
INSERT INTO google.ml.studies (
locationsId,
projectsId,
studyConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ studyConfig }}'
;

DELETE example

Deletes the specified studies resource.

/*+ delete */
DELETE FROM google.ml.studies
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND studiesId = '{{ studiesId }}';