Skip to main content

studies

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

Overview

Namestudies
TypeResource
Idgoogle.ml.studies

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The name of a study.
createTimestring (google-datetime)Output 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.
studyConfigobjectRequired. Configuration of the study. (id: GoogleCloudMlV1__StudyConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_studies_getselectprojectsId, locationsId, studiesIdGets a study.
projects_locations_studies_listselectprojectsId, locationsIdLists all the studies in a region for an associated project.
projects_locations_studies_createinsertprojectsId, locationsIdstudyIdCreates a study.
projects_locations_studies_deletedeleteprojectsId, locationsId, studiesIdDeletes a study.

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
studyIdstring

SELECT examples

Gets a study.

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

INSERT examples

Creates a study.

INSERT INTO google.ml.studies (
data__studyConfig,
projectsId,
locationsId,
studyId
)
SELECT
'{{ studyConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ studyId }}'
RETURNING
name,
createTime,
inactiveReason,
state,
studyConfig
;

DELETE examples

Deletes a study.

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