1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Contactcenterinsights\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1CalculateStatsResponse;
|
---|
21 | use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1QueryMetricsRequest;
|
---|
22 | use Google\Service\Contactcenterinsights\GoogleLongrunningOperation;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "authorizedView" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
|
---|
29 | * $authorizedView = $contactcenterinsightsService->projects_locations_authorizedViewSet_authorizedView;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class ProjectsLocationsAuthorizedViewSetAuthorizedView extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * Gets conversation statistics. (authorizedView.calculateStats)
|
---|
36 | *
|
---|
37 | * @param string $location Required. The location of the conversations.
|
---|
38 | * @param array $optParams Optional parameters.
|
---|
39 | *
|
---|
40 | * @opt_param string filter A filter to reduce results to a specific subset.
|
---|
41 | * This field is useful for getting statistics about conversations with specific
|
---|
42 | * properties.
|
---|
43 | * @return GoogleCloudContactcenterinsightsV1CalculateStatsResponse
|
---|
44 | * @throws \Google\Service\Exception
|
---|
45 | */
|
---|
46 | public function calculateStats($location, $optParams = [])
|
---|
47 | {
|
---|
48 | $params = ['location' => $location];
|
---|
49 | $params = array_merge($params, $optParams);
|
---|
50 | return $this->call('calculateStats', [$params], GoogleCloudContactcenterinsightsV1CalculateStatsResponse::class);
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * Query metrics. (authorizedView.queryMetrics)
|
---|
54 | *
|
---|
55 | * @param string $location Required. The location of the data.
|
---|
56 | * "projects/{project}/locations/{location}"
|
---|
57 | * @param GoogleCloudContactcenterinsightsV1QueryMetricsRequest $postBody
|
---|
58 | * @param array $optParams Optional parameters.
|
---|
59 | * @return GoogleLongrunningOperation
|
---|
60 | * @throws \Google\Service\Exception
|
---|
61 | */
|
---|
62 | public function queryMetrics($location, GoogleCloudContactcenterinsightsV1QueryMetricsRequest $postBody, $optParams = [])
|
---|
63 | {
|
---|
64 | $params = ['location' => $location, 'postBody' => $postBody];
|
---|
65 | $params = array_merge($params, $optParams);
|
---|
66 | return $this->call('queryMetrics', [$params], GoogleLongrunningOperation::class);
|
---|
67 | }
|
---|
68 | }
|
---|
69 |
|
---|
70 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
71 | class_alias(ProjectsLocationsAuthorizedViewSetAuthorizedView::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocationsAuthorizedViewSetAuthorizedView');
|
---|