Skip to main content

authorized_view_sets

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

Overview

Nameauthorized_view_sets
TypeResource
Idgoogle.contactcenterinsights.authorized_view_sets

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the AuthorizedViewSet. Format: projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}
createTimestring (google-datetime)Output only. Create time.
displayNamestringDisplay Name. Limit 64 characters.
updateTimestring (google-datetime)Output only. Update time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, authorizedViewSetsIdGet AuthorizedViewSet
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByList AuthorizedViewSets
createinsertprojectsId, locationsIdauthorizedViewSetIdCreate AuthorizedViewSet
patchupdateprojectsId, locationsId, authorizedViewSetsIdupdateMaskUpdates an AuthorizedViewSet.
deletedeleteprojectsId, locationsId, authorizedViewSetsIdforceDeletes an AuthorizedViewSet.

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
locationsIdstring
projectsIdstring
authorizedViewSetIdstring
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Get AuthorizedViewSet

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

INSERT examples

Create AuthorizedViewSet

INSERT INTO google.contactcenterinsights.authorized_view_sets (
data__name,
data__displayName,
projectsId,
locationsId,
authorizedViewSetId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ authorizedViewSetId }}'
RETURNING
name,
createTime,
displayName,
updateTime
;

UPDATE examples

Updates an AuthorizedViewSet.

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

DELETE examples

Deletes an AuthorizedViewSet.

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