source: vendor/google/apiclient-services/src/Contactcenterinsights/Resource/ProjectsLocations.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 7.5 KB
Line 
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
18namespace Google\Service\Contactcenterinsights\Resource;
19
20use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest;
21use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest;
22use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1EncryptionSpec;
23use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse;
24use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1QueryMetricsRequest;
25use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1Settings;
26use Google\Service\Contactcenterinsights\GoogleLongrunningOperation;
27
28/**
29 * The "locations" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
33 * $locations = $contactcenterinsightsService->projects_locations;
34 * </code>
35 */
36class ProjectsLocations extends \Google\Service\Resource
37{
38 /**
39 * Download feedback labels in bulk. (locations.bulkDownloadFeedbackLabels)
40 *
41 * @param string $parent Required. The parent resource for new feedback labels.
42 * @param GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest $postBody
43 * @param array $optParams Optional parameters.
44 * @return GoogleLongrunningOperation
45 * @throws \Google\Service\Exception
46 */
47 public function bulkDownloadFeedbackLabels($parent, GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest $postBody, $optParams = [])
48 {
49 $params = ['parent' => $parent, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('bulkDownloadFeedbackLabels', [$params], GoogleLongrunningOperation::class);
52 }
53 /**
54 * Upload feedback labels in bulk. (locations.bulkUploadFeedbackLabels)
55 *
56 * @param string $parent Required. The parent resource for new feedback labels.
57 * @param GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest $postBody
58 * @param array $optParams Optional parameters.
59 * @return GoogleLongrunningOperation
60 * @throws \Google\Service\Exception
61 */
62 public function bulkUploadFeedbackLabels($parent, GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest $postBody, $optParams = [])
63 {
64 $params = ['parent' => $parent, 'postBody' => $postBody];
65 $params = array_merge($params, $optParams);
66 return $this->call('bulkUploadFeedbackLabels', [$params], GoogleLongrunningOperation::class);
67 }
68 /**
69 * Gets location-level encryption key specification.
70 * (locations.getEncryptionSpec)
71 *
72 * @param string $name Required. The name of the encryption spec resource to
73 * get.
74 * @param array $optParams Optional parameters.
75 * @return GoogleCloudContactcenterinsightsV1EncryptionSpec
76 * @throws \Google\Service\Exception
77 */
78 public function getEncryptionSpec($name, $optParams = [])
79 {
80 $params = ['name' => $name];
81 $params = array_merge($params, $optParams);
82 return $this->call('getEncryptionSpec', [$params], GoogleCloudContactcenterinsightsV1EncryptionSpec::class);
83 }
84 /**
85 * Gets project-level settings. (locations.getSettings)
86 *
87 * @param string $name Required. The name of the settings resource to get.
88 * @param array $optParams Optional parameters.
89 * @return GoogleCloudContactcenterinsightsV1Settings
90 * @throws \Google\Service\Exception
91 */
92 public function getSettings($name, $optParams = [])
93 {
94 $params = ['name' => $name];
95 $params = array_merge($params, $optParams);
96 return $this->call('getSettings', [$params], GoogleCloudContactcenterinsightsV1Settings::class);
97 }
98 /**
99 * List all feedback labels by project number. (locations.listAllFeedbackLabels)
100 *
101 * @param string $parent Required. The parent resource of all feedback labels
102 * per project.
103 * @param array $optParams Optional parameters.
104 *
105 * @opt_param string filter Optional. A filter to reduce results to a specific
106 * subset in the entire project. Supports disjunctions (OR) and conjunctions
107 * (AND). Supported fields: * `issue_model_id` * `qa_question_id` *
108 * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time`
109 * * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
110 * @opt_param int pageSize Optional. The maximum number of feedback labels to
111 * return in the response. A valid page size ranges from 0 to 100,000 inclusive.
112 * If the page size is zero or unspecified, a default page size of 100 will be
113 * chosen. Note that a call might return fewer results than the requested page
114 * size.
115 * @opt_param string pageToken Optional. The value returned by the last
116 * `ListAllFeedbackLabelsResponse`. This value indicates that this is a
117 * continuation of a prior `ListAllFeedbackLabels` call and that the system
118 * should return the next page of data.
119 * @return GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse
120 * @throws \Google\Service\Exception
121 */
122 public function listAllFeedbackLabels($parent, $optParams = [])
123 {
124 $params = ['parent' => $parent];
125 $params = array_merge($params, $optParams);
126 return $this->call('listAllFeedbackLabels', [$params], GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse::class);
127 }
128 /**
129 * Query metrics. (locations.queryMetrics)
130 *
131 * @param string $location Required. The location of the data.
132 * "projects/{project}/locations/{location}"
133 * @param GoogleCloudContactcenterinsightsV1QueryMetricsRequest $postBody
134 * @param array $optParams Optional parameters.
135 * @return GoogleLongrunningOperation
136 * @throws \Google\Service\Exception
137 */
138 public function queryMetrics($location, GoogleCloudContactcenterinsightsV1QueryMetricsRequest $postBody, $optParams = [])
139 {
140 $params = ['location' => $location, 'postBody' => $postBody];
141 $params = array_merge($params, $optParams);
142 return $this->call('queryMetrics', [$params], GoogleLongrunningOperation::class);
143 }
144 /**
145 * Updates project-level settings. (locations.updateSettings)
146 *
147 * @param string $name Immutable. The resource name of the settings resource.
148 * Format: projects/{project}/locations/{location}/settings
149 * @param GoogleCloudContactcenterinsightsV1Settings $postBody
150 * @param array $optParams Optional parameters.
151 *
152 * @opt_param string updateMask Required. The list of fields to be updated.
153 * @return GoogleCloudContactcenterinsightsV1Settings
154 * @throws \Google\Service\Exception
155 */
156 public function updateSettings($name, GoogleCloudContactcenterinsightsV1Settings $postBody, $optParams = [])
157 {
158 $params = ['name' => $name, 'postBody' => $postBody];
159 $params = array_merge($params, $optParams);
160 return $this->call('updateSettings', [$params], GoogleCloudContactcenterinsightsV1Settings::class);
161 }
162}
163
164// Adding a class alias for backwards compatibility with the previous class name.
165class_alias(ProjectsLocations::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocations');
Note: See TracBrowser for help on using the repository browser.