google-apis-contactcenterinsights_v1 0.52.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,9 +51,10 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
- # Gets location-level encryption key specification.
55
- # @param [String] name
56
- # Required. The name of the encryption spec resource to get.
54
+ # Download feedback labels in bulk.
55
+ # @param [String] parent
56
+ # Required. The parent resource for new feedback labels.
57
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest] google_cloud_contactcenterinsights_v1_bulk_download_feedback_labels_request_object
57
58
  # @param [String] fields
58
59
  # Selector specifying which fields to include in a partial response.
59
60
  # @param [String] quota_user
@@ -63,27 +64,62 @@ module Google
63
64
  # Request-specific options
64
65
  #
65
66
  # @yield [result, err] Result & error if block supplied
66
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1EncryptionSpec] parsed result object
67
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
67
68
  # @yieldparam err [StandardError] error object if request failed
68
69
  #
69
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1EncryptionSpec]
70
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
70
71
  #
71
72
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def get_project_location_encryption_spec(name, fields: nil, quota_user: nil, options: nil, &block)
75
- command = make_simple_command(:get, 'v1/{+name}', options)
76
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1EncryptionSpec::Representation
77
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1EncryptionSpec
78
- command.params['name'] = name unless name.nil?
75
+ def bulk_project_location_download_feedback_labels(parent, google_cloud_contactcenterinsights_v1_bulk_download_feedback_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:post, 'v1/{+parent}:bulkDownloadFeedbackLabels', options)
77
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest::Representation
78
+ command.request_object = google_cloud_contactcenterinsights_v1_bulk_download_feedback_labels_request_object
79
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
80
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
81
+ command.params['parent'] = parent unless parent.nil?
79
82
  command.query['fields'] = fields unless fields.nil?
80
83
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
84
  execute_or_queue_command(command, &block)
82
85
  end
83
86
 
84
- # Gets project-level settings.
87
+ # Upload feedback labels in bulk.
88
+ # @param [String] parent
89
+ # Required. The parent resource for new feedback labels.
90
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest] google_cloud_contactcenterinsights_v1_bulk_upload_feedback_labels_request_object
91
+ # @param [String] fields
92
+ # Selector specifying which fields to include in a partial response.
93
+ # @param [String] quota_user
94
+ # Available to use for quota purposes for server-side applications. Can be any
95
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
96
+ # @param [Google::Apis::RequestOptions] options
97
+ # Request-specific options
98
+ #
99
+ # @yield [result, err] Result & error if block supplied
100
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
101
+ # @yieldparam err [StandardError] error object if request failed
102
+ #
103
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
104
+ #
105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
108
+ def bulk_project_location_upload_feedback_labels(parent, google_cloud_contactcenterinsights_v1_bulk_upload_feedback_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
109
+ command = make_simple_command(:post, 'v1/{+parent}:bulkUploadFeedbackLabels', options)
110
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest::Representation
111
+ command.request_object = google_cloud_contactcenterinsights_v1_bulk_upload_feedback_labels_request_object
112
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
113
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
114
+ command.params['parent'] = parent unless parent.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Gets location-level encryption key specification.
85
121
  # @param [String] name
86
- # Required. The name of the settings resource to get.
122
+ # Required. The name of the encryption spec resource to get.
87
123
  # @param [String] fields
88
124
  # Selector specifying which fields to include in a partial response.
89
125
  # @param [String] quota_user
@@ -93,31 +129,27 @@ module Google
93
129
  # Request-specific options
94
130
  #
95
131
  # @yield [result, err] Result & error if block supplied
96
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings] parsed result object
132
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1EncryptionSpec] parsed result object
97
133
  # @yieldparam err [StandardError] error object if request failed
98
134
  #
99
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings]
135
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1EncryptionSpec]
100
136
  #
101
137
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
138
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
139
  # @raise [Google::Apis::AuthorizationError] Authorization is required
104
- def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
140
+ def get_project_location_encryption_spec(name, fields: nil, quota_user: nil, options: nil, &block)
105
141
  command = make_simple_command(:get, 'v1/{+name}', options)
106
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings::Representation
107
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings
142
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1EncryptionSpec::Representation
143
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1EncryptionSpec
108
144
  command.params['name'] = name unless name.nil?
109
145
  command.query['fields'] = fields unless fields.nil?
110
146
  command.query['quotaUser'] = quota_user unless quota_user.nil?
111
147
  execute_or_queue_command(command, &block)
112
148
  end
113
149
 
114
- # Updates project-level settings.
150
+ # Gets project-level settings.
115
151
  # @param [String] name
116
- # Immutable. The resource name of the settings resource. Format: projects/`
117
- # project`/locations/`location`/settings
118
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings] google_cloud_contactcenterinsights_v1_settings_object
119
- # @param [String] update_mask
120
- # Required. The list of fields to be updated.
152
+ # Required. The name of the settings resource to get.
121
153
  # @param [String] fields
122
154
  # Selector specifying which fields to include in a partial response.
123
155
  # @param [String] quota_user
@@ -135,23 +167,34 @@ module Google
135
167
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
168
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
169
  # @raise [Google::Apis::AuthorizationError] Authorization is required
138
- def update_project_location_settings(name, google_cloud_contactcenterinsights_v1_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
139
- command = make_simple_command(:patch, 'v1/{+name}', options)
140
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings::Representation
141
- command.request_object = google_cloud_contactcenterinsights_v1_settings_object
170
+ def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
171
+ command = make_simple_command(:get, 'v1/{+name}', options)
142
172
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings::Representation
143
173
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings
144
174
  command.params['name'] = name unless name.nil?
145
- command.query['updateMask'] = update_mask unless update_mask.nil?
146
175
  command.query['fields'] = fields unless fields.nil?
147
176
  command.query['quotaUser'] = quota_user unless quota_user.nil?
148
177
  execute_or_queue_command(command, &block)
149
178
  end
150
179
 
151
- # Analyzes multiple conversations in a single request.
180
+ # List all feedback labels by project number.
152
181
  # @param [String] parent
153
- # Required. The parent resource to create analyses in.
154
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest] google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object
182
+ # Required. The parent resource of all feedback labels per project.
183
+ # @param [String] filter
184
+ # Optional. A filter to reduce results to a specific subset in the entire
185
+ # project. Supports disjunctions (OR) and conjunctions (AND). Supported fields: *
186
+ # `issue_model_id` * `qa_question_id` * `min_create_time` * `max_create_time` *
187
+ # `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI,
188
+ # TOPIC_MODELING
189
+ # @param [Fixnum] page_size
190
+ # Optional. The maximum number of feedback labels to return in the response. A
191
+ # valid page size ranges from 0 to 100,000 inclusive. If the page size is zero
192
+ # or unspecified, a default page size of 100 will be chosen. Note that a call
193
+ # might return fewer results than the requested page size.
194
+ # @param [String] page_token
195
+ # Optional. The value returned by the last `ListAllFeedbackLabelsResponse`. This
196
+ # value indicates that this is a continuation of a prior `ListAllFeedbackLabels`
197
+ # call and that the system should return the next page of data.
155
198
  # @param [String] fields
156
199
  # Selector specifying which fields to include in a partial response.
157
200
  # @param [String] quota_user
@@ -161,31 +204,31 @@ module Google
161
204
  # Request-specific options
162
205
  #
163
206
  # @yield [result, err] Result & error if block supplied
164
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
207
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse] parsed result object
165
208
  # @yieldparam err [StandardError] error object if request failed
166
209
  #
167
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
210
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse]
168
211
  #
169
212
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
170
213
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
171
214
  # @raise [Google::Apis::AuthorizationError] Authorization is required
172
- def bulk_project_location_conversation_analyze(parent, google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
173
- command = make_simple_command(:post, 'v1/{+parent}/conversations:bulkAnalyze', options)
174
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest::Representation
175
- command.request_object = google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object
176
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
177
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
215
+ def list_project_location_all_feedback_labels(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
216
+ command = make_simple_command(:get, 'v1/{+parent}:listAllFeedbackLabels', options)
217
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse::Representation
218
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse
178
219
  command.params['parent'] = parent unless parent.nil?
220
+ command.query['filter'] = filter unless filter.nil?
221
+ command.query['pageSize'] = page_size unless page_size.nil?
222
+ command.query['pageToken'] = page_token unless page_token.nil?
179
223
  command.query['fields'] = fields unless fields.nil?
180
224
  command.query['quotaUser'] = quota_user unless quota_user.nil?
181
225
  execute_or_queue_command(command, &block)
182
226
  end
183
227
 
184
- # Deletes multiple conversations in a single request.
185
- # @param [String] parent
186
- # Required. The parent resource to delete conversations from. Format: projects/`
187
- # project`/locations/`location`
188
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest] google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object
228
+ # Query metrics.
229
+ # @param [String] location
230
+ # Required. The location of the data. "projects/`project`/locations/`location`"
231
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsRequest] google_cloud_contactcenterinsights_v1_query_metrics_request_object
189
232
  # @param [String] fields
190
233
  # Selector specifying which fields to include in a partial response.
191
234
  # @param [String] quota_user
@@ -203,24 +246,25 @@ module Google
203
246
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
206
- def bulk_project_location_conversation_delete(parent, google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
207
- command = make_simple_command(:post, 'v1/{+parent}/conversations:bulkDelete', options)
208
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest::Representation
209
- command.request_object = google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object
249
+ def query_project_location_metrics(location, google_cloud_contactcenterinsights_v1_query_metrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
250
+ command = make_simple_command(:post, 'v1/{+location}:queryMetrics', options)
251
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsRequest::Representation
252
+ command.request_object = google_cloud_contactcenterinsights_v1_query_metrics_request_object
210
253
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
211
254
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
212
- command.params['parent'] = parent unless parent.nil?
255
+ command.params['location'] = location unless location.nil?
213
256
  command.query['fields'] = fields unless fields.nil?
214
257
  command.query['quotaUser'] = quota_user unless quota_user.nil?
215
258
  execute_or_queue_command(command, &block)
216
259
  end
217
260
 
218
- # Gets conversation statistics.
219
- # @param [String] location
220
- # Required. The location of the conversations.
221
- # @param [String] filter
222
- # A filter to reduce results to a specific subset. This field is useful for
223
- # getting statistics about conversations with specific properties.
261
+ # Updates project-level settings.
262
+ # @param [String] name
263
+ # Immutable. The resource name of the settings resource. Format: projects/`
264
+ # project`/locations/`location`/settings
265
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings] google_cloud_contactcenterinsights_v1_settings_object
266
+ # @param [String] update_mask
267
+ # Required. The list of fields to be updated.
224
268
  # @param [String] fields
225
269
  # Selector specifying which fields to include in a partial response.
226
270
  # @param [String] quota_user
@@ -230,35 +274,33 @@ module Google
230
274
  # Request-specific options
231
275
  #
232
276
  # @yield [result, err] Result & error if block supplied
233
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse] parsed result object
277
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings] parsed result object
234
278
  # @yieldparam err [StandardError] error object if request failed
235
279
  #
236
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse]
280
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings]
237
281
  #
238
282
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
239
283
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
240
284
  # @raise [Google::Apis::AuthorizationError] Authorization is required
241
- def calculate_project_location_conversation_stats(location, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
242
- command = make_simple_command(:get, 'v1/{+location}/conversations:calculateStats', options)
243
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse::Representation
244
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse
245
- command.params['location'] = location unless location.nil?
246
- command.query['filter'] = filter unless filter.nil?
285
+ def update_project_location_settings(name, google_cloud_contactcenterinsights_v1_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
286
+ command = make_simple_command(:patch, 'v1/{+name}', options)
287
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings::Representation
288
+ command.request_object = google_cloud_contactcenterinsights_v1_settings_object
289
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings::Representation
290
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Settings
291
+ command.params['name'] = name unless name.nil?
292
+ command.query['updateMask'] = update_mask unless update_mask.nil?
247
293
  command.query['fields'] = fields unless fields.nil?
248
294
  command.query['quotaUser'] = quota_user unless quota_user.nil?
249
295
  execute_or_queue_command(command, &block)
250
296
  end
251
297
 
252
- # Creates a conversation. Note that this method does not support audio
253
- # transcription or redaction. Use `conversations.upload` instead.
298
+ # Creates a analysis rule.
254
299
  # @param [String] parent
255
- # Required. The parent resource of the conversation.
256
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
257
- # @param [String] conversation_id
258
- # A unique ID for the new conversation. This ID will become the final component
259
- # of the conversation's resource name. If no ID is specified, a server-generated
260
- # ID will be used. This value should be 4-64 characters and must match the
261
- # regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`
300
+ # Required. The parent resource of the analysis rule. Required. The location to
301
+ # create a analysis rule for. Format: `projects//locations/` or `projects//
302
+ # locations/`
303
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule] google_cloud_contactcenterinsights_v1_analysis_rule_object
262
304
  # @param [String] fields
263
305
  # Selector specifying which fields to include in a partial response.
264
306
  # @param [String] quota_user
@@ -268,33 +310,29 @@ module Google
268
310
  # Request-specific options
269
311
  #
270
312
  # @yield [result, err] Result & error if block supplied
271
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
313
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule] parsed result object
272
314
  # @yieldparam err [StandardError] error object if request failed
273
315
  #
274
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
316
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule]
275
317
  #
276
318
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
319
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
320
  # @raise [Google::Apis::AuthorizationError] Authorization is required
279
- def create_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_conversation_object = nil, conversation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
280
- command = make_simple_command(:post, 'v1/{+parent}/conversations', options)
281
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
282
- command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
283
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
284
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
321
+ def create_project_location_analysis_rule(parent, google_cloud_contactcenterinsights_v1_analysis_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block)
322
+ command = make_simple_command(:post, 'v1/{+parent}/analysisRules', options)
323
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule::Representation
324
+ command.request_object = google_cloud_contactcenterinsights_v1_analysis_rule_object
325
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule::Representation
326
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule
285
327
  command.params['parent'] = parent unless parent.nil?
286
- command.query['conversationId'] = conversation_id unless conversation_id.nil?
287
328
  command.query['fields'] = fields unless fields.nil?
288
329
  command.query['quotaUser'] = quota_user unless quota_user.nil?
289
330
  execute_or_queue_command(command, &block)
290
331
  end
291
332
 
292
- # Deletes a conversation.
333
+ # Deletes a analysis rule.
293
334
  # @param [String] name
294
- # Required. The name of the conversation to delete.
295
- # @param [Boolean] force
296
- # If set to true, all of this conversation's analyses will also be deleted.
297
- # Otherwise, the request will only succeed if the conversation has no analyses.
335
+ # Required. The name of the analysis rule to delete.
298
336
  # @param [String] fields
299
337
  # Selector specifying which fields to include in a partial response.
300
338
  # @param [String] quota_user
@@ -312,22 +350,19 @@ module Google
312
350
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
313
351
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
352
  # @raise [Google::Apis::AuthorizationError] Authorization is required
315
- def delete_project_location_conversation(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
353
+ def delete_project_location_analysis_rule(name, fields: nil, quota_user: nil, options: nil, &block)
316
354
  command = make_simple_command(:delete, 'v1/{+name}', options)
317
355
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
318
356
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
319
357
  command.params['name'] = name unless name.nil?
320
- command.query['force'] = force unless force.nil?
321
358
  command.query['fields'] = fields unless fields.nil?
322
359
  command.query['quotaUser'] = quota_user unless quota_user.nil?
323
360
  execute_or_queue_command(command, &block)
324
361
  end
325
362
 
326
- # Gets a conversation.
363
+ # Get a analysis rule.
327
364
  # @param [String] name
328
- # Required. The name of the conversation to get.
329
- # @param [String] view
330
- # The level of details of the conversation. Default is `FULL`.
365
+ # Required. The name of the AnalysisRule to get.
331
366
  # @param [String] fields
332
367
  # Selector specifying which fields to include in a partial response.
333
368
  # @param [String] quota_user
@@ -337,29 +372,36 @@ module Google
337
372
  # Request-specific options
338
373
  #
339
374
  # @yield [result, err] Result & error if block supplied
340
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
375
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule] parsed result object
341
376
  # @yieldparam err [StandardError] error object if request failed
342
377
  #
343
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
378
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule]
344
379
  #
345
380
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
381
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
382
  # @raise [Google::Apis::AuthorizationError] Authorization is required
348
- def get_project_location_conversation(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
383
+ def get_project_location_analysis_rule(name, fields: nil, quota_user: nil, options: nil, &block)
349
384
  command = make_simple_command(:get, 'v1/{+name}', options)
350
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
351
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
385
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule::Representation
386
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule
352
387
  command.params['name'] = name unless name.nil?
353
- command.query['view'] = view unless view.nil?
354
388
  command.query['fields'] = fields unless fields.nil?
355
389
  command.query['quotaUser'] = quota_user unless quota_user.nil?
356
390
  execute_or_queue_command(command, &block)
357
391
  end
358
392
 
359
- # Imports conversations and processes them according to the user's configuration.
393
+ # Lists analysis rules.
360
394
  # @param [String] parent
361
- # Required. The parent resource for new conversations.
362
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest] google_cloud_contactcenterinsights_v1_ingest_conversations_request_object
395
+ # Required. The parent resource of the analysis rules.
396
+ # @param [Fixnum] page_size
397
+ # Optional. The maximum number of analysis rule to return in the response. If
398
+ # this value is zero, the service will select a default size. A call may return
399
+ # fewer objects than requested. A non-empty `next_page_token` in the response
400
+ # indicates that more data is available.
401
+ # @param [String] page_token
402
+ # Optional. The value returned by the last `ListAnalysisRulesResponse`;
403
+ # indicates that this is a continuation of a prior `ListAnalysisRules` call and
404
+ # the system should return the next page of data.
363
405
  # @param [String] fields
364
406
  # Selector specifying which fields to include in a partial response.
365
407
  # @param [String] quota_user
@@ -369,51 +411,34 @@ module Google
369
411
  # Request-specific options
370
412
  #
371
413
  # @yield [result, err] Result & error if block supplied
372
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
414
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse] parsed result object
373
415
  # @yieldparam err [StandardError] error object if request failed
374
416
  #
375
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
417
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse]
376
418
  #
377
419
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
378
420
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
379
421
  # @raise [Google::Apis::AuthorizationError] Authorization is required
380
- def ingest_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_ingest_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
381
- command = make_simple_command(:post, 'v1/{+parent}/conversations:ingest', options)
382
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest::Representation
383
- command.request_object = google_cloud_contactcenterinsights_v1_ingest_conversations_request_object
384
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
385
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
422
+ def list_project_location_analysis_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
423
+ command = make_simple_command(:get, 'v1/{+parent}/analysisRules', options)
424
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse::Representation
425
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse
386
426
  command.params['parent'] = parent unless parent.nil?
427
+ command.query['pageSize'] = page_size unless page_size.nil?
428
+ command.query['pageToken'] = page_token unless page_token.nil?
387
429
  command.query['fields'] = fields unless fields.nil?
388
430
  command.query['quotaUser'] = quota_user unless quota_user.nil?
389
431
  execute_or_queue_command(command, &block)
390
432
  end
391
433
 
392
- # Lists conversations.
393
- # @param [String] parent
394
- # Required. The parent resource of the conversation.
395
- # @param [String] filter
396
- # A filter to reduce results to a specific subset. Useful for querying
397
- # conversations with specific properties.
398
- # @param [String] order_by
399
- # Optional. The attribute by which to order conversations in the response. If
400
- # empty, conversations will be ordered by descending creation time. Supported
401
- # values are one of the following: * create_time * customer_satisfaction_rating *
402
- # duration * latest_analysis * start_time * turn_count The default sort order
403
- # is ascending. To specify order, append `asc` or `desc` (`create_time desc`).
404
- # For more details, see [Google AIPs Ordering](https://google.aip.dev/132#
405
- # ordering).
406
- # @param [Fixnum] page_size
407
- # The maximum number of conversations to return in the response. A valid page
408
- # size ranges from 0 to 100,000 inclusive. If the page size is zero or
409
- # unspecified, a default page size of 100 will be chosen. Note that a call might
410
- # return fewer results than the requested page size.
411
- # @param [String] page_token
412
- # The value returned by the last `ListConversationsResponse`. This value
413
- # indicates that this is a continuation of a prior `ListConversations` call and
414
- # that the system should return the next page of data.
415
- # @param [String] view
416
- # The level of details of the conversation. Default is `BASIC`.
434
+ # Updates a analysis rule.
435
+ # @param [String] name
436
+ # Identifier. The resource name of the analysis rule. Format: projects/`project`/
437
+ # locations/`location`/analysisRules/`analysis_rule`
438
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule] google_cloud_contactcenterinsights_v1_analysis_rule_object
439
+ # @param [String] update_mask
440
+ # Optional. The list of fields to be updated. If the update_mask is not provided,
441
+ # the update will be applied to all fields.
417
442
  # @param [String] fields
418
443
  # Selector specifying which fields to include in a partial response.
419
444
  # @param [String] quota_user
@@ -423,40 +448,33 @@ module Google
423
448
  # Request-specific options
424
449
  #
425
450
  # @yield [result, err] Result & error if block supplied
426
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse] parsed result object
451
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule] parsed result object
427
452
  # @yieldparam err [StandardError] error object if request failed
428
453
  #
429
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse]
454
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule]
430
455
  #
431
456
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
457
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
458
  # @raise [Google::Apis::AuthorizationError] Authorization is required
434
- def list_project_location_conversations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
435
- command = make_simple_command(:get, 'v1/{+parent}/conversations', options)
436
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse::Representation
437
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse
438
- command.params['parent'] = parent unless parent.nil?
439
- command.query['filter'] = filter unless filter.nil?
440
- command.query['orderBy'] = order_by unless order_by.nil?
441
- command.query['pageSize'] = page_size unless page_size.nil?
442
- command.query['pageToken'] = page_token unless page_token.nil?
443
- command.query['view'] = view unless view.nil?
459
+ def patch_project_location_analysis_rule(name, google_cloud_contactcenterinsights_v1_analysis_rule_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
460
+ command = make_simple_command(:patch, 'v1/{+name}', options)
461
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule::Representation
462
+ command.request_object = google_cloud_contactcenterinsights_v1_analysis_rule_object
463
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule::Representation
464
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnalysisRule
465
+ command.params['name'] = name unless name.nil?
466
+ command.query['updateMask'] = update_mask unless update_mask.nil?
444
467
  command.query['fields'] = fields unless fields.nil?
445
468
  command.query['quotaUser'] = quota_user unless quota_user.nil?
446
469
  execute_or_queue_command(command, &block)
447
470
  end
448
471
 
449
- # Updates a conversation.
450
- # @param [String] name
451
- # Immutable. The resource name of the conversation. Format: projects/`project`/
452
- # locations/`location`/conversations/`conversation`
453
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
454
- # @param [String] update_mask
455
- # The list of fields to be updated. All possible fields can be updated by
456
- # passing `*`, or a subset of the following updateable fields can be provided: *
457
- # `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `
458
- # call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.
459
- # gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`
472
+ # Gets conversation statistics.
473
+ # @param [String] location
474
+ # Required. The location of the conversations.
475
+ # @param [String] filter
476
+ # A filter to reduce results to a specific subset. This field is useful for
477
+ # getting statistics about conversations with specific properties.
460
478
  # @param [String] fields
461
479
  # Selector specifying which fields to include in a partial response.
462
480
  # @param [String] quota_user
@@ -466,32 +484,29 @@ module Google
466
484
  # Request-specific options
467
485
  #
468
486
  # @yield [result, err] Result & error if block supplied
469
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
487
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse] parsed result object
470
488
  # @yieldparam err [StandardError] error object if request failed
471
489
  #
472
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
490
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse]
473
491
  #
474
492
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
475
493
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
476
494
  # @raise [Google::Apis::AuthorizationError] Authorization is required
477
- def patch_project_location_conversation(name, google_cloud_contactcenterinsights_v1_conversation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
478
- command = make_simple_command(:patch, 'v1/{+name}', options)
479
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
480
- command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
481
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
482
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
483
- command.params['name'] = name unless name.nil?
484
- command.query['updateMask'] = update_mask unless update_mask.nil?
485
- command.query['fields'] = fields unless fields.nil?
486
- command.query['quotaUser'] = quota_user unless quota_user.nil?
495
+ def calculate_project_location_authorized_view_set_authorized_view_stats(location, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
496
+ command = make_simple_command(:get, 'v1/{+location}:calculateStats', options)
497
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse::Representation
498
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse
499
+ command.params['location'] = location unless location.nil?
500
+ command.query['filter'] = filter unless filter.nil?
501
+ command.query['fields'] = fields unless fields.nil?
502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
487
503
  execute_or_queue_command(command, &block)
488
504
  end
489
505
 
490
- # Create a long-running conversation upload operation. This method differs from `
491
- # CreateConversation` by allowing audio transcription and optional DLP redaction.
492
- # @param [String] parent
493
- # Required. The parent resource of the conversation.
494
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest] google_cloud_contactcenterinsights_v1_upload_conversation_request_object
506
+ # Query metrics.
507
+ # @param [String] location
508
+ # Required. The location of the data. "projects/`project`/locations/`location`"
509
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsRequest] google_cloud_contactcenterinsights_v1_query_metrics_request_object
495
510
  # @param [String] fields
496
511
  # Selector specifying which fields to include in a partial response.
497
512
  # @param [String] quota_user
@@ -509,23 +524,25 @@ module Google
509
524
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
525
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
526
  # @raise [Google::Apis::AuthorizationError] Authorization is required
512
- def upload_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_upload_conversation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
513
- command = make_simple_command(:post, 'v1/{+parent}/conversations:upload', options)
514
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest::Representation
515
- command.request_object = google_cloud_contactcenterinsights_v1_upload_conversation_request_object
527
+ def query_project_location_authorized_view_set_authorized_view_metrics(location, google_cloud_contactcenterinsights_v1_query_metrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
528
+ command = make_simple_command(:post, 'v1/{+location}:queryMetrics', options)
529
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsRequest::Representation
530
+ command.request_object = google_cloud_contactcenterinsights_v1_query_metrics_request_object
516
531
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
517
532
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
518
- command.params['parent'] = parent unless parent.nil?
533
+ command.params['location'] = location unless location.nil?
519
534
  command.query['fields'] = fields unless fields.nil?
520
535
  command.query['quotaUser'] = quota_user unless quota_user.nil?
521
536
  execute_or_queue_command(command, &block)
522
537
  end
523
538
 
524
- # Creates an analysis. The long running operation is done when the analysis has
525
- # completed.
539
+ # Create feedback label.
526
540
  # @param [String] parent
527
- # Required. The parent resource of the analysis.
528
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] google_cloud_contactcenterinsights_v1_analysis_object
541
+ # Required. The parent resource of the feedback label.
542
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] google_cloud_contactcenterinsights_v1_feedback_label_object
543
+ # @param [String] feedback_label_id
544
+ # Optional. The ID of the feedback label to create. If one is not specified it
545
+ # will be generated by the server.
529
546
  # @param [String] fields
530
547
  # Selector specifying which fields to include in a partial response.
531
548
  # @param [String] quota_user
@@ -535,29 +552,30 @@ module Google
535
552
  # Request-specific options
536
553
  #
537
554
  # @yield [result, err] Result & error if block supplied
538
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
555
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
539
556
  # @yieldparam err [StandardError] error object if request failed
540
557
  #
541
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
558
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
542
559
  #
543
560
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
544
561
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
545
562
  # @raise [Google::Apis::AuthorizationError] Authorization is required
546
- def create_project_location_conversation_analysis(parent, google_cloud_contactcenterinsights_v1_analysis_object = nil, fields: nil, quota_user: nil, options: nil, &block)
547
- command = make_simple_command(:post, 'v1/{+parent}/analyses', options)
548
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
549
- command.request_object = google_cloud_contactcenterinsights_v1_analysis_object
550
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
551
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
563
+ def create_project_location_authorized_view_set_authorized_view_conversation_feedback_label(parent, google_cloud_contactcenterinsights_v1_feedback_label_object = nil, feedback_label_id: nil, fields: nil, quota_user: nil, options: nil, &block)
564
+ command = make_simple_command(:post, 'v1/{+parent}/feedbackLabels', options)
565
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
566
+ command.request_object = google_cloud_contactcenterinsights_v1_feedback_label_object
567
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
568
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
552
569
  command.params['parent'] = parent unless parent.nil?
570
+ command.query['feedbackLabelId'] = feedback_label_id unless feedback_label_id.nil?
553
571
  command.query['fields'] = fields unless fields.nil?
554
572
  command.query['quotaUser'] = quota_user unless quota_user.nil?
555
573
  execute_or_queue_command(command, &block)
556
574
  end
557
575
 
558
- # Deletes an analysis.
576
+ # Delete feedback label.
559
577
  # @param [String] name
560
- # Required. The name of the analysis to delete.
578
+ # Required. The name of the feedback label to delete.
561
579
  # @param [String] fields
562
580
  # Selector specifying which fields to include in a partial response.
563
581
  # @param [String] quota_user
@@ -575,7 +593,7 @@ module Google
575
593
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
576
594
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
595
  # @raise [Google::Apis::AuthorizationError] Authorization is required
578
- def delete_project_location_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
596
+ def delete_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, fields: nil, quota_user: nil, options: nil, &block)
579
597
  command = make_simple_command(:delete, 'v1/{+name}', options)
580
598
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
581
599
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
@@ -585,9 +603,9 @@ module Google
585
603
  execute_or_queue_command(command, &block)
586
604
  end
587
605
 
588
- # Gets an analysis.
606
+ # Get feedback label.
589
607
  # @param [String] name
590
- # Required. The name of the analysis to get.
608
+ # Required. The name of the feedback label to get.
591
609
  # @param [String] fields
592
610
  # Selector specifying which fields to include in a partial response.
593
611
  # @param [String] quota_user
@@ -597,39 +615,43 @@ module Google
597
615
  # Request-specific options
598
616
  #
599
617
  # @yield [result, err] Result & error if block supplied
600
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] parsed result object
618
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
601
619
  # @yieldparam err [StandardError] error object if request failed
602
620
  #
603
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis]
621
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
604
622
  #
605
623
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
606
624
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
607
625
  # @raise [Google::Apis::AuthorizationError] Authorization is required
608
- def get_project_location_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
626
+ def get_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, fields: nil, quota_user: nil, options: nil, &block)
609
627
  command = make_simple_command(:get, 'v1/{+name}', options)
610
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
611
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis
628
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
629
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
612
630
  command.params['name'] = name unless name.nil?
613
631
  command.query['fields'] = fields unless fields.nil?
614
632
  command.query['quotaUser'] = quota_user unless quota_user.nil?
615
633
  execute_or_queue_command(command, &block)
616
634
  end
617
635
 
618
- # Lists analyses.
636
+ # List feedback labels.
619
637
  # @param [String] parent
620
- # Required. The parent resource of the analyses.
638
+ # Required. The parent resource of the feedback labels.
621
639
  # @param [String] filter
622
- # A filter to reduce results to a specific subset. Useful for querying
623
- # conversations with specific properties.
640
+ # Optional. A filter to reduce results to a specific subset. Supports
641
+ # disjunctions (OR) and conjunctions (AND). Automatically sorts by conversation
642
+ # ID. To sort by all feedback labels in a project see ListAllFeedbackLabels.
643
+ # Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `
644
+ # min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` *
645
+ # `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
624
646
  # @param [Fixnum] page_size
625
- # The maximum number of analyses to return in the response. If this value is
626
- # zero, the service will select a default size. A call might return fewer
627
- # objects than requested. A non-empty `next_page_token` in the response
628
- # indicates that more data is available.
647
+ # Optional. The maximum number of feedback labels to return in the response. A
648
+ # valid page size ranges from 0 to 100,000 inclusive. If the page size is zero
649
+ # or unspecified, a default page size of 100 will be chosen. Note that a call
650
+ # might return fewer results than the requested page size.
629
651
  # @param [String] page_token
630
- # The value returned by the last `ListAnalysesResponse`; indicates that this is
631
- # a continuation of a prior `ListAnalyses` call and the system should return the
632
- # next page of data.
652
+ # Optional. The value returned by the last `ListFeedbackLabelsResponse`. This
653
+ # value indicates that this is a continuation of a prior `ListFeedbackLabels`
654
+ # call and that the system should return the next page of data.
633
655
  # @param [String] fields
634
656
  # Selector specifying which fields to include in a partial response.
635
657
  # @param [String] quota_user
@@ -639,18 +661,18 @@ module Google
639
661
  # Request-specific options
640
662
  #
641
663
  # @yield [result, err] Result & error if block supplied
642
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse] parsed result object
664
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse] parsed result object
643
665
  # @yieldparam err [StandardError] error object if request failed
644
666
  #
645
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse]
667
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse]
646
668
  #
647
669
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
648
670
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
649
671
  # @raise [Google::Apis::AuthorizationError] Authorization is required
650
- def list_project_location_conversation_analyses(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
651
- command = make_simple_command(:get, 'v1/{+parent}/analyses', options)
652
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse::Representation
653
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse
672
+ def list_project_location_authorized_view_set_authorized_view_conversation_feedback_labels(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
673
+ command = make_simple_command(:get, 'v1/{+parent}/feedbackLabels', options)
674
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse::Representation
675
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse
654
676
  command.params['parent'] = parent unless parent.nil?
655
677
  command.query['filter'] = filter unless filter.nil?
656
678
  command.query['pageSize'] = page_size unless page_size.nil?
@@ -660,15 +682,14 @@ module Google
660
682
  execute_or_queue_command(command, &block)
661
683
  end
662
684
 
663
- # Initializes a location-level encryption key specification. An error will
664
- # result if the location has resources already created before the initialization.
665
- # After the encryption specification is initialized at a location, it is
666
- # immutable and all newly created resources under the location will be encrypted
667
- # with the existing specification.
685
+ # Update feedback label.
668
686
  # @param [String] name
669
- # Immutable. The resource name of the encryption key specification resource.
670
- # Format: projects/`project`/locations/`location`/encryptionSpec
671
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest] google_cloud_contactcenterinsights_v1_initialize_encryption_spec_request_object
687
+ # Immutable. Resource name of the FeedbackLabel. Format: projects/`project`/
688
+ # locations/`location`/conversations/`conversation`/feedbackLabels/`
689
+ # feedback_label`
690
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] google_cloud_contactcenterinsights_v1_feedback_label_object
691
+ # @param [String] update_mask
692
+ # Required. The list of fields to be updated.
672
693
  # @param [String] fields
673
694
  # Selector specifying which fields to include in a partial response.
674
695
  # @param [String] quota_user
@@ -678,30 +699,44 @@ module Google
678
699
  # Request-specific options
679
700
  #
680
701
  # @yield [result, err] Result & error if block supplied
681
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
702
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
682
703
  # @yieldparam err [StandardError] error object if request failed
683
704
  #
684
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
705
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
685
706
  #
686
707
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
687
708
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
709
  # @raise [Google::Apis::AuthorizationError] Authorization is required
689
- def initialize_project_location_encryption_spec(name, google_cloud_contactcenterinsights_v1_initialize_encryption_spec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
690
- command = make_simple_command(:post, 'v1/{+name}:initialize', options)
691
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest::Representation
692
- command.request_object = google_cloud_contactcenterinsights_v1_initialize_encryption_spec_request_object
693
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
694
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
710
+ def patch_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, google_cloud_contactcenterinsights_v1_feedback_label_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
711
+ command = make_simple_command(:patch, 'v1/{+name}', options)
712
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
713
+ command.request_object = google_cloud_contactcenterinsights_v1_feedback_label_object
714
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
715
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
695
716
  command.params['name'] = name unless name.nil?
717
+ command.query['updateMask'] = update_mask unless update_mask.nil?
696
718
  command.query['fields'] = fields unless fields.nil?
697
719
  command.query['quotaUser'] = quota_user unless quota_user.nil?
698
720
  execute_or_queue_command(command, &block)
699
721
  end
700
722
 
701
- # Export insights data to a destination defined in the request body.
702
- # @param [String] parent
703
- # Required. The parent resource to export data from.
704
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest] google_cloud_contactcenterinsights_v1_export_insights_data_request_object
723
+ # Gets the access control policy for a resource. Returns an empty policy if the
724
+ # resource exists and does not have a policy set.
725
+ # @param [String] resource
726
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
727
+ # names](https://cloud.google.com/apis/design/resource_names) for the
728
+ # appropriate value for this field.
729
+ # @param [Fixnum] options_requested_policy_version
730
+ # Optional. The maximum policy version that will be used to format the policy.
731
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
732
+ # rejected. Requests for policies with any conditional role bindings must
733
+ # specify version 3. Policies with no conditional role bindings may specify any
734
+ # valid value or leave the field unset. The policy in the response might use the
735
+ # policy version that you specified, or it might use a lower policy version. For
736
+ # example, if you specify version 3, but the policy has no conditional role
737
+ # bindings, the response uses version 1. To learn which resources support
738
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
739
+ # google.com/iam/help/conditions/resource-policies).
705
740
  # @param [String] fields
706
741
  # Selector specifying which fields to include in a partial response.
707
742
  # @param [String] quota_user
@@ -711,29 +746,33 @@ module Google
711
746
  # Request-specific options
712
747
  #
713
748
  # @yield [result, err] Result & error if block supplied
714
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
749
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleIamV1Policy] parsed result object
715
750
  # @yieldparam err [StandardError] error object if request failed
716
751
  #
717
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
752
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleIamV1Policy]
718
753
  #
719
754
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
720
755
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
721
756
  # @raise [Google::Apis::AuthorizationError] Authorization is required
722
- def export_project_location_insightsdatum(parent, google_cloud_contactcenterinsights_v1_export_insights_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
723
- command = make_simple_command(:post, 'v1/{+parent}/insightsdata:export', options)
724
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest::Representation
725
- command.request_object = google_cloud_contactcenterinsights_v1_export_insights_data_request_object
726
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
727
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
728
- command.params['parent'] = parent unless parent.nil?
757
+ def get_project_location_authorized_view_set_authorized_view_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
758
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
759
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleIamV1Policy::Representation
760
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleIamV1Policy
761
+ command.params['resource'] = resource unless resource.nil?
762
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
729
763
  command.query['fields'] = fields unless fields.nil?
730
764
  command.query['quotaUser'] = quota_user unless quota_user.nil?
731
765
  execute_or_queue_command(command, &block)
732
766
  end
733
767
 
734
- # Gets an issue model's statistics.
735
- # @param [String] issue_model
736
- # Required. The resource name of the issue model to query against.
768
+ # Sets the access control policy on the specified resource. Replaces any
769
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
770
+ # PERMISSION_DENIED` errors.
771
+ # @param [String] resource
772
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
773
+ # names](https://cloud.google.com/apis/design/resource_names) for the
774
+ # appropriate value for this field.
775
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
737
776
  # @param [String] fields
738
777
  # Selector specifying which fields to include in a partial response.
739
778
  # @param [String] quota_user
@@ -743,28 +782,75 @@ module Google
743
782
  # Request-specific options
744
783
  #
745
784
  # @yield [result, err] Result & error if block supplied
746
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse] parsed result object
785
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleIamV1Policy] parsed result object
747
786
  # @yieldparam err [StandardError] error object if request failed
748
787
  #
749
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse]
788
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleIamV1Policy]
750
789
  #
751
790
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
752
791
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
753
792
  # @raise [Google::Apis::AuthorizationError] Authorization is required
754
- def calculate_project_location_issue_model_issue_model_stats(issue_model, fields: nil, quota_user: nil, options: nil, &block)
755
- command = make_simple_command(:get, 'v1/{+issueModel}:calculateIssueModelStats', options)
756
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse::Representation
757
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse
758
- command.params['issueModel'] = issue_model unless issue_model.nil?
793
+ def set_project_location_authorized_view_set_authorized_view_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
794
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
795
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleIamV1SetIamPolicyRequest::Representation
796
+ command.request_object = google_iam_v1_set_iam_policy_request_object
797
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleIamV1Policy::Representation
798
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleIamV1Policy
799
+ command.params['resource'] = resource unless resource.nil?
759
800
  command.query['fields'] = fields unless fields.nil?
760
801
  command.query['quotaUser'] = quota_user unless quota_user.nil?
761
802
  execute_or_queue_command(command, &block)
762
803
  end
763
804
 
764
- # Creates an issue model.
805
+ # Returns permissions that a caller has on the specified resource. If the
806
+ # resource does not exist, this will return an empty set of permissions, not a `
807
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
808
+ # permission-aware UIs and command-line tools, not for authorization checking.
809
+ # This operation may "fail open" without warning.
810
+ # @param [String] resource
811
+ # REQUIRED: The resource for which the policy detail is being requested. See [
812
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
813
+ # appropriate value for this field.
814
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
815
+ # @param [String] fields
816
+ # Selector specifying which fields to include in a partial response.
817
+ # @param [String] quota_user
818
+ # Available to use for quota purposes for server-side applications. Can be any
819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
820
+ # @param [Google::Apis::RequestOptions] options
821
+ # Request-specific options
822
+ #
823
+ # @yield [result, err] Result & error if block supplied
824
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
825
+ # @yieldparam err [StandardError] error object if request failed
826
+ #
827
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleIamV1TestIamPermissionsResponse]
828
+ #
829
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
830
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
831
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
832
+ def test_project_location_authorized_view_set_authorized_view_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
833
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
834
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleIamV1TestIamPermissionsRequest::Representation
835
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
836
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleIamV1TestIamPermissionsResponse::Representation
837
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleIamV1TestIamPermissionsResponse
838
+ command.params['resource'] = resource unless resource.nil?
839
+ command.query['fields'] = fields unless fields.nil?
840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
841
+ execute_or_queue_command(command, &block)
842
+ end
843
+
844
+ # Creates a conversation. Note that this method does not support audio
845
+ # transcription or redaction. Use `conversations.upload` instead.
765
846
  # @param [String] parent
766
- # Required. The parent resource of the issue model.
767
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel] google_cloud_contactcenterinsights_v1_issue_model_object
847
+ # Required. The parent resource of the conversation.
848
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
849
+ # @param [String] conversation_id
850
+ # A unique ID for the new conversation. This ID will become the final component
851
+ # of the conversation's resource name. If no ID is specified, a server-generated
852
+ # ID will be used. This value should be 4-64 characters and must match the
853
+ # regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`
768
854
  # @param [String] fields
769
855
  # Selector specifying which fields to include in a partial response.
770
856
  # @param [String] quota_user
@@ -774,29 +860,33 @@ module Google
774
860
  # Request-specific options
775
861
  #
776
862
  # @yield [result, err] Result & error if block supplied
777
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
863
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
778
864
  # @yieldparam err [StandardError] error object if request failed
779
865
  #
780
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
866
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
781
867
  #
782
868
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
869
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
870
  # @raise [Google::Apis::AuthorizationError] Authorization is required
785
- def create_project_location_issue_model(parent, google_cloud_contactcenterinsights_v1_issue_model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
786
- command = make_simple_command(:post, 'v1/{+parent}/issueModels', options)
787
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel::Representation
788
- command.request_object = google_cloud_contactcenterinsights_v1_issue_model_object
789
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
790
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
871
+ def create_project_location_authorized_view_set_authorized_view_conversation(parent, google_cloud_contactcenterinsights_v1_conversation_object = nil, conversation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
872
+ command = make_simple_command(:post, 'v1/{+parent}/conversations', options)
873
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
874
+ command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
875
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
876
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
791
877
  command.params['parent'] = parent unless parent.nil?
878
+ command.query['conversationId'] = conversation_id unless conversation_id.nil?
792
879
  command.query['fields'] = fields unless fields.nil?
793
880
  command.query['quotaUser'] = quota_user unless quota_user.nil?
794
881
  execute_or_queue_command(command, &block)
795
882
  end
796
883
 
797
- # Deletes an issue model.
884
+ # Deletes a conversation.
798
885
  # @param [String] name
799
- # Required. The name of the issue model to delete.
886
+ # Required. The name of the conversation to delete.
887
+ # @param [Boolean] force
888
+ # If set to true, all of this conversation's analyses will also be deleted.
889
+ # Otherwise, the request will only succeed if the conversation has no analyses.
800
890
  # @param [String] fields
801
891
  # Selector specifying which fields to include in a partial response.
802
892
  # @param [String] quota_user
@@ -806,29 +896,30 @@ module Google
806
896
  # Request-specific options
807
897
  #
808
898
  # @yield [result, err] Result & error if block supplied
809
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
899
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
810
900
  # @yieldparam err [StandardError] error object if request failed
811
901
  #
812
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
902
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
813
903
  #
814
904
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
815
905
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
816
906
  # @raise [Google::Apis::AuthorizationError] Authorization is required
817
- def delete_project_location_issue_model(name, fields: nil, quota_user: nil, options: nil, &block)
907
+ def delete_project_location_authorized_view_set_authorized_view_conversation(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
818
908
  command = make_simple_command(:delete, 'v1/{+name}', options)
819
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
820
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
909
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
910
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
821
911
  command.params['name'] = name unless name.nil?
912
+ command.query['force'] = force unless force.nil?
822
913
  command.query['fields'] = fields unless fields.nil?
823
914
  command.query['quotaUser'] = quota_user unless quota_user.nil?
824
915
  execute_or_queue_command(command, &block)
825
916
  end
826
917
 
827
- # Deploys an issue model. Returns an error if a model is already deployed. An
828
- # issue model can only be used in analysis after it has been deployed.
918
+ # Gets a conversation.
829
919
  # @param [String] name
830
- # Required. The issue model to deploy.
831
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DeployIssueModelRequest] google_cloud_contactcenterinsights_v1_deploy_issue_model_request_object
920
+ # Required. The name of the conversation to get.
921
+ # @param [String] view
922
+ # The level of details of the conversation. Default is `FULL`.
832
923
  # @param [String] fields
833
924
  # Selector specifying which fields to include in a partial response.
834
925
  # @param [String] quota_user
@@ -838,30 +929,1934 @@ module Google
838
929
  # Request-specific options
839
930
  #
840
931
  # @yield [result, err] Result & error if block supplied
841
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
932
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
842
933
  # @yieldparam err [StandardError] error object if request failed
843
934
  #
844
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
935
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
845
936
  #
846
937
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
847
938
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
848
939
  # @raise [Google::Apis::AuthorizationError] Authorization is required
849
- def deploy_project_location_issue_model(name, google_cloud_contactcenterinsights_v1_deploy_issue_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
850
- command = make_simple_command(:post, 'v1/{+name}:deploy', options)
851
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DeployIssueModelRequest::Representation
852
- command.request_object = google_cloud_contactcenterinsights_v1_deploy_issue_model_request_object
853
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
854
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
940
+ def get_project_location_authorized_view_set_authorized_view_conversation(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
941
+ command = make_simple_command(:get, 'v1/{+name}', options)
942
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
943
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
944
+ command.params['name'] = name unless name.nil?
945
+ command.query['view'] = view unless view.nil?
946
+ command.query['fields'] = fields unless fields.nil?
947
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
948
+ execute_or_queue_command(command, &block)
949
+ end
950
+
951
+ # Lists conversations.
952
+ # @param [String] parent
953
+ # Required. The parent resource of the conversation.
954
+ # @param [String] filter
955
+ # A filter to reduce results to a specific subset. Useful for querying
956
+ # conversations with specific properties.
957
+ # @param [String] order_by
958
+ # Optional. The attribute by which to order conversations in the response. If
959
+ # empty, conversations will be ordered by descending creation time. Supported
960
+ # values are one of the following: * create_time * customer_satisfaction_rating *
961
+ # duration * latest_analysis * start_time * turn_count The default sort order
962
+ # is ascending. To specify order, append `asc` or `desc` (`create_time desc`).
963
+ # For more details, see [Google AIPs Ordering](https://google.aip.dev/132#
964
+ # ordering).
965
+ # @param [Fixnum] page_size
966
+ # The maximum number of conversations to return in the response. A valid page
967
+ # size ranges from 0 to 100,000 inclusive. If the page size is zero or
968
+ # unspecified, a default page size of 100 will be chosen. Note that a call might
969
+ # return fewer results than the requested page size.
970
+ # @param [String] page_token
971
+ # The value returned by the last `ListConversationsResponse`. This value
972
+ # indicates that this is a continuation of a prior `ListConversations` call and
973
+ # that the system should return the next page of data.
974
+ # @param [String] view
975
+ # The level of details of the conversation. Default is `BASIC`.
976
+ # @param [String] fields
977
+ # Selector specifying which fields to include in a partial response.
978
+ # @param [String] quota_user
979
+ # Available to use for quota purposes for server-side applications. Can be any
980
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
981
+ # @param [Google::Apis::RequestOptions] options
982
+ # Request-specific options
983
+ #
984
+ # @yield [result, err] Result & error if block supplied
985
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse] parsed result object
986
+ # @yieldparam err [StandardError] error object if request failed
987
+ #
988
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse]
989
+ #
990
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
991
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
992
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
993
+ def list_project_location_authorized_view_set_authorized_view_conversations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
994
+ command = make_simple_command(:get, 'v1/{+parent}/conversations', options)
995
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse::Representation
996
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse
997
+ command.params['parent'] = parent unless parent.nil?
998
+ command.query['filter'] = filter unless filter.nil?
999
+ command.query['orderBy'] = order_by unless order_by.nil?
1000
+ command.query['pageSize'] = page_size unless page_size.nil?
1001
+ command.query['pageToken'] = page_token unless page_token.nil?
1002
+ command.query['view'] = view unless view.nil?
1003
+ command.query['fields'] = fields unless fields.nil?
1004
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1005
+ execute_or_queue_command(command, &block)
1006
+ end
1007
+
1008
+ # Updates a conversation.
1009
+ # @param [String] name
1010
+ # Immutable. The resource name of the conversation. Format: projects/`project`/
1011
+ # locations/`location`/conversations/`conversation`
1012
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
1013
+ # @param [String] update_mask
1014
+ # The list of fields to be updated. All possible fields can be updated by
1015
+ # passing `*`, or a subset of the following updateable fields can be provided: *
1016
+ # `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `
1017
+ # call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.
1018
+ # gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`
1019
+ # @param [String] fields
1020
+ # Selector specifying which fields to include in a partial response.
1021
+ # @param [String] quota_user
1022
+ # Available to use for quota purposes for server-side applications. Can be any
1023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1024
+ # @param [Google::Apis::RequestOptions] options
1025
+ # Request-specific options
1026
+ #
1027
+ # @yield [result, err] Result & error if block supplied
1028
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
1029
+ # @yieldparam err [StandardError] error object if request failed
1030
+ #
1031
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
1032
+ #
1033
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1034
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1035
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1036
+ def patch_project_location_authorized_view_set_authorized_view_conversation(name, google_cloud_contactcenterinsights_v1_conversation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1037
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1038
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1039
+ command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
1040
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1041
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
1042
+ command.params['name'] = name unless name.nil?
1043
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1044
+ command.query['fields'] = fields unless fields.nil?
1045
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1046
+ execute_or_queue_command(command, &block)
1047
+ end
1048
+
1049
+ # Create a long-running conversation upload operation. This method differs from `
1050
+ # CreateConversation` by allowing audio transcription and optional DLP redaction.
1051
+ # @param [String] parent
1052
+ # Required. The parent resource of the conversation.
1053
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
1054
+ # @param [String] conversation_id
1055
+ # Optional. A unique ID for the new conversation. This ID will become the final
1056
+ # component of the conversation's resource name. If no ID is specified, a server-
1057
+ # generated ID will be used. This value should be 4-64 characters and must match
1058
+ # the regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`
1059
+ # @param [String] redaction_config_deidentify_template
1060
+ # The fully-qualified DLP deidentify template resource name. Format: `projects/`
1061
+ # project`/deidentifyTemplates/`template``
1062
+ # @param [String] redaction_config_inspect_template
1063
+ # The fully-qualified DLP inspect template resource name. Format: `projects/`
1064
+ # project`/locations/`location`/inspectTemplates/`template``
1065
+ # @param [String] speech_config_speech_recognizer
1066
+ # The fully-qualified Speech Recognizer resource name. Format: `projects/`
1067
+ # project_id`/locations/`location`/recognizer/`recognizer``
1068
+ # @param [String] fields
1069
+ # Selector specifying which fields to include in a partial response.
1070
+ # @param [String] quota_user
1071
+ # Available to use for quota purposes for server-side applications. Can be any
1072
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1073
+ # @param [Google::Apis::RequestOptions] options
1074
+ # Request-specific options
1075
+ #
1076
+ # @yield [result, err] Result & error if block supplied
1077
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1078
+ # @yieldparam err [StandardError] error object if request failed
1079
+ #
1080
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1081
+ #
1082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1085
+ def upload_project_location_authorized_view_set_authorized_view_conversation(parent, google_cloud_contactcenterinsights_v1_conversation_object = nil, conversation_id: nil, redaction_config_deidentify_template: nil, redaction_config_inspect_template: nil, speech_config_speech_recognizer: nil, fields: nil, quota_user: nil, options: nil, &block)
1086
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:upload', options)
1087
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1088
+ command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
1089
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1090
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1091
+ command.params['parent'] = parent unless parent.nil?
1092
+ command.query['conversationId'] = conversation_id unless conversation_id.nil?
1093
+ command.query['redactionConfig.deidentifyTemplate'] = redaction_config_deidentify_template unless redaction_config_deidentify_template.nil?
1094
+ command.query['redactionConfig.inspectTemplate'] = redaction_config_inspect_template unless redaction_config_inspect_template.nil?
1095
+ command.query['speechConfig.speechRecognizer'] = speech_config_speech_recognizer unless speech_config_speech_recognizer.nil?
1096
+ command.query['fields'] = fields unless fields.nil?
1097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1098
+ execute_or_queue_command(command, &block)
1099
+ end
1100
+
1101
+ # Creates an analysis. The long running operation is done when the analysis has
1102
+ # completed.
1103
+ # @param [String] parent
1104
+ # Required. The parent resource of the analysis.
1105
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] google_cloud_contactcenterinsights_v1_analysis_object
1106
+ # @param [String] fields
1107
+ # Selector specifying which fields to include in a partial response.
1108
+ # @param [String] quota_user
1109
+ # Available to use for quota purposes for server-side applications. Can be any
1110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1111
+ # @param [Google::Apis::RequestOptions] options
1112
+ # Request-specific options
1113
+ #
1114
+ # @yield [result, err] Result & error if block supplied
1115
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1116
+ # @yieldparam err [StandardError] error object if request failed
1117
+ #
1118
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1119
+ #
1120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1123
+ def create_project_location_authorized_view_set_authorized_view_conversation_analysis(parent, google_cloud_contactcenterinsights_v1_analysis_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1124
+ command = make_simple_command(:post, 'v1/{+parent}/analyses', options)
1125
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
1126
+ command.request_object = google_cloud_contactcenterinsights_v1_analysis_object
1127
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1128
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1129
+ command.params['parent'] = parent unless parent.nil?
1130
+ command.query['fields'] = fields unless fields.nil?
1131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1132
+ execute_or_queue_command(command, &block)
1133
+ end
1134
+
1135
+ # Deletes an analysis.
1136
+ # @param [String] name
1137
+ # Required. The name of the analysis to delete.
1138
+ # @param [String] fields
1139
+ # Selector specifying which fields to include in a partial response.
1140
+ # @param [String] quota_user
1141
+ # Available to use for quota purposes for server-side applications. Can be any
1142
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1143
+ # @param [Google::Apis::RequestOptions] options
1144
+ # Request-specific options
1145
+ #
1146
+ # @yield [result, err] Result & error if block supplied
1147
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1148
+ # @yieldparam err [StandardError] error object if request failed
1149
+ #
1150
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1151
+ #
1152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1155
+ def delete_project_location_authorized_view_set_authorized_view_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
1156
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1157
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1158
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1159
+ command.params['name'] = name unless name.nil?
1160
+ command.query['fields'] = fields unless fields.nil?
1161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1162
+ execute_or_queue_command(command, &block)
1163
+ end
1164
+
1165
+ # Gets an analysis.
1166
+ # @param [String] name
1167
+ # Required. The name of the analysis to get.
1168
+ # @param [String] fields
1169
+ # Selector specifying which fields to include in a partial response.
1170
+ # @param [String] quota_user
1171
+ # Available to use for quota purposes for server-side applications. Can be any
1172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1173
+ # @param [Google::Apis::RequestOptions] options
1174
+ # Request-specific options
1175
+ #
1176
+ # @yield [result, err] Result & error if block supplied
1177
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] parsed result object
1178
+ # @yieldparam err [StandardError] error object if request failed
1179
+ #
1180
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis]
1181
+ #
1182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1185
+ def get_project_location_authorized_view_set_authorized_view_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
1186
+ command = make_simple_command(:get, 'v1/{+name}', options)
1187
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
1188
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis
1189
+ command.params['name'] = name unless name.nil?
1190
+ command.query['fields'] = fields unless fields.nil?
1191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1192
+ execute_or_queue_command(command, &block)
1193
+ end
1194
+
1195
+ # Lists analyses.
1196
+ # @param [String] parent
1197
+ # Required. The parent resource of the analyses.
1198
+ # @param [String] filter
1199
+ # A filter to reduce results to a specific subset. Useful for querying
1200
+ # conversations with specific properties.
1201
+ # @param [Fixnum] page_size
1202
+ # The maximum number of analyses to return in the response. If this value is
1203
+ # zero, the service will select a default size. A call might return fewer
1204
+ # objects than requested. A non-empty `next_page_token` in the response
1205
+ # indicates that more data is available.
1206
+ # @param [String] page_token
1207
+ # The value returned by the last `ListAnalysesResponse`; indicates that this is
1208
+ # a continuation of a prior `ListAnalyses` call and the system should return the
1209
+ # next page of data.
1210
+ # @param [String] fields
1211
+ # Selector specifying which fields to include in a partial response.
1212
+ # @param [String] quota_user
1213
+ # Available to use for quota purposes for server-side applications. Can be any
1214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1215
+ # @param [Google::Apis::RequestOptions] options
1216
+ # Request-specific options
1217
+ #
1218
+ # @yield [result, err] Result & error if block supplied
1219
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse] parsed result object
1220
+ # @yieldparam err [StandardError] error object if request failed
1221
+ #
1222
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse]
1223
+ #
1224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1227
+ def list_project_location_authorized_view_set_authorized_view_conversation_analyses(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1228
+ command = make_simple_command(:get, 'v1/{+parent}/analyses', options)
1229
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse::Representation
1230
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse
1231
+ command.params['parent'] = parent unless parent.nil?
1232
+ command.query['filter'] = filter unless filter.nil?
1233
+ command.query['pageSize'] = page_size unless page_size.nil?
1234
+ command.query['pageToken'] = page_token unless page_token.nil?
1235
+ command.query['fields'] = fields unless fields.nil?
1236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1237
+ execute_or_queue_command(command, &block)
1238
+ end
1239
+
1240
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1241
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1242
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1243
+ # Clients can use Operations.GetOperation or other methods to check whether the
1244
+ # cancellation succeeded or whether the operation completed despite cancellation.
1245
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1246
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1247
+ # corresponding to `Code.CANCELLED`.
1248
+ # @param [String] name
1249
+ # The name of the operation resource to be cancelled.
1250
+ # @param [String] fields
1251
+ # Selector specifying which fields to include in a partial response.
1252
+ # @param [String] quota_user
1253
+ # Available to use for quota purposes for server-side applications. Can be any
1254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1255
+ # @param [Google::Apis::RequestOptions] options
1256
+ # Request-specific options
1257
+ #
1258
+ # @yield [result, err] Result & error if block supplied
1259
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1260
+ # @yieldparam err [StandardError] error object if request failed
1261
+ #
1262
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1263
+ #
1264
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1265
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1266
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1267
+ def cancel_project_location_authorized_view_set_authorized_view_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1268
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1269
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1270
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1271
+ command.params['name'] = name unless name.nil?
1272
+ command.query['fields'] = fields unless fields.nil?
1273
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1274
+ execute_or_queue_command(command, &block)
1275
+ end
1276
+
1277
+ # Gets the latest state of a long-running operation. Clients can use this method
1278
+ # to poll the operation result at intervals as recommended by the API service.
1279
+ # @param [String] name
1280
+ # The name of the operation resource.
1281
+ # @param [String] fields
1282
+ # Selector specifying which fields to include in a partial response.
1283
+ # @param [String] quota_user
1284
+ # Available to use for quota purposes for server-side applications. Can be any
1285
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1286
+ # @param [Google::Apis::RequestOptions] options
1287
+ # Request-specific options
1288
+ #
1289
+ # @yield [result, err] Result & error if block supplied
1290
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1291
+ # @yieldparam err [StandardError] error object if request failed
1292
+ #
1293
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1294
+ #
1295
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1296
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1297
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1298
+ def get_project_location_authorized_view_set_authorized_view_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1299
+ command = make_simple_command(:get, 'v1/{+name}', options)
1300
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1301
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1302
+ command.params['name'] = name unless name.nil?
1303
+ command.query['fields'] = fields unless fields.nil?
1304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1305
+ execute_or_queue_command(command, &block)
1306
+ end
1307
+
1308
+ # Lists operations that match the specified filter in the request. If the server
1309
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1310
+ # @param [String] name
1311
+ # The name of the operation's parent resource.
1312
+ # @param [String] filter
1313
+ # The standard list filter.
1314
+ # @param [Fixnum] page_size
1315
+ # The standard list page size.
1316
+ # @param [String] page_token
1317
+ # The standard list page token.
1318
+ # @param [String] fields
1319
+ # Selector specifying which fields to include in a partial response.
1320
+ # @param [String] quota_user
1321
+ # Available to use for quota purposes for server-side applications. Can be any
1322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1323
+ # @param [Google::Apis::RequestOptions] options
1324
+ # Request-specific options
1325
+ #
1326
+ # @yield [result, err] Result & error if block supplied
1327
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse] parsed result object
1328
+ # @yieldparam err [StandardError] error object if request failed
1329
+ #
1330
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse]
1331
+ #
1332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1335
+ def list_project_location_authorized_view_set_authorized_view_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1336
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
1337
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse::Representation
1338
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse
1339
+ command.params['name'] = name unless name.nil?
1340
+ command.query['filter'] = filter unless filter.nil?
1341
+ command.query['pageSize'] = page_size unless page_size.nil?
1342
+ command.query['pageToken'] = page_token unless page_token.nil?
1343
+ command.query['fields'] = fields unless fields.nil?
1344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1345
+ execute_or_queue_command(command, &block)
1346
+ end
1347
+
1348
+ # Analyzes multiple conversations in a single request.
1349
+ # @param [String] parent
1350
+ # Required. The parent resource to create analyses in.
1351
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest] google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object
1352
+ # @param [String] fields
1353
+ # Selector specifying which fields to include in a partial response.
1354
+ # @param [String] quota_user
1355
+ # Available to use for quota purposes for server-side applications. Can be any
1356
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1357
+ # @param [Google::Apis::RequestOptions] options
1358
+ # Request-specific options
1359
+ #
1360
+ # @yield [result, err] Result & error if block supplied
1361
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1362
+ # @yieldparam err [StandardError] error object if request failed
1363
+ #
1364
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1365
+ #
1366
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1367
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1368
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1369
+ def bulk_project_location_conversation_analyze(parent, google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1370
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:bulkAnalyze', options)
1371
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest::Representation
1372
+ command.request_object = google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object
1373
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1374
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1375
+ command.params['parent'] = parent unless parent.nil?
1376
+ command.query['fields'] = fields unless fields.nil?
1377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1378
+ execute_or_queue_command(command, &block)
1379
+ end
1380
+
1381
+ # Deletes multiple conversations in a single request.
1382
+ # @param [String] parent
1383
+ # Required. The parent resource to delete conversations from. Format: projects/`
1384
+ # project`/locations/`location`
1385
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest] google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object
1386
+ # @param [String] fields
1387
+ # Selector specifying which fields to include in a partial response.
1388
+ # @param [String] quota_user
1389
+ # Available to use for quota purposes for server-side applications. Can be any
1390
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1391
+ # @param [Google::Apis::RequestOptions] options
1392
+ # Request-specific options
1393
+ #
1394
+ # @yield [result, err] Result & error if block supplied
1395
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1396
+ # @yieldparam err [StandardError] error object if request failed
1397
+ #
1398
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1399
+ #
1400
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1401
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1402
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1403
+ def bulk_project_location_conversation_delete(parent, google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1404
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:bulkDelete', options)
1405
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest::Representation
1406
+ command.request_object = google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object
1407
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1408
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1409
+ command.params['parent'] = parent unless parent.nil?
1410
+ command.query['fields'] = fields unless fields.nil?
1411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1412
+ execute_or_queue_command(command, &block)
1413
+ end
1414
+
1415
+ # Gets conversation statistics.
1416
+ # @param [String] location
1417
+ # Required. The location of the conversations.
1418
+ # @param [String] filter
1419
+ # A filter to reduce results to a specific subset. This field is useful for
1420
+ # getting statistics about conversations with specific properties.
1421
+ # @param [String] fields
1422
+ # Selector specifying which fields to include in a partial response.
1423
+ # @param [String] quota_user
1424
+ # Available to use for quota purposes for server-side applications. Can be any
1425
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1426
+ # @param [Google::Apis::RequestOptions] options
1427
+ # Request-specific options
1428
+ #
1429
+ # @yield [result, err] Result & error if block supplied
1430
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse] parsed result object
1431
+ # @yieldparam err [StandardError] error object if request failed
1432
+ #
1433
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse]
1434
+ #
1435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1438
+ def calculate_project_location_conversation_stats(location, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
1439
+ command = make_simple_command(:get, 'v1/{+location}/conversations:calculateStats', options)
1440
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse::Representation
1441
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse
1442
+ command.params['location'] = location unless location.nil?
1443
+ command.query['filter'] = filter unless filter.nil?
1444
+ command.query['fields'] = fields unless fields.nil?
1445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1446
+ execute_or_queue_command(command, &block)
1447
+ end
1448
+
1449
+ # Creates a conversation. Note that this method does not support audio
1450
+ # transcription or redaction. Use `conversations.upload` instead.
1451
+ # @param [String] parent
1452
+ # Required. The parent resource of the conversation.
1453
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
1454
+ # @param [String] conversation_id
1455
+ # A unique ID for the new conversation. This ID will become the final component
1456
+ # of the conversation's resource name. If no ID is specified, a server-generated
1457
+ # ID will be used. This value should be 4-64 characters and must match the
1458
+ # regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`
1459
+ # @param [String] fields
1460
+ # Selector specifying which fields to include in a partial response.
1461
+ # @param [String] quota_user
1462
+ # Available to use for quota purposes for server-side applications. Can be any
1463
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1464
+ # @param [Google::Apis::RequestOptions] options
1465
+ # Request-specific options
1466
+ #
1467
+ # @yield [result, err] Result & error if block supplied
1468
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
1469
+ # @yieldparam err [StandardError] error object if request failed
1470
+ #
1471
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
1472
+ #
1473
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1474
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1475
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1476
+ def create_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_conversation_object = nil, conversation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1477
+ command = make_simple_command(:post, 'v1/{+parent}/conversations', options)
1478
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1479
+ command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
1480
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1481
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
1482
+ command.params['parent'] = parent unless parent.nil?
1483
+ command.query['conversationId'] = conversation_id unless conversation_id.nil?
1484
+ command.query['fields'] = fields unless fields.nil?
1485
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1486
+ execute_or_queue_command(command, &block)
1487
+ end
1488
+
1489
+ # Deletes a conversation.
1490
+ # @param [String] name
1491
+ # Required. The name of the conversation to delete.
1492
+ # @param [Boolean] force
1493
+ # If set to true, all of this conversation's analyses will also be deleted.
1494
+ # Otherwise, the request will only succeed if the conversation has no analyses.
1495
+ # @param [String] fields
1496
+ # Selector specifying which fields to include in a partial response.
1497
+ # @param [String] quota_user
1498
+ # Available to use for quota purposes for server-side applications. Can be any
1499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1500
+ # @param [Google::Apis::RequestOptions] options
1501
+ # Request-specific options
1502
+ #
1503
+ # @yield [result, err] Result & error if block supplied
1504
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1505
+ # @yieldparam err [StandardError] error object if request failed
1506
+ #
1507
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1508
+ #
1509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1512
+ def delete_project_location_conversation(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1513
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1514
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1515
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1516
+ command.params['name'] = name unless name.nil?
1517
+ command.query['force'] = force unless force.nil?
1518
+ command.query['fields'] = fields unless fields.nil?
1519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1520
+ execute_or_queue_command(command, &block)
1521
+ end
1522
+
1523
+ # Gets a conversation.
1524
+ # @param [String] name
1525
+ # Required. The name of the conversation to get.
1526
+ # @param [String] view
1527
+ # The level of details of the conversation. Default is `FULL`.
1528
+ # @param [String] fields
1529
+ # Selector specifying which fields to include in a partial response.
1530
+ # @param [String] quota_user
1531
+ # Available to use for quota purposes for server-side applications. Can be any
1532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1533
+ # @param [Google::Apis::RequestOptions] options
1534
+ # Request-specific options
1535
+ #
1536
+ # @yield [result, err] Result & error if block supplied
1537
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
1538
+ # @yieldparam err [StandardError] error object if request failed
1539
+ #
1540
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
1541
+ #
1542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1545
+ def get_project_location_conversation(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1546
+ command = make_simple_command(:get, 'v1/{+name}', options)
1547
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1548
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
1549
+ command.params['name'] = name unless name.nil?
1550
+ command.query['view'] = view unless view.nil?
1551
+ command.query['fields'] = fields unless fields.nil?
1552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1553
+ execute_or_queue_command(command, &block)
1554
+ end
1555
+
1556
+ # Imports conversations and processes them according to the user's configuration.
1557
+ # @param [String] parent
1558
+ # Required. The parent resource for new conversations.
1559
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest] google_cloud_contactcenterinsights_v1_ingest_conversations_request_object
1560
+ # @param [String] fields
1561
+ # Selector specifying which fields to include in a partial response.
1562
+ # @param [String] quota_user
1563
+ # Available to use for quota purposes for server-side applications. Can be any
1564
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1565
+ # @param [Google::Apis::RequestOptions] options
1566
+ # Request-specific options
1567
+ #
1568
+ # @yield [result, err] Result & error if block supplied
1569
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1570
+ # @yieldparam err [StandardError] error object if request failed
1571
+ #
1572
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1573
+ #
1574
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1575
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1576
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1577
+ def ingest_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_ingest_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1578
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:ingest', options)
1579
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest::Representation
1580
+ command.request_object = google_cloud_contactcenterinsights_v1_ingest_conversations_request_object
1581
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1582
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1583
+ command.params['parent'] = parent unless parent.nil?
1584
+ command.query['fields'] = fields unless fields.nil?
1585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1586
+ execute_or_queue_command(command, &block)
1587
+ end
1588
+
1589
+ # Lists conversations.
1590
+ # @param [String] parent
1591
+ # Required. The parent resource of the conversation.
1592
+ # @param [String] filter
1593
+ # A filter to reduce results to a specific subset. Useful for querying
1594
+ # conversations with specific properties.
1595
+ # @param [String] order_by
1596
+ # Optional. The attribute by which to order conversations in the response. If
1597
+ # empty, conversations will be ordered by descending creation time. Supported
1598
+ # values are one of the following: * create_time * customer_satisfaction_rating *
1599
+ # duration * latest_analysis * start_time * turn_count The default sort order
1600
+ # is ascending. To specify order, append `asc` or `desc` (`create_time desc`).
1601
+ # For more details, see [Google AIPs Ordering](https://google.aip.dev/132#
1602
+ # ordering).
1603
+ # @param [Fixnum] page_size
1604
+ # The maximum number of conversations to return in the response. A valid page
1605
+ # size ranges from 0 to 100,000 inclusive. If the page size is zero or
1606
+ # unspecified, a default page size of 100 will be chosen. Note that a call might
1607
+ # return fewer results than the requested page size.
1608
+ # @param [String] page_token
1609
+ # The value returned by the last `ListConversationsResponse`. This value
1610
+ # indicates that this is a continuation of a prior `ListConversations` call and
1611
+ # that the system should return the next page of data.
1612
+ # @param [String] view
1613
+ # The level of details of the conversation. Default is `BASIC`.
1614
+ # @param [String] fields
1615
+ # Selector specifying which fields to include in a partial response.
1616
+ # @param [String] quota_user
1617
+ # Available to use for quota purposes for server-side applications. Can be any
1618
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1619
+ # @param [Google::Apis::RequestOptions] options
1620
+ # Request-specific options
1621
+ #
1622
+ # @yield [result, err] Result & error if block supplied
1623
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse] parsed result object
1624
+ # @yieldparam err [StandardError] error object if request failed
1625
+ #
1626
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse]
1627
+ #
1628
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1629
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1630
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1631
+ def list_project_location_conversations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1632
+ command = make_simple_command(:get, 'v1/{+parent}/conversations', options)
1633
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse::Representation
1634
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse
1635
+ command.params['parent'] = parent unless parent.nil?
1636
+ command.query['filter'] = filter unless filter.nil?
1637
+ command.query['orderBy'] = order_by unless order_by.nil?
1638
+ command.query['pageSize'] = page_size unless page_size.nil?
1639
+ command.query['pageToken'] = page_token unless page_token.nil?
1640
+ command.query['view'] = view unless view.nil?
1641
+ command.query['fields'] = fields unless fields.nil?
1642
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1643
+ execute_or_queue_command(command, &block)
1644
+ end
1645
+
1646
+ # Updates a conversation.
1647
+ # @param [String] name
1648
+ # Immutable. The resource name of the conversation. Format: projects/`project`/
1649
+ # locations/`location`/conversations/`conversation`
1650
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
1651
+ # @param [String] update_mask
1652
+ # The list of fields to be updated. All possible fields can be updated by
1653
+ # passing `*`, or a subset of the following updateable fields can be provided: *
1654
+ # `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `
1655
+ # call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.
1656
+ # gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`
1657
+ # @param [String] fields
1658
+ # Selector specifying which fields to include in a partial response.
1659
+ # @param [String] quota_user
1660
+ # Available to use for quota purposes for server-side applications. Can be any
1661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1662
+ # @param [Google::Apis::RequestOptions] options
1663
+ # Request-specific options
1664
+ #
1665
+ # @yield [result, err] Result & error if block supplied
1666
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
1667
+ # @yieldparam err [StandardError] error object if request failed
1668
+ #
1669
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
1670
+ #
1671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1674
+ def patch_project_location_conversation(name, google_cloud_contactcenterinsights_v1_conversation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1675
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1676
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1677
+ command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
1678
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1679
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
1680
+ command.params['name'] = name unless name.nil?
1681
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1682
+ command.query['fields'] = fields unless fields.nil?
1683
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1684
+ execute_or_queue_command(command, &block)
1685
+ end
1686
+
1687
+ # Create a long-running conversation upload operation. This method differs from `
1688
+ # CreateConversation` by allowing audio transcription and optional DLP redaction.
1689
+ # @param [String] parent
1690
+ # Required. The parent resource of the conversation.
1691
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest] google_cloud_contactcenterinsights_v1_upload_conversation_request_object
1692
+ # @param [String] fields
1693
+ # Selector specifying which fields to include in a partial response.
1694
+ # @param [String] quota_user
1695
+ # Available to use for quota purposes for server-side applications. Can be any
1696
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1697
+ # @param [Google::Apis::RequestOptions] options
1698
+ # Request-specific options
1699
+ #
1700
+ # @yield [result, err] Result & error if block supplied
1701
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1702
+ # @yieldparam err [StandardError] error object if request failed
1703
+ #
1704
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1705
+ #
1706
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1707
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1708
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1709
+ def upload_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_upload_conversation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1710
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:upload', options)
1711
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest::Representation
1712
+ command.request_object = google_cloud_contactcenterinsights_v1_upload_conversation_request_object
1713
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1714
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1715
+ command.params['parent'] = parent unless parent.nil?
1716
+ command.query['fields'] = fields unless fields.nil?
1717
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1718
+ execute_or_queue_command(command, &block)
1719
+ end
1720
+
1721
+ # Creates an analysis. The long running operation is done when the analysis has
1722
+ # completed.
1723
+ # @param [String] parent
1724
+ # Required. The parent resource of the analysis.
1725
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] google_cloud_contactcenterinsights_v1_analysis_object
1726
+ # @param [String] fields
1727
+ # Selector specifying which fields to include in a partial response.
1728
+ # @param [String] quota_user
1729
+ # Available to use for quota purposes for server-side applications. Can be any
1730
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1731
+ # @param [Google::Apis::RequestOptions] options
1732
+ # Request-specific options
1733
+ #
1734
+ # @yield [result, err] Result & error if block supplied
1735
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1736
+ # @yieldparam err [StandardError] error object if request failed
1737
+ #
1738
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1739
+ #
1740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1743
+ def create_project_location_conversation_analysis(parent, google_cloud_contactcenterinsights_v1_analysis_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1744
+ command = make_simple_command(:post, 'v1/{+parent}/analyses', options)
1745
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
1746
+ command.request_object = google_cloud_contactcenterinsights_v1_analysis_object
1747
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1748
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1749
+ command.params['parent'] = parent unless parent.nil?
1750
+ command.query['fields'] = fields unless fields.nil?
1751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1752
+ execute_or_queue_command(command, &block)
1753
+ end
1754
+
1755
+ # Deletes an analysis.
1756
+ # @param [String] name
1757
+ # Required. The name of the analysis to delete.
1758
+ # @param [String] fields
1759
+ # Selector specifying which fields to include in a partial response.
1760
+ # @param [String] quota_user
1761
+ # Available to use for quota purposes for server-side applications. Can be any
1762
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1763
+ # @param [Google::Apis::RequestOptions] options
1764
+ # Request-specific options
1765
+ #
1766
+ # @yield [result, err] Result & error if block supplied
1767
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1768
+ # @yieldparam err [StandardError] error object if request failed
1769
+ #
1770
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1771
+ #
1772
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1773
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1774
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1775
+ def delete_project_location_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
1776
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1777
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1778
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1779
+ command.params['name'] = name unless name.nil?
1780
+ command.query['fields'] = fields unless fields.nil?
1781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1782
+ execute_or_queue_command(command, &block)
1783
+ end
1784
+
1785
+ # Gets an analysis.
1786
+ # @param [String] name
1787
+ # Required. The name of the analysis to get.
1788
+ # @param [String] fields
1789
+ # Selector specifying which fields to include in a partial response.
1790
+ # @param [String] quota_user
1791
+ # Available to use for quota purposes for server-side applications. Can be any
1792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1793
+ # @param [Google::Apis::RequestOptions] options
1794
+ # Request-specific options
1795
+ #
1796
+ # @yield [result, err] Result & error if block supplied
1797
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] parsed result object
1798
+ # @yieldparam err [StandardError] error object if request failed
1799
+ #
1800
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis]
1801
+ #
1802
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1803
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1804
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1805
+ def get_project_location_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
1806
+ command = make_simple_command(:get, 'v1/{+name}', options)
1807
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
1808
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis
1809
+ command.params['name'] = name unless name.nil?
1810
+ command.query['fields'] = fields unless fields.nil?
1811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1812
+ execute_or_queue_command(command, &block)
1813
+ end
1814
+
1815
+ # Lists analyses.
1816
+ # @param [String] parent
1817
+ # Required. The parent resource of the analyses.
1818
+ # @param [String] filter
1819
+ # A filter to reduce results to a specific subset. Useful for querying
1820
+ # conversations with specific properties.
1821
+ # @param [Fixnum] page_size
1822
+ # The maximum number of analyses to return in the response. If this value is
1823
+ # zero, the service will select a default size. A call might return fewer
1824
+ # objects than requested. A non-empty `next_page_token` in the response
1825
+ # indicates that more data is available.
1826
+ # @param [String] page_token
1827
+ # The value returned by the last `ListAnalysesResponse`; indicates that this is
1828
+ # a continuation of a prior `ListAnalyses` call and the system should return the
1829
+ # next page of data.
1830
+ # @param [String] fields
1831
+ # Selector specifying which fields to include in a partial response.
1832
+ # @param [String] quota_user
1833
+ # Available to use for quota purposes for server-side applications. Can be any
1834
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1835
+ # @param [Google::Apis::RequestOptions] options
1836
+ # Request-specific options
1837
+ #
1838
+ # @yield [result, err] Result & error if block supplied
1839
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse] parsed result object
1840
+ # @yieldparam err [StandardError] error object if request failed
1841
+ #
1842
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse]
1843
+ #
1844
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1845
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1846
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1847
+ def list_project_location_conversation_analyses(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1848
+ command = make_simple_command(:get, 'v1/{+parent}/analyses', options)
1849
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse::Representation
1850
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse
1851
+ command.params['parent'] = parent unless parent.nil?
1852
+ command.query['filter'] = filter unless filter.nil?
1853
+ command.query['pageSize'] = page_size unless page_size.nil?
1854
+ command.query['pageToken'] = page_token unless page_token.nil?
1855
+ command.query['fields'] = fields unless fields.nil?
1856
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1857
+ execute_or_queue_command(command, &block)
1858
+ end
1859
+
1860
+ # Create feedback label.
1861
+ # @param [String] parent
1862
+ # Required. The parent resource of the feedback label.
1863
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] google_cloud_contactcenterinsights_v1_feedback_label_object
1864
+ # @param [String] feedback_label_id
1865
+ # Optional. The ID of the feedback label to create. If one is not specified it
1866
+ # will be generated by the server.
1867
+ # @param [String] fields
1868
+ # Selector specifying which fields to include in a partial response.
1869
+ # @param [String] quota_user
1870
+ # Available to use for quota purposes for server-side applications. Can be any
1871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1872
+ # @param [Google::Apis::RequestOptions] options
1873
+ # Request-specific options
1874
+ #
1875
+ # @yield [result, err] Result & error if block supplied
1876
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
1877
+ # @yieldparam err [StandardError] error object if request failed
1878
+ #
1879
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
1880
+ #
1881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1884
+ def create_project_location_conversation_feedback_label(parent, google_cloud_contactcenterinsights_v1_feedback_label_object = nil, feedback_label_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1885
+ command = make_simple_command(:post, 'v1/{+parent}/feedbackLabels', options)
1886
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1887
+ command.request_object = google_cloud_contactcenterinsights_v1_feedback_label_object
1888
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1889
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
1890
+ command.params['parent'] = parent unless parent.nil?
1891
+ command.query['feedbackLabelId'] = feedback_label_id unless feedback_label_id.nil?
1892
+ command.query['fields'] = fields unless fields.nil?
1893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1894
+ execute_or_queue_command(command, &block)
1895
+ end
1896
+
1897
+ # Delete feedback label.
1898
+ # @param [String] name
1899
+ # Required. The name of the feedback label to delete.
1900
+ # @param [String] fields
1901
+ # Selector specifying which fields to include in a partial response.
1902
+ # @param [String] quota_user
1903
+ # Available to use for quota purposes for server-side applications. Can be any
1904
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1905
+ # @param [Google::Apis::RequestOptions] options
1906
+ # Request-specific options
1907
+ #
1908
+ # @yield [result, err] Result & error if block supplied
1909
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1910
+ # @yieldparam err [StandardError] error object if request failed
1911
+ #
1912
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1913
+ #
1914
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1915
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1916
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1917
+ def delete_project_location_conversation_feedback_label(name, fields: nil, quota_user: nil, options: nil, &block)
1918
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1919
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1920
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1921
+ command.params['name'] = name unless name.nil?
1922
+ command.query['fields'] = fields unless fields.nil?
1923
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1924
+ execute_or_queue_command(command, &block)
1925
+ end
1926
+
1927
+ # Get feedback label.
1928
+ # @param [String] name
1929
+ # Required. The name of the feedback label to get.
1930
+ # @param [String] fields
1931
+ # Selector specifying which fields to include in a partial response.
1932
+ # @param [String] quota_user
1933
+ # Available to use for quota purposes for server-side applications. Can be any
1934
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1935
+ # @param [Google::Apis::RequestOptions] options
1936
+ # Request-specific options
1937
+ #
1938
+ # @yield [result, err] Result & error if block supplied
1939
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
1940
+ # @yieldparam err [StandardError] error object if request failed
1941
+ #
1942
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
1943
+ #
1944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1947
+ def get_project_location_conversation_feedback_label(name, fields: nil, quota_user: nil, options: nil, &block)
1948
+ command = make_simple_command(:get, 'v1/{+name}', options)
1949
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1950
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
1951
+ command.params['name'] = name unless name.nil?
1952
+ command.query['fields'] = fields unless fields.nil?
1953
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1954
+ execute_or_queue_command(command, &block)
1955
+ end
1956
+
1957
+ # List feedback labels.
1958
+ # @param [String] parent
1959
+ # Required. The parent resource of the feedback labels.
1960
+ # @param [String] filter
1961
+ # Optional. A filter to reduce results to a specific subset. Supports
1962
+ # disjunctions (OR) and conjunctions (AND). Automatically sorts by conversation
1963
+ # ID. To sort by all feedback labels in a project see ListAllFeedbackLabels.
1964
+ # Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `
1965
+ # min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` *
1966
+ # `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
1967
+ # @param [Fixnum] page_size
1968
+ # Optional. The maximum number of feedback labels to return in the response. A
1969
+ # valid page size ranges from 0 to 100,000 inclusive. If the page size is zero
1970
+ # or unspecified, a default page size of 100 will be chosen. Note that a call
1971
+ # might return fewer results than the requested page size.
1972
+ # @param [String] page_token
1973
+ # Optional. The value returned by the last `ListFeedbackLabelsResponse`. This
1974
+ # value indicates that this is a continuation of a prior `ListFeedbackLabels`
1975
+ # call and that the system should return the next page of data.
1976
+ # @param [String] fields
1977
+ # Selector specifying which fields to include in a partial response.
1978
+ # @param [String] quota_user
1979
+ # Available to use for quota purposes for server-side applications. Can be any
1980
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1981
+ # @param [Google::Apis::RequestOptions] options
1982
+ # Request-specific options
1983
+ #
1984
+ # @yield [result, err] Result & error if block supplied
1985
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse] parsed result object
1986
+ # @yieldparam err [StandardError] error object if request failed
1987
+ #
1988
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse]
1989
+ #
1990
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1991
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1992
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1993
+ def list_project_location_conversation_feedback_labels(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1994
+ command = make_simple_command(:get, 'v1/{+parent}/feedbackLabels', options)
1995
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse::Representation
1996
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse
1997
+ command.params['parent'] = parent unless parent.nil?
1998
+ command.query['filter'] = filter unless filter.nil?
1999
+ command.query['pageSize'] = page_size unless page_size.nil?
2000
+ command.query['pageToken'] = page_token unless page_token.nil?
2001
+ command.query['fields'] = fields unless fields.nil?
2002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2003
+ execute_or_queue_command(command, &block)
2004
+ end
2005
+
2006
+ # Update feedback label.
2007
+ # @param [String] name
2008
+ # Immutable. Resource name of the FeedbackLabel. Format: projects/`project`/
2009
+ # locations/`location`/conversations/`conversation`/feedbackLabels/`
2010
+ # feedback_label`
2011
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] google_cloud_contactcenterinsights_v1_feedback_label_object
2012
+ # @param [String] update_mask
2013
+ # Required. The list of fields to be updated.
2014
+ # @param [String] fields
2015
+ # Selector specifying which fields to include in a partial response.
2016
+ # @param [String] quota_user
2017
+ # Available to use for quota purposes for server-side applications. Can be any
2018
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2019
+ # @param [Google::Apis::RequestOptions] options
2020
+ # Request-specific options
2021
+ #
2022
+ # @yield [result, err] Result & error if block supplied
2023
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
2024
+ # @yieldparam err [StandardError] error object if request failed
2025
+ #
2026
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
2027
+ #
2028
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2029
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2030
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2031
+ def patch_project_location_conversation_feedback_label(name, google_cloud_contactcenterinsights_v1_feedback_label_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2032
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2033
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
2034
+ command.request_object = google_cloud_contactcenterinsights_v1_feedback_label_object
2035
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
2036
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
2037
+ command.params['name'] = name unless name.nil?
2038
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2039
+ command.query['fields'] = fields unless fields.nil?
2040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2041
+ execute_or_queue_command(command, &block)
2042
+ end
2043
+
2044
+ # Initializes a location-level encryption key specification. An error will
2045
+ # result if the location has resources already created before the initialization.
2046
+ # After the encryption specification is initialized at a location, it is
2047
+ # immutable and all newly created resources under the location will be encrypted
2048
+ # with the existing specification.
2049
+ # @param [String] name
2050
+ # Immutable. The resource name of the encryption key specification resource.
2051
+ # Format: projects/`project`/locations/`location`/encryptionSpec
2052
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest] google_cloud_contactcenterinsights_v1_initialize_encryption_spec_request_object
2053
+ # @param [String] fields
2054
+ # Selector specifying which fields to include in a partial response.
2055
+ # @param [String] quota_user
2056
+ # Available to use for quota purposes for server-side applications. Can be any
2057
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2058
+ # @param [Google::Apis::RequestOptions] options
2059
+ # Request-specific options
2060
+ #
2061
+ # @yield [result, err] Result & error if block supplied
2062
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2063
+ # @yieldparam err [StandardError] error object if request failed
2064
+ #
2065
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2066
+ #
2067
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2068
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2069
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2070
+ def initialize_project_location_encryption_spec(name, google_cloud_contactcenterinsights_v1_initialize_encryption_spec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2071
+ command = make_simple_command(:post, 'v1/{+name}:initialize', options)
2072
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest::Representation
2073
+ command.request_object = google_cloud_contactcenterinsights_v1_initialize_encryption_spec_request_object
2074
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2075
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2076
+ command.params['name'] = name unless name.nil?
2077
+ command.query['fields'] = fields unless fields.nil?
2078
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2079
+ execute_or_queue_command(command, &block)
2080
+ end
2081
+
2082
+ # Export insights data to a destination defined in the request body.
2083
+ # @param [String] parent
2084
+ # Required. The parent resource to export data from.
2085
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest] google_cloud_contactcenterinsights_v1_export_insights_data_request_object
2086
+ # @param [String] fields
2087
+ # Selector specifying which fields to include in a partial response.
2088
+ # @param [String] quota_user
2089
+ # Available to use for quota purposes for server-side applications. Can be any
2090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2091
+ # @param [Google::Apis::RequestOptions] options
2092
+ # Request-specific options
2093
+ #
2094
+ # @yield [result, err] Result & error if block supplied
2095
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2096
+ # @yieldparam err [StandardError] error object if request failed
2097
+ #
2098
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2099
+ #
2100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2103
+ def export_project_location_insightsdatum(parent, google_cloud_contactcenterinsights_v1_export_insights_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2104
+ command = make_simple_command(:post, 'v1/{+parent}/insightsdata:export', options)
2105
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest::Representation
2106
+ command.request_object = google_cloud_contactcenterinsights_v1_export_insights_data_request_object
2107
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2108
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2109
+ command.params['parent'] = parent unless parent.nil?
2110
+ command.query['fields'] = fields unless fields.nil?
2111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2112
+ execute_or_queue_command(command, &block)
2113
+ end
2114
+
2115
+ # Gets an issue model's statistics.
2116
+ # @param [String] issue_model
2117
+ # Required. The resource name of the issue model to query against.
2118
+ # @param [String] fields
2119
+ # Selector specifying which fields to include in a partial response.
2120
+ # @param [String] quota_user
2121
+ # Available to use for quota purposes for server-side applications. Can be any
2122
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2123
+ # @param [Google::Apis::RequestOptions] options
2124
+ # Request-specific options
2125
+ #
2126
+ # @yield [result, err] Result & error if block supplied
2127
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse] parsed result object
2128
+ # @yieldparam err [StandardError] error object if request failed
2129
+ #
2130
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse]
2131
+ #
2132
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2133
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2134
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2135
+ def calculate_project_location_issue_model_issue_model_stats(issue_model, fields: nil, quota_user: nil, options: nil, &block)
2136
+ command = make_simple_command(:get, 'v1/{+issueModel}:calculateIssueModelStats', options)
2137
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse::Representation
2138
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse
2139
+ command.params['issueModel'] = issue_model unless issue_model.nil?
2140
+ command.query['fields'] = fields unless fields.nil?
2141
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2142
+ execute_or_queue_command(command, &block)
2143
+ end
2144
+
2145
+ # Creates an issue model.
2146
+ # @param [String] parent
2147
+ # Required. The parent resource of the issue model.
2148
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel] google_cloud_contactcenterinsights_v1_issue_model_object
2149
+ # @param [String] fields
2150
+ # Selector specifying which fields to include in a partial response.
2151
+ # @param [String] quota_user
2152
+ # Available to use for quota purposes for server-side applications. Can be any
2153
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2154
+ # @param [Google::Apis::RequestOptions] options
2155
+ # Request-specific options
2156
+ #
2157
+ # @yield [result, err] Result & error if block supplied
2158
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2159
+ # @yieldparam err [StandardError] error object if request failed
2160
+ #
2161
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2162
+ #
2163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2166
+ def create_project_location_issue_model(parent, google_cloud_contactcenterinsights_v1_issue_model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2167
+ command = make_simple_command(:post, 'v1/{+parent}/issueModels', options)
2168
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel::Representation
2169
+ command.request_object = google_cloud_contactcenterinsights_v1_issue_model_object
2170
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2171
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2172
+ command.params['parent'] = parent unless parent.nil?
2173
+ command.query['fields'] = fields unless fields.nil?
2174
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2175
+ execute_or_queue_command(command, &block)
2176
+ end
2177
+
2178
+ # Deletes an issue model.
2179
+ # @param [String] name
2180
+ # Required. The name of the issue model to delete.
2181
+ # @param [String] fields
2182
+ # Selector specifying which fields to include in a partial response.
2183
+ # @param [String] quota_user
2184
+ # Available to use for quota purposes for server-side applications. Can be any
2185
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2186
+ # @param [Google::Apis::RequestOptions] options
2187
+ # Request-specific options
2188
+ #
2189
+ # @yield [result, err] Result & error if block supplied
2190
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2191
+ # @yieldparam err [StandardError] error object if request failed
2192
+ #
2193
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2194
+ #
2195
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2196
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2197
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2198
+ def delete_project_location_issue_model(name, fields: nil, quota_user: nil, options: nil, &block)
2199
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2200
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2201
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2202
+ command.params['name'] = name unless name.nil?
2203
+ command.query['fields'] = fields unless fields.nil?
2204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2205
+ execute_or_queue_command(command, &block)
2206
+ end
2207
+
2208
+ # Deploys an issue model. Returns an error if a model is already deployed. An
2209
+ # issue model can only be used in analysis after it has been deployed.
2210
+ # @param [String] name
2211
+ # Required. The issue model to deploy.
2212
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DeployIssueModelRequest] google_cloud_contactcenterinsights_v1_deploy_issue_model_request_object
2213
+ # @param [String] fields
2214
+ # Selector specifying which fields to include in a partial response.
2215
+ # @param [String] quota_user
2216
+ # Available to use for quota purposes for server-side applications. Can be any
2217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2218
+ # @param [Google::Apis::RequestOptions] options
2219
+ # Request-specific options
2220
+ #
2221
+ # @yield [result, err] Result & error if block supplied
2222
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2223
+ # @yieldparam err [StandardError] error object if request failed
2224
+ #
2225
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2226
+ #
2227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2230
+ def deploy_project_location_issue_model(name, google_cloud_contactcenterinsights_v1_deploy_issue_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2231
+ command = make_simple_command(:post, 'v1/{+name}:deploy', options)
2232
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DeployIssueModelRequest::Representation
2233
+ command.request_object = google_cloud_contactcenterinsights_v1_deploy_issue_model_request_object
2234
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2235
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2236
+ command.params['name'] = name unless name.nil?
2237
+ command.query['fields'] = fields unless fields.nil?
2238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2239
+ execute_or_queue_command(command, &block)
2240
+ end
2241
+
2242
+ # Exports an issue model to the provided destination.
2243
+ # @param [String] name
2244
+ # Required. The issue model to export.
2245
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ExportIssueModelRequest] google_cloud_contactcenterinsights_v1_export_issue_model_request_object
2246
+ # @param [String] fields
2247
+ # Selector specifying which fields to include in a partial response.
2248
+ # @param [String] quota_user
2249
+ # Available to use for quota purposes for server-side applications. Can be any
2250
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2251
+ # @param [Google::Apis::RequestOptions] options
2252
+ # Request-specific options
2253
+ #
2254
+ # @yield [result, err] Result & error if block supplied
2255
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2256
+ # @yieldparam err [StandardError] error object if request failed
2257
+ #
2258
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2259
+ #
2260
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2261
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2262
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2263
+ def export_project_location_issue_model(name, google_cloud_contactcenterinsights_v1_export_issue_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2264
+ command = make_simple_command(:post, 'v1/{+name}:export', options)
2265
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ExportIssueModelRequest::Representation
2266
+ command.request_object = google_cloud_contactcenterinsights_v1_export_issue_model_request_object
2267
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2268
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2269
+ command.params['name'] = name unless name.nil?
2270
+ command.query['fields'] = fields unless fields.nil?
2271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2272
+ execute_or_queue_command(command, &block)
2273
+ end
2274
+
2275
+ # Gets an issue model.
2276
+ # @param [String] name
2277
+ # Required. The name of the issue model to get.
2278
+ # @param [String] fields
2279
+ # Selector specifying which fields to include in a partial response.
2280
+ # @param [String] quota_user
2281
+ # Available to use for quota purposes for server-side applications. Can be any
2282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2283
+ # @param [Google::Apis::RequestOptions] options
2284
+ # Request-specific options
2285
+ #
2286
+ # @yield [result, err] Result & error if block supplied
2287
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel] parsed result object
2288
+ # @yieldparam err [StandardError] error object if request failed
2289
+ #
2290
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel]
2291
+ #
2292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2295
+ def get_project_location_issue_model(name, fields: nil, quota_user: nil, options: nil, &block)
2296
+ command = make_simple_command(:get, 'v1/{+name}', options)
2297
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel::Representation
2298
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel
2299
+ command.params['name'] = name unless name.nil?
2300
+ command.query['fields'] = fields unless fields.nil?
2301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2302
+ execute_or_queue_command(command, &block)
2303
+ end
2304
+
2305
+ # Imports an issue model from a Cloud Storage bucket.
2306
+ # @param [String] parent
2307
+ # Required. The parent resource of the issue model.
2308
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ImportIssueModelRequest] google_cloud_contactcenterinsights_v1_import_issue_model_request_object
2309
+ # @param [String] fields
2310
+ # Selector specifying which fields to include in a partial response.
2311
+ # @param [String] quota_user
2312
+ # Available to use for quota purposes for server-side applications. Can be any
2313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2314
+ # @param [Google::Apis::RequestOptions] options
2315
+ # Request-specific options
2316
+ #
2317
+ # @yield [result, err] Result & error if block supplied
2318
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2319
+ # @yieldparam err [StandardError] error object if request failed
2320
+ #
2321
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2322
+ #
2323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2326
+ def import_project_location_issue_model(parent, google_cloud_contactcenterinsights_v1_import_issue_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2327
+ command = make_simple_command(:post, 'v1/{+parent}/issueModels:import', options)
2328
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ImportIssueModelRequest::Representation
2329
+ command.request_object = google_cloud_contactcenterinsights_v1_import_issue_model_request_object
2330
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2331
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2332
+ command.params['parent'] = parent unless parent.nil?
2333
+ command.query['fields'] = fields unless fields.nil?
2334
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2335
+ execute_or_queue_command(command, &block)
2336
+ end
2337
+
2338
+ # Lists issue models.
2339
+ # @param [String] parent
2340
+ # Required. The parent resource of the issue model.
2341
+ # @param [String] fields
2342
+ # Selector specifying which fields to include in a partial response.
2343
+ # @param [String] quota_user
2344
+ # Available to use for quota purposes for server-side applications. Can be any
2345
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2346
+ # @param [Google::Apis::RequestOptions] options
2347
+ # Request-specific options
2348
+ #
2349
+ # @yield [result, err] Result & error if block supplied
2350
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssueModelsResponse] parsed result object
2351
+ # @yieldparam err [StandardError] error object if request failed
2352
+ #
2353
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssueModelsResponse]
2354
+ #
2355
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2356
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2357
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2358
+ def list_project_location_issue_models(parent, fields: nil, quota_user: nil, options: nil, &block)
2359
+ command = make_simple_command(:get, 'v1/{+parent}/issueModels', options)
2360
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssueModelsResponse::Representation
2361
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssueModelsResponse
2362
+ command.params['parent'] = parent unless parent.nil?
2363
+ command.query['fields'] = fields unless fields.nil?
2364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2365
+ execute_or_queue_command(command, &block)
2366
+ end
2367
+
2368
+ # Updates an issue model.
2369
+ # @param [String] name
2370
+ # Immutable. The resource name of the issue model. Format: projects/`project`/
2371
+ # locations/`location`/issueModels/`issue_model`
2372
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel] google_cloud_contactcenterinsights_v1_issue_model_object
2373
+ # @param [String] update_mask
2374
+ # The list of fields to be updated.
2375
+ # @param [String] fields
2376
+ # Selector specifying which fields to include in a partial response.
2377
+ # @param [String] quota_user
2378
+ # Available to use for quota purposes for server-side applications. Can be any
2379
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2380
+ # @param [Google::Apis::RequestOptions] options
2381
+ # Request-specific options
2382
+ #
2383
+ # @yield [result, err] Result & error if block supplied
2384
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel] parsed result object
2385
+ # @yieldparam err [StandardError] error object if request failed
2386
+ #
2387
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel]
2388
+ #
2389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2392
+ def patch_project_location_issue_model(name, google_cloud_contactcenterinsights_v1_issue_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2393
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2394
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel::Representation
2395
+ command.request_object = google_cloud_contactcenterinsights_v1_issue_model_object
2396
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel::Representation
2397
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel
2398
+ command.params['name'] = name unless name.nil?
2399
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2400
+ command.query['fields'] = fields unless fields.nil?
2401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2402
+ execute_or_queue_command(command, &block)
2403
+ end
2404
+
2405
+ # Undeploys an issue model. An issue model can not be used in analysis after it
2406
+ # has been undeployed.
2407
+ # @param [String] name
2408
+ # Required. The issue model to undeploy.
2409
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest] google_cloud_contactcenterinsights_v1_undeploy_issue_model_request_object
2410
+ # @param [String] fields
2411
+ # Selector specifying which fields to include in a partial response.
2412
+ # @param [String] quota_user
2413
+ # Available to use for quota purposes for server-side applications. Can be any
2414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2415
+ # @param [Google::Apis::RequestOptions] options
2416
+ # Request-specific options
2417
+ #
2418
+ # @yield [result, err] Result & error if block supplied
2419
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2420
+ # @yieldparam err [StandardError] error object if request failed
2421
+ #
2422
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2423
+ #
2424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2427
+ def undeploy_project_location_issue_model(name, google_cloud_contactcenterinsights_v1_undeploy_issue_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2428
+ command = make_simple_command(:post, 'v1/{+name}:undeploy', options)
2429
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest::Representation
2430
+ command.request_object = google_cloud_contactcenterinsights_v1_undeploy_issue_model_request_object
2431
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2432
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2433
+ command.params['name'] = name unless name.nil?
2434
+ command.query['fields'] = fields unless fields.nil?
2435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2436
+ execute_or_queue_command(command, &block)
2437
+ end
2438
+
2439
+ # Deletes an issue.
2440
+ # @param [String] name
2441
+ # Required. The name of the issue to delete.
2442
+ # @param [String] fields
2443
+ # Selector specifying which fields to include in a partial response.
2444
+ # @param [String] quota_user
2445
+ # Available to use for quota purposes for server-side applications. Can be any
2446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2447
+ # @param [Google::Apis::RequestOptions] options
2448
+ # Request-specific options
2449
+ #
2450
+ # @yield [result, err] Result & error if block supplied
2451
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
2452
+ # @yieldparam err [StandardError] error object if request failed
2453
+ #
2454
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
2455
+ #
2456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2459
+ def delete_project_location_issue_model_issue(name, fields: nil, quota_user: nil, options: nil, &block)
2460
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2461
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
2462
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
2463
+ command.params['name'] = name unless name.nil?
2464
+ command.query['fields'] = fields unless fields.nil?
2465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2466
+ execute_or_queue_command(command, &block)
2467
+ end
2468
+
2469
+ # Gets an issue.
2470
+ # @param [String] name
2471
+ # Required. The name of the issue to get.
2472
+ # @param [String] fields
2473
+ # Selector specifying which fields to include in a partial response.
2474
+ # @param [String] quota_user
2475
+ # Available to use for quota purposes for server-side applications. Can be any
2476
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2477
+ # @param [Google::Apis::RequestOptions] options
2478
+ # Request-specific options
2479
+ #
2480
+ # @yield [result, err] Result & error if block supplied
2481
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue] parsed result object
2482
+ # @yieldparam err [StandardError] error object if request failed
2483
+ #
2484
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue]
2485
+ #
2486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2489
+ def get_project_location_issue_model_issue(name, fields: nil, quota_user: nil, options: nil, &block)
2490
+ command = make_simple_command(:get, 'v1/{+name}', options)
2491
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue::Representation
2492
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue
2493
+ command.params['name'] = name unless name.nil?
2494
+ command.query['fields'] = fields unless fields.nil?
2495
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2496
+ execute_or_queue_command(command, &block)
2497
+ end
2498
+
2499
+ # Lists issues.
2500
+ # @param [String] parent
2501
+ # Required. The parent resource of the issue.
2502
+ # @param [String] fields
2503
+ # Selector specifying which fields to include in a partial response.
2504
+ # @param [String] quota_user
2505
+ # Available to use for quota purposes for server-side applications. Can be any
2506
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2507
+ # @param [Google::Apis::RequestOptions] options
2508
+ # Request-specific options
2509
+ #
2510
+ # @yield [result, err] Result & error if block supplied
2511
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssuesResponse] parsed result object
2512
+ # @yieldparam err [StandardError] error object if request failed
2513
+ #
2514
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssuesResponse]
2515
+ #
2516
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2517
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2518
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2519
+ def list_project_location_issue_model_issues(parent, fields: nil, quota_user: nil, options: nil, &block)
2520
+ command = make_simple_command(:get, 'v1/{+parent}/issues', options)
2521
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssuesResponse::Representation
2522
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssuesResponse
2523
+ command.params['parent'] = parent unless parent.nil?
2524
+ command.query['fields'] = fields unless fields.nil?
2525
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2526
+ execute_or_queue_command(command, &block)
2527
+ end
2528
+
2529
+ # Updates an issue.
2530
+ # @param [String] name
2531
+ # Immutable. The resource name of the issue. Format: projects/`project`/
2532
+ # locations/`location`/issueModels/`issue_model`/issues/`issue`
2533
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue] google_cloud_contactcenterinsights_v1_issue_object
2534
+ # @param [String] update_mask
2535
+ # The list of fields to be updated.
2536
+ # @param [String] fields
2537
+ # Selector specifying which fields to include in a partial response.
2538
+ # @param [String] quota_user
2539
+ # Available to use for quota purposes for server-side applications. Can be any
2540
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2541
+ # @param [Google::Apis::RequestOptions] options
2542
+ # Request-specific options
2543
+ #
2544
+ # @yield [result, err] Result & error if block supplied
2545
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue] parsed result object
2546
+ # @yieldparam err [StandardError] error object if request failed
2547
+ #
2548
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue]
2549
+ #
2550
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2551
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2552
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2553
+ def patch_project_location_issue_model_issue(name, google_cloud_contactcenterinsights_v1_issue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2554
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2555
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue::Representation
2556
+ command.request_object = google_cloud_contactcenterinsights_v1_issue_object
2557
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue::Representation
2558
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue
2559
+ command.params['name'] = name unless name.nil?
2560
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2561
+ command.query['fields'] = fields unless fields.nil?
2562
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2563
+ execute_or_queue_command(command, &block)
2564
+ end
2565
+
2566
+ # Starts asynchronous cancellation on a long-running operation. The server makes
2567
+ # a best effort to cancel the operation, but success is not guaranteed. If the
2568
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2569
+ # Clients can use Operations.GetOperation or other methods to check whether the
2570
+ # cancellation succeeded or whether the operation completed despite cancellation.
2571
+ # On successful cancellation, the operation is not deleted; instead, it becomes
2572
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
2573
+ # corresponding to `Code.CANCELLED`.
2574
+ # @param [String] name
2575
+ # The name of the operation resource to be cancelled.
2576
+ # @param [String] fields
2577
+ # Selector specifying which fields to include in a partial response.
2578
+ # @param [String] quota_user
2579
+ # Available to use for quota purposes for server-side applications. Can be any
2580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2581
+ # @param [Google::Apis::RequestOptions] options
2582
+ # Request-specific options
2583
+ #
2584
+ # @yield [result, err] Result & error if block supplied
2585
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
2586
+ # @yieldparam err [StandardError] error object if request failed
2587
+ #
2588
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
2589
+ #
2590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2593
+ def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2594
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
2595
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
2596
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
2597
+ command.params['name'] = name unless name.nil?
2598
+ command.query['fields'] = fields unless fields.nil?
2599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2600
+ execute_or_queue_command(command, &block)
2601
+ end
2602
+
2603
+ # Gets the latest state of a long-running operation. Clients can use this method
2604
+ # to poll the operation result at intervals as recommended by the API service.
2605
+ # @param [String] name
2606
+ # The name of the operation resource.
2607
+ # @param [String] fields
2608
+ # Selector specifying which fields to include in a partial response.
2609
+ # @param [String] quota_user
2610
+ # Available to use for quota purposes for server-side applications. Can be any
2611
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2612
+ # @param [Google::Apis::RequestOptions] options
2613
+ # Request-specific options
2614
+ #
2615
+ # @yield [result, err] Result & error if block supplied
2616
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2617
+ # @yieldparam err [StandardError] error object if request failed
2618
+ #
2619
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2620
+ #
2621
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2622
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2623
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2624
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2625
+ command = make_simple_command(:get, 'v1/{+name}', options)
2626
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2627
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2628
+ command.params['name'] = name unless name.nil?
2629
+ command.query['fields'] = fields unless fields.nil?
2630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2631
+ execute_or_queue_command(command, &block)
2632
+ end
2633
+
2634
+ # Lists operations that match the specified filter in the request. If the server
2635
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2636
+ # @param [String] name
2637
+ # The name of the operation's parent resource.
2638
+ # @param [String] filter
2639
+ # The standard list filter.
2640
+ # @param [Fixnum] page_size
2641
+ # The standard list page size.
2642
+ # @param [String] page_token
2643
+ # The standard list page token.
2644
+ # @param [String] fields
2645
+ # Selector specifying which fields to include in a partial response.
2646
+ # @param [String] quota_user
2647
+ # Available to use for quota purposes for server-side applications. Can be any
2648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2649
+ # @param [Google::Apis::RequestOptions] options
2650
+ # Request-specific options
2651
+ #
2652
+ # @yield [result, err] Result & error if block supplied
2653
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse] parsed result object
2654
+ # @yieldparam err [StandardError] error object if request failed
2655
+ #
2656
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse]
2657
+ #
2658
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2659
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2660
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2661
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2662
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
2663
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse::Representation
2664
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse
2665
+ command.params['name'] = name unless name.nil?
2666
+ command.query['filter'] = filter unless filter.nil?
2667
+ command.query['pageSize'] = page_size unless page_size.nil?
2668
+ command.query['pageToken'] = page_token unless page_token.nil?
2669
+ command.query['fields'] = fields unless fields.nil?
2670
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2671
+ execute_or_queue_command(command, &block)
2672
+ end
2673
+
2674
+ # Creates a phrase matcher.
2675
+ # @param [String] parent
2676
+ # Required. The parent resource of the phrase matcher. Required. The location to
2677
+ # create a phrase matcher for. Format: `projects//locations/` or `projects//
2678
+ # locations/`
2679
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] google_cloud_contactcenterinsights_v1_phrase_matcher_object
2680
+ # @param [String] fields
2681
+ # Selector specifying which fields to include in a partial response.
2682
+ # @param [String] quota_user
2683
+ # Available to use for quota purposes for server-side applications. Can be any
2684
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2685
+ # @param [Google::Apis::RequestOptions] options
2686
+ # Request-specific options
2687
+ #
2688
+ # @yield [result, err] Result & error if block supplied
2689
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] parsed result object
2690
+ # @yieldparam err [StandardError] error object if request failed
2691
+ #
2692
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher]
2693
+ #
2694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2697
+ def create_project_location_phrase_matcher(parent, google_cloud_contactcenterinsights_v1_phrase_matcher_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2698
+ command = make_simple_command(:post, 'v1/{+parent}/phraseMatchers', options)
2699
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
2700
+ command.request_object = google_cloud_contactcenterinsights_v1_phrase_matcher_object
2701
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
2702
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher
2703
+ command.params['parent'] = parent unless parent.nil?
2704
+ command.query['fields'] = fields unless fields.nil?
2705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2706
+ execute_or_queue_command(command, &block)
2707
+ end
2708
+
2709
+ # Deletes a phrase matcher.
2710
+ # @param [String] name
2711
+ # Required. The name of the phrase matcher to delete.
2712
+ # @param [String] fields
2713
+ # Selector specifying which fields to include in a partial response.
2714
+ # @param [String] quota_user
2715
+ # Available to use for quota purposes for server-side applications. Can be any
2716
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2717
+ # @param [Google::Apis::RequestOptions] options
2718
+ # Request-specific options
2719
+ #
2720
+ # @yield [result, err] Result & error if block supplied
2721
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
2722
+ # @yieldparam err [StandardError] error object if request failed
2723
+ #
2724
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
2725
+ #
2726
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2727
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2728
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2729
+ def delete_project_location_phrase_matcher(name, fields: nil, quota_user: nil, options: nil, &block)
2730
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2731
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
2732
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
2733
+ command.params['name'] = name unless name.nil?
2734
+ command.query['fields'] = fields unless fields.nil?
2735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2736
+ execute_or_queue_command(command, &block)
2737
+ end
2738
+
2739
+ # Gets a phrase matcher.
2740
+ # @param [String] name
2741
+ # Required. The name of the phrase matcher to get.
2742
+ # @param [String] fields
2743
+ # Selector specifying which fields to include in a partial response.
2744
+ # @param [String] quota_user
2745
+ # Available to use for quota purposes for server-side applications. Can be any
2746
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2747
+ # @param [Google::Apis::RequestOptions] options
2748
+ # Request-specific options
2749
+ #
2750
+ # @yield [result, err] Result & error if block supplied
2751
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] parsed result object
2752
+ # @yieldparam err [StandardError] error object if request failed
2753
+ #
2754
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher]
2755
+ #
2756
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2757
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2758
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2759
+ def get_project_location_phrase_matcher(name, fields: nil, quota_user: nil, options: nil, &block)
2760
+ command = make_simple_command(:get, 'v1/{+name}', options)
2761
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
2762
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher
2763
+ command.params['name'] = name unless name.nil?
2764
+ command.query['fields'] = fields unless fields.nil?
2765
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2766
+ execute_or_queue_command(command, &block)
2767
+ end
2768
+
2769
+ # Lists phrase matchers.
2770
+ # @param [String] parent
2771
+ # Required. The parent resource of the phrase matcher.
2772
+ # @param [String] filter
2773
+ # A filter to reduce results to a specific subset. Useful for querying phrase
2774
+ # matchers with specific properties.
2775
+ # @param [Fixnum] page_size
2776
+ # The maximum number of phrase matchers to return in the response. If this value
2777
+ # is zero, the service will select a default size. A call might return fewer
2778
+ # objects than requested. A non-empty `next_page_token` in the response
2779
+ # indicates that more data is available.
2780
+ # @param [String] page_token
2781
+ # The value returned by the last `ListPhraseMatchersResponse`. This value
2782
+ # indicates that this is a continuation of a prior `ListPhraseMatchers` call and
2783
+ # that the system should return the next page of data.
2784
+ # @param [String] fields
2785
+ # Selector specifying which fields to include in a partial response.
2786
+ # @param [String] quota_user
2787
+ # Available to use for quota purposes for server-side applications. Can be any
2788
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2789
+ # @param [Google::Apis::RequestOptions] options
2790
+ # Request-specific options
2791
+ #
2792
+ # @yield [result, err] Result & error if block supplied
2793
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse] parsed result object
2794
+ # @yieldparam err [StandardError] error object if request failed
2795
+ #
2796
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse]
2797
+ #
2798
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2799
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2800
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2801
+ def list_project_location_phrase_matchers(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2802
+ command = make_simple_command(:get, 'v1/{+parent}/phraseMatchers', options)
2803
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse::Representation
2804
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse
2805
+ command.params['parent'] = parent unless parent.nil?
2806
+ command.query['filter'] = filter unless filter.nil?
2807
+ command.query['pageSize'] = page_size unless page_size.nil?
2808
+ command.query['pageToken'] = page_token unless page_token.nil?
2809
+ command.query['fields'] = fields unless fields.nil?
2810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2811
+ execute_or_queue_command(command, &block)
2812
+ end
2813
+
2814
+ # Updates a phrase matcher.
2815
+ # @param [String] name
2816
+ # The resource name of the phrase matcher. Format: projects/`project`/locations/`
2817
+ # location`/phraseMatchers/`phrase_matcher`
2818
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] google_cloud_contactcenterinsights_v1_phrase_matcher_object
2819
+ # @param [String] update_mask
2820
+ # The list of fields to be updated.
2821
+ # @param [String] fields
2822
+ # Selector specifying which fields to include in a partial response.
2823
+ # @param [String] quota_user
2824
+ # Available to use for quota purposes for server-side applications. Can be any
2825
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2826
+ # @param [Google::Apis::RequestOptions] options
2827
+ # Request-specific options
2828
+ #
2829
+ # @yield [result, err] Result & error if block supplied
2830
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] parsed result object
2831
+ # @yieldparam err [StandardError] error object if request failed
2832
+ #
2833
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher]
2834
+ #
2835
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2836
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2837
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2838
+ def patch_project_location_phrase_matcher(name, google_cloud_contactcenterinsights_v1_phrase_matcher_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2839
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2840
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
2841
+ command.request_object = google_cloud_contactcenterinsights_v1_phrase_matcher_object
2842
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
2843
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher
855
2844
  command.params['name'] = name unless name.nil?
2845
+ command.query['updateMask'] = update_mask unless update_mask.nil?
856
2846
  command.query['fields'] = fields unless fields.nil?
857
2847
  command.query['quotaUser'] = quota_user unless quota_user.nil?
858
2848
  execute_or_queue_command(command, &block)
859
2849
  end
860
2850
 
861
- # Exports an issue model to the provided destination.
862
- # @param [String] name
863
- # Required. The issue model to export.
864
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ExportIssueModelRequest] google_cloud_contactcenterinsights_v1_export_issue_model_request_object
2851
+ # Create a QaScorecard.
2852
+ # @param [String] parent
2853
+ # Required. The parent resource of the QaScorecard.
2854
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard] google_cloud_contactcenterinsights_v1_qa_scorecard_object
2855
+ # @param [String] qa_scorecard_id
2856
+ # Optional. A unique ID for the new QaScorecard. This ID will become the final
2857
+ # component of the QaScorecard's resource name. If no ID is specified, a server-
2858
+ # generated ID will be used. This value should be 4-64 characters and must match
2859
+ # the regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`.
865
2860
  # @param [String] fields
866
2861
  # Selector specifying which fields to include in a partial response.
867
2862
  # @param [String] quota_user
@@ -871,29 +2866,33 @@ module Google
871
2866
  # Request-specific options
872
2867
  #
873
2868
  # @yield [result, err] Result & error if block supplied
874
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2869
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard] parsed result object
875
2870
  # @yieldparam err [StandardError] error object if request failed
876
2871
  #
877
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2872
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard]
878
2873
  #
879
2874
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
880
2875
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
881
2876
  # @raise [Google::Apis::AuthorizationError] Authorization is required
882
- def export_project_location_issue_model(name, google_cloud_contactcenterinsights_v1_export_issue_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
883
- command = make_simple_command(:post, 'v1/{+name}:export', options)
884
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ExportIssueModelRequest::Representation
885
- command.request_object = google_cloud_contactcenterinsights_v1_export_issue_model_request_object
886
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
887
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
888
- command.params['name'] = name unless name.nil?
2877
+ def create_project_location_qa_scorecard(parent, google_cloud_contactcenterinsights_v1_qa_scorecard_object = nil, qa_scorecard_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2878
+ command = make_simple_command(:post, 'v1/{+parent}/qaScorecards', options)
2879
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard::Representation
2880
+ command.request_object = google_cloud_contactcenterinsights_v1_qa_scorecard_object
2881
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard::Representation
2882
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard
2883
+ command.params['parent'] = parent unless parent.nil?
2884
+ command.query['qaScorecardId'] = qa_scorecard_id unless qa_scorecard_id.nil?
889
2885
  command.query['fields'] = fields unless fields.nil?
890
2886
  command.query['quotaUser'] = quota_user unless quota_user.nil?
891
2887
  execute_or_queue_command(command, &block)
892
2888
  end
893
2889
 
894
- # Gets an issue model.
2890
+ # Deletes a QaScorecard.
895
2891
  # @param [String] name
896
- # Required. The name of the issue model to get.
2892
+ # Required. The name of the QaScorecard to delete.
2893
+ # @param [Boolean] force
2894
+ # Optional. If set to true, all of this QaScorecard's child resources will also
2895
+ # be deleted. Otherwise, the request will only succeed if it has none.
897
2896
  # @param [String] fields
898
2897
  # Selector specifying which fields to include in a partial response.
899
2898
  # @param [String] quota_user
@@ -903,28 +2902,28 @@ module Google
903
2902
  # Request-specific options
904
2903
  #
905
2904
  # @yield [result, err] Result & error if block supplied
906
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel] parsed result object
2905
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
907
2906
  # @yieldparam err [StandardError] error object if request failed
908
2907
  #
909
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel]
2908
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
910
2909
  #
911
2910
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
912
2911
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
913
2912
  # @raise [Google::Apis::AuthorizationError] Authorization is required
914
- def get_project_location_issue_model(name, fields: nil, quota_user: nil, options: nil, &block)
915
- command = make_simple_command(:get, 'v1/{+name}', options)
916
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel::Representation
917
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel
2913
+ def delete_project_location_qa_scorecard(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2914
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2915
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
2916
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
918
2917
  command.params['name'] = name unless name.nil?
2918
+ command.query['force'] = force unless force.nil?
919
2919
  command.query['fields'] = fields unless fields.nil?
920
2920
  command.query['quotaUser'] = quota_user unless quota_user.nil?
921
2921
  execute_or_queue_command(command, &block)
922
2922
  end
923
2923
 
924
- # Imports an issue model from a Cloud Storage bucket.
925
- # @param [String] parent
926
- # Required. The parent resource of the issue model.
927
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ImportIssueModelRequest] google_cloud_contactcenterinsights_v1_import_issue_model_request_object
2924
+ # Gets a QaScorecard.
2925
+ # @param [String] name
2926
+ # Required. The name of the QaScorecard to get.
928
2927
  # @param [String] fields
929
2928
  # Selector specifying which fields to include in a partial response.
930
2929
  # @param [String] quota_user
@@ -934,29 +2933,36 @@ module Google
934
2933
  # Request-specific options
935
2934
  #
936
2935
  # @yield [result, err] Result & error if block supplied
937
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2936
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard] parsed result object
938
2937
  # @yieldparam err [StandardError] error object if request failed
939
2938
  #
940
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2939
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard]
941
2940
  #
942
2941
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
943
2942
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
944
2943
  # @raise [Google::Apis::AuthorizationError] Authorization is required
945
- def import_project_location_issue_model(parent, google_cloud_contactcenterinsights_v1_import_issue_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
946
- command = make_simple_command(:post, 'v1/{+parent}/issueModels:import', options)
947
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ImportIssueModelRequest::Representation
948
- command.request_object = google_cloud_contactcenterinsights_v1_import_issue_model_request_object
949
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
950
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
951
- command.params['parent'] = parent unless parent.nil?
2944
+ def get_project_location_qa_scorecard(name, fields: nil, quota_user: nil, options: nil, &block)
2945
+ command = make_simple_command(:get, 'v1/{+name}', options)
2946
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard::Representation
2947
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard
2948
+ command.params['name'] = name unless name.nil?
952
2949
  command.query['fields'] = fields unless fields.nil?
953
2950
  command.query['quotaUser'] = quota_user unless quota_user.nil?
954
2951
  execute_or_queue_command(command, &block)
955
2952
  end
956
2953
 
957
- # Lists issue models.
2954
+ # Lists QaScorecards.
958
2955
  # @param [String] parent
959
- # Required. The parent resource of the issue model.
2956
+ # Required. The parent resource of the scorecards.
2957
+ # @param [Fixnum] page_size
2958
+ # Optional. The maximum number of scorecards to return in the response. If the
2959
+ # value is zero, the service will select a default size. A call might return
2960
+ # fewer objects than requested. A non-empty `next_page_token` in the response
2961
+ # indicates that more data is available.
2962
+ # @param [String] page_token
2963
+ # Optional. The value returned by the last `ListQaScorecardsResponse`. This
2964
+ # value indicates that this is a continuation of a prior `ListQaScorecards` call
2965
+ # and that the system should return the next page of data.
960
2966
  # @param [String] fields
961
2967
  # Selector specifying which fields to include in a partial response.
962
2968
  # @param [String] quota_user
@@ -966,31 +2972,35 @@ module Google
966
2972
  # Request-specific options
967
2973
  #
968
2974
  # @yield [result, err] Result & error if block supplied
969
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssueModelsResponse] parsed result object
2975
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse] parsed result object
970
2976
  # @yieldparam err [StandardError] error object if request failed
971
2977
  #
972
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssueModelsResponse]
2978
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse]
973
2979
  #
974
2980
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
975
2981
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
976
2982
  # @raise [Google::Apis::AuthorizationError] Authorization is required
977
- def list_project_location_issue_models(parent, fields: nil, quota_user: nil, options: nil, &block)
978
- command = make_simple_command(:get, 'v1/{+parent}/issueModels', options)
979
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssueModelsResponse::Representation
980
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssueModelsResponse
2983
+ def list_project_location_qa_scorecards(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2984
+ command = make_simple_command(:get, 'v1/{+parent}/qaScorecards', options)
2985
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse::Representation
2986
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse
981
2987
  command.params['parent'] = parent unless parent.nil?
2988
+ command.query['pageSize'] = page_size unless page_size.nil?
2989
+ command.query['pageToken'] = page_token unless page_token.nil?
982
2990
  command.query['fields'] = fields unless fields.nil?
983
2991
  command.query['quotaUser'] = quota_user unless quota_user.nil?
984
2992
  execute_or_queue_command(command, &block)
985
2993
  end
986
2994
 
987
- # Updates an issue model.
2995
+ # Updates a QaScorecard.
988
2996
  # @param [String] name
989
- # Immutable. The resource name of the issue model. Format: projects/`project`/
990
- # locations/`location`/issueModels/`issue_model`
991
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel] google_cloud_contactcenterinsights_v1_issue_model_object
2997
+ # Identifier. The scorecard name. Format: projects/`project`/locations/`location`
2998
+ # /qaScorecards/`qa_scorecard`
2999
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard] google_cloud_contactcenterinsights_v1_qa_scorecard_object
992
3000
  # @param [String] update_mask
993
- # The list of fields to be updated.
3001
+ # Required. The list of fields to be updated. All possible fields can be updated
3002
+ # by passing `*`, or a subset of the following updateable fields can be provided:
3003
+ # * `description` * `display_name`
994
3004
  # @param [String] fields
995
3005
  # Selector specifying which fields to include in a partial response.
996
3006
  # @param [String] quota_user
@@ -1000,20 +3010,20 @@ module Google
1000
3010
  # Request-specific options
1001
3011
  #
1002
3012
  # @yield [result, err] Result & error if block supplied
1003
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel] parsed result object
3013
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard] parsed result object
1004
3014
  # @yieldparam err [StandardError] error object if request failed
1005
3015
  #
1006
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel]
3016
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard]
1007
3017
  #
1008
3018
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1009
3019
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1010
3020
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1011
- def patch_project_location_issue_model(name, google_cloud_contactcenterinsights_v1_issue_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3021
+ def patch_project_location_qa_scorecard(name, google_cloud_contactcenterinsights_v1_qa_scorecard_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1012
3022
  command = make_simple_command(:patch, 'v1/{+name}', options)
1013
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel::Representation
1014
- command.request_object = google_cloud_contactcenterinsights_v1_issue_model_object
1015
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel::Representation
1016
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IssueModel
3023
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard::Representation
3024
+ command.request_object = google_cloud_contactcenterinsights_v1_qa_scorecard_object
3025
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard::Representation
3026
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecard
1017
3027
  command.params['name'] = name unless name.nil?
1018
3028
  command.query['updateMask'] = update_mask unless update_mask.nil?
1019
3029
  command.query['fields'] = fields unless fields.nil?
@@ -1021,11 +3031,16 @@ module Google
1021
3031
  execute_or_queue_command(command, &block)
1022
3032
  end
1023
3033
 
1024
- # Undeploys an issue model. An issue model can not be used in analysis after it
1025
- # has been undeployed.
1026
- # @param [String] name
1027
- # Required. The issue model to undeploy.
1028
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest] google_cloud_contactcenterinsights_v1_undeploy_issue_model_request_object
3034
+ # Creates a QaScorecardRevision.
3035
+ # @param [String] parent
3036
+ # Required. The parent resource of the QaScorecardRevision.
3037
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision] google_cloud_contactcenterinsights_v1_qa_scorecard_revision_object
3038
+ # @param [String] qa_scorecard_revision_id
3039
+ # Optional. A unique ID for the new QaScorecardRevision. This ID will become the
3040
+ # final component of the QaScorecardRevision's resource name. If no ID is
3041
+ # specified, a server-generated ID will be used. This value should be 4-64
3042
+ # characters and must match the regular expression `^[a-z0-9-]`4,64`$`. Valid
3043
+ # characters are `a-z-`.
1029
3044
  # @param [String] fields
1030
3045
  # Selector specifying which fields to include in a partial response.
1031
3046
  # @param [String] quota_user
@@ -1035,29 +3050,33 @@ module Google
1035
3050
  # Request-specific options
1036
3051
  #
1037
3052
  # @yield [result, err] Result & error if block supplied
1038
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
3053
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision] parsed result object
1039
3054
  # @yieldparam err [StandardError] error object if request failed
1040
3055
  #
1041
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
3056
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision]
1042
3057
  #
1043
3058
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1044
3059
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1045
3060
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1046
- def undeploy_project_location_issue_model(name, google_cloud_contactcenterinsights_v1_undeploy_issue_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1047
- command = make_simple_command(:post, 'v1/{+name}:undeploy', options)
1048
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest::Representation
1049
- command.request_object = google_cloud_contactcenterinsights_v1_undeploy_issue_model_request_object
1050
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1051
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1052
- command.params['name'] = name unless name.nil?
3061
+ def create_project_location_qa_scorecard_revision(parent, google_cloud_contactcenterinsights_v1_qa_scorecard_revision_object = nil, qa_scorecard_revision_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3062
+ command = make_simple_command(:post, 'v1/{+parent}/revisions', options)
3063
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision::Representation
3064
+ command.request_object = google_cloud_contactcenterinsights_v1_qa_scorecard_revision_object
3065
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision::Representation
3066
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision
3067
+ command.params['parent'] = parent unless parent.nil?
3068
+ command.query['qaScorecardRevisionId'] = qa_scorecard_revision_id unless qa_scorecard_revision_id.nil?
1053
3069
  command.query['fields'] = fields unless fields.nil?
1054
3070
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1055
3071
  execute_or_queue_command(command, &block)
1056
3072
  end
1057
3073
 
1058
- # Deletes an issue.
3074
+ # Deletes a QaScorecardRevision.
1059
3075
  # @param [String] name
1060
- # Required. The name of the issue to delete.
3076
+ # Required. The name of the QaScorecardRevision to delete.
3077
+ # @param [Boolean] force
3078
+ # Optional. If set to true, all of this QaScorecardRevision's child resources
3079
+ # will also be deleted. Otherwise, the request will only succeed if it has none.
1061
3080
  # @param [String] fields
1062
3081
  # Selector specifying which fields to include in a partial response.
1063
3082
  # @param [String] quota_user
@@ -1075,19 +3094,21 @@ module Google
1075
3094
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1076
3095
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1077
3096
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1078
- def delete_project_location_issue_model_issue(name, fields: nil, quota_user: nil, options: nil, &block)
3097
+ def delete_project_location_qa_scorecard_revision(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1079
3098
  command = make_simple_command(:delete, 'v1/{+name}', options)
1080
3099
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1081
3100
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1082
3101
  command.params['name'] = name unless name.nil?
3102
+ command.query['force'] = force unless force.nil?
1083
3103
  command.query['fields'] = fields unless fields.nil?
1084
3104
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1085
3105
  execute_or_queue_command(command, &block)
1086
3106
  end
1087
3107
 
1088
- # Gets an issue.
3108
+ # Deploy a QaScorecardRevision.
1089
3109
  # @param [String] name
1090
- # Required. The name of the issue to get.
3110
+ # Required. The name of the QaScorecardRevision to deploy.
3111
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest] google_cloud_contactcenterinsights_v1_deploy_qa_scorecard_revision_request_object
1091
3112
  # @param [String] fields
1092
3113
  # Selector specifying which fields to include in a partial response.
1093
3114
  # @param [String] quota_user
@@ -1097,61 +3118,29 @@ module Google
1097
3118
  # Request-specific options
1098
3119
  #
1099
3120
  # @yield [result, err] Result & error if block supplied
1100
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue] parsed result object
3121
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision] parsed result object
1101
3122
  # @yieldparam err [StandardError] error object if request failed
1102
3123
  #
1103
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue]
3124
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision]
1104
3125
  #
1105
3126
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1106
3127
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1107
3128
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1108
- def get_project_location_issue_model_issue(name, fields: nil, quota_user: nil, options: nil, &block)
1109
- command = make_simple_command(:get, 'v1/{+name}', options)
1110
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue::Representation
1111
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue
3129
+ def deploy_project_location_qa_scorecard_revision(name, google_cloud_contactcenterinsights_v1_deploy_qa_scorecard_revision_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3130
+ command = make_simple_command(:post, 'v1/{+name}:deploy', options)
3131
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest::Representation
3132
+ command.request_object = google_cloud_contactcenterinsights_v1_deploy_qa_scorecard_revision_request_object
3133
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision::Representation
3134
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision
1112
3135
  command.params['name'] = name unless name.nil?
1113
3136
  command.query['fields'] = fields unless fields.nil?
1114
3137
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1115
3138
  execute_or_queue_command(command, &block)
1116
3139
  end
1117
3140
 
1118
- # Lists issues.
1119
- # @param [String] parent
1120
- # Required. The parent resource of the issue.
1121
- # @param [String] fields
1122
- # Selector specifying which fields to include in a partial response.
1123
- # @param [String] quota_user
1124
- # Available to use for quota purposes for server-side applications. Can be any
1125
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1126
- # @param [Google::Apis::RequestOptions] options
1127
- # Request-specific options
1128
- #
1129
- # @yield [result, err] Result & error if block supplied
1130
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssuesResponse] parsed result object
1131
- # @yieldparam err [StandardError] error object if request failed
1132
- #
1133
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssuesResponse]
1134
- #
1135
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1136
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1137
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1138
- def list_project_location_issue_model_issues(parent, fields: nil, quota_user: nil, options: nil, &block)
1139
- command = make_simple_command(:get, 'v1/{+parent}/issues', options)
1140
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssuesResponse::Representation
1141
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListIssuesResponse
1142
- command.params['parent'] = parent unless parent.nil?
1143
- command.query['fields'] = fields unless fields.nil?
1144
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1145
- execute_or_queue_command(command, &block)
1146
- end
1147
-
1148
- # Updates an issue.
3141
+ # Gets a QaScorecardRevision.
1149
3142
  # @param [String] name
1150
- # Immutable. The resource name of the issue. Format: projects/`project`/
1151
- # locations/`location`/issueModels/`issue_model`/issues/`issue`
1152
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue] google_cloud_contactcenterinsights_v1_issue_object
1153
- # @param [String] update_mask
1154
- # The list of fields to be updated.
3143
+ # Required. The name of the QaScorecardRevision to get.
1155
3144
  # @param [String] fields
1156
3145
  # Selector specifying which fields to include in a partial response.
1157
3146
  # @param [String] quota_user
@@ -1161,37 +3150,42 @@ module Google
1161
3150
  # Request-specific options
1162
3151
  #
1163
3152
  # @yield [result, err] Result & error if block supplied
1164
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue] parsed result object
3153
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision] parsed result object
1165
3154
  # @yieldparam err [StandardError] error object if request failed
1166
3155
  #
1167
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue]
3156
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision]
1168
3157
  #
1169
3158
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1170
3159
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1171
3160
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1172
- def patch_project_location_issue_model_issue(name, google_cloud_contactcenterinsights_v1_issue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1173
- command = make_simple_command(:patch, 'v1/{+name}', options)
1174
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue::Representation
1175
- command.request_object = google_cloud_contactcenterinsights_v1_issue_object
1176
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue::Representation
1177
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue
3161
+ def get_project_location_qa_scorecard_revision(name, fields: nil, quota_user: nil, options: nil, &block)
3162
+ command = make_simple_command(:get, 'v1/{+name}', options)
3163
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision::Representation
3164
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision
1178
3165
  command.params['name'] = name unless name.nil?
1179
- command.query['updateMask'] = update_mask unless update_mask.nil?
1180
3166
  command.query['fields'] = fields unless fields.nil?
1181
3167
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1182
3168
  execute_or_queue_command(command, &block)
1183
3169
  end
1184
3170
 
1185
- # Starts asynchronous cancellation on a long-running operation. The server makes
1186
- # a best effort to cancel the operation, but success is not guaranteed. If the
1187
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1188
- # Clients can use Operations.GetOperation or other methods to check whether the
1189
- # cancellation succeeded or whether the operation completed despite cancellation.
1190
- # On successful cancellation, the operation is not deleted; instead, it becomes
1191
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1192
- # corresponding to `Code.CANCELLED`.
1193
- # @param [String] name
1194
- # The name of the operation resource to be cancelled.
3171
+ # Lists all revisions under the parent QaScorecard.
3172
+ # @param [String] parent
3173
+ # Required. The parent resource of the scorecard revisions. To list all
3174
+ # revisions of all scorecards, substitute the QaScorecard ID with a '-'
3175
+ # character.
3176
+ # @param [String] filter
3177
+ # Optional. A filter to reduce results to a specific subset. Useful for querying
3178
+ # scorecard revisions with specific properties.
3179
+ # @param [Fixnum] page_size
3180
+ # Optional. The maximum number of scorecard revisions to return in the response.
3181
+ # If the value is zero, the service will select a default size. A call might
3182
+ # return fewer objects than requested. A non-empty `next_page_token` in the
3183
+ # response indicates that more data is available.
3184
+ # @param [String] page_token
3185
+ # Optional. The value returned by the last `ListQaScorecardRevisionsResponse`.
3186
+ # This value indicates that this is a continuation of a prior `
3187
+ # ListQaScorecardRevisions` call and that the system should return the next page
3188
+ # of data.
1195
3189
  # @param [String] fields
1196
3190
  # Selector specifying which fields to include in a partial response.
1197
3191
  # @param [String] quota_user
@@ -1201,28 +3195,31 @@ module Google
1201
3195
  # Request-specific options
1202
3196
  #
1203
3197
  # @yield [result, err] Result & error if block supplied
1204
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
3198
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse] parsed result object
1205
3199
  # @yieldparam err [StandardError] error object if request failed
1206
3200
  #
1207
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
3201
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse]
1208
3202
  #
1209
3203
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1210
3204
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1211
3205
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1212
- def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1213
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1214
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1215
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1216
- command.params['name'] = name unless name.nil?
3206
+ def list_project_location_qa_scorecard_revisions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3207
+ command = make_simple_command(:get, 'v1/{+parent}/revisions', options)
3208
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse::Representation
3209
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse
3210
+ command.params['parent'] = parent unless parent.nil?
3211
+ command.query['filter'] = filter unless filter.nil?
3212
+ command.query['pageSize'] = page_size unless page_size.nil?
3213
+ command.query['pageToken'] = page_token unless page_token.nil?
1217
3214
  command.query['fields'] = fields unless fields.nil?
1218
3215
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1219
3216
  execute_or_queue_command(command, &block)
1220
3217
  end
1221
3218
 
1222
- # Gets the latest state of a long-running operation. Clients can use this method
1223
- # to poll the operation result at intervals as recommended by the API service.
1224
- # @param [String] name
1225
- # The name of the operation resource.
3219
+ # Fine tune one or more QaModels.
3220
+ # @param [String] parent
3221
+ # Required. The parent resource for new fine tuning job instance.
3222
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest] google_cloud_contactcenterinsights_v1_tune_qa_scorecard_revision_request_object
1226
3223
  # @param [String] fields
1227
3224
  # Selector specifying which fields to include in a partial response.
1228
3225
  # @param [String] quota_user
@@ -1240,26 +3237,22 @@ module Google
1240
3237
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1241
3238
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1242
3239
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1243
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1244
- command = make_simple_command(:get, 'v1/{+name}', options)
3240
+ def tune_project_location_qa_scorecard_revision_qa_scorecard_revision(parent, google_cloud_contactcenterinsights_v1_tune_qa_scorecard_revision_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3241
+ command = make_simple_command(:post, 'v1/{+parent}:tuneQaScorecardRevision', options)
3242
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest::Representation
3243
+ command.request_object = google_cloud_contactcenterinsights_v1_tune_qa_scorecard_revision_request_object
1245
3244
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1246
3245
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1247
- command.params['name'] = name unless name.nil?
3246
+ command.params['parent'] = parent unless parent.nil?
1248
3247
  command.query['fields'] = fields unless fields.nil?
1249
3248
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1250
3249
  execute_or_queue_command(command, &block)
1251
3250
  end
1252
3251
 
1253
- # Lists operations that match the specified filter in the request. If the server
1254
- # doesn't support this method, it returns `UNIMPLEMENTED`.
3252
+ # Undeploy a QaScorecardRevision.
1255
3253
  # @param [String] name
1256
- # The name of the operation's parent resource.
1257
- # @param [String] filter
1258
- # The standard list filter.
1259
- # @param [Fixnum] page_size
1260
- # The standard list page size.
1261
- # @param [String] page_token
1262
- # The standard list page token.
3254
+ # Required. The name of the QaScorecardRevision to undeploy.
3255
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest] google_cloud_contactcenterinsights_v1_undeploy_qa_scorecard_revision_request_object
1263
3256
  # @param [String] fields
1264
3257
  # Selector specifying which fields to include in a partial response.
1265
3258
  # @param [String] quota_user
@@ -1269,33 +3262,35 @@ module Google
1269
3262
  # Request-specific options
1270
3263
  #
1271
3264
  # @yield [result, err] Result & error if block supplied
1272
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse] parsed result object
3265
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision] parsed result object
1273
3266
  # @yieldparam err [StandardError] error object if request failed
1274
3267
  #
1275
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse]
3268
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision]
1276
3269
  #
1277
3270
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1278
3271
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1279
3272
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1280
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1281
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
1282
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse::Representation
1283
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse
3273
+ def undeploy_project_location_qa_scorecard_revision(name, google_cloud_contactcenterinsights_v1_undeploy_qa_scorecard_revision_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3274
+ command = make_simple_command(:post, 'v1/{+name}:undeploy', options)
3275
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest::Representation
3276
+ command.request_object = google_cloud_contactcenterinsights_v1_undeploy_qa_scorecard_revision_request_object
3277
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision::Representation
3278
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaScorecardRevision
1284
3279
  command.params['name'] = name unless name.nil?
1285
- command.query['filter'] = filter unless filter.nil?
1286
- command.query['pageSize'] = page_size unless page_size.nil?
1287
- command.query['pageToken'] = page_token unless page_token.nil?
1288
3280
  command.query['fields'] = fields unless fields.nil?
1289
3281
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1290
3282
  execute_or_queue_command(command, &block)
1291
3283
  end
1292
3284
 
1293
- # Creates a phrase matcher.
3285
+ # Create a QaQuestion.
1294
3286
  # @param [String] parent
1295
- # Required. The parent resource of the phrase matcher. Required. The location to
1296
- # create a phrase matcher for. Format: `projects//locations/` or `projects//
1297
- # locations/`
1298
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] google_cloud_contactcenterinsights_v1_phrase_matcher_object
3287
+ # Required. The parent resource of the QaQuestion.
3288
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion] google_cloud_contactcenterinsights_v1_qa_question_object
3289
+ # @param [String] qa_question_id
3290
+ # Optional. A unique ID for the new question. This ID will become the final
3291
+ # component of the question's resource name. If no ID is specified, a server-
3292
+ # generated ID will be used. This value should be 4-64 characters and must match
3293
+ # the regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`.
1299
3294
  # @param [String] fields
1300
3295
  # Selector specifying which fields to include in a partial response.
1301
3296
  # @param [String] quota_user
@@ -1305,29 +3300,30 @@ module Google
1305
3300
  # Request-specific options
1306
3301
  #
1307
3302
  # @yield [result, err] Result & error if block supplied
1308
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] parsed result object
3303
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion] parsed result object
1309
3304
  # @yieldparam err [StandardError] error object if request failed
1310
3305
  #
1311
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher]
3306
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion]
1312
3307
  #
1313
3308
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1314
3309
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1315
3310
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1316
- def create_project_location_phrase_matcher(parent, google_cloud_contactcenterinsights_v1_phrase_matcher_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1317
- command = make_simple_command(:post, 'v1/{+parent}/phraseMatchers', options)
1318
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
1319
- command.request_object = google_cloud_contactcenterinsights_v1_phrase_matcher_object
1320
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
1321
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher
3311
+ def create_project_location_qa_scorecard_revision_qa_question(parent, google_cloud_contactcenterinsights_v1_qa_question_object = nil, qa_question_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3312
+ command = make_simple_command(:post, 'v1/{+parent}/qaQuestions', options)
3313
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion::Representation
3314
+ command.request_object = google_cloud_contactcenterinsights_v1_qa_question_object
3315
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion::Representation
3316
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion
1322
3317
  command.params['parent'] = parent unless parent.nil?
3318
+ command.query['qaQuestionId'] = qa_question_id unless qa_question_id.nil?
1323
3319
  command.query['fields'] = fields unless fields.nil?
1324
3320
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1325
3321
  execute_or_queue_command(command, &block)
1326
3322
  end
1327
3323
 
1328
- # Deletes a phrase matcher.
3324
+ # Deletes a QaQuestion.
1329
3325
  # @param [String] name
1330
- # Required. The name of the phrase matcher to delete.
3326
+ # Required. The name of the QaQuestion to delete.
1331
3327
  # @param [String] fields
1332
3328
  # Selector specifying which fields to include in a partial response.
1333
3329
  # @param [String] quota_user
@@ -1345,7 +3341,7 @@ module Google
1345
3341
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1346
3342
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1347
3343
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1348
- def delete_project_location_phrase_matcher(name, fields: nil, quota_user: nil, options: nil, &block)
3344
+ def delete_project_location_qa_scorecard_revision_qa_question(name, fields: nil, quota_user: nil, options: nil, &block)
1349
3345
  command = make_simple_command(:delete, 'v1/{+name}', options)
1350
3346
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1351
3347
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
@@ -1355,9 +3351,9 @@ module Google
1355
3351
  execute_or_queue_command(command, &block)
1356
3352
  end
1357
3353
 
1358
- # Gets a phrase matcher.
3354
+ # Gets a QaQuestion.
1359
3355
  # @param [String] name
1360
- # Required. The name of the phrase matcher to get.
3356
+ # Required. The name of the QaQuestion to get.
1361
3357
  # @param [String] fields
1362
3358
  # Selector specifying which fields to include in a partial response.
1363
3359
  # @param [String] quota_user
@@ -1367,38 +3363,35 @@ module Google
1367
3363
  # Request-specific options
1368
3364
  #
1369
3365
  # @yield [result, err] Result & error if block supplied
1370
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] parsed result object
3366
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion] parsed result object
1371
3367
  # @yieldparam err [StandardError] error object if request failed
1372
3368
  #
1373
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher]
3369
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion]
1374
3370
  #
1375
3371
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1376
3372
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1377
3373
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1378
- def get_project_location_phrase_matcher(name, fields: nil, quota_user: nil, options: nil, &block)
3374
+ def get_project_location_qa_scorecard_revision_qa_question(name, fields: nil, quota_user: nil, options: nil, &block)
1379
3375
  command = make_simple_command(:get, 'v1/{+name}', options)
1380
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
1381
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher
3376
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion::Representation
3377
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion
1382
3378
  command.params['name'] = name unless name.nil?
1383
3379
  command.query['fields'] = fields unless fields.nil?
1384
3380
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1385
3381
  execute_or_queue_command(command, &block)
1386
3382
  end
1387
3383
 
1388
- # Lists phrase matchers.
3384
+ # Lists QaQuestions.
1389
3385
  # @param [String] parent
1390
- # Required. The parent resource of the phrase matcher.
1391
- # @param [String] filter
1392
- # A filter to reduce results to a specific subset. Useful for querying phrase
1393
- # matchers with specific properties.
3386
+ # Required. The parent resource of the questions.
1394
3387
  # @param [Fixnum] page_size
1395
- # The maximum number of phrase matchers to return in the response. If this value
1396
- # is zero, the service will select a default size. A call might return fewer
1397
- # objects than requested. A non-empty `next_page_token` in the response
3388
+ # Optional. The maximum number of questions to return in the response. If the
3389
+ # value is zero, the service will select a default size. A call might return
3390
+ # fewer objects than requested. A non-empty `next_page_token` in the response
1398
3391
  # indicates that more data is available.
1399
3392
  # @param [String] page_token
1400
- # The value returned by the last `ListPhraseMatchersResponse`. This value
1401
- # indicates that this is a continuation of a prior `ListPhraseMatchers` call and
3393
+ # Optional. The value returned by the last `ListQaQuestionsResponse`. This value
3394
+ # indicates that this is a continuation of a prior `ListQaQuestions` call and
1402
3395
  # that the system should return the next page of data.
1403
3396
  # @param [String] fields
1404
3397
  # Selector specifying which fields to include in a partial response.
@@ -1409,20 +3402,19 @@ module Google
1409
3402
  # Request-specific options
1410
3403
  #
1411
3404
  # @yield [result, err] Result & error if block supplied
1412
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse] parsed result object
3405
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse] parsed result object
1413
3406
  # @yieldparam err [StandardError] error object if request failed
1414
3407
  #
1415
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse]
3408
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse]
1416
3409
  #
1417
3410
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1418
3411
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1419
3412
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1420
- def list_project_location_phrase_matchers(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1421
- command = make_simple_command(:get, 'v1/{+parent}/phraseMatchers', options)
1422
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse::Representation
1423
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse
3413
+ def list_project_location_qa_scorecard_revision_qa_questions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3414
+ command = make_simple_command(:get, 'v1/{+parent}/qaQuestions', options)
3415
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse::Representation
3416
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse
1424
3417
  command.params['parent'] = parent unless parent.nil?
1425
- command.query['filter'] = filter unless filter.nil?
1426
3418
  command.query['pageSize'] = page_size unless page_size.nil?
1427
3419
  command.query['pageToken'] = page_token unless page_token.nil?
1428
3420
  command.query['fields'] = fields unless fields.nil?
@@ -1430,13 +3422,17 @@ module Google
1430
3422
  execute_or_queue_command(command, &block)
1431
3423
  end
1432
3424
 
1433
- # Updates a phrase matcher.
3425
+ # Updates a QaQuestion.
1434
3426
  # @param [String] name
1435
- # The resource name of the phrase matcher. Format: projects/`project`/locations/`
1436
- # location`/phraseMatchers/`phrase_matcher`
1437
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] google_cloud_contactcenterinsights_v1_phrase_matcher_object
3427
+ # Identifier. The resource name of the question. Format: projects/`project`/
3428
+ # locations/`location`/qaScorecards/`qa_scorecard`/revisions/`revision`/
3429
+ # qaQuestions/`qa_question`
3430
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion] google_cloud_contactcenterinsights_v1_qa_question_object
1438
3431
  # @param [String] update_mask
1439
- # The list of fields to be updated.
3432
+ # Required. The list of fields to be updated. All possible fields can be updated
3433
+ # by passing `*`, or a subset of the following updateable fields can be provided:
3434
+ # * `abbreviation` * `answer_choices` * `answer_instructions` * `order` * `
3435
+ # question_body` * `tags`
1440
3436
  # @param [String] fields
1441
3437
  # Selector specifying which fields to include in a partial response.
1442
3438
  # @param [String] quota_user
@@ -1446,20 +3442,20 @@ module Google
1446
3442
  # Request-specific options
1447
3443
  #
1448
3444
  # @yield [result, err] Result & error if block supplied
1449
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher] parsed result object
3445
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion] parsed result object
1450
3446
  # @yieldparam err [StandardError] error object if request failed
1451
3447
  #
1452
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher]
3448
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion]
1453
3449
  #
1454
3450
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1455
3451
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1456
3452
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1457
- def patch_project_location_phrase_matcher(name, google_cloud_contactcenterinsights_v1_phrase_matcher_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3453
+ def patch_project_location_qa_scorecard_revision_qa_question(name, google_cloud_contactcenterinsights_v1_qa_question_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1458
3454
  command = make_simple_command(:patch, 'v1/{+name}', options)
1459
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
1460
- command.request_object = google_cloud_contactcenterinsights_v1_phrase_matcher_object
1461
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher::Representation
1462
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PhraseMatcher
3455
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion::Representation
3456
+ command.request_object = google_cloud_contactcenterinsights_v1_qa_question_object
3457
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion::Representation
3458
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion
1463
3459
  command.params['name'] = name unless name.nil?
1464
3460
  command.query['updateMask'] = update_mask unless update_mask.nil?
1465
3461
  command.query['fields'] = fields unless fields.nil?