google-cloud-contact_center_insights-v1 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +3411 -242
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/operations.rb +12 -15
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb +122 -0
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/client.rb +3181 -229
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/operations.rb +43 -38
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb +2531 -527
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb +70 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb +65 -3
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +21 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb +1165 -3
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +496 -7
- data/proto_docs/google/longrunning/operations.rb +19 -14
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +26 -5
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -221,7 +213,7 @@ module Google
|
|
221
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
222
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
223
215
|
yield response, operation if block_given?
|
224
|
-
|
216
|
+
throw :response, response
|
225
217
|
end
|
226
218
|
rescue ::GRPC::BadStatus => e
|
227
219
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -317,7 +309,7 @@ module Google
|
|
317
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
318
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
319
311
|
yield response, operation if block_given?
|
320
|
-
|
312
|
+
throw :response, response
|
321
313
|
end
|
322
314
|
rescue ::GRPC::BadStatus => e
|
323
315
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -406,7 +398,6 @@ module Google
|
|
406
398
|
|
407
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
408
400
|
yield response, operation if block_given?
|
409
|
-
return response
|
410
401
|
end
|
411
402
|
rescue ::GRPC::BadStatus => e
|
412
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -421,8 +412,9 @@ module Google
|
|
421
412
|
# other methods to check whether the cancellation succeeded or whether the
|
422
413
|
# operation completed despite cancellation. On successful cancellation,
|
423
414
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
415
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
416
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
417
|
+
# `Code.CANCELLED`.
|
426
418
|
#
|
427
419
|
# @overload cancel_operation(request, options = nil)
|
428
420
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -501,7 +493,6 @@ module Google
|
|
501
493
|
|
502
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
503
495
|
yield response, operation if block_given?
|
504
|
-
return response
|
505
496
|
end
|
506
497
|
rescue ::GRPC::BadStatus => e
|
507
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +590,7 @@ module Google
|
|
599
590
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
600
591
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
601
592
|
yield response, operation if block_given?
|
602
|
-
|
593
|
+
throw :response, response
|
603
594
|
end
|
604
595
|
rescue ::GRPC::BadStatus => e
|
605
596
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -688,6 +679,11 @@ module Google
|
|
688
679
|
# default endpoint URL. The default value of nil uses the environment
|
689
680
|
# universe (usually the default "googleapis.com" universe).
|
690
681
|
# @return [::String,nil]
|
682
|
+
# @!attribute [rw] logger
|
683
|
+
# A custom logger to use for request/response debug logging, or the value
|
684
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
685
|
+
# explicitly disable logging.
|
686
|
+
# @return [::Logger,:default,nil]
|
691
687
|
#
|
692
688
|
class Configuration
|
693
689
|
extend ::Gapic::Config
|
@@ -712,6 +708,7 @@ module Google
|
|
712
708
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
713
709
|
config_attr :quota_project, nil, ::String, nil
|
714
710
|
config_attr :universe_domain, nil, ::String, nil
|
711
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
715
712
|
|
716
713
|
# @private
|
717
714
|
def initialize parent_config = nil
|
@@ -45,6 +45,25 @@ module Google
|
|
45
45
|
"projects/#{project}/locations/#{location}/conversations/#{conversation}/analyses/#{analysis}"
|
46
46
|
end
|
47
47
|
|
48
|
+
##
|
49
|
+
# Create a fully-qualified AnalysisRule resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/analysisRules/{analysis_rule}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param analysis_rule [String]
|
58
|
+
#
|
59
|
+
# @return [::String]
|
60
|
+
def analysis_rule_path project:, location:, analysis_rule:
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/analysisRules/#{analysis_rule}"
|
65
|
+
end
|
66
|
+
|
48
67
|
##
|
49
68
|
# Create a fully-qualified Conversation resource string.
|
50
69
|
#
|
@@ -100,6 +119,27 @@ module Google
|
|
100
119
|
"projects/#{project}/locations/#{location}/encryptionSpec"
|
101
120
|
end
|
102
121
|
|
122
|
+
##
|
123
|
+
# Create a fully-qualified FeedbackLabel resource string.
|
124
|
+
#
|
125
|
+
# The resource will be in the following format:
|
126
|
+
#
|
127
|
+
# `projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}`
|
128
|
+
#
|
129
|
+
# @param project [String]
|
130
|
+
# @param location [String]
|
131
|
+
# @param conversation [String]
|
132
|
+
# @param feedback_label [String]
|
133
|
+
#
|
134
|
+
# @return [::String]
|
135
|
+
def feedback_label_path project:, location:, conversation:, feedback_label:
|
136
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
137
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
138
|
+
raise ::ArgumentError, "conversation cannot contain /" if conversation.to_s.include? "/"
|
139
|
+
|
140
|
+
"projects/#{project}/locations/#{location}/conversations/#{conversation}/feedbackLabels/#{feedback_label}"
|
141
|
+
end
|
142
|
+
|
103
143
|
##
|
104
144
|
# Create a fully-qualified Issue resource string.
|
105
145
|
#
|
@@ -221,6 +261,88 @@ module Google
|
|
221
261
|
"projects/#{project}/locations/#{location}/phraseMatchers/#{phrase_matcher}"
|
222
262
|
end
|
223
263
|
|
264
|
+
##
|
265
|
+
# Create a fully-qualified QaQuestion resource string.
|
266
|
+
#
|
267
|
+
# The resource will be in the following format:
|
268
|
+
#
|
269
|
+
# `projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}`
|
270
|
+
#
|
271
|
+
# @param project [String]
|
272
|
+
# @param location [String]
|
273
|
+
# @param qa_scorecard [String]
|
274
|
+
# @param revision [String]
|
275
|
+
# @param qa_question [String]
|
276
|
+
#
|
277
|
+
# @return [::String]
|
278
|
+
def qa_question_path project:, location:, qa_scorecard:, revision:, qa_question:
|
279
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
280
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
281
|
+
raise ::ArgumentError, "qa_scorecard cannot contain /" if qa_scorecard.to_s.include? "/"
|
282
|
+
raise ::ArgumentError, "revision cannot contain /" if revision.to_s.include? "/"
|
283
|
+
|
284
|
+
"projects/#{project}/locations/#{location}/qaScorecards/#{qa_scorecard}/revisions/#{revision}/qaQuestions/#{qa_question}"
|
285
|
+
end
|
286
|
+
|
287
|
+
##
|
288
|
+
# Create a fully-qualified QaScorecard resource string.
|
289
|
+
#
|
290
|
+
# The resource will be in the following format:
|
291
|
+
#
|
292
|
+
# `projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}`
|
293
|
+
#
|
294
|
+
# @param project [String]
|
295
|
+
# @param location [String]
|
296
|
+
# @param qa_scorecard [String]
|
297
|
+
#
|
298
|
+
# @return [::String]
|
299
|
+
def qa_scorecard_path project:, location:, qa_scorecard:
|
300
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
301
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
302
|
+
|
303
|
+
"projects/#{project}/locations/#{location}/qaScorecards/#{qa_scorecard}"
|
304
|
+
end
|
305
|
+
|
306
|
+
##
|
307
|
+
# Create a fully-qualified QaScorecardResult resource string.
|
308
|
+
#
|
309
|
+
# The resource will be in the following format:
|
310
|
+
#
|
311
|
+
# `projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result}`
|
312
|
+
#
|
313
|
+
# @param project [String]
|
314
|
+
# @param location [String]
|
315
|
+
# @param qa_scorecard_result [String]
|
316
|
+
#
|
317
|
+
# @return [::String]
|
318
|
+
def qa_scorecard_result_path project:, location:, qa_scorecard_result:
|
319
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
320
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
321
|
+
|
322
|
+
"projects/#{project}/locations/#{location}/qaScorecardResults/#{qa_scorecard_result}"
|
323
|
+
end
|
324
|
+
|
325
|
+
##
|
326
|
+
# Create a fully-qualified QaScorecardRevision resource string.
|
327
|
+
#
|
328
|
+
# The resource will be in the following format:
|
329
|
+
#
|
330
|
+
# `projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}`
|
331
|
+
#
|
332
|
+
# @param project [String]
|
333
|
+
# @param location [String]
|
334
|
+
# @param qa_scorecard [String]
|
335
|
+
# @param revision [String]
|
336
|
+
#
|
337
|
+
# @return [::String]
|
338
|
+
def qa_scorecard_revision_path project:, location:, qa_scorecard:, revision:
|
339
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
340
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
341
|
+
raise ::ArgumentError, "qa_scorecard cannot contain /" if qa_scorecard.to_s.include? "/"
|
342
|
+
|
343
|
+
"projects/#{project}/locations/#{location}/qaScorecards/#{qa_scorecard}/revisions/#{revision}"
|
344
|
+
end
|
345
|
+
|
224
346
|
##
|
225
347
|
# Create a fully-qualified Recognizer resource string.
|
226
348
|
#
|