Skip to main content

views

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

Overview

Nameviews
TypeResource
Idgoogle.contactcenterinsights.views

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
createTimestring (google-datetime)Output only. The time at which this view was created.
displayNamestringThe human-readable display name of the view.
updateTimestring (google-datetime)Output only. The most recent time at which the view was updated.
valuestringA 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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, viewsIdGets a view.
listselectprojectsId, locationsIdpageSize, pageTokenLists views.
createinsertprojectsId, locationsIdCreates a view.
patchupdateprojectsId, locationsId, viewsIdupdateMaskUpdates a view.
deletedeleteprojectsId, locationsId, viewsIdDeletes 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
viewsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

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;

INSERT examples

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
;

UPDATE examples

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

Deletes a view.

DELETE FROM google.contactcenterinsights.views
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND viewsId = '{{ viewsId }}' --required;