Skip to main content

revisions

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

Overview​

Namerevisions
TypeResource
Idgoogle.geminicloudassist.revisions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the revision resource, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}/revisions/{revision_id}
createTimestring (google-datetime)Output only. The time when the revision was created.
indexinteger (int32)Output only. Revision index number, in order of creation.
labelsobjectOptional. User-defined labels for the revision.
snapshotobjectOptional. Snapshot of the investigation contents at this revision. (id: Investigation)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, investigationsId, revisionsIdGets details of a single revision of an Investigation.
listselectprojectsId, locationsId, investigationsIdpageSize, pageTokenLists Investigations in a given project.
createinsertprojectsId, locationsId, investigationsIdinvestigationRevisionId, requestIdDeprecated: Investigations should only be modified by the agent. Creates a new revision of a given Investigation.
deletedeleteprojectsId, locationsId, investigationsId, revisionsIdrequestIdDeletes a single revision of an Investigation. Fails if the revision is the investigation's most recent revision.
modifyexecprojectsId, locationsId, investigationsId, revisionsIdDeprecated: Investigations should only be modified by the agent. Modifies an existing investigation revision in place. This is intended for use by callers that are modifying as part of an investigation session, and do not want to create a new revision. Other callers should use UpdateInvestigation, which will create a new revision if the investigation is RUNNING.
runexecprojectsId, locationsId, investigationsId, revisionsIdDeprecated: Investigations should only be run by the agent. Run an existing revision of an 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
revisionsIdstring
investigationRevisionIdstring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples​

Gets details of a single revision of an Investigation.

SELECT
name,
createTime,
index,
labels,
snapshot
FROM google.geminicloudassist.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND investigationsId = '{{ investigationsId }}' -- required
AND revisionsId = '{{ revisionsId }}' -- required
;

INSERT examples​

Deprecated: Investigations should only be modified by the agent. Creates a new revision of a given Investigation.

INSERT INTO google.geminicloudassist.revisions (
data__labels,
data__name,
data__snapshot,
projectsId,
locationsId,
investigationsId,
investigationRevisionId,
requestId
)
SELECT
'{{ labels }}',
'{{ name }}',
'{{ snapshot }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ investigationsId }}',
'{{ investigationRevisionId }}',
'{{ requestId }}'
RETURNING
name,
createTime,
index,
labels,
snapshot
;

DELETE examples​

Deletes a single revision of an Investigation. Fails if the revision is the investigation's most recent revision.

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

Lifecycle Methods​

Deprecated: Investigations should only be modified by the agent. Modifies an existing investigation revision in place. This is intended for use by callers that are modifying as part of an investigation session, and do not want to create a new revision. Other callers should use UpdateInvestigation, which will create a new revision if the investigation is RUNNING.

EXEC google.geminicloudassist.revisions.modify
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@investigationsId='{{ investigationsId }}' --required,
@revisionsId='{{ revisionsId }}' --required
@@json=
'{
"investigation": "{{ investigation }}",
"updateMask": "{{ updateMask }}"
}'
;