[e3d4e0a] | 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\GoogleCloudContactcenterinsightsV1FeedbackLabel;
|
---|
| 21 | use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse;
|
---|
| 22 | use Google\Service\Contactcenterinsights\GoogleProtobufEmpty;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * The "feedbackLabels" collection of methods.
|
---|
| 26 | * Typical usage is:
|
---|
| 27 | * <code>
|
---|
| 28 | * $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
|
---|
| 29 | * $feedbackLabels = $contactcenterinsightsService->projects_locations_conversations_feedbackLabels;
|
---|
| 30 | * </code>
|
---|
| 31 | */
|
---|
| 32 | class ProjectsLocationsConversationsFeedbackLabels extends \Google\Service\Resource
|
---|
| 33 | {
|
---|
| 34 | /**
|
---|
| 35 | * Create feedback label. (feedbackLabels.create)
|
---|
| 36 | *
|
---|
| 37 | * @param string $parent Required. The parent resource of the feedback label.
|
---|
| 38 | * @param GoogleCloudContactcenterinsightsV1FeedbackLabel $postBody
|
---|
| 39 | * @param array $optParams Optional parameters.
|
---|
| 40 | *
|
---|
| 41 | * @opt_param string feedbackLabelId Optional. The ID of the feedback label to
|
---|
| 42 | * create. If one is not specified it will be generated by the server.
|
---|
| 43 | * @return GoogleCloudContactcenterinsightsV1FeedbackLabel
|
---|
| 44 | * @throws \Google\Service\Exception
|
---|
| 45 | */
|
---|
| 46 | public function create($parent, GoogleCloudContactcenterinsightsV1FeedbackLabel $postBody, $optParams = [])
|
---|
| 47 | {
|
---|
| 48 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 49 | $params = array_merge($params, $optParams);
|
---|
| 50 | return $this->call('create', [$params], GoogleCloudContactcenterinsightsV1FeedbackLabel::class);
|
---|
| 51 | }
|
---|
| 52 | /**
|
---|
| 53 | * Delete feedback label. (feedbackLabels.delete)
|
---|
| 54 | *
|
---|
| 55 | * @param string $name Required. The name of the feedback label to delete.
|
---|
| 56 | * @param array $optParams Optional parameters.
|
---|
| 57 | * @return GoogleProtobufEmpty
|
---|
| 58 | * @throws \Google\Service\Exception
|
---|
| 59 | */
|
---|
| 60 | public function delete($name, $optParams = [])
|
---|
| 61 | {
|
---|
| 62 | $params = ['name' => $name];
|
---|
| 63 | $params = array_merge($params, $optParams);
|
---|
| 64 | return $this->call('delete', [$params], GoogleProtobufEmpty::class);
|
---|
| 65 | }
|
---|
| 66 | /**
|
---|
| 67 | * Get feedback label. (feedbackLabels.get)
|
---|
| 68 | *
|
---|
| 69 | * @param string $name Required. The name of the feedback label to get.
|
---|
| 70 | * @param array $optParams Optional parameters.
|
---|
| 71 | * @return GoogleCloudContactcenterinsightsV1FeedbackLabel
|
---|
| 72 | * @throws \Google\Service\Exception
|
---|
| 73 | */
|
---|
| 74 | public function get($name, $optParams = [])
|
---|
| 75 | {
|
---|
| 76 | $params = ['name' => $name];
|
---|
| 77 | $params = array_merge($params, $optParams);
|
---|
| 78 | return $this->call('get', [$params], GoogleCloudContactcenterinsightsV1FeedbackLabel::class);
|
---|
| 79 | }
|
---|
| 80 | /**
|
---|
| 81 | * List feedback labels.
|
---|
| 82 | * (feedbackLabels.listProjectsLocationsConversationsFeedbackLabels)
|
---|
| 83 | *
|
---|
| 84 | * @param string $parent Required. The parent resource of the feedback labels.
|
---|
| 85 | * @param array $optParams Optional parameters.
|
---|
| 86 | *
|
---|
| 87 | * @opt_param string filter Optional. A filter to reduce results to a specific
|
---|
| 88 | * subset. Supports disjunctions (OR) and conjunctions (AND). Automatically
|
---|
| 89 | * sorts by conversation ID. To sort by all feedback labels in a project see
|
---|
| 90 | * ListAllFeedbackLabels. Supported fields: * `issue_model_id` *
|
---|
| 91 | * `qa_question_id` * `qa_scorecard_id` * `min_create_time` * `max_create_time`
|
---|
| 92 | * * `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI,
|
---|
| 93 | * TOPIC_MODELING
|
---|
| 94 | * @opt_param int pageSize Optional. The maximum number of feedback labels to
|
---|
| 95 | * return in the response. A valid page size ranges from 0 to 100,000 inclusive.
|
---|
| 96 | * If the page size is zero or unspecified, a default page size of 100 will be
|
---|
| 97 | * chosen. Note that a call might return fewer results than the requested page
|
---|
| 98 | * size.
|
---|
| 99 | * @opt_param string pageToken Optional. The value returned by the last
|
---|
| 100 | * `ListFeedbackLabelsResponse`. This value indicates that this is a
|
---|
| 101 | * continuation of a prior `ListFeedbackLabels` call and that the system should
|
---|
| 102 | * return the next page of data.
|
---|
| 103 | * @return GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse
|
---|
| 104 | * @throws \Google\Service\Exception
|
---|
| 105 | */
|
---|
| 106 | public function listProjectsLocationsConversationsFeedbackLabels($parent, $optParams = [])
|
---|
| 107 | {
|
---|
| 108 | $params = ['parent' => $parent];
|
---|
| 109 | $params = array_merge($params, $optParams);
|
---|
| 110 | return $this->call('list', [$params], GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse::class);
|
---|
| 111 | }
|
---|
| 112 | /**
|
---|
| 113 | * Update feedback label. (feedbackLabels.patch)
|
---|
| 114 | *
|
---|
| 115 | * @param string $name Immutable. Resource name of the FeedbackLabel. Format: pr
|
---|
| 116 | * ojects/{project}/locations/{location}/conversations/{conversation}/feedbackLa
|
---|
| 117 | * bels/{feedback_label}
|
---|
| 118 | * @param GoogleCloudContactcenterinsightsV1FeedbackLabel $postBody
|
---|
| 119 | * @param array $optParams Optional parameters.
|
---|
| 120 | *
|
---|
| 121 | * @opt_param string updateMask Required. The list of fields to be updated.
|
---|
| 122 | * @return GoogleCloudContactcenterinsightsV1FeedbackLabel
|
---|
| 123 | * @throws \Google\Service\Exception
|
---|
| 124 | */
|
---|
| 125 | public function patch($name, GoogleCloudContactcenterinsightsV1FeedbackLabel $postBody, $optParams = [])
|
---|
| 126 | {
|
---|
| 127 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 128 | $params = array_merge($params, $optParams);
|
---|
| 129 | return $this->call('patch', [$params], GoogleCloudContactcenterinsightsV1FeedbackLabel::class);
|
---|
| 130 | }
|
---|
| 131 | }
|
---|
| 132 |
|
---|
| 133 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 134 | class_alias(ProjectsLocationsConversationsFeedbackLabels::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocationsConversationsFeedbackLabels');
|
---|