google-cloud-contact_center_insights-v1 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +718 -88
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/operations.rb +115 -12
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb +6 -0
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb +2 -0
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +1 -0
- data/proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb +33 -7
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +3 -0
- metadata +2 -2
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -27,6 +27,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
27
|
map :smart_highlighter_matches, :string, :int32, 4
|
28
28
|
map :custom_highlighter_matches, :string, :int32, 5
|
29
29
|
map :issue_matches, :string, :int32, 6
|
30
|
+
map :issue_matches_stats, :string, :message, 8, "google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats"
|
30
31
|
optional :conversation_count_time_series, :message, 7, "google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries"
|
31
32
|
end
|
32
33
|
add_message "google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries" do
|
@@ -200,6 +201,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
200
201
|
add_message "google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest" do
|
201
202
|
optional :name, :string, 1
|
202
203
|
end
|
204
|
+
add_message "google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest" do
|
205
|
+
optional :phrase_matcher, :message, 1, "google.cloud.contactcenterinsights.v1.PhraseMatcher"
|
206
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
207
|
+
end
|
203
208
|
add_message "google.cloud.contactcenterinsights.v1.GetSettingsRequest" do
|
204
209
|
optional :name, :string, 1
|
205
210
|
end
|
@@ -264,6 +269,7 @@ module Google
|
|
264
269
|
ListPhraseMatchersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListPhraseMatchersResponse").msgclass
|
265
270
|
GetPhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest").msgclass
|
266
271
|
DeletePhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest").msgclass
|
272
|
+
UpdatePhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest").msgclass
|
267
273
|
GetSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetSettingsRequest").msgclass
|
268
274
|
UpdateSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateSettingsRequest").msgclass
|
269
275
|
ConversationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationView").enummodule
|
@@ -86,6 +86,8 @@ module Google
|
|
86
86
|
rpc :ListPhraseMatchers, ::Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersRequest, ::Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersResponse
|
87
87
|
# Deletes a phrase matcher.
|
88
88
|
rpc :DeletePhraseMatcher, ::Google::Cloud::ContactCenterInsights::V1::DeletePhraseMatcherRequest, ::Google::Protobuf::Empty
|
89
|
+
# Updates a phrase matcher.
|
90
|
+
rpc :UpdatePhraseMatcher, ::Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest, ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
|
89
91
|
# Gets conversation statistics.
|
90
92
|
rpc :CalculateStats, ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest, ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse
|
91
93
|
# Gets project-level settings.
|
@@ -225,6 +225,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
225
225
|
add_message "google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats" do
|
226
226
|
optional :issue, :string, 1
|
227
227
|
optional :labeled_conversations_count, :int64, 2
|
228
|
+
optional :display_name, :string, 3
|
228
229
|
end
|
229
230
|
add_message "google.cloud.contactcenterinsights.v1.PhraseMatcher" do
|
230
231
|
optional :name, :string, 1
|
@@ -60,6 +60,11 @@ module Google
|
|
60
60
|
# `projects/<Project ID>/locations/<Location ID>/issueModels/<Issue Model
|
61
61
|
# ID>/issues/<Issue ID>`
|
62
62
|
# Deprecated, use `issue_matches_stats` field instead.
|
63
|
+
# @!attribute [rw] issue_matches_stats
|
64
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats}]
|
65
|
+
# A map associating each issue resource name with its respective number of
|
66
|
+
# matches in the set of conversations. Key has the format:
|
67
|
+
# `projects/<ProjectID>/locations/<LocationID>/issueModels/<IssueModelID>/issues/<IssueID>`
|
63
68
|
# @!attribute [rw] conversation_count_time_series
|
64
69
|
# @return [::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse::TimeSeries]
|
65
70
|
# A time series representing the count of conversations created over time
|
@@ -120,6 +125,15 @@ module Google
|
|
120
125
|
include ::Google::Protobuf::MessageExts
|
121
126
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
122
127
|
end
|
128
|
+
|
129
|
+
# @!attribute [rw] key
|
130
|
+
# @return [::String]
|
131
|
+
# @!attribute [rw] value
|
132
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats]
|
133
|
+
class IssueMatchesStatsEntry
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
|
+
end
|
123
137
|
end
|
124
138
|
|
125
139
|
# Metadata for a create analysis operation.
|
@@ -331,9 +345,9 @@ module Google
|
|
331
345
|
# the resource project will be used.
|
332
346
|
# @!attribute [rw] dataset
|
333
347
|
# @return [::String]
|
334
|
-
# Required. The name of the BigQuery dataset that the snapshot result
|
335
|
-
# exported to. If this dataset does not exist, the export call
|
336
|
-
# INVALID_ARGUMENT error.
|
348
|
+
# Required. The name of the BigQuery dataset that the snapshot result
|
349
|
+
# should be exported to. If this dataset does not exist, the export call
|
350
|
+
# returns an INVALID_ARGUMENT error.
|
337
351
|
# @!attribute [rw] table
|
338
352
|
# @return [::String]
|
339
353
|
# The BigQuery table name to which the insights data should be written.
|
@@ -581,10 +595,10 @@ module Google
|
|
581
595
|
# Request to create a phrase matcher.
|
582
596
|
# @!attribute [rw] parent
|
583
597
|
# @return [::String]
|
584
|
-
# Required. The parent resource of the phrase matcher. Required. The location
|
585
|
-
# a phrase matcher for.
|
586
|
-
#
|
587
|
-
#
|
598
|
+
# Required. The parent resource of the phrase matcher. Required. The location
|
599
|
+
# to create a phrase matcher for. Format: `projects/<Project
|
600
|
+
# ID>/locations/<Location ID>` or `projects/<Project
|
601
|
+
# Number>/locations/<Location ID>`
|
588
602
|
# @!attribute [rw] phrase_matcher
|
589
603
|
# @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
|
590
604
|
# Required. The phrase matcher resource to create.
|
@@ -648,6 +662,18 @@ module Google
|
|
648
662
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
649
663
|
end
|
650
664
|
|
665
|
+
# The request to update a phrase matcher.
|
666
|
+
# @!attribute [rw] phrase_matcher
|
667
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
|
668
|
+
# Required. The new values for the phrase matcher.
|
669
|
+
# @!attribute [rw] update_mask
|
670
|
+
# @return [::Google::Protobuf::FieldMask]
|
671
|
+
# The list of fields to be updated.
|
672
|
+
class UpdatePhraseMatcherRequest
|
673
|
+
include ::Google::Protobuf::MessageExts
|
674
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
675
|
+
end
|
676
|
+
|
651
677
|
# The request to get project-level settings.
|
652
678
|
# @!attribute [rw] name
|
653
679
|
# @return [::String]
|
@@ -771,6 +771,9 @@ module Google
|
|
771
771
|
# @!attribute [rw] labeled_conversations_count
|
772
772
|
# @return [::Integer]
|
773
773
|
# Number of conversations attached to the issue at this point in time.
|
774
|
+
# @!attribute [rw] display_name
|
775
|
+
# @return [::String]
|
776
|
+
# Display name of the issue.
|
774
777
|
class IssueStats
|
775
778
|
include ::Google::Protobuf::MessageExts
|
776
779
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-contact_center_insights-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|