Skip to main content

views

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

Overview

Nameviews
TypeResource
Idgoogle.contactcenterinsights.views

Fields

NameDatatypeDescription
namestringImmutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
createTimestringOutput only. The time at which this view was created.
displayNamestringThe human-readable display name of the view.
updateTimestringOutput only. The most recent time at which the view was updated.
valuestringString with specific view properties, must be non-empty.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, viewsIdGets a view.
listSELECTlocationsId, projectsIdLists views.
createINSERTlocationsId, projectsIdCreates a view.
deleteDELETElocationsId, projectsId, viewsIdDeletes a view.
patchUPDATElocationsId, projectsId, viewsIdUpdates a view.

SELECT examples

Lists views.

SELECT
name,
createTime,
displayName,
updateTime,
value
FROM google.contactcenterinsights.views
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new views resource.

/*+ create */
INSERT INTO google.contactcenterinsights.views (
locationsId,
projectsId,
name,
displayName,
value
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ value }}'
;

UPDATE example

Updates a views resource.

/*+ update */
UPDATE google.contactcenterinsights.views
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
value = '{{ value }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND viewsId = '{{ viewsId }}';

DELETE example

Deletes the specified views resource.

/*+ delete */
DELETE FROM google.contactcenterinsights.views
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND viewsId = '{{ viewsId }}';