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
data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb
CHANGED
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the create_conversation REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "create_conversation",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::ContactCenterInsights::V1::Conversation.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "upload_conversation",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "update_conversation",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::ContactCenterInsights::V1::Conversation.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "get_conversation",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Cloud::ContactCenterInsights::V1::Conversation.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "list_conversations",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Cloud::ContactCenterInsights::V1::ListConversationsResponse.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "delete_conversation",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "create_analysis",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -353,16 +379,18 @@ module Google
|
|
353
379
|
|
354
380
|
response = @client_stub.make_http_request(
|
355
381
|
verb,
|
356
|
-
uri:
|
357
|
-
body:
|
358
|
-
params:
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "get_analysis",
|
359
386
|
options: options
|
360
387
|
)
|
361
388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
362
389
|
result = ::Google::Cloud::ContactCenterInsights::V1::Analysis.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
|
365
|
-
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
366
394
|
end
|
367
395
|
|
368
396
|
##
|
@@ -391,16 +419,18 @@ module Google
|
|
391
419
|
|
392
420
|
response = @client_stub.make_http_request(
|
393
421
|
verb,
|
394
|
-
uri:
|
395
|
-
body:
|
396
|
-
params:
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "list_analyses",
|
397
426
|
options: options
|
398
427
|
)
|
399
428
|
operation = ::Gapic::Rest::TransportOperation.new response
|
400
429
|
result = ::Google::Cloud::ContactCenterInsights::V1::ListAnalysesResponse.decode_json response.body, ignore_unknown_fields: true
|
401
|
-
|
402
|
-
|
403
|
-
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
404
434
|
end
|
405
435
|
|
406
436
|
##
|
@@ -429,16 +459,18 @@ module Google
|
|
429
459
|
|
430
460
|
response = @client_stub.make_http_request(
|
431
461
|
verb,
|
432
|
-
uri:
|
433
|
-
body:
|
434
|
-
params:
|
462
|
+
uri: uri,
|
463
|
+
body: body || "",
|
464
|
+
params: query_string_params,
|
465
|
+
method_name: "delete_analysis",
|
435
466
|
options: options
|
436
467
|
)
|
437
468
|
operation = ::Gapic::Rest::TransportOperation.new response
|
438
469
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
439
|
-
|
440
|
-
|
441
|
-
|
470
|
+
catch :response do
|
471
|
+
yield result, operation if block_given?
|
472
|
+
result
|
473
|
+
end
|
442
474
|
end
|
443
475
|
|
444
476
|
##
|
@@ -467,16 +499,18 @@ module Google
|
|
467
499
|
|
468
500
|
response = @client_stub.make_http_request(
|
469
501
|
verb,
|
470
|
-
uri:
|
471
|
-
body:
|
472
|
-
params:
|
502
|
+
uri: uri,
|
503
|
+
body: body || "",
|
504
|
+
params: query_string_params,
|
505
|
+
method_name: "bulk_analyze_conversations",
|
473
506
|
options: options
|
474
507
|
)
|
475
508
|
operation = ::Gapic::Rest::TransportOperation.new response
|
476
509
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
477
|
-
|
478
|
-
|
479
|
-
|
510
|
+
catch :response do
|
511
|
+
yield result, operation if block_given?
|
512
|
+
result
|
513
|
+
end
|
480
514
|
end
|
481
515
|
|
482
516
|
##
|
@@ -505,16 +539,18 @@ module Google
|
|
505
539
|
|
506
540
|
response = @client_stub.make_http_request(
|
507
541
|
verb,
|
508
|
-
uri:
|
509
|
-
body:
|
510
|
-
params:
|
542
|
+
uri: uri,
|
543
|
+
body: body || "",
|
544
|
+
params: query_string_params,
|
545
|
+
method_name: "bulk_delete_conversations",
|
511
546
|
options: options
|
512
547
|
)
|
513
548
|
operation = ::Gapic::Rest::TransportOperation.new response
|
514
549
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
515
|
-
|
516
|
-
|
517
|
-
|
550
|
+
catch :response do
|
551
|
+
yield result, operation if block_given?
|
552
|
+
result
|
553
|
+
end
|
518
554
|
end
|
519
555
|
|
520
556
|
##
|
@@ -543,16 +579,18 @@ module Google
|
|
543
579
|
|
544
580
|
response = @client_stub.make_http_request(
|
545
581
|
verb,
|
546
|
-
uri:
|
547
|
-
body:
|
548
|
-
params:
|
582
|
+
uri: uri,
|
583
|
+
body: body || "",
|
584
|
+
params: query_string_params,
|
585
|
+
method_name: "ingest_conversations",
|
549
586
|
options: options
|
550
587
|
)
|
551
588
|
operation = ::Gapic::Rest::TransportOperation.new response
|
552
589
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
553
|
-
|
554
|
-
|
555
|
-
|
590
|
+
catch :response do
|
591
|
+
yield result, operation if block_given?
|
592
|
+
result
|
593
|
+
end
|
556
594
|
end
|
557
595
|
|
558
596
|
##
|
@@ -581,16 +619,18 @@ module Google
|
|
581
619
|
|
582
620
|
response = @client_stub.make_http_request(
|
583
621
|
verb,
|
584
|
-
uri:
|
585
|
-
body:
|
586
|
-
params:
|
622
|
+
uri: uri,
|
623
|
+
body: body || "",
|
624
|
+
params: query_string_params,
|
625
|
+
method_name: "export_insights_data",
|
587
626
|
options: options
|
588
627
|
)
|
589
628
|
operation = ::Gapic::Rest::TransportOperation.new response
|
590
629
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
591
|
-
|
592
|
-
|
593
|
-
|
630
|
+
catch :response do
|
631
|
+
yield result, operation if block_given?
|
632
|
+
result
|
633
|
+
end
|
594
634
|
end
|
595
635
|
|
596
636
|
##
|
@@ -619,16 +659,18 @@ module Google
|
|
619
659
|
|
620
660
|
response = @client_stub.make_http_request(
|
621
661
|
verb,
|
622
|
-
uri:
|
623
|
-
body:
|
624
|
-
params:
|
662
|
+
uri: uri,
|
663
|
+
body: body || "",
|
664
|
+
params: query_string_params,
|
665
|
+
method_name: "create_issue_model",
|
625
666
|
options: options
|
626
667
|
)
|
627
668
|
operation = ::Gapic::Rest::TransportOperation.new response
|
628
669
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
629
|
-
|
630
|
-
|
631
|
-
|
670
|
+
catch :response do
|
671
|
+
yield result, operation if block_given?
|
672
|
+
result
|
673
|
+
end
|
632
674
|
end
|
633
675
|
|
634
676
|
##
|
@@ -657,16 +699,18 @@ module Google
|
|
657
699
|
|
658
700
|
response = @client_stub.make_http_request(
|
659
701
|
verb,
|
660
|
-
uri:
|
661
|
-
body:
|
662
|
-
params:
|
702
|
+
uri: uri,
|
703
|
+
body: body || "",
|
704
|
+
params: query_string_params,
|
705
|
+
method_name: "update_issue_model",
|
663
706
|
options: options
|
664
707
|
)
|
665
708
|
operation = ::Gapic::Rest::TransportOperation.new response
|
666
709
|
result = ::Google::Cloud::ContactCenterInsights::V1::IssueModel.decode_json response.body, ignore_unknown_fields: true
|
667
|
-
|
668
|
-
|
669
|
-
|
710
|
+
catch :response do
|
711
|
+
yield result, operation if block_given?
|
712
|
+
result
|
713
|
+
end
|
670
714
|
end
|
671
715
|
|
672
716
|
##
|
@@ -695,16 +739,18 @@ module Google
|
|
695
739
|
|
696
740
|
response = @client_stub.make_http_request(
|
697
741
|
verb,
|
698
|
-
uri:
|
699
|
-
body:
|
700
|
-
params:
|
742
|
+
uri: uri,
|
743
|
+
body: body || "",
|
744
|
+
params: query_string_params,
|
745
|
+
method_name: "get_issue_model",
|
701
746
|
options: options
|
702
747
|
)
|
703
748
|
operation = ::Gapic::Rest::TransportOperation.new response
|
704
749
|
result = ::Google::Cloud::ContactCenterInsights::V1::IssueModel.decode_json response.body, ignore_unknown_fields: true
|
705
|
-
|
706
|
-
|
707
|
-
|
750
|
+
catch :response do
|
751
|
+
yield result, operation if block_given?
|
752
|
+
result
|
753
|
+
end
|
708
754
|
end
|
709
755
|
|
710
756
|
##
|
@@ -733,16 +779,18 @@ module Google
|
|
733
779
|
|
734
780
|
response = @client_stub.make_http_request(
|
735
781
|
verb,
|
736
|
-
uri:
|
737
|
-
body:
|
738
|
-
params:
|
782
|
+
uri: uri,
|
783
|
+
body: body || "",
|
784
|
+
params: query_string_params,
|
785
|
+
method_name: "list_issue_models",
|
739
786
|
options: options
|
740
787
|
)
|
741
788
|
operation = ::Gapic::Rest::TransportOperation.new response
|
742
789
|
result = ::Google::Cloud::ContactCenterInsights::V1::ListIssueModelsResponse.decode_json response.body, ignore_unknown_fields: true
|
743
|
-
|
744
|
-
|
745
|
-
|
790
|
+
catch :response do
|
791
|
+
yield result, operation if block_given?
|
792
|
+
result
|
793
|
+
end
|
746
794
|
end
|
747
795
|
|
748
796
|
##
|
@@ -771,16 +819,18 @@ module Google
|
|
771
819
|
|
772
820
|
response = @client_stub.make_http_request(
|
773
821
|
verb,
|
774
|
-
uri:
|
775
|
-
body:
|
776
|
-
params:
|
822
|
+
uri: uri,
|
823
|
+
body: body || "",
|
824
|
+
params: query_string_params,
|
825
|
+
method_name: "delete_issue_model",
|
777
826
|
options: options
|
778
827
|
)
|
779
828
|
operation = ::Gapic::Rest::TransportOperation.new response
|
780
829
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
781
|
-
|
782
|
-
|
783
|
-
|
830
|
+
catch :response do
|
831
|
+
yield result, operation if block_given?
|
832
|
+
result
|
833
|
+
end
|
784
834
|
end
|
785
835
|
|
786
836
|
##
|
@@ -809,16 +859,18 @@ module Google
|
|
809
859
|
|
810
860
|
response = @client_stub.make_http_request(
|
811
861
|
verb,
|
812
|
-
uri:
|
813
|
-
body:
|
814
|
-
params:
|
862
|
+
uri: uri,
|
863
|
+
body: body || "",
|
864
|
+
params: query_string_params,
|
865
|
+
method_name: "deploy_issue_model",
|
815
866
|
options: options
|
816
867
|
)
|
817
868
|
operation = ::Gapic::Rest::TransportOperation.new response
|
818
869
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
819
|
-
|
820
|
-
|
821
|
-
|
870
|
+
catch :response do
|
871
|
+
yield result, operation if block_given?
|
872
|
+
result
|
873
|
+
end
|
822
874
|
end
|
823
875
|
|
824
876
|
##
|
@@ -847,16 +899,18 @@ module Google
|
|
847
899
|
|
848
900
|
response = @client_stub.make_http_request(
|
849
901
|
verb,
|
850
|
-
uri:
|
851
|
-
body:
|
852
|
-
params:
|
902
|
+
uri: uri,
|
903
|
+
body: body || "",
|
904
|
+
params: query_string_params,
|
905
|
+
method_name: "undeploy_issue_model",
|
853
906
|
options: options
|
854
907
|
)
|
855
908
|
operation = ::Gapic::Rest::TransportOperation.new response
|
856
909
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
857
|
-
|
858
|
-
|
859
|
-
|
910
|
+
catch :response do
|
911
|
+
yield result, operation if block_given?
|
912
|
+
result
|
913
|
+
end
|
860
914
|
end
|
861
915
|
|
862
916
|
##
|
@@ -885,16 +939,18 @@ module Google
|
|
885
939
|
|
886
940
|
response = @client_stub.make_http_request(
|
887
941
|
verb,
|
888
|
-
uri:
|
889
|
-
body:
|
890
|
-
params:
|
942
|
+
uri: uri,
|
943
|
+
body: body || "",
|
944
|
+
params: query_string_params,
|
945
|
+
method_name: "export_issue_model",
|
891
946
|
options: options
|
892
947
|
)
|
893
948
|
operation = ::Gapic::Rest::TransportOperation.new response
|
894
949
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
895
|
-
|
896
|
-
|
897
|
-
|
950
|
+
catch :response do
|
951
|
+
yield result, operation if block_given?
|
952
|
+
result
|
953
|
+
end
|
898
954
|
end
|
899
955
|
|
900
956
|
##
|
@@ -923,16 +979,18 @@ module Google
|
|
923
979
|
|
924
980
|
response = @client_stub.make_http_request(
|
925
981
|
verb,
|
926
|
-
uri:
|
927
|
-
body:
|
928
|
-
params:
|
982
|
+
uri: uri,
|
983
|
+
body: body || "",
|
984
|
+
params: query_string_params,
|
985
|
+
method_name: "import_issue_model",
|
929
986
|
options: options
|
930
987
|
)
|
931
988
|
operation = ::Gapic::Rest::TransportOperation.new response
|
932
989
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
933
|
-
|
934
|
-
|
935
|
-
|
990
|
+
catch :response do
|
991
|
+
yield result, operation if block_given?
|
992
|
+
result
|
993
|
+
end
|
936
994
|
end
|
937
995
|
|
938
996
|
##
|
@@ -961,16 +1019,18 @@ module Google
|
|
961
1019
|
|
962
1020
|
response = @client_stub.make_http_request(
|
963
1021
|
verb,
|
964
|
-
uri:
|
965
|
-
body:
|
966
|
-
params:
|
1022
|
+
uri: uri,
|
1023
|
+
body: body || "",
|
1024
|
+
params: query_string_params,
|
1025
|
+
method_name: "get_issue",
|
967
1026
|
options: options
|
968
1027
|
)
|
969
1028
|
operation = ::Gapic::Rest::TransportOperation.new response
|
970
1029
|
result = ::Google::Cloud::ContactCenterInsights::V1::Issue.decode_json response.body, ignore_unknown_fields: true
|
971
|
-
|
972
|
-
|
973
|
-
|
1030
|
+
catch :response do
|
1031
|
+
yield result, operation if block_given?
|
1032
|
+
result
|
1033
|
+
end
|
974
1034
|
end
|
975
1035
|
|
976
1036
|
##
|
@@ -999,16 +1059,18 @@ module Google
|
|
999
1059
|
|
1000
1060
|
response = @client_stub.make_http_request(
|
1001
1061
|
verb,
|
1002
|
-
uri:
|
1003
|
-
body:
|
1004
|
-
params:
|
1062
|
+
uri: uri,
|
1063
|
+
body: body || "",
|
1064
|
+
params: query_string_params,
|
1065
|
+
method_name: "list_issues",
|
1005
1066
|
options: options
|
1006
1067
|
)
|
1007
1068
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1008
1069
|
result = ::Google::Cloud::ContactCenterInsights::V1::ListIssuesResponse.decode_json response.body, ignore_unknown_fields: true
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1070
|
+
catch :response do
|
1071
|
+
yield result, operation if block_given?
|
1072
|
+
result
|
1073
|
+
end
|
1012
1074
|
end
|
1013
1075
|
|
1014
1076
|
##
|
@@ -1037,16 +1099,18 @@ module Google
|
|
1037
1099
|
|
1038
1100
|
response = @client_stub.make_http_request(
|
1039
1101
|
verb,
|
1040
|
-
uri:
|
1041
|
-
body:
|
1042
|
-
params:
|
1102
|
+
uri: uri,
|
1103
|
+
body: body || "",
|
1104
|
+
params: query_string_params,
|
1105
|
+
method_name: "update_issue",
|
1043
1106
|
options: options
|
1044
1107
|
)
|
1045
1108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1046
1109
|
result = ::Google::Cloud::ContactCenterInsights::V1::Issue.decode_json response.body, ignore_unknown_fields: true
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1110
|
+
catch :response do
|
1111
|
+
yield result, operation if block_given?
|
1112
|
+
result
|
1113
|
+
end
|
1050
1114
|
end
|
1051
1115
|
|
1052
1116
|
##
|
@@ -1075,16 +1139,18 @@ module Google
|
|
1075
1139
|
|
1076
1140
|
response = @client_stub.make_http_request(
|
1077
1141
|
verb,
|
1078
|
-
uri:
|
1079
|
-
body:
|
1080
|
-
params:
|
1142
|
+
uri: uri,
|
1143
|
+
body: body || "",
|
1144
|
+
params: query_string_params,
|
1145
|
+
method_name: "delete_issue",
|
1081
1146
|
options: options
|
1082
1147
|
)
|
1083
1148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1084
1149
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1150
|
+
catch :response do
|
1151
|
+
yield result, operation if block_given?
|
1152
|
+
result
|
1153
|
+
end
|
1088
1154
|
end
|
1089
1155
|
|
1090
1156
|
##
|
@@ -1113,16 +1179,18 @@ module Google
|
|
1113
1179
|
|
1114
1180
|
response = @client_stub.make_http_request(
|
1115
1181
|
verb,
|
1116
|
-
uri:
|
1117
|
-
body:
|
1118
|
-
params:
|
1182
|
+
uri: uri,
|
1183
|
+
body: body || "",
|
1184
|
+
params: query_string_params,
|
1185
|
+
method_name: "calculate_issue_model_stats",
|
1119
1186
|
options: options
|
1120
1187
|
)
|
1121
1188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1122
1189
|
result = ::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse.decode_json response.body, ignore_unknown_fields: true
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1190
|
+
catch :response do
|
1191
|
+
yield result, operation if block_given?
|
1192
|
+
result
|
1193
|
+
end
|
1126
1194
|
end
|
1127
1195
|
|
1128
1196
|
##
|
@@ -1151,16 +1219,18 @@ module Google
|
|
1151
1219
|
|
1152
1220
|
response = @client_stub.make_http_request(
|
1153
1221
|
verb,
|
1154
|
-
uri:
|
1155
|
-
body:
|
1156
|
-
params:
|
1222
|
+
uri: uri,
|
1223
|
+
body: body || "",
|
1224
|
+
params: query_string_params,
|
1225
|
+
method_name: "create_phrase_matcher",
|
1157
1226
|
options: options
|
1158
1227
|
)
|
1159
1228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1160
1229
|
result = ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.decode_json response.body, ignore_unknown_fields: true
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1230
|
+
catch :response do
|
1231
|
+
yield result, operation if block_given?
|
1232
|
+
result
|
1233
|
+
end
|
1164
1234
|
end
|
1165
1235
|
|
1166
1236
|
##
|
@@ -1189,16 +1259,18 @@ module Google
|
|
1189
1259
|
|
1190
1260
|
response = @client_stub.make_http_request(
|
1191
1261
|
verb,
|
1192
|
-
uri:
|
1193
|
-
body:
|
1194
|
-
params:
|
1262
|
+
uri: uri,
|
1263
|
+
body: body || "",
|
1264
|
+
params: query_string_params,
|
1265
|
+
method_name: "get_phrase_matcher",
|
1195
1266
|
options: options
|
1196
1267
|
)
|
1197
1268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1198
1269
|
result = ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.decode_json response.body, ignore_unknown_fields: true
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1270
|
+
catch :response do
|
1271
|
+
yield result, operation if block_given?
|
1272
|
+
result
|
1273
|
+
end
|
1202
1274
|
end
|
1203
1275
|
|
1204
1276
|
##
|
@@ -1227,16 +1299,18 @@ module Google
|
|
1227
1299
|
|
1228
1300
|
response = @client_stub.make_http_request(
|
1229
1301
|
verb,
|
1230
|
-
uri:
|
1231
|
-
body:
|
1232
|
-
params:
|
1302
|
+
uri: uri,
|
1303
|
+
body: body || "",
|
1304
|
+
params: query_string_params,
|
1305
|
+
method_name: "list_phrase_matchers",
|
1233
1306
|
options: options
|
1234
1307
|
)
|
1235
1308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1236
1309
|
result = ::Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersResponse.decode_json response.body, ignore_unknown_fields: true
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1310
|
+
catch :response do
|
1311
|
+
yield result, operation if block_given?
|
1312
|
+
result
|
1313
|
+
end
|
1240
1314
|
end
|
1241
1315
|
|
1242
1316
|
##
|
@@ -1265,16 +1339,18 @@ module Google
|
|
1265
1339
|
|
1266
1340
|
response = @client_stub.make_http_request(
|
1267
1341
|
verb,
|
1268
|
-
uri:
|
1269
|
-
body:
|
1270
|
-
params:
|
1342
|
+
uri: uri,
|
1343
|
+
body: body || "",
|
1344
|
+
params: query_string_params,
|
1345
|
+
method_name: "delete_phrase_matcher",
|
1271
1346
|
options: options
|
1272
1347
|
)
|
1273
1348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1274
1349
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1350
|
+
catch :response do
|
1351
|
+
yield result, operation if block_given?
|
1352
|
+
result
|
1353
|
+
end
|
1278
1354
|
end
|
1279
1355
|
|
1280
1356
|
##
|
@@ -1303,16 +1379,18 @@ module Google
|
|
1303
1379
|
|
1304
1380
|
response = @client_stub.make_http_request(
|
1305
1381
|
verb,
|
1306
|
-
uri:
|
1307
|
-
body:
|
1308
|
-
params:
|
1382
|
+
uri: uri,
|
1383
|
+
body: body || "",
|
1384
|
+
params: query_string_params,
|
1385
|
+
method_name: "update_phrase_matcher",
|
1309
1386
|
options: options
|
1310
1387
|
)
|
1311
1388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1312
1389
|
result = ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.decode_json response.body, ignore_unknown_fields: true
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1390
|
+
catch :response do
|
1391
|
+
yield result, operation if block_given?
|
1392
|
+
result
|
1393
|
+
end
|
1316
1394
|
end
|
1317
1395
|
|
1318
1396
|
##
|
@@ -1341,16 +1419,18 @@ module Google
|
|
1341
1419
|
|
1342
1420
|
response = @client_stub.make_http_request(
|
1343
1421
|
verb,
|
1344
|
-
uri:
|
1345
|
-
body:
|
1346
|
-
params:
|
1422
|
+
uri: uri,
|
1423
|
+
body: body || "",
|
1424
|
+
params: query_string_params,
|
1425
|
+
method_name: "calculate_stats",
|
1347
1426
|
options: options
|
1348
1427
|
)
|
1349
1428
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1350
1429
|
result = ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse.decode_json response.body, ignore_unknown_fields: true
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1430
|
+
catch :response do
|
1431
|
+
yield result, operation if block_given?
|
1432
|
+
result
|
1433
|
+
end
|
1354
1434
|
end
|
1355
1435
|
|
1356
1436
|
##
|
@@ -1379,16 +1459,18 @@ module Google
|
|
1379
1459
|
|
1380
1460
|
response = @client_stub.make_http_request(
|
1381
1461
|
verb,
|
1382
|
-
uri:
|
1383
|
-
body:
|
1384
|
-
params:
|
1462
|
+
uri: uri,
|
1463
|
+
body: body || "",
|
1464
|
+
params: query_string_params,
|
1465
|
+
method_name: "get_settings",
|
1385
1466
|
options: options
|
1386
1467
|
)
|
1387
1468
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1388
1469
|
result = ::Google::Cloud::ContactCenterInsights::V1::Settings.decode_json response.body, ignore_unknown_fields: true
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1470
|
+
catch :response do
|
1471
|
+
yield result, operation if block_given?
|
1472
|
+
result
|
1473
|
+
end
|
1392
1474
|
end
|
1393
1475
|
|
1394
1476
|
##
|
@@ -1417,16 +1499,218 @@ module Google
|
|
1417
1499
|
|
1418
1500
|
response = @client_stub.make_http_request(
|
1419
1501
|
verb,
|
1420
|
-
uri:
|
1421
|
-
body:
|
1422
|
-
params:
|
1502
|
+
uri: uri,
|
1503
|
+
body: body || "",
|
1504
|
+
params: query_string_params,
|
1505
|
+
method_name: "update_settings",
|
1423
1506
|
options: options
|
1424
1507
|
)
|
1425
1508
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1426
1509
|
result = ::Google::Cloud::ContactCenterInsights::V1::Settings.decode_json response.body, ignore_unknown_fields: true
|
1510
|
+
catch :response do
|
1511
|
+
yield result, operation if block_given?
|
1512
|
+
result
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
##
|
1517
|
+
# Baseline implementation for the create_analysis_rule REST call
|
1518
|
+
#
|
1519
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest]
|
1520
|
+
# A request object representing the call parameters. Required.
|
1521
|
+
# @param options [::Gapic::CallOptions]
|
1522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1523
|
+
#
|
1524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1525
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1527
|
+
#
|
1528
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1529
|
+
# A result object deserialized from the server's reply
|
1530
|
+
def create_analysis_rule request_pb, options = nil
|
1531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1532
|
+
|
1533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_analysis_rule_request request_pb
|
1534
|
+
query_string_params = if query_string_params.any?
|
1535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1536
|
+
else
|
1537
|
+
{}
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
response = @client_stub.make_http_request(
|
1541
|
+
verb,
|
1542
|
+
uri: uri,
|
1543
|
+
body: body || "",
|
1544
|
+
params: query_string_params,
|
1545
|
+
method_name: "create_analysis_rule",
|
1546
|
+
options: options
|
1547
|
+
)
|
1548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1549
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule.decode_json response.body, ignore_unknown_fields: true
|
1550
|
+
catch :response do
|
1551
|
+
yield result, operation if block_given?
|
1552
|
+
result
|
1553
|
+
end
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
##
|
1557
|
+
# Baseline implementation for the get_analysis_rule REST call
|
1558
|
+
#
|
1559
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest]
|
1560
|
+
# A request object representing the call parameters. Required.
|
1561
|
+
# @param options [::Gapic::CallOptions]
|
1562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1563
|
+
#
|
1564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1565
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1567
|
+
#
|
1568
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1569
|
+
# A result object deserialized from the server's reply
|
1570
|
+
def get_analysis_rule request_pb, options = nil
|
1571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1572
|
+
|
1573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_analysis_rule_request request_pb
|
1574
|
+
query_string_params = if query_string_params.any?
|
1575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1576
|
+
else
|
1577
|
+
{}
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
response = @client_stub.make_http_request(
|
1581
|
+
verb,
|
1582
|
+
uri: uri,
|
1583
|
+
body: body || "",
|
1584
|
+
params: query_string_params,
|
1585
|
+
method_name: "get_analysis_rule",
|
1586
|
+
options: options
|
1587
|
+
)
|
1588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1589
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule.decode_json response.body, ignore_unknown_fields: true
|
1590
|
+
catch :response do
|
1591
|
+
yield result, operation if block_given?
|
1592
|
+
result
|
1593
|
+
end
|
1594
|
+
end
|
1595
|
+
|
1596
|
+
##
|
1597
|
+
# Baseline implementation for the list_analysis_rules REST call
|
1598
|
+
#
|
1599
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest]
|
1600
|
+
# A request object representing the call parameters. Required.
|
1601
|
+
# @param options [::Gapic::CallOptions]
|
1602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1603
|
+
#
|
1604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1605
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesResponse]
|
1606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1607
|
+
#
|
1608
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesResponse]
|
1609
|
+
# A result object deserialized from the server's reply
|
1610
|
+
def list_analysis_rules request_pb, options = nil
|
1611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1612
|
+
|
1613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_analysis_rules_request request_pb
|
1614
|
+
query_string_params = if query_string_params.any?
|
1615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1616
|
+
else
|
1617
|
+
{}
|
1618
|
+
end
|
1619
|
+
|
1620
|
+
response = @client_stub.make_http_request(
|
1621
|
+
verb,
|
1622
|
+
uri: uri,
|
1623
|
+
body: body || "",
|
1624
|
+
params: query_string_params,
|
1625
|
+
method_name: "list_analysis_rules",
|
1626
|
+
options: options
|
1627
|
+
)
|
1628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1629
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesResponse.decode_json response.body, ignore_unknown_fields: true
|
1630
|
+
catch :response do
|
1631
|
+
yield result, operation if block_given?
|
1632
|
+
result
|
1633
|
+
end
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
##
|
1637
|
+
# Baseline implementation for the update_analysis_rule REST call
|
1638
|
+
#
|
1639
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest]
|
1640
|
+
# A request object representing the call parameters. Required.
|
1641
|
+
# @param options [::Gapic::CallOptions]
|
1642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1643
|
+
#
|
1644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1645
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1647
|
+
#
|
1648
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1649
|
+
# A result object deserialized from the server's reply
|
1650
|
+
def update_analysis_rule request_pb, options = nil
|
1651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1652
|
+
|
1653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_analysis_rule_request request_pb
|
1654
|
+
query_string_params = if query_string_params.any?
|
1655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1656
|
+
else
|
1657
|
+
{}
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
response = @client_stub.make_http_request(
|
1661
|
+
verb,
|
1662
|
+
uri: uri,
|
1663
|
+
body: body || "",
|
1664
|
+
params: query_string_params,
|
1665
|
+
method_name: "update_analysis_rule",
|
1666
|
+
options: options
|
1667
|
+
)
|
1668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1669
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule.decode_json response.body, ignore_unknown_fields: true
|
1670
|
+
catch :response do
|
1671
|
+
yield result, operation if block_given?
|
1672
|
+
result
|
1673
|
+
end
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
##
|
1677
|
+
# Baseline implementation for the delete_analysis_rule REST call
|
1678
|
+
#
|
1679
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest]
|
1680
|
+
# A request object representing the call parameters. Required.
|
1681
|
+
# @param options [::Gapic::CallOptions]
|
1682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1683
|
+
#
|
1684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1685
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1687
|
+
#
|
1688
|
+
# @return [::Google::Protobuf::Empty]
|
1689
|
+
# A result object deserialized from the server's reply
|
1690
|
+
def delete_analysis_rule request_pb, options = nil
|
1691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1692
|
+
|
1693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_analysis_rule_request request_pb
|
1694
|
+
query_string_params = if query_string_params.any?
|
1695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1696
|
+
else
|
1697
|
+
{}
|
1698
|
+
end
|
1427
1699
|
|
1428
|
-
|
1429
|
-
|
1700
|
+
response = @client_stub.make_http_request(
|
1701
|
+
verb,
|
1702
|
+
uri: uri,
|
1703
|
+
body: body || "",
|
1704
|
+
params: query_string_params,
|
1705
|
+
method_name: "delete_analysis_rule",
|
1706
|
+
options: options
|
1707
|
+
)
|
1708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1709
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1710
|
+
catch :response do
|
1711
|
+
yield result, operation if block_given?
|
1712
|
+
result
|
1713
|
+
end
|
1430
1714
|
end
|
1431
1715
|
|
1432
1716
|
##
|
@@ -1455,16 +1739,18 @@ module Google
|
|
1455
1739
|
|
1456
1740
|
response = @client_stub.make_http_request(
|
1457
1741
|
verb,
|
1458
|
-
uri:
|
1459
|
-
body:
|
1460
|
-
params:
|
1742
|
+
uri: uri,
|
1743
|
+
body: body || "",
|
1744
|
+
params: query_string_params,
|
1745
|
+
method_name: "get_encryption_spec",
|
1461
1746
|
options: options
|
1462
1747
|
)
|
1463
1748
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1464
1749
|
result = ::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec.decode_json response.body, ignore_unknown_fields: true
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1750
|
+
catch :response do
|
1751
|
+
yield result, operation if block_given?
|
1752
|
+
result
|
1753
|
+
end
|
1468
1754
|
end
|
1469
1755
|
|
1470
1756
|
##
|
@@ -1493,16 +1779,18 @@ module Google
|
|
1493
1779
|
|
1494
1780
|
response = @client_stub.make_http_request(
|
1495
1781
|
verb,
|
1496
|
-
uri:
|
1497
|
-
body:
|
1498
|
-
params:
|
1782
|
+
uri: uri,
|
1783
|
+
body: body || "",
|
1784
|
+
params: query_string_params,
|
1785
|
+
method_name: "initialize_encryption_spec",
|
1499
1786
|
options: options
|
1500
1787
|
)
|
1501
1788
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1502
1789
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1790
|
+
catch :response do
|
1791
|
+
yield result, operation if block_given?
|
1792
|
+
result
|
1793
|
+
end
|
1506
1794
|
end
|
1507
1795
|
|
1508
1796
|
##
|
@@ -1531,16 +1819,18 @@ module Google
|
|
1531
1819
|
|
1532
1820
|
response = @client_stub.make_http_request(
|
1533
1821
|
verb,
|
1534
|
-
uri:
|
1535
|
-
body:
|
1536
|
-
params:
|
1822
|
+
uri: uri,
|
1823
|
+
body: body || "",
|
1824
|
+
params: query_string_params,
|
1825
|
+
method_name: "create_view",
|
1537
1826
|
options: options
|
1538
1827
|
)
|
1539
1828
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1540
1829
|
result = ::Google::Cloud::ContactCenterInsights::V1::View.decode_json response.body, ignore_unknown_fields: true
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1830
|
+
catch :response do
|
1831
|
+
yield result, operation if block_given?
|
1832
|
+
result
|
1833
|
+
end
|
1544
1834
|
end
|
1545
1835
|
|
1546
1836
|
##
|
@@ -1569,16 +1859,18 @@ module Google
|
|
1569
1859
|
|
1570
1860
|
response = @client_stub.make_http_request(
|
1571
1861
|
verb,
|
1572
|
-
uri:
|
1573
|
-
body:
|
1574
|
-
params:
|
1862
|
+
uri: uri,
|
1863
|
+
body: body || "",
|
1864
|
+
params: query_string_params,
|
1865
|
+
method_name: "get_view",
|
1575
1866
|
options: options
|
1576
1867
|
)
|
1577
1868
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1578
1869
|
result = ::Google::Cloud::ContactCenterInsights::V1::View.decode_json response.body, ignore_unknown_fields: true
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1870
|
+
catch :response do
|
1871
|
+
yield result, operation if block_given?
|
1872
|
+
result
|
1873
|
+
end
|
1582
1874
|
end
|
1583
1875
|
|
1584
1876
|
##
|
@@ -1607,16 +1899,18 @@ module Google
|
|
1607
1899
|
|
1608
1900
|
response = @client_stub.make_http_request(
|
1609
1901
|
verb,
|
1610
|
-
uri:
|
1611
|
-
body:
|
1612
|
-
params:
|
1902
|
+
uri: uri,
|
1903
|
+
body: body || "",
|
1904
|
+
params: query_string_params,
|
1905
|
+
method_name: "list_views",
|
1613
1906
|
options: options
|
1614
1907
|
)
|
1615
1908
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1616
1909
|
result = ::Google::Cloud::ContactCenterInsights::V1::ListViewsResponse.decode_json response.body, ignore_unknown_fields: true
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1910
|
+
catch :response do
|
1911
|
+
yield result, operation if block_given?
|
1912
|
+
result
|
1913
|
+
end
|
1620
1914
|
end
|
1621
1915
|
|
1622
1916
|
##
|
@@ -1645,16 +1939,18 @@ module Google
|
|
1645
1939
|
|
1646
1940
|
response = @client_stub.make_http_request(
|
1647
1941
|
verb,
|
1648
|
-
uri:
|
1649
|
-
body:
|
1650
|
-
params:
|
1942
|
+
uri: uri,
|
1943
|
+
body: body || "",
|
1944
|
+
params: query_string_params,
|
1945
|
+
method_name: "update_view",
|
1651
1946
|
options: options
|
1652
1947
|
)
|
1653
1948
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1654
1949
|
result = ::Google::Cloud::ContactCenterInsights::V1::View.decode_json response.body, ignore_unknown_fields: true
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1950
|
+
catch :response do
|
1951
|
+
yield result, operation if block_given?
|
1952
|
+
result
|
1953
|
+
end
|
1658
1954
|
end
|
1659
1955
|
|
1660
1956
|
##
|
@@ -1683,79 +1979,1616 @@ module Google
|
|
1683
1979
|
|
1684
1980
|
response = @client_stub.make_http_request(
|
1685
1981
|
verb,
|
1686
|
-
uri:
|
1687
|
-
body:
|
1688
|
-
params:
|
1982
|
+
uri: uri,
|
1983
|
+
body: body || "",
|
1984
|
+
params: query_string_params,
|
1985
|
+
method_name: "delete_view",
|
1689
1986
|
options: options
|
1690
1987
|
)
|
1691
1988
|
operation = ::Gapic::Rest::TransportOperation.new response
|
1692
1989
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1990
|
+
catch :response do
|
1991
|
+
yield result, operation if block_given?
|
1992
|
+
result
|
1993
|
+
end
|
1696
1994
|
end
|
1697
1995
|
|
1698
1996
|
##
|
1699
|
-
#
|
1997
|
+
# Baseline implementation for the query_metrics REST call
|
1700
1998
|
#
|
1701
|
-
#
|
1702
|
-
#
|
1703
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest]
|
1999
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest]
|
1704
2000
|
# A request object representing the call parameters. Required.
|
1705
|
-
# @
|
1706
|
-
#
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
2001
|
+
# @param options [::Gapic::CallOptions]
|
2002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2003
|
+
#
|
2004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2005
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
2006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2007
|
+
#
|
2008
|
+
# @return [::Google::Longrunning::Operation]
|
2009
|
+
# A result object deserialized from the server's reply
|
2010
|
+
def query_metrics request_pb, options = nil
|
2011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2012
|
+
|
2013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_query_metrics_request request_pb
|
2014
|
+
query_string_params = if query_string_params.any?
|
2015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2016
|
+
else
|
2017
|
+
{}
|
2018
|
+
end
|
2019
|
+
|
2020
|
+
response = @client_stub.make_http_request(
|
2021
|
+
verb,
|
2022
|
+
uri: uri,
|
2023
|
+
body: body || "",
|
2024
|
+
params: query_string_params,
|
2025
|
+
method_name: "query_metrics",
|
2026
|
+
options: options
|
2027
|
+
)
|
2028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2029
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
2030
|
+
catch :response do
|
2031
|
+
yield result, operation if block_given?
|
2032
|
+
result
|
2033
|
+
end
|
1718
2034
|
end
|
1719
2035
|
|
1720
2036
|
##
|
1721
|
-
#
|
2037
|
+
# Baseline implementation for the create_qa_question REST call
|
1722
2038
|
#
|
1723
|
-
#
|
1724
|
-
#
|
1725
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest]
|
2039
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest]
|
1726
2040
|
# A request object representing the call parameters. Required.
|
1727
|
-
# @
|
1728
|
-
#
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
2041
|
+
# @param options [::Gapic::CallOptions]
|
2042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2043
|
+
#
|
2044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2045
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
2046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2047
|
+
#
|
2048
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
2049
|
+
# A result object deserialized from the server's reply
|
2050
|
+
def create_qa_question request_pb, options = nil
|
2051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2052
|
+
|
2053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_qa_question_request request_pb
|
2054
|
+
query_string_params = if query_string_params.any?
|
2055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2056
|
+
else
|
2057
|
+
{}
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
response = @client_stub.make_http_request(
|
2061
|
+
verb,
|
2062
|
+
uri: uri,
|
2063
|
+
body: body || "",
|
2064
|
+
params: query_string_params,
|
2065
|
+
method_name: "create_qa_question",
|
2066
|
+
options: options
|
2067
|
+
)
|
2068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2069
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaQuestion.decode_json response.body, ignore_unknown_fields: true
|
2070
|
+
catch :response do
|
2071
|
+
yield result, operation if block_given?
|
2072
|
+
result
|
2073
|
+
end
|
1740
2074
|
end
|
1741
2075
|
|
1742
2076
|
##
|
1743
|
-
#
|
1744
|
-
#
|
1745
|
-
# GRPC transcoding helper method for the update_conversation REST call
|
2077
|
+
# Baseline implementation for the get_qa_question REST call
|
1746
2078
|
#
|
1747
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
2079
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest]
|
2080
|
+
# A request object representing the call parameters. Required.
|
2081
|
+
# @param options [::Gapic::CallOptions]
|
2082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2083
|
+
#
|
2084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2085
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
2086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2087
|
+
#
|
2088
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
2089
|
+
# A result object deserialized from the server's reply
|
2090
|
+
def get_qa_question request_pb, options = nil
|
2091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2092
|
+
|
2093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_qa_question_request request_pb
|
2094
|
+
query_string_params = if query_string_params.any?
|
2095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2096
|
+
else
|
2097
|
+
{}
|
2098
|
+
end
|
2099
|
+
|
2100
|
+
response = @client_stub.make_http_request(
|
2101
|
+
verb,
|
2102
|
+
uri: uri,
|
2103
|
+
body: body || "",
|
2104
|
+
params: query_string_params,
|
2105
|
+
method_name: "get_qa_question",
|
2106
|
+
options: options
|
2107
|
+
)
|
2108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2109
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaQuestion.decode_json response.body, ignore_unknown_fields: true
|
2110
|
+
catch :response do
|
2111
|
+
yield result, operation if block_given?
|
2112
|
+
result
|
2113
|
+
end
|
2114
|
+
end
|
2115
|
+
|
2116
|
+
##
|
2117
|
+
# Baseline implementation for the update_qa_question REST call
|
2118
|
+
#
|
2119
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest]
|
2120
|
+
# A request object representing the call parameters. Required.
|
2121
|
+
# @param options [::Gapic::CallOptions]
|
2122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2123
|
+
#
|
2124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2125
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
2126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2127
|
+
#
|
2128
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
2129
|
+
# A result object deserialized from the server's reply
|
2130
|
+
def update_qa_question request_pb, options = nil
|
2131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2132
|
+
|
2133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_qa_question_request request_pb
|
2134
|
+
query_string_params = if query_string_params.any?
|
2135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2136
|
+
else
|
2137
|
+
{}
|
2138
|
+
end
|
2139
|
+
|
2140
|
+
response = @client_stub.make_http_request(
|
2141
|
+
verb,
|
2142
|
+
uri: uri,
|
2143
|
+
body: body || "",
|
2144
|
+
params: query_string_params,
|
2145
|
+
method_name: "update_qa_question",
|
2146
|
+
options: options
|
2147
|
+
)
|
2148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2149
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaQuestion.decode_json response.body, ignore_unknown_fields: true
|
2150
|
+
catch :response do
|
2151
|
+
yield result, operation if block_given?
|
2152
|
+
result
|
2153
|
+
end
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
##
|
2157
|
+
# Baseline implementation for the delete_qa_question REST call
|
2158
|
+
#
|
2159
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest]
|
2160
|
+
# A request object representing the call parameters. Required.
|
2161
|
+
# @param options [::Gapic::CallOptions]
|
2162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2163
|
+
#
|
2164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2165
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
2166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2167
|
+
#
|
2168
|
+
# @return [::Google::Protobuf::Empty]
|
2169
|
+
# A result object deserialized from the server's reply
|
2170
|
+
def delete_qa_question request_pb, options = nil
|
2171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2172
|
+
|
2173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_qa_question_request request_pb
|
2174
|
+
query_string_params = if query_string_params.any?
|
2175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2176
|
+
else
|
2177
|
+
{}
|
2178
|
+
end
|
2179
|
+
|
2180
|
+
response = @client_stub.make_http_request(
|
2181
|
+
verb,
|
2182
|
+
uri: uri,
|
2183
|
+
body: body || "",
|
2184
|
+
params: query_string_params,
|
2185
|
+
method_name: "delete_qa_question",
|
2186
|
+
options: options
|
2187
|
+
)
|
2188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2189
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
2190
|
+
catch :response do
|
2191
|
+
yield result, operation if block_given?
|
2192
|
+
result
|
2193
|
+
end
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
##
|
2197
|
+
# Baseline implementation for the list_qa_questions REST call
|
2198
|
+
#
|
2199
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest]
|
2200
|
+
# A request object representing the call parameters. Required.
|
2201
|
+
# @param options [::Gapic::CallOptions]
|
2202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2203
|
+
#
|
2204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2205
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsResponse]
|
2206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2207
|
+
#
|
2208
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsResponse]
|
2209
|
+
# A result object deserialized from the server's reply
|
2210
|
+
def list_qa_questions request_pb, options = nil
|
2211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2212
|
+
|
2213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_qa_questions_request request_pb
|
2214
|
+
query_string_params = if query_string_params.any?
|
2215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2216
|
+
else
|
2217
|
+
{}
|
2218
|
+
end
|
2219
|
+
|
2220
|
+
response = @client_stub.make_http_request(
|
2221
|
+
verb,
|
2222
|
+
uri: uri,
|
2223
|
+
body: body || "",
|
2224
|
+
params: query_string_params,
|
2225
|
+
method_name: "list_qa_questions",
|
2226
|
+
options: options
|
2227
|
+
)
|
2228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2229
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsResponse.decode_json response.body, ignore_unknown_fields: true
|
2230
|
+
catch :response do
|
2231
|
+
yield result, operation if block_given?
|
2232
|
+
result
|
2233
|
+
end
|
2234
|
+
end
|
2235
|
+
|
2236
|
+
##
|
2237
|
+
# Baseline implementation for the create_qa_scorecard REST call
|
2238
|
+
#
|
2239
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest]
|
2240
|
+
# A request object representing the call parameters. Required.
|
2241
|
+
# @param options [::Gapic::CallOptions]
|
2242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2243
|
+
#
|
2244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2245
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2247
|
+
#
|
2248
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2249
|
+
# A result object deserialized from the server's reply
|
2250
|
+
def create_qa_scorecard request_pb, options = nil
|
2251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2252
|
+
|
2253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_qa_scorecard_request request_pb
|
2254
|
+
query_string_params = if query_string_params.any?
|
2255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2256
|
+
else
|
2257
|
+
{}
|
2258
|
+
end
|
2259
|
+
|
2260
|
+
response = @client_stub.make_http_request(
|
2261
|
+
verb,
|
2262
|
+
uri: uri,
|
2263
|
+
body: body || "",
|
2264
|
+
params: query_string_params,
|
2265
|
+
method_name: "create_qa_scorecard",
|
2266
|
+
options: options
|
2267
|
+
)
|
2268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2269
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecard.decode_json response.body, ignore_unknown_fields: true
|
2270
|
+
catch :response do
|
2271
|
+
yield result, operation if block_given?
|
2272
|
+
result
|
2273
|
+
end
|
2274
|
+
end
|
2275
|
+
|
2276
|
+
##
|
2277
|
+
# Baseline implementation for the get_qa_scorecard REST call
|
2278
|
+
#
|
2279
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest]
|
2280
|
+
# A request object representing the call parameters. Required.
|
2281
|
+
# @param options [::Gapic::CallOptions]
|
2282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2283
|
+
#
|
2284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2285
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2287
|
+
#
|
2288
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2289
|
+
# A result object deserialized from the server's reply
|
2290
|
+
def get_qa_scorecard request_pb, options = nil
|
2291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2292
|
+
|
2293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_qa_scorecard_request request_pb
|
2294
|
+
query_string_params = if query_string_params.any?
|
2295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2296
|
+
else
|
2297
|
+
{}
|
2298
|
+
end
|
2299
|
+
|
2300
|
+
response = @client_stub.make_http_request(
|
2301
|
+
verb,
|
2302
|
+
uri: uri,
|
2303
|
+
body: body || "",
|
2304
|
+
params: query_string_params,
|
2305
|
+
method_name: "get_qa_scorecard",
|
2306
|
+
options: options
|
2307
|
+
)
|
2308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2309
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecard.decode_json response.body, ignore_unknown_fields: true
|
2310
|
+
catch :response do
|
2311
|
+
yield result, operation if block_given?
|
2312
|
+
result
|
2313
|
+
end
|
2314
|
+
end
|
2315
|
+
|
2316
|
+
##
|
2317
|
+
# Baseline implementation for the update_qa_scorecard REST call
|
2318
|
+
#
|
2319
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest]
|
2320
|
+
# A request object representing the call parameters. Required.
|
2321
|
+
# @param options [::Gapic::CallOptions]
|
2322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2323
|
+
#
|
2324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2325
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2327
|
+
#
|
2328
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2329
|
+
# A result object deserialized from the server's reply
|
2330
|
+
def update_qa_scorecard request_pb, options = nil
|
2331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2332
|
+
|
2333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_qa_scorecard_request request_pb
|
2334
|
+
query_string_params = if query_string_params.any?
|
2335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2336
|
+
else
|
2337
|
+
{}
|
2338
|
+
end
|
2339
|
+
|
2340
|
+
response = @client_stub.make_http_request(
|
2341
|
+
verb,
|
2342
|
+
uri: uri,
|
2343
|
+
body: body || "",
|
2344
|
+
params: query_string_params,
|
2345
|
+
method_name: "update_qa_scorecard",
|
2346
|
+
options: options
|
2347
|
+
)
|
2348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2349
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecard.decode_json response.body, ignore_unknown_fields: true
|
2350
|
+
catch :response do
|
2351
|
+
yield result, operation if block_given?
|
2352
|
+
result
|
2353
|
+
end
|
2354
|
+
end
|
2355
|
+
|
2356
|
+
##
|
2357
|
+
# Baseline implementation for the delete_qa_scorecard REST call
|
2358
|
+
#
|
2359
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest]
|
2360
|
+
# A request object representing the call parameters. Required.
|
2361
|
+
# @param options [::Gapic::CallOptions]
|
2362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2363
|
+
#
|
2364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2365
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
2366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2367
|
+
#
|
2368
|
+
# @return [::Google::Protobuf::Empty]
|
2369
|
+
# A result object deserialized from the server's reply
|
2370
|
+
def delete_qa_scorecard request_pb, options = nil
|
2371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2372
|
+
|
2373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_qa_scorecard_request request_pb
|
2374
|
+
query_string_params = if query_string_params.any?
|
2375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2376
|
+
else
|
2377
|
+
{}
|
2378
|
+
end
|
2379
|
+
|
2380
|
+
response = @client_stub.make_http_request(
|
2381
|
+
verb,
|
2382
|
+
uri: uri,
|
2383
|
+
body: body || "",
|
2384
|
+
params: query_string_params,
|
2385
|
+
method_name: "delete_qa_scorecard",
|
2386
|
+
options: options
|
2387
|
+
)
|
2388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2389
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
2390
|
+
catch :response do
|
2391
|
+
yield result, operation if block_given?
|
2392
|
+
result
|
2393
|
+
end
|
2394
|
+
end
|
2395
|
+
|
2396
|
+
##
|
2397
|
+
# Baseline implementation for the list_qa_scorecards REST call
|
2398
|
+
#
|
2399
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest]
|
2400
|
+
# A request object representing the call parameters. Required.
|
2401
|
+
# @param options [::Gapic::CallOptions]
|
2402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2403
|
+
#
|
2404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2405
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsResponse]
|
2406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2407
|
+
#
|
2408
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsResponse]
|
2409
|
+
# A result object deserialized from the server's reply
|
2410
|
+
def list_qa_scorecards request_pb, options = nil
|
2411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2412
|
+
|
2413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_qa_scorecards_request request_pb
|
2414
|
+
query_string_params = if query_string_params.any?
|
2415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2416
|
+
else
|
2417
|
+
{}
|
2418
|
+
end
|
2419
|
+
|
2420
|
+
response = @client_stub.make_http_request(
|
2421
|
+
verb,
|
2422
|
+
uri: uri,
|
2423
|
+
body: body || "",
|
2424
|
+
params: query_string_params,
|
2425
|
+
method_name: "list_qa_scorecards",
|
2426
|
+
options: options
|
2427
|
+
)
|
2428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2429
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsResponse.decode_json response.body, ignore_unknown_fields: true
|
2430
|
+
catch :response do
|
2431
|
+
yield result, operation if block_given?
|
2432
|
+
result
|
2433
|
+
end
|
2434
|
+
end
|
2435
|
+
|
2436
|
+
##
|
2437
|
+
# Baseline implementation for the create_qa_scorecard_revision REST call
|
2438
|
+
#
|
2439
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest]
|
2440
|
+
# A request object representing the call parameters. Required.
|
2441
|
+
# @param options [::Gapic::CallOptions]
|
2442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2443
|
+
#
|
2444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2445
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2447
|
+
#
|
2448
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2449
|
+
# A result object deserialized from the server's reply
|
2450
|
+
def create_qa_scorecard_revision request_pb, options = nil
|
2451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2452
|
+
|
2453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_qa_scorecard_revision_request request_pb
|
2454
|
+
query_string_params = if query_string_params.any?
|
2455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2456
|
+
else
|
2457
|
+
{}
|
2458
|
+
end
|
2459
|
+
|
2460
|
+
response = @client_stub.make_http_request(
|
2461
|
+
verb,
|
2462
|
+
uri: uri,
|
2463
|
+
body: body || "",
|
2464
|
+
params: query_string_params,
|
2465
|
+
method_name: "create_qa_scorecard_revision",
|
2466
|
+
options: options
|
2467
|
+
)
|
2468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2469
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.decode_json response.body, ignore_unknown_fields: true
|
2470
|
+
catch :response do
|
2471
|
+
yield result, operation if block_given?
|
2472
|
+
result
|
2473
|
+
end
|
2474
|
+
end
|
2475
|
+
|
2476
|
+
##
|
2477
|
+
# Baseline implementation for the get_qa_scorecard_revision REST call
|
2478
|
+
#
|
2479
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest]
|
2480
|
+
# A request object representing the call parameters. Required.
|
2481
|
+
# @param options [::Gapic::CallOptions]
|
2482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2483
|
+
#
|
2484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2485
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2487
|
+
#
|
2488
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2489
|
+
# A result object deserialized from the server's reply
|
2490
|
+
def get_qa_scorecard_revision request_pb, options = nil
|
2491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2492
|
+
|
2493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_qa_scorecard_revision_request request_pb
|
2494
|
+
query_string_params = if query_string_params.any?
|
2495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2496
|
+
else
|
2497
|
+
{}
|
2498
|
+
end
|
2499
|
+
|
2500
|
+
response = @client_stub.make_http_request(
|
2501
|
+
verb,
|
2502
|
+
uri: uri,
|
2503
|
+
body: body || "",
|
2504
|
+
params: query_string_params,
|
2505
|
+
method_name: "get_qa_scorecard_revision",
|
2506
|
+
options: options
|
2507
|
+
)
|
2508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2509
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.decode_json response.body, ignore_unknown_fields: true
|
2510
|
+
catch :response do
|
2511
|
+
yield result, operation if block_given?
|
2512
|
+
result
|
2513
|
+
end
|
2514
|
+
end
|
2515
|
+
|
2516
|
+
##
|
2517
|
+
# Baseline implementation for the tune_qa_scorecard_revision REST call
|
2518
|
+
#
|
2519
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest]
|
2520
|
+
# A request object representing the call parameters. Required.
|
2521
|
+
# @param options [::Gapic::CallOptions]
|
2522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2523
|
+
#
|
2524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2525
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
2526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2527
|
+
#
|
2528
|
+
# @return [::Google::Longrunning::Operation]
|
2529
|
+
# A result object deserialized from the server's reply
|
2530
|
+
def tune_qa_scorecard_revision request_pb, options = nil
|
2531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2532
|
+
|
2533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_tune_qa_scorecard_revision_request request_pb
|
2534
|
+
query_string_params = if query_string_params.any?
|
2535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2536
|
+
else
|
2537
|
+
{}
|
2538
|
+
end
|
2539
|
+
|
2540
|
+
response = @client_stub.make_http_request(
|
2541
|
+
verb,
|
2542
|
+
uri: uri,
|
2543
|
+
body: body || "",
|
2544
|
+
params: query_string_params,
|
2545
|
+
method_name: "tune_qa_scorecard_revision",
|
2546
|
+
options: options
|
2547
|
+
)
|
2548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2549
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
2550
|
+
catch :response do
|
2551
|
+
yield result, operation if block_given?
|
2552
|
+
result
|
2553
|
+
end
|
2554
|
+
end
|
2555
|
+
|
2556
|
+
##
|
2557
|
+
# Baseline implementation for the deploy_qa_scorecard_revision REST call
|
2558
|
+
#
|
2559
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest]
|
2560
|
+
# A request object representing the call parameters. Required.
|
2561
|
+
# @param options [::Gapic::CallOptions]
|
2562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2563
|
+
#
|
2564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2565
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2567
|
+
#
|
2568
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2569
|
+
# A result object deserialized from the server's reply
|
2570
|
+
def deploy_qa_scorecard_revision request_pb, options = nil
|
2571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2572
|
+
|
2573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_deploy_qa_scorecard_revision_request request_pb
|
2574
|
+
query_string_params = if query_string_params.any?
|
2575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2576
|
+
else
|
2577
|
+
{}
|
2578
|
+
end
|
2579
|
+
|
2580
|
+
response = @client_stub.make_http_request(
|
2581
|
+
verb,
|
2582
|
+
uri: uri,
|
2583
|
+
body: body || "",
|
2584
|
+
params: query_string_params,
|
2585
|
+
method_name: "deploy_qa_scorecard_revision",
|
2586
|
+
options: options
|
2587
|
+
)
|
2588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2589
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.decode_json response.body, ignore_unknown_fields: true
|
2590
|
+
catch :response do
|
2591
|
+
yield result, operation if block_given?
|
2592
|
+
result
|
2593
|
+
end
|
2594
|
+
end
|
2595
|
+
|
2596
|
+
##
|
2597
|
+
# Baseline implementation for the undeploy_qa_scorecard_revision REST call
|
2598
|
+
#
|
2599
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest]
|
2600
|
+
# A request object representing the call parameters. Required.
|
2601
|
+
# @param options [::Gapic::CallOptions]
|
2602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2603
|
+
#
|
2604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2605
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2607
|
+
#
|
2608
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2609
|
+
# A result object deserialized from the server's reply
|
2610
|
+
def undeploy_qa_scorecard_revision request_pb, options = nil
|
2611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2612
|
+
|
2613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_undeploy_qa_scorecard_revision_request request_pb
|
2614
|
+
query_string_params = if query_string_params.any?
|
2615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2616
|
+
else
|
2617
|
+
{}
|
2618
|
+
end
|
2619
|
+
|
2620
|
+
response = @client_stub.make_http_request(
|
2621
|
+
verb,
|
2622
|
+
uri: uri,
|
2623
|
+
body: body || "",
|
2624
|
+
params: query_string_params,
|
2625
|
+
method_name: "undeploy_qa_scorecard_revision",
|
2626
|
+
options: options
|
2627
|
+
)
|
2628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2629
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.decode_json response.body, ignore_unknown_fields: true
|
2630
|
+
catch :response do
|
2631
|
+
yield result, operation if block_given?
|
2632
|
+
result
|
2633
|
+
end
|
2634
|
+
end
|
2635
|
+
|
2636
|
+
##
|
2637
|
+
# Baseline implementation for the delete_qa_scorecard_revision REST call
|
2638
|
+
#
|
2639
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest]
|
2640
|
+
# A request object representing the call parameters. Required.
|
2641
|
+
# @param options [::Gapic::CallOptions]
|
2642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2643
|
+
#
|
2644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2645
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
2646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2647
|
+
#
|
2648
|
+
# @return [::Google::Protobuf::Empty]
|
2649
|
+
# A result object deserialized from the server's reply
|
2650
|
+
def delete_qa_scorecard_revision request_pb, options = nil
|
2651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2652
|
+
|
2653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_qa_scorecard_revision_request request_pb
|
2654
|
+
query_string_params = if query_string_params.any?
|
2655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2656
|
+
else
|
2657
|
+
{}
|
2658
|
+
end
|
2659
|
+
|
2660
|
+
response = @client_stub.make_http_request(
|
2661
|
+
verb,
|
2662
|
+
uri: uri,
|
2663
|
+
body: body || "",
|
2664
|
+
params: query_string_params,
|
2665
|
+
method_name: "delete_qa_scorecard_revision",
|
2666
|
+
options: options
|
2667
|
+
)
|
2668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2669
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
2670
|
+
catch :response do
|
2671
|
+
yield result, operation if block_given?
|
2672
|
+
result
|
2673
|
+
end
|
2674
|
+
end
|
2675
|
+
|
2676
|
+
##
|
2677
|
+
# Baseline implementation for the list_qa_scorecard_revisions REST call
|
2678
|
+
#
|
2679
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest]
|
2680
|
+
# A request object representing the call parameters. Required.
|
2681
|
+
# @param options [::Gapic::CallOptions]
|
2682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2683
|
+
#
|
2684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2685
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsResponse]
|
2686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2687
|
+
#
|
2688
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsResponse]
|
2689
|
+
# A result object deserialized from the server's reply
|
2690
|
+
def list_qa_scorecard_revisions request_pb, options = nil
|
2691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2692
|
+
|
2693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_qa_scorecard_revisions_request request_pb
|
2694
|
+
query_string_params = if query_string_params.any?
|
2695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2696
|
+
else
|
2697
|
+
{}
|
2698
|
+
end
|
2699
|
+
|
2700
|
+
response = @client_stub.make_http_request(
|
2701
|
+
verb,
|
2702
|
+
uri: uri,
|
2703
|
+
body: body || "",
|
2704
|
+
params: query_string_params,
|
2705
|
+
method_name: "list_qa_scorecard_revisions",
|
2706
|
+
options: options
|
2707
|
+
)
|
2708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2709
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
|
2710
|
+
catch :response do
|
2711
|
+
yield result, operation if block_given?
|
2712
|
+
result
|
2713
|
+
end
|
2714
|
+
end
|
2715
|
+
|
2716
|
+
##
|
2717
|
+
# Baseline implementation for the create_feedback_label REST call
|
2718
|
+
#
|
2719
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest]
|
2720
|
+
# A request object representing the call parameters. Required.
|
2721
|
+
# @param options [::Gapic::CallOptions]
|
2722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2723
|
+
#
|
2724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2725
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2727
|
+
#
|
2728
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2729
|
+
# A result object deserialized from the server's reply
|
2730
|
+
def create_feedback_label request_pb, options = nil
|
2731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2732
|
+
|
2733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_feedback_label_request request_pb
|
2734
|
+
query_string_params = if query_string_params.any?
|
2735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2736
|
+
else
|
2737
|
+
{}
|
2738
|
+
end
|
2739
|
+
|
2740
|
+
response = @client_stub.make_http_request(
|
2741
|
+
verb,
|
2742
|
+
uri: uri,
|
2743
|
+
body: body || "",
|
2744
|
+
params: query_string_params,
|
2745
|
+
method_name: "create_feedback_label",
|
2746
|
+
options: options
|
2747
|
+
)
|
2748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2749
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.decode_json response.body, ignore_unknown_fields: true
|
2750
|
+
catch :response do
|
2751
|
+
yield result, operation if block_given?
|
2752
|
+
result
|
2753
|
+
end
|
2754
|
+
end
|
2755
|
+
|
2756
|
+
##
|
2757
|
+
# Baseline implementation for the list_feedback_labels REST call
|
2758
|
+
#
|
2759
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest]
|
2760
|
+
# A request object representing the call parameters. Required.
|
2761
|
+
# @param options [::Gapic::CallOptions]
|
2762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2763
|
+
#
|
2764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2765
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsResponse]
|
2766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2767
|
+
#
|
2768
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsResponse]
|
2769
|
+
# A result object deserialized from the server's reply
|
2770
|
+
def list_feedback_labels request_pb, options = nil
|
2771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2772
|
+
|
2773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_feedback_labels_request request_pb
|
2774
|
+
query_string_params = if query_string_params.any?
|
2775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2776
|
+
else
|
2777
|
+
{}
|
2778
|
+
end
|
2779
|
+
|
2780
|
+
response = @client_stub.make_http_request(
|
2781
|
+
verb,
|
2782
|
+
uri: uri,
|
2783
|
+
body: body || "",
|
2784
|
+
params: query_string_params,
|
2785
|
+
method_name: "list_feedback_labels",
|
2786
|
+
options: options
|
2787
|
+
)
|
2788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2789
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsResponse.decode_json response.body, ignore_unknown_fields: true
|
2790
|
+
catch :response do
|
2791
|
+
yield result, operation if block_given?
|
2792
|
+
result
|
2793
|
+
end
|
2794
|
+
end
|
2795
|
+
|
2796
|
+
##
|
2797
|
+
# Baseline implementation for the get_feedback_label REST call
|
2798
|
+
#
|
2799
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest]
|
2800
|
+
# A request object representing the call parameters. Required.
|
2801
|
+
# @param options [::Gapic::CallOptions]
|
2802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2803
|
+
#
|
2804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2805
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2807
|
+
#
|
2808
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2809
|
+
# A result object deserialized from the server's reply
|
2810
|
+
def get_feedback_label request_pb, options = nil
|
2811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2812
|
+
|
2813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_feedback_label_request request_pb
|
2814
|
+
query_string_params = if query_string_params.any?
|
2815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2816
|
+
else
|
2817
|
+
{}
|
2818
|
+
end
|
2819
|
+
|
2820
|
+
response = @client_stub.make_http_request(
|
2821
|
+
verb,
|
2822
|
+
uri: uri,
|
2823
|
+
body: body || "",
|
2824
|
+
params: query_string_params,
|
2825
|
+
method_name: "get_feedback_label",
|
2826
|
+
options: options
|
2827
|
+
)
|
2828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2829
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.decode_json response.body, ignore_unknown_fields: true
|
2830
|
+
catch :response do
|
2831
|
+
yield result, operation if block_given?
|
2832
|
+
result
|
2833
|
+
end
|
2834
|
+
end
|
2835
|
+
|
2836
|
+
##
|
2837
|
+
# Baseline implementation for the update_feedback_label REST call
|
2838
|
+
#
|
2839
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest]
|
2840
|
+
# A request object representing the call parameters. Required.
|
2841
|
+
# @param options [::Gapic::CallOptions]
|
2842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2843
|
+
#
|
2844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2845
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2847
|
+
#
|
2848
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2849
|
+
# A result object deserialized from the server's reply
|
2850
|
+
def update_feedback_label request_pb, options = nil
|
2851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2852
|
+
|
2853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_feedback_label_request request_pb
|
2854
|
+
query_string_params = if query_string_params.any?
|
2855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2856
|
+
else
|
2857
|
+
{}
|
2858
|
+
end
|
2859
|
+
|
2860
|
+
response = @client_stub.make_http_request(
|
2861
|
+
verb,
|
2862
|
+
uri: uri,
|
2863
|
+
body: body || "",
|
2864
|
+
params: query_string_params,
|
2865
|
+
method_name: "update_feedback_label",
|
2866
|
+
options: options
|
2867
|
+
)
|
2868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2869
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.decode_json response.body, ignore_unknown_fields: true
|
2870
|
+
catch :response do
|
2871
|
+
yield result, operation if block_given?
|
2872
|
+
result
|
2873
|
+
end
|
2874
|
+
end
|
2875
|
+
|
2876
|
+
##
|
2877
|
+
# Baseline implementation for the delete_feedback_label REST call
|
2878
|
+
#
|
2879
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest]
|
2880
|
+
# A request object representing the call parameters. Required.
|
2881
|
+
# @param options [::Gapic::CallOptions]
|
2882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2883
|
+
#
|
2884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2885
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
2886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2887
|
+
#
|
2888
|
+
# @return [::Google::Protobuf::Empty]
|
2889
|
+
# A result object deserialized from the server's reply
|
2890
|
+
def delete_feedback_label request_pb, options = nil
|
2891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2892
|
+
|
2893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_feedback_label_request request_pb
|
2894
|
+
query_string_params = if query_string_params.any?
|
2895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2896
|
+
else
|
2897
|
+
{}
|
2898
|
+
end
|
2899
|
+
|
2900
|
+
response = @client_stub.make_http_request(
|
2901
|
+
verb,
|
2902
|
+
uri: uri,
|
2903
|
+
body: body || "",
|
2904
|
+
params: query_string_params,
|
2905
|
+
method_name: "delete_feedback_label",
|
2906
|
+
options: options
|
2907
|
+
)
|
2908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2909
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
2910
|
+
catch :response do
|
2911
|
+
yield result, operation if block_given?
|
2912
|
+
result
|
2913
|
+
end
|
2914
|
+
end
|
2915
|
+
|
2916
|
+
##
|
2917
|
+
# Baseline implementation for the list_all_feedback_labels REST call
|
2918
|
+
#
|
2919
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest]
|
2920
|
+
# A request object representing the call parameters. Required.
|
2921
|
+
# @param options [::Gapic::CallOptions]
|
2922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2923
|
+
#
|
2924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2925
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsResponse]
|
2926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2927
|
+
#
|
2928
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsResponse]
|
2929
|
+
# A result object deserialized from the server's reply
|
2930
|
+
def list_all_feedback_labels request_pb, options = nil
|
2931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2932
|
+
|
2933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_all_feedback_labels_request request_pb
|
2934
|
+
query_string_params = if query_string_params.any?
|
2935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2936
|
+
else
|
2937
|
+
{}
|
2938
|
+
end
|
2939
|
+
|
2940
|
+
response = @client_stub.make_http_request(
|
2941
|
+
verb,
|
2942
|
+
uri: uri,
|
2943
|
+
body: body || "",
|
2944
|
+
params: query_string_params,
|
2945
|
+
method_name: "list_all_feedback_labels",
|
2946
|
+
options: options
|
2947
|
+
)
|
2948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2949
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsResponse.decode_json response.body, ignore_unknown_fields: true
|
2950
|
+
catch :response do
|
2951
|
+
yield result, operation if block_given?
|
2952
|
+
result
|
2953
|
+
end
|
2954
|
+
end
|
2955
|
+
|
2956
|
+
##
|
2957
|
+
# Baseline implementation for the bulk_upload_feedback_labels REST call
|
2958
|
+
#
|
2959
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest]
|
2960
|
+
# A request object representing the call parameters. Required.
|
2961
|
+
# @param options [::Gapic::CallOptions]
|
2962
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2963
|
+
#
|
2964
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2965
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
2966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2967
|
+
#
|
2968
|
+
# @return [::Google::Longrunning::Operation]
|
2969
|
+
# A result object deserialized from the server's reply
|
2970
|
+
def bulk_upload_feedback_labels request_pb, options = nil
|
2971
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2972
|
+
|
2973
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_bulk_upload_feedback_labels_request request_pb
|
2974
|
+
query_string_params = if query_string_params.any?
|
2975
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2976
|
+
else
|
2977
|
+
{}
|
2978
|
+
end
|
2979
|
+
|
2980
|
+
response = @client_stub.make_http_request(
|
2981
|
+
verb,
|
2982
|
+
uri: uri,
|
2983
|
+
body: body || "",
|
2984
|
+
params: query_string_params,
|
2985
|
+
method_name: "bulk_upload_feedback_labels",
|
2986
|
+
options: options
|
2987
|
+
)
|
2988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2989
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
2990
|
+
catch :response do
|
2991
|
+
yield result, operation if block_given?
|
2992
|
+
result
|
2993
|
+
end
|
2994
|
+
end
|
2995
|
+
|
2996
|
+
##
|
2997
|
+
# Baseline implementation for the bulk_download_feedback_labels REST call
|
2998
|
+
#
|
2999
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest]
|
3000
|
+
# A request object representing the call parameters. Required.
|
3001
|
+
# @param options [::Gapic::CallOptions]
|
3002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3003
|
+
#
|
3004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3005
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
3006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3007
|
+
#
|
3008
|
+
# @return [::Google::Longrunning::Operation]
|
3009
|
+
# A result object deserialized from the server's reply
|
3010
|
+
def bulk_download_feedback_labels request_pb, options = nil
|
3011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3012
|
+
|
3013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_bulk_download_feedback_labels_request request_pb
|
3014
|
+
query_string_params = if query_string_params.any?
|
3015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
3016
|
+
else
|
3017
|
+
{}
|
3018
|
+
end
|
3019
|
+
|
3020
|
+
response = @client_stub.make_http_request(
|
3021
|
+
verb,
|
3022
|
+
uri: uri,
|
3023
|
+
body: body || "",
|
3024
|
+
params: query_string_params,
|
3025
|
+
method_name: "bulk_download_feedback_labels",
|
3026
|
+
options: options
|
3027
|
+
)
|
3028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
3029
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
3030
|
+
catch :response do
|
3031
|
+
yield result, operation if block_given?
|
3032
|
+
result
|
3033
|
+
end
|
3034
|
+
end
|
3035
|
+
|
3036
|
+
##
|
3037
|
+
# @private
|
3038
|
+
#
|
3039
|
+
# GRPC transcoding helper method for the create_conversation REST call
|
3040
|
+
#
|
3041
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest]
|
3042
|
+
# A request object representing the call parameters. Required.
|
3043
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3044
|
+
# Uri, Body, Query string parameters
|
3045
|
+
def self.transcode_create_conversation_request request_pb
|
3046
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3047
|
+
.with_bindings(
|
3048
|
+
uri_method: :post,
|
3049
|
+
uri_template: "/v1/{parent}/conversations",
|
3050
|
+
body: "conversation",
|
3051
|
+
matches: [
|
3052
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3053
|
+
]
|
3054
|
+
)
|
3055
|
+
transcoder.transcode request_pb
|
3056
|
+
end
|
3057
|
+
|
3058
|
+
##
|
3059
|
+
# @private
|
3060
|
+
#
|
3061
|
+
# GRPC transcoding helper method for the upload_conversation REST call
|
3062
|
+
#
|
3063
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest]
|
3064
|
+
# A request object representing the call parameters. Required.
|
3065
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3066
|
+
# Uri, Body, Query string parameters
|
3067
|
+
def self.transcode_upload_conversation_request request_pb
|
3068
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3069
|
+
.with_bindings(
|
3070
|
+
uri_method: :post,
|
3071
|
+
uri_template: "/v1/{parent}/conversations:upload",
|
3072
|
+
body: "*",
|
3073
|
+
matches: [
|
3074
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3075
|
+
]
|
3076
|
+
)
|
3077
|
+
transcoder.transcode request_pb
|
3078
|
+
end
|
3079
|
+
|
3080
|
+
##
|
3081
|
+
# @private
|
3082
|
+
#
|
3083
|
+
# GRPC transcoding helper method for the update_conversation REST call
|
3084
|
+
#
|
3085
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateConversationRequest]
|
3086
|
+
# A request object representing the call parameters. Required.
|
3087
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3088
|
+
# Uri, Body, Query string parameters
|
3089
|
+
def self.transcode_update_conversation_request request_pb
|
3090
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3091
|
+
.with_bindings(
|
3092
|
+
uri_method: :patch,
|
3093
|
+
uri_template: "/v1/{conversation.name}",
|
3094
|
+
body: "conversation",
|
3095
|
+
matches: [
|
3096
|
+
["conversation.name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
3097
|
+
]
|
3098
|
+
)
|
3099
|
+
transcoder.transcode request_pb
|
3100
|
+
end
|
3101
|
+
|
3102
|
+
##
|
3103
|
+
# @private
|
3104
|
+
#
|
3105
|
+
# GRPC transcoding helper method for the get_conversation REST call
|
3106
|
+
#
|
3107
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetConversationRequest]
|
3108
|
+
# A request object representing the call parameters. Required.
|
3109
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3110
|
+
# Uri, Body, Query string parameters
|
3111
|
+
def self.transcode_get_conversation_request request_pb
|
3112
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3113
|
+
.with_bindings(
|
3114
|
+
uri_method: :get,
|
3115
|
+
uri_template: "/v1/{name}",
|
3116
|
+
matches: [
|
3117
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
3118
|
+
]
|
3119
|
+
)
|
3120
|
+
transcoder.transcode request_pb
|
3121
|
+
end
|
3122
|
+
|
3123
|
+
##
|
3124
|
+
# @private
|
3125
|
+
#
|
3126
|
+
# GRPC transcoding helper method for the list_conversations REST call
|
3127
|
+
#
|
3128
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListConversationsRequest]
|
3129
|
+
# A request object representing the call parameters. Required.
|
3130
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3131
|
+
# Uri, Body, Query string parameters
|
3132
|
+
def self.transcode_list_conversations_request request_pb
|
3133
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3134
|
+
.with_bindings(
|
3135
|
+
uri_method: :get,
|
3136
|
+
uri_template: "/v1/{parent}/conversations",
|
3137
|
+
matches: [
|
3138
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3139
|
+
]
|
3140
|
+
)
|
3141
|
+
transcoder.transcode request_pb
|
3142
|
+
end
|
3143
|
+
|
3144
|
+
##
|
3145
|
+
# @private
|
3146
|
+
#
|
3147
|
+
# GRPC transcoding helper method for the delete_conversation REST call
|
3148
|
+
#
|
3149
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteConversationRequest]
|
3150
|
+
# A request object representing the call parameters. Required.
|
3151
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3152
|
+
# Uri, Body, Query string parameters
|
3153
|
+
def self.transcode_delete_conversation_request request_pb
|
3154
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3155
|
+
.with_bindings(
|
3156
|
+
uri_method: :delete,
|
3157
|
+
uri_template: "/v1/{name}",
|
3158
|
+
matches: [
|
3159
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
3160
|
+
]
|
3161
|
+
)
|
3162
|
+
transcoder.transcode request_pb
|
3163
|
+
end
|
3164
|
+
|
3165
|
+
##
|
3166
|
+
# @private
|
3167
|
+
#
|
3168
|
+
# GRPC transcoding helper method for the create_analysis REST call
|
3169
|
+
#
|
3170
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRequest]
|
3171
|
+
# A request object representing the call parameters. Required.
|
3172
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3173
|
+
# Uri, Body, Query string parameters
|
3174
|
+
def self.transcode_create_analysis_request request_pb
|
3175
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3176
|
+
.with_bindings(
|
3177
|
+
uri_method: :post,
|
3178
|
+
uri_template: "/v1/{parent}/analyses",
|
3179
|
+
body: "analysis",
|
3180
|
+
matches: [
|
3181
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
3182
|
+
]
|
3183
|
+
)
|
3184
|
+
transcoder.transcode request_pb
|
3185
|
+
end
|
3186
|
+
|
3187
|
+
##
|
3188
|
+
# @private
|
3189
|
+
#
|
3190
|
+
# GRPC transcoding helper method for the get_analysis REST call
|
3191
|
+
#
|
3192
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRequest]
|
3193
|
+
# A request object representing the call parameters. Required.
|
3194
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3195
|
+
# Uri, Body, Query string parameters
|
3196
|
+
def self.transcode_get_analysis_request request_pb
|
3197
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3198
|
+
.with_bindings(
|
3199
|
+
uri_method: :get,
|
3200
|
+
uri_template: "/v1/{name}",
|
3201
|
+
matches: [
|
3202
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+/?$}, false]
|
3203
|
+
]
|
3204
|
+
)
|
3205
|
+
transcoder.transcode request_pb
|
3206
|
+
end
|
3207
|
+
|
3208
|
+
##
|
3209
|
+
# @private
|
3210
|
+
#
|
3211
|
+
# GRPC transcoding helper method for the list_analyses REST call
|
3212
|
+
#
|
3213
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAnalysesRequest]
|
3214
|
+
# A request object representing the call parameters. Required.
|
3215
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3216
|
+
# Uri, Body, Query string parameters
|
3217
|
+
def self.transcode_list_analyses_request request_pb
|
3218
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3219
|
+
.with_bindings(
|
3220
|
+
uri_method: :get,
|
3221
|
+
uri_template: "/v1/{parent}/analyses",
|
3222
|
+
matches: [
|
3223
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
3224
|
+
]
|
3225
|
+
)
|
3226
|
+
transcoder.transcode request_pb
|
3227
|
+
end
|
3228
|
+
|
3229
|
+
##
|
3230
|
+
# @private
|
3231
|
+
#
|
3232
|
+
# GRPC transcoding helper method for the delete_analysis REST call
|
3233
|
+
#
|
3234
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRequest]
|
3235
|
+
# A request object representing the call parameters. Required.
|
3236
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3237
|
+
# Uri, Body, Query string parameters
|
3238
|
+
def self.transcode_delete_analysis_request request_pb
|
3239
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3240
|
+
.with_bindings(
|
3241
|
+
uri_method: :delete,
|
3242
|
+
uri_template: "/v1/{name}",
|
3243
|
+
matches: [
|
3244
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+/?$}, false]
|
3245
|
+
]
|
3246
|
+
)
|
3247
|
+
transcoder.transcode request_pb
|
3248
|
+
end
|
3249
|
+
|
3250
|
+
##
|
3251
|
+
# @private
|
3252
|
+
#
|
3253
|
+
# GRPC transcoding helper method for the bulk_analyze_conversations REST call
|
3254
|
+
#
|
3255
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest]
|
3256
|
+
# A request object representing the call parameters. Required.
|
3257
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3258
|
+
# Uri, Body, Query string parameters
|
3259
|
+
def self.transcode_bulk_analyze_conversations_request request_pb
|
3260
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3261
|
+
.with_bindings(
|
3262
|
+
uri_method: :post,
|
3263
|
+
uri_template: "/v1/{parent}/conversations:bulkAnalyze",
|
3264
|
+
body: "*",
|
3265
|
+
matches: [
|
3266
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3267
|
+
]
|
3268
|
+
)
|
3269
|
+
transcoder.transcode request_pb
|
3270
|
+
end
|
3271
|
+
|
3272
|
+
##
|
3273
|
+
# @private
|
3274
|
+
#
|
3275
|
+
# GRPC transcoding helper method for the bulk_delete_conversations REST call
|
3276
|
+
#
|
3277
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkDeleteConversationsRequest]
|
3278
|
+
# A request object representing the call parameters. Required.
|
3279
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3280
|
+
# Uri, Body, Query string parameters
|
3281
|
+
def self.transcode_bulk_delete_conversations_request request_pb
|
3282
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3283
|
+
.with_bindings(
|
3284
|
+
uri_method: :post,
|
3285
|
+
uri_template: "/v1/{parent}/conversations:bulkDelete",
|
3286
|
+
body: "*",
|
3287
|
+
matches: [
|
3288
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3289
|
+
]
|
3290
|
+
)
|
3291
|
+
transcoder.transcode request_pb
|
3292
|
+
end
|
3293
|
+
|
3294
|
+
##
|
3295
|
+
# @private
|
3296
|
+
#
|
3297
|
+
# GRPC transcoding helper method for the ingest_conversations REST call
|
3298
|
+
#
|
3299
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest]
|
3300
|
+
# A request object representing the call parameters. Required.
|
3301
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3302
|
+
# Uri, Body, Query string parameters
|
3303
|
+
def self.transcode_ingest_conversations_request request_pb
|
3304
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3305
|
+
.with_bindings(
|
3306
|
+
uri_method: :post,
|
3307
|
+
uri_template: "/v1/{parent}/conversations:ingest",
|
3308
|
+
body: "*",
|
3309
|
+
matches: [
|
3310
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3311
|
+
]
|
3312
|
+
)
|
3313
|
+
transcoder.transcode request_pb
|
3314
|
+
end
|
3315
|
+
|
3316
|
+
##
|
3317
|
+
# @private
|
3318
|
+
#
|
3319
|
+
# GRPC transcoding helper method for the export_insights_data REST call
|
3320
|
+
#
|
3321
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest]
|
3322
|
+
# A request object representing the call parameters. Required.
|
3323
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3324
|
+
# Uri, Body, Query string parameters
|
3325
|
+
def self.transcode_export_insights_data_request request_pb
|
3326
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3327
|
+
.with_bindings(
|
3328
|
+
uri_method: :post,
|
3329
|
+
uri_template: "/v1/{parent}/insightsdata:export",
|
3330
|
+
body: "*",
|
3331
|
+
matches: [
|
3332
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3333
|
+
]
|
3334
|
+
)
|
3335
|
+
transcoder.transcode request_pb
|
3336
|
+
end
|
3337
|
+
|
3338
|
+
##
|
3339
|
+
# @private
|
3340
|
+
#
|
3341
|
+
# GRPC transcoding helper method for the create_issue_model REST call
|
3342
|
+
#
|
3343
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateIssueModelRequest]
|
3344
|
+
# A request object representing the call parameters. Required.
|
3345
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3346
|
+
# Uri, Body, Query string parameters
|
3347
|
+
def self.transcode_create_issue_model_request request_pb
|
3348
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3349
|
+
.with_bindings(
|
3350
|
+
uri_method: :post,
|
3351
|
+
uri_template: "/v1/{parent}/issueModels",
|
3352
|
+
body: "issue_model",
|
3353
|
+
matches: [
|
3354
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3355
|
+
]
|
3356
|
+
)
|
3357
|
+
transcoder.transcode request_pb
|
3358
|
+
end
|
3359
|
+
|
3360
|
+
##
|
3361
|
+
# @private
|
3362
|
+
#
|
3363
|
+
# GRPC transcoding helper method for the update_issue_model REST call
|
3364
|
+
#
|
3365
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateIssueModelRequest]
|
3366
|
+
# A request object representing the call parameters. Required.
|
3367
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3368
|
+
# Uri, Body, Query string parameters
|
3369
|
+
def self.transcode_update_issue_model_request request_pb
|
3370
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3371
|
+
.with_bindings(
|
3372
|
+
uri_method: :patch,
|
3373
|
+
uri_template: "/v1/{issue_model.name}",
|
3374
|
+
body: "issue_model",
|
3375
|
+
matches: [
|
3376
|
+
["issue_model.name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3377
|
+
]
|
3378
|
+
)
|
3379
|
+
transcoder.transcode request_pb
|
3380
|
+
end
|
3381
|
+
|
3382
|
+
##
|
3383
|
+
# @private
|
3384
|
+
#
|
3385
|
+
# GRPC transcoding helper method for the get_issue_model REST call
|
3386
|
+
#
|
3387
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetIssueModelRequest]
|
3388
|
+
# A request object representing the call parameters. Required.
|
3389
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3390
|
+
# Uri, Body, Query string parameters
|
3391
|
+
def self.transcode_get_issue_model_request request_pb
|
3392
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3393
|
+
.with_bindings(
|
3394
|
+
uri_method: :get,
|
3395
|
+
uri_template: "/v1/{name}",
|
3396
|
+
matches: [
|
3397
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3398
|
+
]
|
3399
|
+
)
|
3400
|
+
transcoder.transcode request_pb
|
3401
|
+
end
|
3402
|
+
|
3403
|
+
##
|
3404
|
+
# @private
|
3405
|
+
#
|
3406
|
+
# GRPC transcoding helper method for the list_issue_models REST call
|
3407
|
+
#
|
3408
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListIssueModelsRequest]
|
3409
|
+
# A request object representing the call parameters. Required.
|
3410
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3411
|
+
# Uri, Body, Query string parameters
|
3412
|
+
def self.transcode_list_issue_models_request request_pb
|
3413
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3414
|
+
.with_bindings(
|
3415
|
+
uri_method: :get,
|
3416
|
+
uri_template: "/v1/{parent}/issueModels",
|
3417
|
+
matches: [
|
3418
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3419
|
+
]
|
3420
|
+
)
|
3421
|
+
transcoder.transcode request_pb
|
3422
|
+
end
|
3423
|
+
|
3424
|
+
##
|
3425
|
+
# @private
|
3426
|
+
#
|
3427
|
+
# GRPC transcoding helper method for the delete_issue_model REST call
|
3428
|
+
#
|
3429
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteIssueModelRequest]
|
3430
|
+
# A request object representing the call parameters. Required.
|
3431
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3432
|
+
# Uri, Body, Query string parameters
|
3433
|
+
def self.transcode_delete_issue_model_request request_pb
|
3434
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3435
|
+
.with_bindings(
|
3436
|
+
uri_method: :delete,
|
3437
|
+
uri_template: "/v1/{name}",
|
3438
|
+
matches: [
|
3439
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3440
|
+
]
|
3441
|
+
)
|
3442
|
+
transcoder.transcode request_pb
|
3443
|
+
end
|
3444
|
+
|
3445
|
+
##
|
3446
|
+
# @private
|
3447
|
+
#
|
3448
|
+
# GRPC transcoding helper method for the deploy_issue_model REST call
|
3449
|
+
#
|
3450
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeployIssueModelRequest]
|
3451
|
+
# A request object representing the call parameters. Required.
|
3452
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3453
|
+
# Uri, Body, Query string parameters
|
3454
|
+
def self.transcode_deploy_issue_model_request request_pb
|
3455
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3456
|
+
.with_bindings(
|
3457
|
+
uri_method: :post,
|
3458
|
+
uri_template: "/v1/{name}:deploy",
|
3459
|
+
body: "*",
|
3460
|
+
matches: [
|
3461
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3462
|
+
]
|
3463
|
+
)
|
3464
|
+
transcoder.transcode request_pb
|
3465
|
+
end
|
3466
|
+
|
3467
|
+
##
|
3468
|
+
# @private
|
3469
|
+
#
|
3470
|
+
# GRPC transcoding helper method for the undeploy_issue_model REST call
|
3471
|
+
#
|
3472
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UndeployIssueModelRequest]
|
3473
|
+
# A request object representing the call parameters. Required.
|
3474
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3475
|
+
# Uri, Body, Query string parameters
|
3476
|
+
def self.transcode_undeploy_issue_model_request request_pb
|
3477
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3478
|
+
.with_bindings(
|
3479
|
+
uri_method: :post,
|
3480
|
+
uri_template: "/v1/{name}:undeploy",
|
3481
|
+
body: "*",
|
3482
|
+
matches: [
|
3483
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3484
|
+
]
|
3485
|
+
)
|
3486
|
+
transcoder.transcode request_pb
|
3487
|
+
end
|
3488
|
+
|
3489
|
+
##
|
3490
|
+
# @private
|
3491
|
+
#
|
3492
|
+
# GRPC transcoding helper method for the export_issue_model REST call
|
3493
|
+
#
|
3494
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest]
|
3495
|
+
# A request object representing the call parameters. Required.
|
3496
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3497
|
+
# Uri, Body, Query string parameters
|
3498
|
+
def self.transcode_export_issue_model_request request_pb
|
3499
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3500
|
+
.with_bindings(
|
3501
|
+
uri_method: :post,
|
3502
|
+
uri_template: "/v1/{name}:export",
|
3503
|
+
body: "*",
|
3504
|
+
matches: [
|
3505
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3506
|
+
]
|
3507
|
+
)
|
3508
|
+
transcoder.transcode request_pb
|
3509
|
+
end
|
3510
|
+
|
3511
|
+
##
|
3512
|
+
# @private
|
3513
|
+
#
|
3514
|
+
# GRPC transcoding helper method for the import_issue_model REST call
|
3515
|
+
#
|
3516
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest]
|
3517
|
+
# A request object representing the call parameters. Required.
|
3518
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3519
|
+
# Uri, Body, Query string parameters
|
3520
|
+
def self.transcode_import_issue_model_request request_pb
|
3521
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3522
|
+
.with_bindings(
|
3523
|
+
uri_method: :post,
|
3524
|
+
uri_template: "/v1/{parent}/issueModels:import",
|
3525
|
+
body: "*",
|
3526
|
+
matches: [
|
3527
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3528
|
+
]
|
3529
|
+
)
|
3530
|
+
transcoder.transcode request_pb
|
3531
|
+
end
|
3532
|
+
|
3533
|
+
##
|
3534
|
+
# @private
|
3535
|
+
#
|
3536
|
+
# GRPC transcoding helper method for the get_issue REST call
|
3537
|
+
#
|
3538
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetIssueRequest]
|
3539
|
+
# A request object representing the call parameters. Required.
|
3540
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3541
|
+
# Uri, Body, Query string parameters
|
3542
|
+
def self.transcode_get_issue_request request_pb
|
3543
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3544
|
+
.with_bindings(
|
3545
|
+
uri_method: :get,
|
3546
|
+
uri_template: "/v1/{name}",
|
3547
|
+
matches: [
|
3548
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+/?$}, false]
|
3549
|
+
]
|
3550
|
+
)
|
3551
|
+
transcoder.transcode request_pb
|
3552
|
+
end
|
3553
|
+
|
3554
|
+
##
|
3555
|
+
# @private
|
3556
|
+
#
|
3557
|
+
# GRPC transcoding helper method for the list_issues REST call
|
3558
|
+
#
|
3559
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListIssuesRequest]
|
1748
3560
|
# A request object representing the call parameters. Required.
|
1749
3561
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1750
3562
|
# Uri, Body, Query string parameters
|
1751
|
-
def self.
|
3563
|
+
def self.transcode_list_issues_request request_pb
|
3564
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3565
|
+
.with_bindings(
|
3566
|
+
uri_method: :get,
|
3567
|
+
uri_template: "/v1/{parent}/issues",
|
3568
|
+
matches: [
|
3569
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3570
|
+
]
|
3571
|
+
)
|
3572
|
+
transcoder.transcode request_pb
|
3573
|
+
end
|
3574
|
+
|
3575
|
+
##
|
3576
|
+
# @private
|
3577
|
+
#
|
3578
|
+
# GRPC transcoding helper method for the update_issue REST call
|
3579
|
+
#
|
3580
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateIssueRequest]
|
3581
|
+
# A request object representing the call parameters. Required.
|
3582
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3583
|
+
# Uri, Body, Query string parameters
|
3584
|
+
def self.transcode_update_issue_request request_pb
|
1752
3585
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1753
3586
|
.with_bindings(
|
1754
3587
|
uri_method: :patch,
|
1755
|
-
uri_template: "/v1/{
|
1756
|
-
body: "
|
3588
|
+
uri_template: "/v1/{issue.name}",
|
3589
|
+
body: "issue",
|
1757
3590
|
matches: [
|
1758
|
-
["
|
3591
|
+
["issue.name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+/?$}, false]
|
1759
3592
|
]
|
1760
3593
|
)
|
1761
3594
|
transcoder.transcode request_pb
|
@@ -1764,19 +3597,83 @@ module Google
|
|
1764
3597
|
##
|
1765
3598
|
# @private
|
1766
3599
|
#
|
1767
|
-
# GRPC transcoding helper method for the
|
3600
|
+
# GRPC transcoding helper method for the delete_issue REST call
|
1768
3601
|
#
|
1769
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3602
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest]
|
1770
3603
|
# A request object representing the call parameters. Required.
|
1771
3604
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1772
3605
|
# Uri, Body, Query string parameters
|
1773
|
-
def self.
|
3606
|
+
def self.transcode_delete_issue_request request_pb
|
3607
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3608
|
+
.with_bindings(
|
3609
|
+
uri_method: :delete,
|
3610
|
+
uri_template: "/v1/{name}",
|
3611
|
+
matches: [
|
3612
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+/?$}, false]
|
3613
|
+
]
|
3614
|
+
)
|
3615
|
+
transcoder.transcode request_pb
|
3616
|
+
end
|
3617
|
+
|
3618
|
+
##
|
3619
|
+
# @private
|
3620
|
+
#
|
3621
|
+
# GRPC transcoding helper method for the calculate_issue_model_stats REST call
|
3622
|
+
#
|
3623
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsRequest]
|
3624
|
+
# A request object representing the call parameters. Required.
|
3625
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3626
|
+
# Uri, Body, Query string parameters
|
3627
|
+
def self.transcode_calculate_issue_model_stats_request request_pb
|
3628
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3629
|
+
.with_bindings(
|
3630
|
+
uri_method: :get,
|
3631
|
+
uri_template: "/v1/{issue_model}:calculateIssueModelStats",
|
3632
|
+
matches: [
|
3633
|
+
["issue_model", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3634
|
+
]
|
3635
|
+
)
|
3636
|
+
transcoder.transcode request_pb
|
3637
|
+
end
|
3638
|
+
|
3639
|
+
##
|
3640
|
+
# @private
|
3641
|
+
#
|
3642
|
+
# GRPC transcoding helper method for the create_phrase_matcher REST call
|
3643
|
+
#
|
3644
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreatePhraseMatcherRequest]
|
3645
|
+
# A request object representing the call parameters. Required.
|
3646
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3647
|
+
# Uri, Body, Query string parameters
|
3648
|
+
def self.transcode_create_phrase_matcher_request request_pb
|
3649
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3650
|
+
.with_bindings(
|
3651
|
+
uri_method: :post,
|
3652
|
+
uri_template: "/v1/{parent}/phraseMatchers",
|
3653
|
+
body: "phrase_matcher",
|
3654
|
+
matches: [
|
3655
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3656
|
+
]
|
3657
|
+
)
|
3658
|
+
transcoder.transcode request_pb
|
3659
|
+
end
|
3660
|
+
|
3661
|
+
##
|
3662
|
+
# @private
|
3663
|
+
#
|
3664
|
+
# GRPC transcoding helper method for the get_phrase_matcher REST call
|
3665
|
+
#
|
3666
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetPhraseMatcherRequest]
|
3667
|
+
# A request object representing the call parameters. Required.
|
3668
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3669
|
+
# Uri, Body, Query string parameters
|
3670
|
+
def self.transcode_get_phrase_matcher_request request_pb
|
1774
3671
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1775
3672
|
.with_bindings(
|
1776
3673
|
uri_method: :get,
|
1777
3674
|
uri_template: "/v1/{name}",
|
1778
3675
|
matches: [
|
1779
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3676
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+/?$}, false]
|
1780
3677
|
]
|
1781
3678
|
)
|
1782
3679
|
transcoder.transcode request_pb
|
@@ -1785,17 +3682,17 @@ module Google
|
|
1785
3682
|
##
|
1786
3683
|
# @private
|
1787
3684
|
#
|
1788
|
-
# GRPC transcoding helper method for the
|
3685
|
+
# GRPC transcoding helper method for the list_phrase_matchers REST call
|
1789
3686
|
#
|
1790
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3687
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersRequest]
|
1791
3688
|
# A request object representing the call parameters. Required.
|
1792
3689
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1793
3690
|
# Uri, Body, Query string parameters
|
1794
|
-
def self.
|
3691
|
+
def self.transcode_list_phrase_matchers_request request_pb
|
1795
3692
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1796
3693
|
.with_bindings(
|
1797
3694
|
uri_method: :get,
|
1798
|
-
uri_template: "/v1/{parent}/
|
3695
|
+
uri_template: "/v1/{parent}/phraseMatchers",
|
1799
3696
|
matches: [
|
1800
3697
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1801
3698
|
]
|
@@ -1806,19 +3703,19 @@ module Google
|
|
1806
3703
|
##
|
1807
3704
|
# @private
|
1808
3705
|
#
|
1809
|
-
# GRPC transcoding helper method for the
|
3706
|
+
# GRPC transcoding helper method for the delete_phrase_matcher REST call
|
1810
3707
|
#
|
1811
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3708
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeletePhraseMatcherRequest]
|
1812
3709
|
# A request object representing the call parameters. Required.
|
1813
3710
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1814
3711
|
# Uri, Body, Query string parameters
|
1815
|
-
def self.
|
3712
|
+
def self.transcode_delete_phrase_matcher_request request_pb
|
1816
3713
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1817
3714
|
.with_bindings(
|
1818
3715
|
uri_method: :delete,
|
1819
3716
|
uri_template: "/v1/{name}",
|
1820
3717
|
matches: [
|
1821
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3718
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+/?$}, false]
|
1822
3719
|
]
|
1823
3720
|
)
|
1824
3721
|
transcoder.transcode request_pb
|
@@ -1827,20 +3724,106 @@ module Google
|
|
1827
3724
|
##
|
1828
3725
|
# @private
|
1829
3726
|
#
|
1830
|
-
# GRPC transcoding helper method for the
|
3727
|
+
# GRPC transcoding helper method for the update_phrase_matcher REST call
|
1831
3728
|
#
|
1832
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3729
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest]
|
1833
3730
|
# A request object representing the call parameters. Required.
|
1834
3731
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1835
3732
|
# Uri, Body, Query string parameters
|
1836
|
-
def self.
|
3733
|
+
def self.transcode_update_phrase_matcher_request request_pb
|
3734
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3735
|
+
.with_bindings(
|
3736
|
+
uri_method: :patch,
|
3737
|
+
uri_template: "/v1/{phrase_matcher.name}",
|
3738
|
+
body: "phrase_matcher",
|
3739
|
+
matches: [
|
3740
|
+
["phrase_matcher.name", %r{^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+/?$}, false]
|
3741
|
+
]
|
3742
|
+
)
|
3743
|
+
transcoder.transcode request_pb
|
3744
|
+
end
|
3745
|
+
|
3746
|
+
##
|
3747
|
+
# @private
|
3748
|
+
#
|
3749
|
+
# GRPC transcoding helper method for the calculate_stats REST call
|
3750
|
+
#
|
3751
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest]
|
3752
|
+
# A request object representing the call parameters. Required.
|
3753
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3754
|
+
# Uri, Body, Query string parameters
|
3755
|
+
def self.transcode_calculate_stats_request request_pb
|
3756
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3757
|
+
.with_bindings(
|
3758
|
+
uri_method: :get,
|
3759
|
+
uri_template: "/v1/{location}/conversations:calculateStats",
|
3760
|
+
matches: [
|
3761
|
+
["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3762
|
+
]
|
3763
|
+
)
|
3764
|
+
transcoder.transcode request_pb
|
3765
|
+
end
|
3766
|
+
|
3767
|
+
##
|
3768
|
+
# @private
|
3769
|
+
#
|
3770
|
+
# GRPC transcoding helper method for the get_settings REST call
|
3771
|
+
#
|
3772
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetSettingsRequest]
|
3773
|
+
# A request object representing the call parameters. Required.
|
3774
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3775
|
+
# Uri, Body, Query string parameters
|
3776
|
+
def self.transcode_get_settings_request request_pb
|
3777
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3778
|
+
.with_bindings(
|
3779
|
+
uri_method: :get,
|
3780
|
+
uri_template: "/v1/{name}",
|
3781
|
+
matches: [
|
3782
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
|
3783
|
+
]
|
3784
|
+
)
|
3785
|
+
transcoder.transcode request_pb
|
3786
|
+
end
|
3787
|
+
|
3788
|
+
##
|
3789
|
+
# @private
|
3790
|
+
#
|
3791
|
+
# GRPC transcoding helper method for the update_settings REST call
|
3792
|
+
#
|
3793
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateSettingsRequest]
|
3794
|
+
# A request object representing the call parameters. Required.
|
3795
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3796
|
+
# Uri, Body, Query string parameters
|
3797
|
+
def self.transcode_update_settings_request request_pb
|
3798
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3799
|
+
.with_bindings(
|
3800
|
+
uri_method: :patch,
|
3801
|
+
uri_template: "/v1/{settings.name}",
|
3802
|
+
body: "settings",
|
3803
|
+
matches: [
|
3804
|
+
["settings.name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
|
3805
|
+
]
|
3806
|
+
)
|
3807
|
+
transcoder.transcode request_pb
|
3808
|
+
end
|
3809
|
+
|
3810
|
+
##
|
3811
|
+
# @private
|
3812
|
+
#
|
3813
|
+
# GRPC transcoding helper method for the create_analysis_rule REST call
|
3814
|
+
#
|
3815
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest]
|
3816
|
+
# A request object representing the call parameters. Required.
|
3817
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3818
|
+
# Uri, Body, Query string parameters
|
3819
|
+
def self.transcode_create_analysis_rule_request request_pb
|
1837
3820
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1838
3821
|
.with_bindings(
|
1839
3822
|
uri_method: :post,
|
1840
|
-
uri_template: "/v1/{parent}/
|
1841
|
-
body: "
|
3823
|
+
uri_template: "/v1/{parent}/analysisRules",
|
3824
|
+
body: "analysis_rule",
|
1842
3825
|
matches: [
|
1843
|
-
["parent", %r{^projects/[^/]+/locations/[^/]
|
3826
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1844
3827
|
]
|
1845
3828
|
)
|
1846
3829
|
transcoder.transcode request_pb
|
@@ -1849,19 +3832,19 @@ module Google
|
|
1849
3832
|
##
|
1850
3833
|
# @private
|
1851
3834
|
#
|
1852
|
-
# GRPC transcoding helper method for the
|
3835
|
+
# GRPC transcoding helper method for the get_analysis_rule REST call
|
1853
3836
|
#
|
1854
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3837
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest]
|
1855
3838
|
# A request object representing the call parameters. Required.
|
1856
3839
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1857
3840
|
# Uri, Body, Query string parameters
|
1858
|
-
def self.
|
3841
|
+
def self.transcode_get_analysis_rule_request request_pb
|
1859
3842
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1860
3843
|
.with_bindings(
|
1861
3844
|
uri_method: :get,
|
1862
3845
|
uri_template: "/v1/{name}",
|
1863
3846
|
matches: [
|
1864
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3847
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+/?$}, false]
|
1865
3848
|
]
|
1866
3849
|
)
|
1867
3850
|
transcoder.transcode request_pb
|
@@ -1870,19 +3853,19 @@ module Google
|
|
1870
3853
|
##
|
1871
3854
|
# @private
|
1872
3855
|
#
|
1873
|
-
# GRPC transcoding helper method for the
|
3856
|
+
# GRPC transcoding helper method for the list_analysis_rules REST call
|
1874
3857
|
#
|
1875
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3858
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest]
|
1876
3859
|
# A request object representing the call parameters. Required.
|
1877
3860
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1878
3861
|
# Uri, Body, Query string parameters
|
1879
|
-
def self.
|
3862
|
+
def self.transcode_list_analysis_rules_request request_pb
|
1880
3863
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1881
3864
|
.with_bindings(
|
1882
3865
|
uri_method: :get,
|
1883
|
-
uri_template: "/v1/{parent}/
|
3866
|
+
uri_template: "/v1/{parent}/analysisRules",
|
1884
3867
|
matches: [
|
1885
|
-
["parent", %r{^projects/[^/]+/locations/[^/]
|
3868
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1886
3869
|
]
|
1887
3870
|
)
|
1888
3871
|
transcoder.transcode request_pb
|
@@ -1891,19 +3874,41 @@ module Google
|
|
1891
3874
|
##
|
1892
3875
|
# @private
|
1893
3876
|
#
|
1894
|
-
# GRPC transcoding helper method for the
|
3877
|
+
# GRPC transcoding helper method for the update_analysis_rule REST call
|
1895
3878
|
#
|
1896
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3879
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest]
|
1897
3880
|
# A request object representing the call parameters. Required.
|
1898
3881
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1899
3882
|
# Uri, Body, Query string parameters
|
1900
|
-
def self.
|
3883
|
+
def self.transcode_update_analysis_rule_request request_pb
|
3884
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3885
|
+
.with_bindings(
|
3886
|
+
uri_method: :patch,
|
3887
|
+
uri_template: "/v1/{analysis_rule.name}",
|
3888
|
+
body: "analysis_rule",
|
3889
|
+
matches: [
|
3890
|
+
["analysis_rule.name", %r{^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+/?$}, false]
|
3891
|
+
]
|
3892
|
+
)
|
3893
|
+
transcoder.transcode request_pb
|
3894
|
+
end
|
3895
|
+
|
3896
|
+
##
|
3897
|
+
# @private
|
3898
|
+
#
|
3899
|
+
# GRPC transcoding helper method for the delete_analysis_rule REST call
|
3900
|
+
#
|
3901
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest]
|
3902
|
+
# A request object representing the call parameters. Required.
|
3903
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3904
|
+
# Uri, Body, Query string parameters
|
3905
|
+
def self.transcode_delete_analysis_rule_request request_pb
|
1901
3906
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1902
3907
|
.with_bindings(
|
1903
3908
|
uri_method: :delete,
|
1904
3909
|
uri_template: "/v1/{name}",
|
1905
3910
|
matches: [
|
1906
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3911
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+/?$}, false]
|
1907
3912
|
]
|
1908
3913
|
)
|
1909
3914
|
transcoder.transcode request_pb
|
@@ -1912,20 +3917,19 @@ module Google
|
|
1912
3917
|
##
|
1913
3918
|
# @private
|
1914
3919
|
#
|
1915
|
-
# GRPC transcoding helper method for the
|
3920
|
+
# GRPC transcoding helper method for the get_encryption_spec REST call
|
1916
3921
|
#
|
1917
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3922
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest]
|
1918
3923
|
# A request object representing the call parameters. Required.
|
1919
3924
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1920
3925
|
# Uri, Body, Query string parameters
|
1921
|
-
def self.
|
3926
|
+
def self.transcode_get_encryption_spec_request request_pb
|
1922
3927
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1923
3928
|
.with_bindings(
|
1924
|
-
uri_method: :
|
1925
|
-
uri_template: "/v1/{
|
1926
|
-
body: "*",
|
3929
|
+
uri_method: :get,
|
3930
|
+
uri_template: "/v1/{name}",
|
1927
3931
|
matches: [
|
1928
|
-
["
|
3932
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/encryptionSpec/?$}, false]
|
1929
3933
|
]
|
1930
3934
|
)
|
1931
3935
|
transcoder.transcode request_pb
|
@@ -1934,20 +3938,20 @@ module Google
|
|
1934
3938
|
##
|
1935
3939
|
# @private
|
1936
3940
|
#
|
1937
|
-
# GRPC transcoding helper method for the
|
3941
|
+
# GRPC transcoding helper method for the initialize_encryption_spec REST call
|
1938
3942
|
#
|
1939
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3943
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest]
|
1940
3944
|
# A request object representing the call parameters. Required.
|
1941
3945
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1942
3946
|
# Uri, Body, Query string parameters
|
1943
|
-
def self.
|
3947
|
+
def self.transcode_initialize_encryption_spec_request request_pb
|
1944
3948
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1945
3949
|
.with_bindings(
|
1946
3950
|
uri_method: :post,
|
1947
|
-
uri_template: "/v1/{
|
3951
|
+
uri_template: "/v1/{encryption_spec.name}:initialize",
|
1948
3952
|
body: "*",
|
1949
3953
|
matches: [
|
1950
|
-
["
|
3954
|
+
["encryption_spec.name", %r{^projects/[^/]+/locations/[^/]+/encryptionSpec/?$}, false]
|
1951
3955
|
]
|
1952
3956
|
)
|
1953
3957
|
transcoder.transcode request_pb
|
@@ -1956,18 +3960,18 @@ module Google
|
|
1956
3960
|
##
|
1957
3961
|
# @private
|
1958
3962
|
#
|
1959
|
-
# GRPC transcoding helper method for the
|
3963
|
+
# GRPC transcoding helper method for the create_view REST call
|
1960
3964
|
#
|
1961
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3965
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest]
|
1962
3966
|
# A request object representing the call parameters. Required.
|
1963
3967
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1964
3968
|
# Uri, Body, Query string parameters
|
1965
|
-
def self.
|
3969
|
+
def self.transcode_create_view_request request_pb
|
1966
3970
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1967
3971
|
.with_bindings(
|
1968
3972
|
uri_method: :post,
|
1969
|
-
uri_template: "/v1/{parent}/
|
1970
|
-
body: "
|
3973
|
+
uri_template: "/v1/{parent}/views",
|
3974
|
+
body: "view",
|
1971
3975
|
matches: [
|
1972
3976
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1973
3977
|
]
|
@@ -1978,20 +3982,19 @@ module Google
|
|
1978
3982
|
##
|
1979
3983
|
# @private
|
1980
3984
|
#
|
1981
|
-
# GRPC transcoding helper method for the
|
3985
|
+
# GRPC transcoding helper method for the get_view REST call
|
1982
3986
|
#
|
1983
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3987
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetViewRequest]
|
1984
3988
|
# A request object representing the call parameters. Required.
|
1985
3989
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1986
3990
|
# Uri, Body, Query string parameters
|
1987
|
-
def self.
|
3991
|
+
def self.transcode_get_view_request request_pb
|
1988
3992
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1989
3993
|
.with_bindings(
|
1990
|
-
uri_method: :
|
1991
|
-
uri_template: "/v1/{
|
1992
|
-
body: "*",
|
3994
|
+
uri_method: :get,
|
3995
|
+
uri_template: "/v1/{name}",
|
1993
3996
|
matches: [
|
1994
|
-
["
|
3997
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/views/[^/]+/?$}, false]
|
1995
3998
|
]
|
1996
3999
|
)
|
1997
4000
|
transcoder.transcode request_pb
|
@@ -2000,18 +4003,17 @@ module Google
|
|
2000
4003
|
##
|
2001
4004
|
# @private
|
2002
4005
|
#
|
2003
|
-
# GRPC transcoding helper method for the
|
4006
|
+
# GRPC transcoding helper method for the list_views REST call
|
2004
4007
|
#
|
2005
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4008
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest]
|
2006
4009
|
# A request object representing the call parameters. Required.
|
2007
4010
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2008
4011
|
# Uri, Body, Query string parameters
|
2009
|
-
def self.
|
4012
|
+
def self.transcode_list_views_request request_pb
|
2010
4013
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2011
4014
|
.with_bindings(
|
2012
|
-
uri_method: :
|
2013
|
-
uri_template: "/v1/{parent}/
|
2014
|
-
body: "issue_model",
|
4015
|
+
uri_method: :get,
|
4016
|
+
uri_template: "/v1/{parent}/views",
|
2015
4017
|
matches: [
|
2016
4018
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2017
4019
|
]
|
@@ -2022,20 +4024,20 @@ module Google
|
|
2022
4024
|
##
|
2023
4025
|
# @private
|
2024
4026
|
#
|
2025
|
-
# GRPC transcoding helper method for the
|
4027
|
+
# GRPC transcoding helper method for the update_view REST call
|
2026
4028
|
#
|
2027
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4029
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest]
|
2028
4030
|
# A request object representing the call parameters. Required.
|
2029
4031
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2030
4032
|
# Uri, Body, Query string parameters
|
2031
|
-
def self.
|
4033
|
+
def self.transcode_update_view_request request_pb
|
2032
4034
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2033
4035
|
.with_bindings(
|
2034
4036
|
uri_method: :patch,
|
2035
|
-
uri_template: "/v1/{
|
2036
|
-
body: "
|
4037
|
+
uri_template: "/v1/{view.name}",
|
4038
|
+
body: "view",
|
2037
4039
|
matches: [
|
2038
|
-
["
|
4040
|
+
["view.name", %r{^projects/[^/]+/locations/[^/]+/views/[^/]+/?$}, false]
|
2039
4041
|
]
|
2040
4042
|
)
|
2041
4043
|
transcoder.transcode request_pb
|
@@ -2044,19 +4046,19 @@ module Google
|
|
2044
4046
|
##
|
2045
4047
|
# @private
|
2046
4048
|
#
|
2047
|
-
# GRPC transcoding helper method for the
|
4049
|
+
# GRPC transcoding helper method for the delete_view REST call
|
2048
4050
|
#
|
2049
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4051
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest]
|
2050
4052
|
# A request object representing the call parameters. Required.
|
2051
4053
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2052
4054
|
# Uri, Body, Query string parameters
|
2053
|
-
def self.
|
4055
|
+
def self.transcode_delete_view_request request_pb
|
2054
4056
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2055
4057
|
.with_bindings(
|
2056
|
-
uri_method: :
|
4058
|
+
uri_method: :delete,
|
2057
4059
|
uri_template: "/v1/{name}",
|
2058
4060
|
matches: [
|
2059
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4061
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/views/[^/]+/?$}, false]
|
2060
4062
|
]
|
2061
4063
|
)
|
2062
4064
|
transcoder.transcode request_pb
|
@@ -2065,19 +4067,20 @@ module Google
|
|
2065
4067
|
##
|
2066
4068
|
# @private
|
2067
4069
|
#
|
2068
|
-
# GRPC transcoding helper method for the
|
4070
|
+
# GRPC transcoding helper method for the query_metrics REST call
|
2069
4071
|
#
|
2070
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4072
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest]
|
2071
4073
|
# A request object representing the call parameters. Required.
|
2072
4074
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2073
4075
|
# Uri, Body, Query string parameters
|
2074
|
-
def self.
|
4076
|
+
def self.transcode_query_metrics_request request_pb
|
2075
4077
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2076
4078
|
.with_bindings(
|
2077
|
-
uri_method: :
|
2078
|
-
uri_template: "/v1/{
|
4079
|
+
uri_method: :post,
|
4080
|
+
uri_template: "/v1/{location}:queryMetrics",
|
4081
|
+
body: "*",
|
2079
4082
|
matches: [
|
2080
|
-
["
|
4083
|
+
["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2081
4084
|
]
|
2082
4085
|
)
|
2083
4086
|
transcoder.transcode request_pb
|
@@ -2086,19 +4089,20 @@ module Google
|
|
2086
4089
|
##
|
2087
4090
|
# @private
|
2088
4091
|
#
|
2089
|
-
# GRPC transcoding helper method for the
|
4092
|
+
# GRPC transcoding helper method for the create_qa_question REST call
|
2090
4093
|
#
|
2091
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4094
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest]
|
2092
4095
|
# A request object representing the call parameters. Required.
|
2093
4096
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2094
4097
|
# Uri, Body, Query string parameters
|
2095
|
-
def self.
|
4098
|
+
def self.transcode_create_qa_question_request request_pb
|
2096
4099
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2097
4100
|
.with_bindings(
|
2098
|
-
uri_method: :
|
2099
|
-
uri_template: "/v1/{
|
4101
|
+
uri_method: :post,
|
4102
|
+
uri_template: "/v1/{parent}/qaQuestions",
|
4103
|
+
body: "qa_question",
|
2100
4104
|
matches: [
|
2101
|
-
["
|
4105
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2102
4106
|
]
|
2103
4107
|
)
|
2104
4108
|
transcoder.transcode request_pb
|
@@ -2107,20 +4111,19 @@ module Google
|
|
2107
4111
|
##
|
2108
4112
|
# @private
|
2109
4113
|
#
|
2110
|
-
# GRPC transcoding helper method for the
|
4114
|
+
# GRPC transcoding helper method for the get_qa_question REST call
|
2111
4115
|
#
|
2112
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4116
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest]
|
2113
4117
|
# A request object representing the call parameters. Required.
|
2114
4118
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2115
4119
|
# Uri, Body, Query string parameters
|
2116
|
-
def self.
|
4120
|
+
def self.transcode_get_qa_question_request request_pb
|
2117
4121
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2118
4122
|
.with_bindings(
|
2119
|
-
uri_method: :
|
2120
|
-
uri_template: "/v1/{name}
|
2121
|
-
body: "*",
|
4123
|
+
uri_method: :get,
|
4124
|
+
uri_template: "/v1/{name}",
|
2122
4125
|
matches: [
|
2123
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4126
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+/?$}, false]
|
2124
4127
|
]
|
2125
4128
|
)
|
2126
4129
|
transcoder.transcode request_pb
|
@@ -2129,20 +4132,20 @@ module Google
|
|
2129
4132
|
##
|
2130
4133
|
# @private
|
2131
4134
|
#
|
2132
|
-
# GRPC transcoding helper method for the
|
4135
|
+
# GRPC transcoding helper method for the update_qa_question REST call
|
2133
4136
|
#
|
2134
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4137
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest]
|
2135
4138
|
# A request object representing the call parameters. Required.
|
2136
4139
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2137
4140
|
# Uri, Body, Query string parameters
|
2138
|
-
def self.
|
4141
|
+
def self.transcode_update_qa_question_request request_pb
|
2139
4142
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2140
4143
|
.with_bindings(
|
2141
|
-
uri_method: :
|
2142
|
-
uri_template: "/v1/{name}
|
2143
|
-
body: "
|
4144
|
+
uri_method: :patch,
|
4145
|
+
uri_template: "/v1/{qa_question.name}",
|
4146
|
+
body: "qa_question",
|
2144
4147
|
matches: [
|
2145
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4148
|
+
["qa_question.name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+/?$}, false]
|
2146
4149
|
]
|
2147
4150
|
)
|
2148
4151
|
transcoder.transcode request_pb
|
@@ -2151,20 +4154,19 @@ module Google
|
|
2151
4154
|
##
|
2152
4155
|
# @private
|
2153
4156
|
#
|
2154
|
-
# GRPC transcoding helper method for the
|
4157
|
+
# GRPC transcoding helper method for the delete_qa_question REST call
|
2155
4158
|
#
|
2156
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4159
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest]
|
2157
4160
|
# A request object representing the call parameters. Required.
|
2158
4161
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2159
4162
|
# Uri, Body, Query string parameters
|
2160
|
-
def self.
|
4163
|
+
def self.transcode_delete_qa_question_request request_pb
|
2161
4164
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2162
4165
|
.with_bindings(
|
2163
|
-
uri_method: :
|
2164
|
-
uri_template: "/v1/{name}
|
2165
|
-
body: "*",
|
4166
|
+
uri_method: :delete,
|
4167
|
+
uri_template: "/v1/{name}",
|
2166
4168
|
matches: [
|
2167
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4169
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+/?$}, false]
|
2168
4170
|
]
|
2169
4171
|
)
|
2170
4172
|
transcoder.transcode request_pb
|
@@ -2173,20 +4175,19 @@ module Google
|
|
2173
4175
|
##
|
2174
4176
|
# @private
|
2175
4177
|
#
|
2176
|
-
# GRPC transcoding helper method for the
|
4178
|
+
# GRPC transcoding helper method for the list_qa_questions REST call
|
2177
4179
|
#
|
2178
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4180
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest]
|
2179
4181
|
# A request object representing the call parameters. Required.
|
2180
4182
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2181
4183
|
# Uri, Body, Query string parameters
|
2182
|
-
def self.
|
4184
|
+
def self.transcode_list_qa_questions_request request_pb
|
2183
4185
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2184
4186
|
.with_bindings(
|
2185
|
-
uri_method: :
|
2186
|
-
uri_template: "/v1/{parent}/
|
2187
|
-
body: "*",
|
4187
|
+
uri_method: :get,
|
4188
|
+
uri_template: "/v1/{parent}/qaQuestions",
|
2188
4189
|
matches: [
|
2189
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
4190
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2190
4191
|
]
|
2191
4192
|
)
|
2192
4193
|
transcoder.transcode request_pb
|
@@ -2195,19 +4196,20 @@ module Google
|
|
2195
4196
|
##
|
2196
4197
|
# @private
|
2197
4198
|
#
|
2198
|
-
# GRPC transcoding helper method for the
|
4199
|
+
# GRPC transcoding helper method for the create_qa_scorecard REST call
|
2199
4200
|
#
|
2200
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4201
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest]
|
2201
4202
|
# A request object representing the call parameters. Required.
|
2202
4203
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2203
4204
|
# Uri, Body, Query string parameters
|
2204
|
-
def self.
|
4205
|
+
def self.transcode_create_qa_scorecard_request request_pb
|
2205
4206
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2206
4207
|
.with_bindings(
|
2207
|
-
uri_method: :
|
2208
|
-
uri_template: "/v1/{
|
4208
|
+
uri_method: :post,
|
4209
|
+
uri_template: "/v1/{parent}/qaScorecards",
|
4210
|
+
body: "qa_scorecard",
|
2209
4211
|
matches: [
|
2210
|
-
["
|
4212
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2211
4213
|
]
|
2212
4214
|
)
|
2213
4215
|
transcoder.transcode request_pb
|
@@ -2216,19 +4218,19 @@ module Google
|
|
2216
4218
|
##
|
2217
4219
|
# @private
|
2218
4220
|
#
|
2219
|
-
# GRPC transcoding helper method for the
|
4221
|
+
# GRPC transcoding helper method for the get_qa_scorecard REST call
|
2220
4222
|
#
|
2221
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4223
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest]
|
2222
4224
|
# A request object representing the call parameters. Required.
|
2223
4225
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2224
4226
|
# Uri, Body, Query string parameters
|
2225
|
-
def self.
|
4227
|
+
def self.transcode_get_qa_scorecard_request request_pb
|
2226
4228
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2227
4229
|
.with_bindings(
|
2228
4230
|
uri_method: :get,
|
2229
|
-
uri_template: "/v1/{
|
4231
|
+
uri_template: "/v1/{name}",
|
2230
4232
|
matches: [
|
2231
|
-
["
|
4233
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2232
4234
|
]
|
2233
4235
|
)
|
2234
4236
|
transcoder.transcode request_pb
|
@@ -2237,20 +4239,20 @@ module Google
|
|
2237
4239
|
##
|
2238
4240
|
# @private
|
2239
4241
|
#
|
2240
|
-
# GRPC transcoding helper method for the
|
4242
|
+
# GRPC transcoding helper method for the update_qa_scorecard REST call
|
2241
4243
|
#
|
2242
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4244
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest]
|
2243
4245
|
# A request object representing the call parameters. Required.
|
2244
4246
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2245
4247
|
# Uri, Body, Query string parameters
|
2246
|
-
def self.
|
4248
|
+
def self.transcode_update_qa_scorecard_request request_pb
|
2247
4249
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2248
4250
|
.with_bindings(
|
2249
4251
|
uri_method: :patch,
|
2250
|
-
uri_template: "/v1/{
|
2251
|
-
body: "
|
4252
|
+
uri_template: "/v1/{qa_scorecard.name}",
|
4253
|
+
body: "qa_scorecard",
|
2252
4254
|
matches: [
|
2253
|
-
["
|
4255
|
+
["qa_scorecard.name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2254
4256
|
]
|
2255
4257
|
)
|
2256
4258
|
transcoder.transcode request_pb
|
@@ -2259,19 +4261,19 @@ module Google
|
|
2259
4261
|
##
|
2260
4262
|
# @private
|
2261
4263
|
#
|
2262
|
-
# GRPC transcoding helper method for the
|
4264
|
+
# GRPC transcoding helper method for the delete_qa_scorecard REST call
|
2263
4265
|
#
|
2264
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4266
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest]
|
2265
4267
|
# A request object representing the call parameters. Required.
|
2266
4268
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2267
4269
|
# Uri, Body, Query string parameters
|
2268
|
-
def self.
|
4270
|
+
def self.transcode_delete_qa_scorecard_request request_pb
|
2269
4271
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2270
4272
|
.with_bindings(
|
2271
4273
|
uri_method: :delete,
|
2272
4274
|
uri_template: "/v1/{name}",
|
2273
4275
|
matches: [
|
2274
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4276
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2275
4277
|
]
|
2276
4278
|
)
|
2277
4279
|
transcoder.transcode request_pb
|
@@ -2280,19 +4282,19 @@ module Google
|
|
2280
4282
|
##
|
2281
4283
|
# @private
|
2282
4284
|
#
|
2283
|
-
# GRPC transcoding helper method for the
|
4285
|
+
# GRPC transcoding helper method for the list_qa_scorecards REST call
|
2284
4286
|
#
|
2285
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4287
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest]
|
2286
4288
|
# A request object representing the call parameters. Required.
|
2287
4289
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2288
4290
|
# Uri, Body, Query string parameters
|
2289
|
-
def self.
|
4291
|
+
def self.transcode_list_qa_scorecards_request request_pb
|
2290
4292
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2291
4293
|
.with_bindings(
|
2292
4294
|
uri_method: :get,
|
2293
|
-
uri_template: "/v1/{
|
4295
|
+
uri_template: "/v1/{parent}/qaScorecards",
|
2294
4296
|
matches: [
|
2295
|
-
["
|
4297
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2296
4298
|
]
|
2297
4299
|
)
|
2298
4300
|
transcoder.transcode request_pb
|
@@ -2301,20 +4303,20 @@ module Google
|
|
2301
4303
|
##
|
2302
4304
|
# @private
|
2303
4305
|
#
|
2304
|
-
# GRPC transcoding helper method for the
|
4306
|
+
# GRPC transcoding helper method for the create_qa_scorecard_revision REST call
|
2305
4307
|
#
|
2306
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4308
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest]
|
2307
4309
|
# A request object representing the call parameters. Required.
|
2308
4310
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2309
4311
|
# Uri, Body, Query string parameters
|
2310
|
-
def self.
|
4312
|
+
def self.transcode_create_qa_scorecard_revision_request request_pb
|
2311
4313
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2312
4314
|
.with_bindings(
|
2313
4315
|
uri_method: :post,
|
2314
|
-
uri_template: "/v1/{parent}/
|
2315
|
-
body: "
|
4316
|
+
uri_template: "/v1/{parent}/revisions",
|
4317
|
+
body: "qa_scorecard_revision",
|
2316
4318
|
matches: [
|
2317
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
4319
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2318
4320
|
]
|
2319
4321
|
)
|
2320
4322
|
transcoder.transcode request_pb
|
@@ -2323,19 +4325,19 @@ module Google
|
|
2323
4325
|
##
|
2324
4326
|
# @private
|
2325
4327
|
#
|
2326
|
-
# GRPC transcoding helper method for the
|
4328
|
+
# GRPC transcoding helper method for the get_qa_scorecard_revision REST call
|
2327
4329
|
#
|
2328
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4330
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest]
|
2329
4331
|
# A request object representing the call parameters. Required.
|
2330
4332
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2331
4333
|
# Uri, Body, Query string parameters
|
2332
|
-
def self.
|
4334
|
+
def self.transcode_get_qa_scorecard_revision_request request_pb
|
2333
4335
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2334
4336
|
.with_bindings(
|
2335
4337
|
uri_method: :get,
|
2336
4338
|
uri_template: "/v1/{name}",
|
2337
4339
|
matches: [
|
2338
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4340
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2339
4341
|
]
|
2340
4342
|
)
|
2341
4343
|
transcoder.transcode request_pb
|
@@ -2344,19 +4346,20 @@ module Google
|
|
2344
4346
|
##
|
2345
4347
|
# @private
|
2346
4348
|
#
|
2347
|
-
# GRPC transcoding helper method for the
|
4349
|
+
# GRPC transcoding helper method for the tune_qa_scorecard_revision REST call
|
2348
4350
|
#
|
2349
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4351
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest]
|
2350
4352
|
# A request object representing the call parameters. Required.
|
2351
4353
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2352
4354
|
# Uri, Body, Query string parameters
|
2353
|
-
def self.
|
4355
|
+
def self.transcode_tune_qa_scorecard_revision_request request_pb
|
2354
4356
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2355
4357
|
.with_bindings(
|
2356
|
-
uri_method: :
|
2357
|
-
uri_template: "/v1/{parent}
|
4358
|
+
uri_method: :post,
|
4359
|
+
uri_template: "/v1/{parent}:tuneQaScorecardRevision",
|
4360
|
+
body: "*",
|
2358
4361
|
matches: [
|
2359
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
4362
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2360
4363
|
]
|
2361
4364
|
)
|
2362
4365
|
transcoder.transcode request_pb
|
@@ -2365,19 +4368,20 @@ module Google
|
|
2365
4368
|
##
|
2366
4369
|
# @private
|
2367
4370
|
#
|
2368
|
-
# GRPC transcoding helper method for the
|
4371
|
+
# GRPC transcoding helper method for the deploy_qa_scorecard_revision REST call
|
2369
4372
|
#
|
2370
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4373
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest]
|
2371
4374
|
# A request object representing the call parameters. Required.
|
2372
4375
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2373
4376
|
# Uri, Body, Query string parameters
|
2374
|
-
def self.
|
4377
|
+
def self.transcode_deploy_qa_scorecard_revision_request request_pb
|
2375
4378
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2376
4379
|
.with_bindings(
|
2377
|
-
uri_method: :
|
2378
|
-
uri_template: "/v1/{name}",
|
4380
|
+
uri_method: :post,
|
4381
|
+
uri_template: "/v1/{name}:deploy",
|
4382
|
+
body: "*",
|
2379
4383
|
matches: [
|
2380
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4384
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2381
4385
|
]
|
2382
4386
|
)
|
2383
4387
|
transcoder.transcode request_pb
|
@@ -2386,20 +4390,20 @@ module Google
|
|
2386
4390
|
##
|
2387
4391
|
# @private
|
2388
4392
|
#
|
2389
|
-
# GRPC transcoding helper method for the
|
4393
|
+
# GRPC transcoding helper method for the undeploy_qa_scorecard_revision REST call
|
2390
4394
|
#
|
2391
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4395
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest]
|
2392
4396
|
# A request object representing the call parameters. Required.
|
2393
4397
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2394
4398
|
# Uri, Body, Query string parameters
|
2395
|
-
def self.
|
4399
|
+
def self.transcode_undeploy_qa_scorecard_revision_request request_pb
|
2396
4400
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2397
4401
|
.with_bindings(
|
2398
|
-
uri_method: :
|
2399
|
-
uri_template: "/v1/{
|
2400
|
-
body: "
|
4402
|
+
uri_method: :post,
|
4403
|
+
uri_template: "/v1/{name}:undeploy",
|
4404
|
+
body: "*",
|
2401
4405
|
matches: [
|
2402
|
-
["
|
4406
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2403
4407
|
]
|
2404
4408
|
)
|
2405
4409
|
transcoder.transcode request_pb
|
@@ -2408,19 +4412,19 @@ module Google
|
|
2408
4412
|
##
|
2409
4413
|
# @private
|
2410
4414
|
#
|
2411
|
-
# GRPC transcoding helper method for the
|
4415
|
+
# GRPC transcoding helper method for the delete_qa_scorecard_revision REST call
|
2412
4416
|
#
|
2413
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4417
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest]
|
2414
4418
|
# A request object representing the call parameters. Required.
|
2415
4419
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2416
4420
|
# Uri, Body, Query string parameters
|
2417
|
-
def self.
|
4421
|
+
def self.transcode_delete_qa_scorecard_revision_request request_pb
|
2418
4422
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2419
4423
|
.with_bindings(
|
2420
|
-
uri_method: :
|
2421
|
-
uri_template: "/v1/{
|
4424
|
+
uri_method: :delete,
|
4425
|
+
uri_template: "/v1/{name}",
|
2422
4426
|
matches: [
|
2423
|
-
["
|
4427
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2424
4428
|
]
|
2425
4429
|
)
|
2426
4430
|
transcoder.transcode request_pb
|
@@ -2429,19 +4433,19 @@ module Google
|
|
2429
4433
|
##
|
2430
4434
|
# @private
|
2431
4435
|
#
|
2432
|
-
# GRPC transcoding helper method for the
|
4436
|
+
# GRPC transcoding helper method for the list_qa_scorecard_revisions REST call
|
2433
4437
|
#
|
2434
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4438
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest]
|
2435
4439
|
# A request object representing the call parameters. Required.
|
2436
4440
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2437
4441
|
# Uri, Body, Query string parameters
|
2438
|
-
def self.
|
4442
|
+
def self.transcode_list_qa_scorecard_revisions_request request_pb
|
2439
4443
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2440
4444
|
.with_bindings(
|
2441
4445
|
uri_method: :get,
|
2442
|
-
uri_template: "/v1/{
|
4446
|
+
uri_template: "/v1/{parent}/revisions",
|
2443
4447
|
matches: [
|
2444
|
-
["
|
4448
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2445
4449
|
]
|
2446
4450
|
)
|
2447
4451
|
transcoder.transcode request_pb
|
@@ -2450,20 +4454,20 @@ module Google
|
|
2450
4454
|
##
|
2451
4455
|
# @private
|
2452
4456
|
#
|
2453
|
-
# GRPC transcoding helper method for the
|
4457
|
+
# GRPC transcoding helper method for the create_feedback_label REST call
|
2454
4458
|
#
|
2455
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4459
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest]
|
2456
4460
|
# A request object representing the call parameters. Required.
|
2457
4461
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2458
4462
|
# Uri, Body, Query string parameters
|
2459
|
-
def self.
|
4463
|
+
def self.transcode_create_feedback_label_request request_pb
|
2460
4464
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2461
4465
|
.with_bindings(
|
2462
|
-
uri_method: :
|
2463
|
-
uri_template: "/v1/{
|
2464
|
-
body: "
|
4466
|
+
uri_method: :post,
|
4467
|
+
uri_template: "/v1/{parent}/feedbackLabels",
|
4468
|
+
body: "feedback_label",
|
2465
4469
|
matches: [
|
2466
|
-
["
|
4470
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
2467
4471
|
]
|
2468
4472
|
)
|
2469
4473
|
transcoder.transcode request_pb
|
@@ -2472,19 +4476,19 @@ module Google
|
|
2472
4476
|
##
|
2473
4477
|
# @private
|
2474
4478
|
#
|
2475
|
-
# GRPC transcoding helper method for the
|
4479
|
+
# GRPC transcoding helper method for the list_feedback_labels REST call
|
2476
4480
|
#
|
2477
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4481
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest]
|
2478
4482
|
# A request object representing the call parameters. Required.
|
2479
4483
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2480
4484
|
# Uri, Body, Query string parameters
|
2481
|
-
def self.
|
4485
|
+
def self.transcode_list_feedback_labels_request request_pb
|
2482
4486
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2483
4487
|
.with_bindings(
|
2484
4488
|
uri_method: :get,
|
2485
|
-
uri_template: "/v1/{
|
4489
|
+
uri_template: "/v1/{parent}/feedbackLabels",
|
2486
4490
|
matches: [
|
2487
|
-
["
|
4491
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
2488
4492
|
]
|
2489
4493
|
)
|
2490
4494
|
transcoder.transcode request_pb
|
@@ -2493,20 +4497,19 @@ module Google
|
|
2493
4497
|
##
|
2494
4498
|
# @private
|
2495
4499
|
#
|
2496
|
-
# GRPC transcoding helper method for the
|
4500
|
+
# GRPC transcoding helper method for the get_feedback_label REST call
|
2497
4501
|
#
|
2498
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4502
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest]
|
2499
4503
|
# A request object representing the call parameters. Required.
|
2500
4504
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2501
4505
|
# Uri, Body, Query string parameters
|
2502
|
-
def self.
|
4506
|
+
def self.transcode_get_feedback_label_request request_pb
|
2503
4507
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2504
4508
|
.with_bindings(
|
2505
|
-
uri_method: :
|
2506
|
-
uri_template: "/v1/{
|
2507
|
-
body: "*",
|
4509
|
+
uri_method: :get,
|
4510
|
+
uri_template: "/v1/{name}",
|
2508
4511
|
matches: [
|
2509
|
-
["
|
4512
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+/?$}, false]
|
2510
4513
|
]
|
2511
4514
|
)
|
2512
4515
|
transcoder.transcode request_pb
|
@@ -2515,20 +4518,20 @@ module Google
|
|
2515
4518
|
##
|
2516
4519
|
# @private
|
2517
4520
|
#
|
2518
|
-
# GRPC transcoding helper method for the
|
4521
|
+
# GRPC transcoding helper method for the update_feedback_label REST call
|
2519
4522
|
#
|
2520
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4523
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest]
|
2521
4524
|
# A request object representing the call parameters. Required.
|
2522
4525
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2523
4526
|
# Uri, Body, Query string parameters
|
2524
|
-
def self.
|
4527
|
+
def self.transcode_update_feedback_label_request request_pb
|
2525
4528
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2526
4529
|
.with_bindings(
|
2527
|
-
uri_method: :
|
2528
|
-
uri_template: "/v1/{
|
2529
|
-
body: "
|
4530
|
+
uri_method: :patch,
|
4531
|
+
uri_template: "/v1/{feedback_label.name}",
|
4532
|
+
body: "feedback_label",
|
2530
4533
|
matches: [
|
2531
|
-
["
|
4534
|
+
["feedback_label.name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+/?$}, false]
|
2532
4535
|
]
|
2533
4536
|
)
|
2534
4537
|
transcoder.transcode request_pb
|
@@ -2537,19 +4540,19 @@ module Google
|
|
2537
4540
|
##
|
2538
4541
|
# @private
|
2539
4542
|
#
|
2540
|
-
# GRPC transcoding helper method for the
|
4543
|
+
# GRPC transcoding helper method for the delete_feedback_label REST call
|
2541
4544
|
#
|
2542
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4545
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest]
|
2543
4546
|
# A request object representing the call parameters. Required.
|
2544
4547
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2545
4548
|
# Uri, Body, Query string parameters
|
2546
|
-
def self.
|
4549
|
+
def self.transcode_delete_feedback_label_request request_pb
|
2547
4550
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2548
4551
|
.with_bindings(
|
2549
|
-
uri_method: :
|
4552
|
+
uri_method: :delete,
|
2550
4553
|
uri_template: "/v1/{name}",
|
2551
4554
|
matches: [
|
2552
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4555
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+/?$}, false]
|
2553
4556
|
]
|
2554
4557
|
)
|
2555
4558
|
transcoder.transcode request_pb
|
@@ -2558,17 +4561,17 @@ module Google
|
|
2558
4561
|
##
|
2559
4562
|
# @private
|
2560
4563
|
#
|
2561
|
-
# GRPC transcoding helper method for the
|
4564
|
+
# GRPC transcoding helper method for the list_all_feedback_labels REST call
|
2562
4565
|
#
|
2563
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4566
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest]
|
2564
4567
|
# A request object representing the call parameters. Required.
|
2565
4568
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2566
4569
|
# Uri, Body, Query string parameters
|
2567
|
-
def self.
|
4570
|
+
def self.transcode_list_all_feedback_labels_request request_pb
|
2568
4571
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2569
4572
|
.with_bindings(
|
2570
4573
|
uri_method: :get,
|
2571
|
-
uri_template: "/v1/{parent}
|
4574
|
+
uri_template: "/v1/{parent}:listAllFeedbackLabels",
|
2572
4575
|
matches: [
|
2573
4576
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2574
4577
|
]
|
@@ -2579,20 +4582,20 @@ module Google
|
|
2579
4582
|
##
|
2580
4583
|
# @private
|
2581
4584
|
#
|
2582
|
-
# GRPC transcoding helper method for the
|
4585
|
+
# GRPC transcoding helper method for the bulk_upload_feedback_labels REST call
|
2583
4586
|
#
|
2584
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4587
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest]
|
2585
4588
|
# A request object representing the call parameters. Required.
|
2586
4589
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2587
4590
|
# Uri, Body, Query string parameters
|
2588
|
-
def self.
|
4591
|
+
def self.transcode_bulk_upload_feedback_labels_request request_pb
|
2589
4592
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2590
4593
|
.with_bindings(
|
2591
|
-
uri_method: :
|
2592
|
-
uri_template: "/v1/{
|
2593
|
-
body: "
|
4594
|
+
uri_method: :post,
|
4595
|
+
uri_template: "/v1/{parent}:bulkUploadFeedbackLabels",
|
4596
|
+
body: "*",
|
2594
4597
|
matches: [
|
2595
|
-
["
|
4598
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2596
4599
|
]
|
2597
4600
|
)
|
2598
4601
|
transcoder.transcode request_pb
|
@@ -2601,19 +4604,20 @@ module Google
|
|
2601
4604
|
##
|
2602
4605
|
# @private
|
2603
4606
|
#
|
2604
|
-
# GRPC transcoding helper method for the
|
4607
|
+
# GRPC transcoding helper method for the bulk_download_feedback_labels REST call
|
2605
4608
|
#
|
2606
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4609
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest]
|
2607
4610
|
# A request object representing the call parameters. Required.
|
2608
4611
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2609
4612
|
# Uri, Body, Query string parameters
|
2610
|
-
def self.
|
4613
|
+
def self.transcode_bulk_download_feedback_labels_request request_pb
|
2611
4614
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2612
4615
|
.with_bindings(
|
2613
|
-
uri_method: :
|
2614
|
-
uri_template: "/v1/{
|
4616
|
+
uri_method: :post,
|
4617
|
+
uri_template: "/v1/{parent}:bulkDownloadFeedbackLabels",
|
4618
|
+
body: "*",
|
2615
4619
|
matches: [
|
2616
|
-
["
|
4620
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2617
4621
|
]
|
2618
4622
|
)
|
2619
4623
|
transcoder.transcode request_pb
|