Skip to main content

locations

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

Overview

Namelocations
TypeResource
Idgoogle.contactcenteraiplatform.locations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
contactCenterCountLimitinteger (int32)Deprecated: Use the Quota fields instead. Reflects the count limit of contact centers on a billing account.
contactCenterCountSuminteger (int32)Deprecated: Use the Quota fields instead. Reflects the count sum of contact centers on a billing account.
quotasarrayQuota details per contact center instance type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
query_contact_center_quotaselectprojectsId, locationsIdQueries the contact center quota, an aggregation over all the projects, that belongs to the billing account, which the input project belongs to.
getselectprojectsId, locationsIdGets information about a location.
listselectprojectsIdpageToken, filter, pageSize, extraLocationTypesLists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
generate_shiftsexecprojectsId, locationsIdGenerates shifts constrained by various parameters.

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
extraLocationTypesstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Queries the contact center quota, an aggregation over all the projects, that belongs to the billing account, which the input project belongs to.

SELECT
contactCenterCountLimit,
contactCenterCountSum,
quotas
FROM google.contactcenteraiplatform.locations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
;

Lifecycle Methods

Generates shifts constrained by various parameters.

EXEC google.contactcenteraiplatform.locations.generate_shifts
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"planningHorizon": "{{ planningHorizon }}",
"workforceDemands": "{{ workforceDemands }}",
"solverConfig": "{{ solverConfig }}",
"employeeInfo": "{{ employeeInfo }}",
"shiftTemplates": "{{ shiftTemplates }}"
}'
;