Skip to main content

investigations

Creates, updates, deletes, gets or lists an investigations resource.

Overview

Nameinvestigations
TypeResource
Idgoogle.geminicloudassist.investigations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the investigation, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}
annotationsobjectOptional. Additional annotations on the investigation. (id: InvestigationAnnotations)
createTimestring (google-datetime)Output only. The time when the investigation was created.
errorobjectThe Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. (id: Status)
executionStatestringOutput only. The execution state of the investigation.
labelsobjectOptional. User-defined labels for the investigation.
observationsobjectOptional. Observations about the project state that comprise the contents of the investigation.
observerStatusesobjectOptional. Statuses of observers which have been invoked in order to run the investigation.
operationstringOutput only. The resource name of the Run operation most recently performed on the investigation, of the form: projects/{project_number}/locations/{location_id}/operations/{operation_id}
revisionstringOutput only. Resource name of the investigation's current revision, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}/revisions/{revision_id}
revisionIndexinteger (int32)Output only. Index of the current revision of the investigation.
revisionPredecessorstringOptional. The name of the revision that was this revision's predecessor.
titlestringOptional. Human-readable display title for the investigation.
updateTimestring (google-datetime)Output only. The time when the investigation was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, investigationsIdGets details of a single Investigation.
listselectprojectsId, locationsIdfilter, pageToken, pageSize, orderByLists Investigations in a given project and location.
createinsertprojectsId, locationsIdrequestId, investigationIdCreates a new Investigation in a given project.
patchupdateprojectsId, locationsId, investigationsIdupdateMask, requestIdUpdates the parameters of a single Investigation.
deletedeleteprojectsId, locationsId, investigationsIdrequestIdDeletes a single Investigation.

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
investigationsIdstring
locationsIdstring
projectsIdstring
filterstring
investigationIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single Investigation.

SELECT
name,
annotations,
createTime,
error,
executionState,
labels,
observations,
observerStatuses,
operation,
revision,
revisionIndex,
revisionPredecessor,
title,
updateTime
FROM google.geminicloudassist.investigations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND investigationsId = '{{ investigationsId }}' -- required
;

INSERT examples

Creates a new Investigation in a given project.

INSERT INTO google.geminicloudassist.investigations (
data__name,
data__observerStatuses,
data__revisionPredecessor,
data__annotations,
data__title,
data__observations,
data__labels,
projectsId,
locationsId,
requestId,
investigationId
)
SELECT
'{{ name }}',
'{{ observerStatuses }}',
'{{ revisionPredecessor }}',
'{{ annotations }}',
'{{ title }}',
'{{ observations }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}',
'{{ investigationId }}'
RETURNING
name,
annotations,
createTime,
error,
executionState,
labels,
observations,
observerStatuses,
operation,
revision,
revisionIndex,
revisionPredecessor,
title,
updateTime
;

UPDATE examples

Updates the parameters of a single Investigation.

UPDATE google.geminicloudassist.investigations
SET
data__name = '{{ name }}',
data__observerStatuses = '{{ observerStatuses }}',
data__revisionPredecessor = '{{ revisionPredecessor }}',
data__annotations = '{{ annotations }}',
data__title = '{{ title }}',
data__observations = '{{ observations }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND investigationsId = '{{ investigationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
annotations,
createTime,
error,
executionState,
labels,
observations,
observerStatuses,
operation,
revision,
revisionIndex,
revisionPredecessor,
title,
updateTime;

DELETE examples

Deletes a single Investigation.

DELETE FROM google.geminicloudassist.investigations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND investigationsId = '{{ investigationsId }}' --required
AND requestId = '{{ requestId }}'
;