views
Creates, updates, deletes, gets or lists a views
resource.
Overview
Name | views |
Type | Resource |
Id | google.contactcenterinsights.views |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view} |
createTime | string (google-datetime) | Output only. The time at which this view was created. |
displayName | string | The human-readable display name of the view. |
updateTime | string (google-datetime) | Output only. The most recent time at which the view was updated. |
value | string | A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view} |
createTime | string (google-datetime) | Output only. The time at which this view was created. |
displayName | string | The human-readable display name of the view. |
updateTime | string (google-datetime) | Output only. The most recent time at which the view was updated. |
value | string | A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , viewsId | Gets a view. | |
list | select | projectsId , locationsId | pageSize , pageToken | Lists views. |
create | insert | projectsId , locationsId | Creates a view. | |
patch | update | projectsId , locationsId , viewsId | updateMask | Updates a view. |
delete | delete | projectsId , locationsId , viewsId | Deletes a view. |
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 |
---|---|---|
locationsId | string | |
projectsId | string | |
viewsId | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets a view.
SELECT
name,
createTime,
displayName,
updateTime,
value
FROM google.contactcenterinsights.views
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND viewsId = '{{ viewsId }}' -- required;
Lists views.
SELECT
name,
createTime,
displayName,
updateTime,
value
FROM google.contactcenterinsights.views
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
INSERT
examples
- create
- Manifest
Creates a view.
INSERT INTO google.contactcenterinsights.views (
data__name,
data__displayName,
data__value,
projectsId,
locationsId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ value }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
createTime,
displayName,
updateTime,
value
;
# Description fields are for documentation purposes
- name: views
props:
- name: projectsId
value: string
description: Required parameter for the views resource.
- name: locationsId
value: string
description: Required parameter for the views resource.
- name: name
value: string
description: >
Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
- name: displayName
value: string
description: >
The human-readable display name of the view.
- name: value
value: string
description: >
A filter to reduce conversation results to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
UPDATE
examples
- patch
Updates a view.
UPDATE google.contactcenterinsights.views
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__value = '{{ value }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND viewsId = '{{ viewsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
displayName,
updateTime,
value;
DELETE
examples
- delete
Deletes a view.
DELETE FROM google.contactcenterinsights.views
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND viewsId = '{{ viewsId }}' --required;