Skip to main content

authorized_views

Creates, updates, deletes, gets or lists an authorized_views resource.

Overview

Nameauthorized_views
TypeResource
Idgoogle.contactcenterinsights.authorized_views

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the AuthorizedView. Format: projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}
conversationFilterstringA filter to reduce conversation results to a specific subset. The AuthorizedView's assigned permission (read/write) could be applied to the subset of conversations. If conversation_filter is empty, there is no restriction on the conversations that the AuthorizedView can access. Having authorizedViews.get access to the AuthorizedView means having the same read/write access to the Conversations (as well as metadata/annotations linked to the conversation) that this AuthorizedView has.
createTimestring (google-datetime)Output only. The time at which the authorized view was created.
displayNamestringDisplay Name. Limit 64 characters.
updateTimestring (google-datetime)Output only. The most recent time at which the authorized view was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, authorizedViewSetsId, authorizedViewsIdGet AuthorizedView
listselectprojectsId, locationsId, authorizedViewSetsIdpageSize, pageToken, filter, orderByList AuthorizedViewSets
createinsertprojectsId, locationsId, authorizedViewSetsIdauthorizedViewIdCreate AuthorizedView
patchupdateprojectsId, locationsId, authorizedViewSetsId, authorizedViewsIdupdateMaskUpdates an AuthorizedView.
deletedeleteprojectsId, locationsId, authorizedViewSetsId, authorizedViewsIdDeletes an AuthorizedView.
query_metricsexecprojectsId, locationsId, authorizedViewSetsId, authorizedViewsIdQuery metrics.
query_performance_overviewexecprojectsId, locationsId, authorizedViewSetsId, authorizedViewsIdGenerates a summary of predefined performance metrics for a set of conversations. Conversations can be specified by specifying a time window and an agent id, for now. The summary includes a comparison of metrics computed for conversations in the previous time period, and also a comparison with peers in the same time period.
searchexecprojectsId, locationsId, authorizedViewSetsIdpageSize, pageToken, query, orderBySearchAuthorizedViewSets

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
authorizedViewSetsIdstring
authorizedViewsIdstring
locationsIdstring
projectsIdstring
authorizedViewIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
querystring
updateMaskstring (google-fieldmask)

SELECT examples

Get AuthorizedView

SELECT
name,
conversationFilter,
createTime,
displayName,
updateTime
FROM google.contactcenterinsights.authorized_views
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' -- required
AND authorizedViewsId = '{{ authorizedViewsId }}' -- required;

INSERT examples

Create AuthorizedView

INSERT INTO google.contactcenterinsights.authorized_views (
data__name,
data__displayName,
data__conversationFilter,
projectsId,
locationsId,
authorizedViewSetsId,
authorizedViewId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ conversationFilter }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ authorizedViewSetsId }}',
'{{ authorizedViewId }}'
RETURNING
name,
conversationFilter,
createTime,
displayName,
updateTime
;

UPDATE examples

Updates an AuthorizedView.

UPDATE google.contactcenterinsights.authorized_views
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__conversationFilter = '{{ conversationFilter }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
conversationFilter,
createTime,
displayName,
updateTime;

DELETE examples

Deletes an AuthorizedView.

DELETE FROM google.contactcenterinsights.authorized_views
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required;

Lifecycle Methods

Query metrics.

EXEC google.contactcenterinsights.authorized_views.query_metrics 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@authorizedViewSetsId='{{ authorizedViewSetsId }}' --required,
@authorizedViewsId='{{ authorizedViewsId }}' --required
@@json=
'{
"filter": "{{ filter }}",
"timeGranularity": "{{ timeGranularity }}",
"dimensions": "{{ dimensions }}",
"measureMask": "{{ measureMask }}"
}';