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

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

Upload project files

  • Property mode set to 100644
File size: 7.9 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\GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest;
21use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse;
22use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1QaScorecardRevision;
23use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest;
24use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest;
25use Google\Service\Contactcenterinsights\GoogleLongrunningOperation;
26use Google\Service\Contactcenterinsights\GoogleProtobufEmpty;
27
28/**
29 * The "revisions" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
33 * $revisions = $contactcenterinsightsService->projects_locations_qaScorecards_revisions;
34 * </code>
35 */
36class ProjectsLocationsQaScorecardsRevisions extends \Google\Service\Resource
37{
38 /**
39 * Creates a QaScorecardRevision. (revisions.create)
40 *
41 * @param string $parent Required. The parent resource of the
42 * QaScorecardRevision.
43 * @param GoogleCloudContactcenterinsightsV1QaScorecardRevision $postBody
44 * @param array $optParams Optional parameters.
45 *
46 * @opt_param string qaScorecardRevisionId Optional. A unique ID for the new
47 * QaScorecardRevision. This ID will become the final component of the
48 * QaScorecardRevision's resource name. If no ID is specified, a server-
49 * generated ID will be used. This value should be 4-64 characters and must
50 * match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are
51 * `a-z-`.
52 * @return GoogleCloudContactcenterinsightsV1QaScorecardRevision
53 * @throws \Google\Service\Exception
54 */
55 public function create($parent, GoogleCloudContactcenterinsightsV1QaScorecardRevision $postBody, $optParams = [])
56 {
57 $params = ['parent' => $parent, 'postBody' => $postBody];
58 $params = array_merge($params, $optParams);
59 return $this->call('create', [$params], GoogleCloudContactcenterinsightsV1QaScorecardRevision::class);
60 }
61 /**
62 * Deletes a QaScorecardRevision. (revisions.delete)
63 *
64 * @param string $name Required. The name of the QaScorecardRevision to delete.
65 * @param array $optParams Optional parameters.
66 *
67 * @opt_param bool force Optional. If set to true, all of this
68 * QaScorecardRevision's child resources will also be deleted. Otherwise, the
69 * request will only succeed if it has none.
70 * @return GoogleProtobufEmpty
71 * @throws \Google\Service\Exception
72 */
73 public function delete($name, $optParams = [])
74 {
75 $params = ['name' => $name];
76 $params = array_merge($params, $optParams);
77 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
78 }
79 /**
80 * Deploy a QaScorecardRevision. (revisions.deploy)
81 *
82 * @param string $name Required. The name of the QaScorecardRevision to deploy.
83 * @param GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest $postBody
84 * @param array $optParams Optional parameters.
85 * @return GoogleCloudContactcenterinsightsV1QaScorecardRevision
86 * @throws \Google\Service\Exception
87 */
88 public function deploy($name, GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest $postBody, $optParams = [])
89 {
90 $params = ['name' => $name, 'postBody' => $postBody];
91 $params = array_merge($params, $optParams);
92 return $this->call('deploy', [$params], GoogleCloudContactcenterinsightsV1QaScorecardRevision::class);
93 }
94 /**
95 * Gets a QaScorecardRevision. (revisions.get)
96 *
97 * @param string $name Required. The name of the QaScorecardRevision to get.
98 * @param array $optParams Optional parameters.
99 * @return GoogleCloudContactcenterinsightsV1QaScorecardRevision
100 * @throws \Google\Service\Exception
101 */
102 public function get($name, $optParams = [])
103 {
104 $params = ['name' => $name];
105 $params = array_merge($params, $optParams);
106 return $this->call('get', [$params], GoogleCloudContactcenterinsightsV1QaScorecardRevision::class);
107 }
108 /**
109 * Lists all revisions under the parent QaScorecard.
110 * (revisions.listProjectsLocationsQaScorecardsRevisions)
111 *
112 * @param string $parent Required. The parent resource of the scorecard
113 * revisions. To list all revisions of all scorecards, substitute the
114 * QaScorecard ID with a '-' character.
115 * @param array $optParams Optional parameters.
116 *
117 * @opt_param string filter Optional. A filter to reduce results to a specific
118 * subset. Useful for querying scorecard revisions with specific properties.
119 * @opt_param int pageSize Optional. The maximum number of scorecard revisions
120 * to return in the response. If the value is zero, the service will select a
121 * default size. A call might return fewer objects than requested. A non-empty
122 * `next_page_token` in the response indicates that more data is available.
123 * @opt_param string pageToken Optional. The value returned by the last
124 * `ListQaScorecardRevisionsResponse`. This value indicates that this is a
125 * continuation of a prior `ListQaScorecardRevisions` call and that the system
126 * should return the next page of data.
127 * @return GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse
128 * @throws \Google\Service\Exception
129 */
130 public function listProjectsLocationsQaScorecardsRevisions($parent, $optParams = [])
131 {
132 $params = ['parent' => $parent];
133 $params = array_merge($params, $optParams);
134 return $this->call('list', [$params], GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse::class);
135 }
136 /**
137 * Fine tune one or more QaModels. (revisions.tuneQaScorecardRevision)
138 *
139 * @param string $parent Required. The parent resource for new fine tuning job
140 * instance.
141 * @param GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest $postBody
142 * @param array $optParams Optional parameters.
143 * @return GoogleLongrunningOperation
144 * @throws \Google\Service\Exception
145 */
146 public function tuneQaScorecardRevision($parent, GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest $postBody, $optParams = [])
147 {
148 $params = ['parent' => $parent, 'postBody' => $postBody];
149 $params = array_merge($params, $optParams);
150 return $this->call('tuneQaScorecardRevision', [$params], GoogleLongrunningOperation::class);
151 }
152 /**
153 * Undeploy a QaScorecardRevision. (revisions.undeploy)
154 *
155 * @param string $name Required. The name of the QaScorecardRevision to
156 * undeploy.
157 * @param GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest $postBody
158 * @param array $optParams Optional parameters.
159 * @return GoogleCloudContactcenterinsightsV1QaScorecardRevision
160 * @throws \Google\Service\Exception
161 */
162 public function undeploy($name, GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest $postBody, $optParams = [])
163 {
164 $params = ['name' => $name, 'postBody' => $postBody];
165 $params = array_merge($params, $optParams);
166 return $this->call('undeploy', [$params], GoogleCloudContactcenterinsightsV1QaScorecardRevision::class);
167 }
168}
169
170// Adding a class alias for backwards compatibility with the previous class name.
171class_alias(ProjectsLocationsQaScorecardsRevisions::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocationsQaScorecardsRevisions');
Note: See TracBrowser for help on using the repository browser.