source: vendor/google/apiclient-services/src/Contactcenterinsights/Resource/ProjectsLocationsIssueModelsIssues.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 3.7 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\GoogleCloudContactcenterinsightsV1Issue;
21use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ListIssuesResponse;
22use Google\Service\Contactcenterinsights\GoogleProtobufEmpty;
23
24/**
25 * The "issues" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
29 * $issues = $contactcenterinsightsService->projects_locations_issueModels_issues;
30 * </code>
31 */
32class ProjectsLocationsIssueModelsIssues extends \Google\Service\Resource
33{
34 /**
35 * Deletes an issue. (issues.delete)
36 *
37 * @param string $name Required. The name of the issue to delete.
38 * @param array $optParams Optional parameters.
39 * @return GoogleProtobufEmpty
40 * @throws \Google\Service\Exception
41 */
42 public function delete($name, $optParams = [])
43 {
44 $params = ['name' => $name];
45 $params = array_merge($params, $optParams);
46 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
47 }
48 /**
49 * Gets an issue. (issues.get)
50 *
51 * @param string $name Required. The name of the issue to get.
52 * @param array $optParams Optional parameters.
53 * @return GoogleCloudContactcenterinsightsV1Issue
54 * @throws \Google\Service\Exception
55 */
56 public function get($name, $optParams = [])
57 {
58 $params = ['name' => $name];
59 $params = array_merge($params, $optParams);
60 return $this->call('get', [$params], GoogleCloudContactcenterinsightsV1Issue::class);
61 }
62 /**
63 * Lists issues. (issues.listProjectsLocationsIssueModelsIssues)
64 *
65 * @param string $parent Required. The parent resource of the issue.
66 * @param array $optParams Optional parameters.
67 * @return GoogleCloudContactcenterinsightsV1ListIssuesResponse
68 * @throws \Google\Service\Exception
69 */
70 public function listProjectsLocationsIssueModelsIssues($parent, $optParams = [])
71 {
72 $params = ['parent' => $parent];
73 $params = array_merge($params, $optParams);
74 return $this->call('list', [$params], GoogleCloudContactcenterinsightsV1ListIssuesResponse::class);
75 }
76 /**
77 * Updates an issue. (issues.patch)
78 *
79 * @param string $name Immutable. The resource name of the issue. Format: projec
80 * ts/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
81 * @param GoogleCloudContactcenterinsightsV1Issue $postBody
82 * @param array $optParams Optional parameters.
83 *
84 * @opt_param string updateMask The list of fields to be updated.
85 * @return GoogleCloudContactcenterinsightsV1Issue
86 * @throws \Google\Service\Exception
87 */
88 public function patch($name, GoogleCloudContactcenterinsightsV1Issue $postBody, $optParams = [])
89 {
90 $params = ['name' => $name, 'postBody' => $postBody];
91 $params = array_merge($params, $optParams);
92 return $this->call('patch', [$params], GoogleCloudContactcenterinsightsV1Issue::class);
93 }
94}
95
96// Adding a class alias for backwards compatibility with the previous class name.
97class_alias(ProjectsLocationsIssueModelsIssues::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocationsIssueModelsIssues');
Note: See TracBrowser for help on using the repository browser.