views
Creates, updates, deletes, gets or lists a views
resource.
Overview
Name | views |
Type | Resource |
Id | google.contactcenterinsights.views |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view} |
createTime | string | Output only. The time at which this view was created. |
displayName | string | The human-readable display name of the view. |
updateTime | string | Output only. The most recent time at which the view was updated. |
value | string | String with specific view properties, must be non-empty. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, viewsId | Gets a view. |
list | SELECT | locationsId, projectsId | Lists views. |
create | INSERT | locationsId, projectsId | Creates a view. |
delete | DELETE | locationsId, projectsId, viewsId | Deletes a view. |
patch | UPDATE | locationsId, projectsId, viewsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.contactcenterinsights.views (
locationsId,
projectsId,
name,
displayName,
value
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ value }}'
;
- name: your_resource_model_name
props:
- name: updateTime
value: string
- name: name
value: string
- name: displayName
value: string
- name: createTime
value: string
- name: value
value: string
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 }}';