Debian Codegraph @

docs/dyn/contactcenterinsights_v1.projects.locations.issueModels.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="contactcenterinsights_v1.html">Contact Center AI Insights API</a> . <a href="contactcenterinsights_v1.projects.html">projects</a> . <a href="contactcenterinsights_v1.projects.locations.html">locations</a> . <a href="contactcenterinsights_v1.projects.locations.issueModels.html">issueModels</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="contactcenterinsights_v1.projects.locations.issueModels.issues.html">issues()</a></code>
79 </p>
80 <p class="firstline">Returns the issues Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#calculateIssueModelStats">calculateIssueModelStats(issueModel, x__xgafv=None)</a></code></p>
84 <p class="firstline">Gets an issue model's statistics.</p>
85 <p class="toc_element">
86 <code><a href="#close">close()</a></code></p>
87 <p class="firstline">Close httplib2 connections.</p>
88 <p class="toc_element">
89 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Creates an issue model.</p>
91 <p class="toc_element">
92 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Deletes an issue model.</p>
94 <p class="toc_element">
95 <code><a href="#deploy">deploy(name, body=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Deploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed.</p>
97 <p class="toc_element">
98 <code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Exports an issue model to the provided destination.</p>
100 <p class="toc_element">
101 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
102 <p class="firstline">Gets an issue model.</p>
103 <p class="toc_element">
104 <code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Imports an issue model from a Cloud Storage bucket.</p>
106 <p class="toc_element">
107 <code><a href="#list">list(parent, x__xgafv=None)</a></code></p>
108 <p class="firstline">Lists issue models.</p>
109 <p class="toc_element">
110 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Updates an issue model.</p>
112 <p class="toc_element">
113 <code><a href="#undeploy">undeploy(name, body=None, x__xgafv=None)</a></code></p>
114 <p class="firstline">Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.</p>
115 <h3>Method Details</h3>
116 <div class="method">
117 <code class="details" id="calculateIssueModelStats">calculateIssueModelStats(issueModel, x__xgafv=None)</code>
118 <pre>Gets an issue model&#x27;s statistics.
119
120 Args:
121 issueModel: string, Required. The resource name of the issue model to query against. (required)
122 x__xgafv: string, V1 error format.
123 Allowed values
124 1 - v1 error format
125 2 - v2 error format
126
127 Returns:
128 An object of the form:
129
130 { # Response of querying an issue model&#x27;s statistics.
131 &quot;currentStats&quot;: { # Aggregated statistics about an issue model. # The latest label statistics for the queried issue model. Includes results on both training data and data labeled after deployment.
132 &quot;analyzedConversationsCount&quot;: &quot;A String&quot;, # Number of conversations the issue model has analyzed at this point in time.
133 &quot;issueStats&quot;: { # Statistics on each issue. Key is the issue&#x27;s resource name.
134 &quot;a_key&quot;: { # Aggregated statistics about an issue.
135 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the issue.
136 &quot;issue&quot;: &quot;A String&quot;, # Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
137 &quot;labeledConversationsCount&quot;: &quot;A String&quot;, # Number of conversations attached to the issue at this point in time.
138 },
139 },
140 &quot;unclassifiedConversationsCount&quot;: &quot;A String&quot;, # Number of analyzed conversations for which no issue was applicable at this point in time.
141 },
142 }</pre>
143 </div>
144
145 <div class="method">
146 <code class="details" id="close">close()</code>
147 <pre>Close httplib2 connections.</pre>
148 </div>
149
150 <div class="method">
151 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
152 <pre>Creates an issue model.
153
154 Args:
155 parent: string, Required. The parent resource of the issue model. (required)
156 body: object, The request body.
157 The object takes the form of:
158
159 { # The issue model resource.
160 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this issue model was created.
161 &quot;displayName&quot;: &quot;A String&quot;, # The representative name for the issue model.
162 &quot;inputDataConfig&quot;: { # Configs for the input data used to create the issue model. # Configs for the input data that used to create the issue model.
163 &quot;filter&quot;: &quot;A String&quot;, # A filter to reduce the conversations used for training the model to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
164 &quot;medium&quot;: &quot;A String&quot;, # Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.
165 &quot;trainingConversationsCount&quot;: &quot;A String&quot;, # Output only. Number of conversations used in training. Output only.
166 },
167 &quot;issueCount&quot;: &quot;A String&quot;, # Output only. Number of issues in this issue model.
168 &quot;languageCode&quot;: &quot;A String&quot;, # Language of the model.
169 &quot;modelType&quot;: &quot;A String&quot;, # Type of the model.
170 &quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
171 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the model.
172 &quot;trainingStats&quot;: { # Aggregated statistics about an issue model. # Output only. Immutable. The issue model&#x27;s label statistics on its training data.
173 &quot;analyzedConversationsCount&quot;: &quot;A String&quot;, # Number of conversations the issue model has analyzed at this point in time.
174 &quot;issueStats&quot;: { # Statistics on each issue. Key is the issue&#x27;s resource name.
175 &quot;a_key&quot;: { # Aggregated statistics about an issue.
176 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the issue.
177 &quot;issue&quot;: &quot;A String&quot;, # Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
178 &quot;labeledConversationsCount&quot;: &quot;A String&quot;, # Number of conversations attached to the issue at this point in time.
179 },
180 },
181 &quot;unclassifiedConversationsCount&quot;: &quot;A String&quot;, # Number of analyzed conversations for which no issue was applicable at this point in time.
182 },
183 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The most recent time at which the issue model was updated.
184 }
185
186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
190
191 Returns:
192 An object of the form:
193
194 { # This resource represents a long-running operation that is the result of a network API call.
195 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
196 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
197 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
198 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
199 {
200 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
201 },
202 ],
203 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
204 },
205 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
206 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
207 },
208 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
209 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
211 },
212 }</pre>
213 </div>
214
215 <div class="method">
216 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
217 <pre>Deletes an issue model.
218
219 Args:
220 name: string, Required. The name of the issue model to delete. (required)
221 x__xgafv: string, V1 error format.
222 Allowed values
223 1 - v1 error format
224 2 - v2 error format
225
226 Returns:
227 An object of the form:
228
229 { # This resource represents a long-running operation that is the result of a network API call.
230 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
231 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
232 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
233 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
234 {
235 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
236 },
237 ],
238 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
239 },
240 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
241 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
242 },
243 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
244 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
245 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
246 },
247 }</pre>
248 </div>
249
250 <div class="method">
251 <code class="details" id="deploy">deploy(name, body=None, x__xgafv=None)</code>
252 <pre>Deploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed.
253
254 Args:
255 name: string, Required. The issue model to deploy. (required)
256 body: object, The request body.
257 The object takes the form of:
258
259 { # The request to deploy an issue model.
260 &quot;name&quot;: &quot;A String&quot;, # Required. The issue model to deploy.
261 }
262
263 x__xgafv: string, V1 error format.
264 Allowed values
265 1 - v1 error format
266 2 - v2 error format
267
268 Returns:
269 An object of the form:
270
271 { # This resource represents a long-running operation that is the result of a network API call.
272 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
273 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
274 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
275 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
276 {
277 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
278 },
279 ],
280 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
281 },
282 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
283 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
284 },
285 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
286 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
287 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
288 },
289 }</pre>
290 </div>
291
292 <div class="method">
293 <code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
294 <pre>Exports an issue model to the provided destination.
295
296 Args:
297 name: string, Required. The issue model to export. (required)
298 body: object, The request body.
299 The object takes the form of:
300
301 { # Request to export an issue model.
302 &quot;gcsDestination&quot;: { # Google Cloud Storage Object URI to save the issue model to. # Google Cloud Storage URI to export the issue model to.
303 &quot;objectUri&quot;: &quot;A String&quot;, # Required. Format: `gs:///`
304 },
305 &quot;name&quot;: &quot;A String&quot;, # Required. The issue model to export.
306 }
307
308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
312
313 Returns:
314 An object of the form:
315
316 { # This resource represents a long-running operation that is the result of a network API call.
317 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
318 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
319 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
320 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
321 {
322 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
323 },
324 ],
325 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
326 },
327 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
329 },
330 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
331 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
332 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
333 },
334 }</pre>
335 </div>
336
337 <div class="method">
338 <code class="details" id="get">get(name, x__xgafv=None)</code>
339 <pre>Gets an issue model.
340
341 Args:
342 name: string, Required. The name of the issue model to get. (required)
343 x__xgafv: string, V1 error format.
344 Allowed values
345 1 - v1 error format
346 2 - v2 error format
347
348 Returns:
349 An object of the form:
350
351 { # The issue model resource.
352 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this issue model was created.
353 &quot;displayName&quot;: &quot;A String&quot;, # The representative name for the issue model.
354 &quot;inputDataConfig&quot;: { # Configs for the input data used to create the issue model. # Configs for the input data that used to create the issue model.
355 &quot;filter&quot;: &quot;A String&quot;, # A filter to reduce the conversations used for training the model to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
356 &quot;medium&quot;: &quot;A String&quot;, # Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.
357 &quot;trainingConversationsCount&quot;: &quot;A String&quot;, # Output only. Number of conversations used in training. Output only.
358 },
359 &quot;issueCount&quot;: &quot;A String&quot;, # Output only. Number of issues in this issue model.
360 &quot;languageCode&quot;: &quot;A String&quot;, # Language of the model.
361 &quot;modelType&quot;: &quot;A String&quot;, # Type of the model.
362 &quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
363 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the model.
364 &quot;trainingStats&quot;: { # Aggregated statistics about an issue model. # Output only. Immutable. The issue model&#x27;s label statistics on its training data.
365 &quot;analyzedConversationsCount&quot;: &quot;A String&quot;, # Number of conversations the issue model has analyzed at this point in time.
366 &quot;issueStats&quot;: { # Statistics on each issue. Key is the issue&#x27;s resource name.
367 &quot;a_key&quot;: { # Aggregated statistics about an issue.
368 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the issue.
369 &quot;issue&quot;: &quot;A String&quot;, # Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
370 &quot;labeledConversationsCount&quot;: &quot;A String&quot;, # Number of conversations attached to the issue at this point in time.
371 },
372 },
373 &quot;unclassifiedConversationsCount&quot;: &quot;A String&quot;, # Number of analyzed conversations for which no issue was applicable at this point in time.
374 },
375 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The most recent time at which the issue model was updated.
376 }</pre>
377 </div>
378
379 <div class="method">
380 <code class="details" id="import_">import_(parent, body=None, x__xgafv=None)</code>
381 <pre>Imports an issue model from a Cloud Storage bucket.
382
383 Args:
384 parent: string, Required. The parent resource of the issue model. (required)
385 body: object, The request body.
386 The object takes the form of:
387
388 { # Request to import an issue model.
389 &quot;createNewModel&quot;: True or False, # Optional. If set to true, will create an issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.
390 &quot;gcsSource&quot;: { # Google Cloud Storage Object URI to get the issue model file from. # Google Cloud Storage source message.
391 &quot;objectUri&quot;: &quot;A String&quot;, # Required. Format: `gs:///`
392 },
393 &quot;parent&quot;: &quot;A String&quot;, # Required. The parent resource of the issue model.
394 }
395
396 x__xgafv: string, V1 error format.
397 Allowed values
398 1 - v1 error format
399 2 - v2 error format
400
401 Returns:
402 An object of the form:
403
404 { # This resource represents a long-running operation that is the result of a network API call.
405 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
406 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
407 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
408 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
409 {
410 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
411 },
412 ],
413 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
414 },
415 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
416 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
417 },
418 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
419 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
420 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
421 },
422 }</pre>
423 </div>
424
425 <div class="method">
426 <code class="details" id="list">list(parent, x__xgafv=None)</code>
427 <pre>Lists issue models.
428
429 Args:
430 parent: string, Required. The parent resource of the issue model. (required)
431 x__xgafv: string, V1 error format.
432 Allowed values
433 1 - v1 error format
434 2 - v2 error format
435
436 Returns:
437 An object of the form:
438
439 { # The response of listing issue models.
440 &quot;issueModels&quot;: [ # The issue models that match the request.
441 { # The issue model resource.
442 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this issue model was created.
443 &quot;displayName&quot;: &quot;A String&quot;, # The representative name for the issue model.
444 &quot;inputDataConfig&quot;: { # Configs for the input data used to create the issue model. # Configs for the input data that used to create the issue model.
445 &quot;filter&quot;: &quot;A String&quot;, # A filter to reduce the conversations used for training the model to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
446 &quot;medium&quot;: &quot;A String&quot;, # Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.
447 &quot;trainingConversationsCount&quot;: &quot;A String&quot;, # Output only. Number of conversations used in training. Output only.
448 },
449 &quot;issueCount&quot;: &quot;A String&quot;, # Output only. Number of issues in this issue model.
450 &quot;languageCode&quot;: &quot;A String&quot;, # Language of the model.
451 &quot;modelType&quot;: &quot;A String&quot;, # Type of the model.
452 &quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
453 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the model.
454 &quot;trainingStats&quot;: { # Aggregated statistics about an issue model. # Output only. Immutable. The issue model&#x27;s label statistics on its training data.
455 &quot;analyzedConversationsCount&quot;: &quot;A String&quot;, # Number of conversations the issue model has analyzed at this point in time.
456 &quot;issueStats&quot;: { # Statistics on each issue. Key is the issue&#x27;s resource name.
457 &quot;a_key&quot;: { # Aggregated statistics about an issue.
458 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the issue.
459 &quot;issue&quot;: &quot;A String&quot;, # Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
460 &quot;labeledConversationsCount&quot;: &quot;A String&quot;, # Number of conversations attached to the issue at this point in time.
461 },
462 },
463 &quot;unclassifiedConversationsCount&quot;: &quot;A String&quot;, # Number of analyzed conversations for which no issue was applicable at this point in time.
464 },
465 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The most recent time at which the issue model was updated.
466 },
467 ],
468 }</pre>
469 </div>
470
471 <div class="method">
472 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
473 <pre>Updates an issue model.
474
475 Args:
476 name: string, Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model} (required)
477 body: object, The request body.
478 The object takes the form of:
479
480 { # The issue model resource.
481 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this issue model was created.
482 &quot;displayName&quot;: &quot;A String&quot;, # The representative name for the issue model.
483 &quot;inputDataConfig&quot;: { # Configs for the input data used to create the issue model. # Configs for the input data that used to create the issue model.
484 &quot;filter&quot;: &quot;A String&quot;, # A filter to reduce the conversations used for training the model to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
485 &quot;medium&quot;: &quot;A String&quot;, # Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.
486 &quot;trainingConversationsCount&quot;: &quot;A String&quot;, # Output only. Number of conversations used in training. Output only.
487 },
488 &quot;issueCount&quot;: &quot;A String&quot;, # Output only. Number of issues in this issue model.
489 &quot;languageCode&quot;: &quot;A String&quot;, # Language of the model.
490 &quot;modelType&quot;: &quot;A String&quot;, # Type of the model.
491 &quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
492 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the model.
493 &quot;trainingStats&quot;: { # Aggregated statistics about an issue model. # Output only. Immutable. The issue model&#x27;s label statistics on its training data.
494 &quot;analyzedConversationsCount&quot;: &quot;A String&quot;, # Number of conversations the issue model has analyzed at this point in time.
495 &quot;issueStats&quot;: { # Statistics on each issue. Key is the issue&#x27;s resource name.
496 &quot;a_key&quot;: { # Aggregated statistics about an issue.
497 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the issue.
498 &quot;issue&quot;: &quot;A String&quot;, # Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
499 &quot;labeledConversationsCount&quot;: &quot;A String&quot;, # Number of conversations attached to the issue at this point in time.
500 },
501 },
502 &quot;unclassifiedConversationsCount&quot;: &quot;A String&quot;, # Number of analyzed conversations for which no issue was applicable at this point in time.
503 },
504 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The most recent time at which the issue model was updated.
505 }
506
507 updateMask: string, The list of fields to be updated.
508 x__xgafv: string, V1 error format.
509 Allowed values
510 1 - v1 error format
511 2 - v2 error format
512
513 Returns:
514 An object of the form:
515
516 { # The issue model resource.
517 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this issue model was created.
518 &quot;displayName&quot;: &quot;A String&quot;, # The representative name for the issue model.
519 &quot;inputDataConfig&quot;: { # Configs for the input data used to create the issue model. # Configs for the input data that used to create the issue model.
520 &quot;filter&quot;: &quot;A String&quot;, # A filter to reduce the conversations used for training the model to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
521 &quot;medium&quot;: &quot;A String&quot;, # Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.
522 &quot;trainingConversationsCount&quot;: &quot;A String&quot;, # Output only. Number of conversations used in training. Output only.
523 },
524 &quot;issueCount&quot;: &quot;A String&quot;, # Output only. Number of issues in this issue model.
525 &quot;languageCode&quot;: &quot;A String&quot;, # Language of the model.
526 &quot;modelType&quot;: &quot;A String&quot;, # Type of the model.
527 &quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
528 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the model.
529 &quot;trainingStats&quot;: { # Aggregated statistics about an issue model. # Output only. Immutable. The issue model&#x27;s label statistics on its training data.
530 &quot;analyzedConversationsCount&quot;: &quot;A String&quot;, # Number of conversations the issue model has analyzed at this point in time.
531 &quot;issueStats&quot;: { # Statistics on each issue. Key is the issue&#x27;s resource name.
532 &quot;a_key&quot;: { # Aggregated statistics about an issue.
533 &quot;displayName&quot;: &quot;A String&quot;, # Display name of the issue.
534 &quot;issue&quot;: &quot;A String&quot;, # Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
535 &quot;labeledConversationsCount&quot;: &quot;A String&quot;, # Number of conversations attached to the issue at this point in time.
536 },
537 },
538 &quot;unclassifiedConversationsCount&quot;: &quot;A String&quot;, # Number of analyzed conversations for which no issue was applicable at this point in time.
539 },
540 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The most recent time at which the issue model was updated.
541 }</pre>
542 </div>
543
544 <div class="method">
545 <code class="details" id="undeploy">undeploy(name, body=None, x__xgafv=None)</code>
546 <pre>Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
547
548 Args:
549 name: string, Required. The issue model to undeploy. (required)
550 body: object, The request body.
551 The object takes the form of:
552
553 { # The request to undeploy an issue model.
554 &quot;name&quot;: &quot;A String&quot;, # Required. The issue model to undeploy.
555 }
556
557 x__xgafv: string, V1 error format.
558 Allowed values
559 1 - v1 error format
560 2 - v2 error format
561
562 Returns:
563 An object of the form:
564
565 { # This resource represents a long-running operation that is the result of a network API call.
566 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
567 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
568 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
569 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
570 {
571 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
572 },
573 ],
574 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
575 },
576 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
577 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
578 },
579 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
580 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
581 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
582 },
583 }</pre>
584 </div>
585
586 </body></html>