revisions
Creates, updates, deletes, gets or lists a revisions resource.
Overview
| Name | revisions |
| Type | Resource |
| Id | google.geminicloudassist.revisions |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the revision resource, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}/revisions/{revision_id} |
createTime | string (google-datetime) | Output only. The time when the revision was created. |
index | integer (int32) | Output only. Revision index number, in order of creation. |
labels | object | Optional. User-defined labels for the revision. |
snapshot | object | Holds the contents of a Gemini Cloud Assist Troubleshooting investigation. (id: Investigation) |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the revision resource, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}/revisions/{revision_id} |
createTime | string (google-datetime) | Output only. The time when the revision was created. |
index | integer (int32) | Output only. Revision index number, in order of creation. |
labels | object | Optional. User-defined labels for the revision. |
snapshot | object | Holds the contents of a Gemini Cloud Assist Troubleshooting investigation. (id: Investigation) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, investigationsId, revisionsId | Gets details of a single revision of an Investigation. | |
list | select | projectsId, locationsId, investigationsId | pageSize, pageToken | Lists Investigations in a given project. |
create | insert | projectsId, locationsId, investigationsId | investigationRevisionId, requestId | Creates a new revision of a given Investigation. |
delete | delete | projectsId, locationsId, investigationsId, revisionsId | requestId | Deletes a single revision of an Investigation. Fails if the revision is the investigation's most recent revision. |
modify | exec | projectsId, locationsId, investigationsId, revisionsId | 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. | |
run | exec | projectsId, locationsId, investigationsId, revisionsId | 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.
| Name | Datatype | Description |
|---|---|---|
investigationsId | string | |
locationsId | string | |
projectsId | string | |
revisionsId | string | |
investigationRevisionId | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string |
SELECT examples
- get
- list
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
;
Lists Investigations in a given project.
SELECT
name,
createTime,
index,
labels,
snapshot
FROM google.geminicloudassist.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND investigationsId = '{{ investigationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- create
- Manifest
Creates a new revision of a given Investigation.
INSERT INTO google.geminicloudassist.revisions (
data__name,
data__snapshot,
data__labels,
projectsId,
locationsId,
investigationsId,
investigationRevisionId,
requestId
)
SELECT
'{{ name }}',
'{{ snapshot }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ investigationsId }}',
'{{ investigationRevisionId }}',
'{{ requestId }}'
RETURNING
name,
createTime,
index,
labels,
snapshot
;
# Description fields are for documentation purposes
- name: revisions
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the revisions resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the revisions resource.
- name: investigationsId
value: "{{ investigationsId }}"
description: Required parameter for the revisions resource.
- name: name
value: "{{ name }}"
description: |
Identifier. The name of the revision resource, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}/revisions/{revision_id}
- name: snapshot
description: |
Holds the contents of a Gemini Cloud Assist Troubleshooting investigation.
value:
name: "{{ name }}"
labels: "{{ labels }}"
title: "{{ title }}"
observations: "{{ observations }}"
observerStatuses: "{{ observerStatuses }}"
executionState: "{{ executionState }}"
revisionIndex: {{ revisionIndex }}
createTime: "{{ createTime }}"
revisionPredecessor: "{{ revisionPredecessor }}"
operation: "{{ operation }}"
revision: "{{ revision }}"
error:
code: {{ code }}
message: "{{ message }}"
details: "{{ details }}"
updateTime: "{{ updateTime }}"
annotations:
supportCase: "{{ supportCase }}"
revisionLastRunInterval:
endTime: "{{ endTime }}"
startTime: "{{ startTime }}"
pagePath: "{{ pagePath }}"
extrasMap: "{{ extrasMap }}"
- name: labels
value: "{{ labels }}"
description: |
Optional. User-defined labels for the revision.
- name: investigationRevisionId
value: "{{ investigationRevisionId }}"
- name: requestId
value: "{{ requestId }}"
DELETE examples
- delete
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
- modify
- run
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 }}"
}'
;
Run an existing revision of an investigation.
EXEC google.geminicloudassist.revisions.run
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@investigationsId='{{ investigationsId }}' --required,
@revisionsId='{{ revisionsId }}' --required
@@json=
'{
"runParameters": "{{ runParameters }}"
}'
;