source: vendor/google/apiclient-services/src/Contactcenterinsights/Resource/ProjectsLocationsIssueModels.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: 8.4 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\GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse;
21use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1DeployIssueModelRequest;
22use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ExportIssueModelRequest;
23use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ImportIssueModelRequest;
24use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1IssueModel;
25use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ListIssueModelsResponse;
26use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest;
27use Google\Service\Contactcenterinsights\GoogleLongrunningOperation;
28
29/**
30 * The "issueModels" collection of methods.
31 * Typical usage is:
32 * <code>
33 * $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
34 * $issueModels = $contactcenterinsightsService->projects_locations_issueModels;
35 * </code>
36 */
37class ProjectsLocationsIssueModels extends \Google\Service\Resource
38{
39 /**
40 * Gets an issue model's statistics. (issueModels.calculateIssueModelStats)
41 *
42 * @param string $issueModel Required. The resource name of the issue model to
43 * query against.
44 * @param array $optParams Optional parameters.
45 * @return GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse
46 * @throws \Google\Service\Exception
47 */
48 public function calculateIssueModelStats($issueModel, $optParams = [])
49 {
50 $params = ['issueModel' => $issueModel];
51 $params = array_merge($params, $optParams);
52 return $this->call('calculateIssueModelStats', [$params], GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse::class);
53 }
54 /**
55 * Creates an issue model. (issueModels.create)
56 *
57 * @param string $parent Required. The parent resource of the issue model.
58 * @param GoogleCloudContactcenterinsightsV1IssueModel $postBody
59 * @param array $optParams Optional parameters.
60 * @return GoogleLongrunningOperation
61 * @throws \Google\Service\Exception
62 */
63 public function create($parent, GoogleCloudContactcenterinsightsV1IssueModel $postBody, $optParams = [])
64 {
65 $params = ['parent' => $parent, 'postBody' => $postBody];
66 $params = array_merge($params, $optParams);
67 return $this->call('create', [$params], GoogleLongrunningOperation::class);
68 }
69 /**
70 * Deletes an issue model. (issueModels.delete)
71 *
72 * @param string $name Required. The name of the issue model to delete.
73 * @param array $optParams Optional parameters.
74 * @return GoogleLongrunningOperation
75 * @throws \Google\Service\Exception
76 */
77 public function delete($name, $optParams = [])
78 {
79 $params = ['name' => $name];
80 $params = array_merge($params, $optParams);
81 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
82 }
83 /**
84 * Deploys an issue model. Returns an error if a model is already deployed. An
85 * issue model can only be used in analysis after it has been deployed.
86 * (issueModels.deploy)
87 *
88 * @param string $name Required. The issue model to deploy.
89 * @param GoogleCloudContactcenterinsightsV1DeployIssueModelRequest $postBody
90 * @param array $optParams Optional parameters.
91 * @return GoogleLongrunningOperation
92 * @throws \Google\Service\Exception
93 */
94 public function deploy($name, GoogleCloudContactcenterinsightsV1DeployIssueModelRequest $postBody, $optParams = [])
95 {
96 $params = ['name' => $name, 'postBody' => $postBody];
97 $params = array_merge($params, $optParams);
98 return $this->call('deploy', [$params], GoogleLongrunningOperation::class);
99 }
100 /**
101 * Exports an issue model to the provided destination. (issueModels.export)
102 *
103 * @param string $name Required. The issue model to export.
104 * @param GoogleCloudContactcenterinsightsV1ExportIssueModelRequest $postBody
105 * @param array $optParams Optional parameters.
106 * @return GoogleLongrunningOperation
107 * @throws \Google\Service\Exception
108 */
109 public function export($name, GoogleCloudContactcenterinsightsV1ExportIssueModelRequest $postBody, $optParams = [])
110 {
111 $params = ['name' => $name, 'postBody' => $postBody];
112 $params = array_merge($params, $optParams);
113 return $this->call('export', [$params], GoogleLongrunningOperation::class);
114 }
115 /**
116 * Gets an issue model. (issueModels.get)
117 *
118 * @param string $name Required. The name of the issue model to get.
119 * @param array $optParams Optional parameters.
120 * @return GoogleCloudContactcenterinsightsV1IssueModel
121 * @throws \Google\Service\Exception
122 */
123 public function get($name, $optParams = [])
124 {
125 $params = ['name' => $name];
126 $params = array_merge($params, $optParams);
127 return $this->call('get', [$params], GoogleCloudContactcenterinsightsV1IssueModel::class);
128 }
129 /**
130 * Imports an issue model from a Cloud Storage bucket. (issueModels.import)
131 *
132 * @param string $parent Required. The parent resource of the issue model.
133 * @param GoogleCloudContactcenterinsightsV1ImportIssueModelRequest $postBody
134 * @param array $optParams Optional parameters.
135 * @return GoogleLongrunningOperation
136 * @throws \Google\Service\Exception
137 */
138 public function import($parent, GoogleCloudContactcenterinsightsV1ImportIssueModelRequest $postBody, $optParams = [])
139 {
140 $params = ['parent' => $parent, 'postBody' => $postBody];
141 $params = array_merge($params, $optParams);
142 return $this->call('import', [$params], GoogleLongrunningOperation::class);
143 }
144 /**
145 * Lists issue models. (issueModels.listProjectsLocationsIssueModels)
146 *
147 * @param string $parent Required. The parent resource of the issue model.
148 * @param array $optParams Optional parameters.
149 * @return GoogleCloudContactcenterinsightsV1ListIssueModelsResponse
150 * @throws \Google\Service\Exception
151 */
152 public function listProjectsLocationsIssueModels($parent, $optParams = [])
153 {
154 $params = ['parent' => $parent];
155 $params = array_merge($params, $optParams);
156 return $this->call('list', [$params], GoogleCloudContactcenterinsightsV1ListIssueModelsResponse::class);
157 }
158 /**
159 * Updates an issue model. (issueModels.patch)
160 *
161 * @param string $name Immutable. The resource name of the issue model. Format:
162 * projects/{project}/locations/{location}/issueModels/{issue_model}
163 * @param GoogleCloudContactcenterinsightsV1IssueModel $postBody
164 * @param array $optParams Optional parameters.
165 *
166 * @opt_param string updateMask The list of fields to be updated.
167 * @return GoogleCloudContactcenterinsightsV1IssueModel
168 * @throws \Google\Service\Exception
169 */
170 public function patch($name, GoogleCloudContactcenterinsightsV1IssueModel $postBody, $optParams = [])
171 {
172 $params = ['name' => $name, 'postBody' => $postBody];
173 $params = array_merge($params, $optParams);
174 return $this->call('patch', [$params], GoogleCloudContactcenterinsightsV1IssueModel::class);
175 }
176 /**
177 * Undeploys an issue model. An issue model can not be used in analysis after it
178 * has been undeployed. (issueModels.undeploy)
179 *
180 * @param string $name Required. The issue model to undeploy.
181 * @param GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest $postBody
182 * @param array $optParams Optional parameters.
183 * @return GoogleLongrunningOperation
184 * @throws \Google\Service\Exception
185 */
186 public function undeploy($name, GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest $postBody, $optParams = [])
187 {
188 $params = ['name' => $name, 'postBody' => $postBody];
189 $params = array_merge($params, $optParams);
190 return $this->call('undeploy', [$params], GoogleLongrunningOperation::class);
191 }
192}
193
194// Adding a class alias for backwards compatibility with the previous class name.
195class_alias(ProjectsLocationsIssueModels::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocationsIssueModels');
Note: See TracBrowser for help on using the repository browser.