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;
22
23/**
24 * The "issues" collection of methods.
25 * Typical usage is:
26 *  <code>
27 *   $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
28 *   $issues = $contactcenterinsightsService->issues;
29 *  </code>
30 */
31class ProjectsLocationsIssueModelsIssues extends \Google\Service\Resource
32{
33  /**
34   * Gets an issue. (issues.get)
35   *
36   * @param string $name Required. The name of the issue to get.
37   * @param array $optParams Optional parameters.
38   * @return GoogleCloudContactcenterinsightsV1Issue
39   */
40  public function get($name, $optParams = [])
41  {
42    $params = ['name' => $name];
43    $params = array_merge($params, $optParams);
44    return $this->call('get', [$params], GoogleCloudContactcenterinsightsV1Issue::class);
45  }
46  /**
47   * Lists issues. (issues.listProjectsLocationsIssueModelsIssues)
48   *
49   * @param string $parent Required. The parent resource of the issue.
50   * @param array $optParams Optional parameters.
51   * @return GoogleCloudContactcenterinsightsV1ListIssuesResponse
52   */
53  public function listProjectsLocationsIssueModelsIssues($parent, $optParams = [])
54  {
55    $params = ['parent' => $parent];
56    $params = array_merge($params, $optParams);
57    return $this->call('list', [$params], GoogleCloudContactcenterinsightsV1ListIssuesResponse::class);
58  }
59  /**
60   * Updates an issue. (issues.patch)
61   *
62   * @param string $name Immutable. The resource name of the issue. Format: projec
63   * ts/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
64   * @param GoogleCloudContactcenterinsightsV1Issue $postBody
65   * @param array $optParams Optional parameters.
66   *
67   * @opt_param string updateMask The list of fields to be updated.
68   * @return GoogleCloudContactcenterinsightsV1Issue
69   */
70  public function patch($name, GoogleCloudContactcenterinsightsV1Issue $postBody, $optParams = [])
71  {
72    $params = ['name' => $name, 'postBody' => $postBody];
73    $params = array_merge($params, $optParams);
74    return $this->call('patch', [$params], GoogleCloudContactcenterinsightsV1Issue::class);
75  }
76}
77
78// Adding a class alias for backwards compatibility with the previous class name.
79class_alias(ProjectsLocationsIssueModelsIssues::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocationsIssueModelsIssues');
80