google-cloud-contact_center_insights-v1 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +3385 -196
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/operations.rb +3 -10
- 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 +3158 -186
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/operations.rb +3 -10
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb +2116 -272
- 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 +20 -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 +24 -3
data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb
CHANGED
@@ -1429,6 +1429,196 @@ module Google
|
|
1429
1429
|
result
|
1430
1430
|
end
|
1431
1431
|
|
1432
|
+
##
|
1433
|
+
# Baseline implementation for the create_analysis_rule REST call
|
1434
|
+
#
|
1435
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest]
|
1436
|
+
# A request object representing the call parameters. Required.
|
1437
|
+
# @param options [::Gapic::CallOptions]
|
1438
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1439
|
+
#
|
1440
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1441
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1442
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1443
|
+
#
|
1444
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1445
|
+
# A result object deserialized from the server's reply
|
1446
|
+
def create_analysis_rule request_pb, options = nil
|
1447
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1448
|
+
|
1449
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_analysis_rule_request request_pb
|
1450
|
+
query_string_params = if query_string_params.any?
|
1451
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1452
|
+
else
|
1453
|
+
{}
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
response = @client_stub.make_http_request(
|
1457
|
+
verb,
|
1458
|
+
uri: uri,
|
1459
|
+
body: body || "",
|
1460
|
+
params: query_string_params,
|
1461
|
+
options: options
|
1462
|
+
)
|
1463
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1464
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule.decode_json response.body, ignore_unknown_fields: true
|
1465
|
+
|
1466
|
+
yield result, operation if block_given?
|
1467
|
+
result
|
1468
|
+
end
|
1469
|
+
|
1470
|
+
##
|
1471
|
+
# Baseline implementation for the get_analysis_rule REST call
|
1472
|
+
#
|
1473
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest]
|
1474
|
+
# A request object representing the call parameters. Required.
|
1475
|
+
# @param options [::Gapic::CallOptions]
|
1476
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1477
|
+
#
|
1478
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1479
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1480
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1481
|
+
#
|
1482
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1483
|
+
# A result object deserialized from the server's reply
|
1484
|
+
def get_analysis_rule request_pb, options = nil
|
1485
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1486
|
+
|
1487
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_analysis_rule_request request_pb
|
1488
|
+
query_string_params = if query_string_params.any?
|
1489
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1490
|
+
else
|
1491
|
+
{}
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
response = @client_stub.make_http_request(
|
1495
|
+
verb,
|
1496
|
+
uri: uri,
|
1497
|
+
body: body || "",
|
1498
|
+
params: query_string_params,
|
1499
|
+
options: options
|
1500
|
+
)
|
1501
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1502
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule.decode_json response.body, ignore_unknown_fields: true
|
1503
|
+
|
1504
|
+
yield result, operation if block_given?
|
1505
|
+
result
|
1506
|
+
end
|
1507
|
+
|
1508
|
+
##
|
1509
|
+
# Baseline implementation for the list_analysis_rules REST call
|
1510
|
+
#
|
1511
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest]
|
1512
|
+
# A request object representing the call parameters. Required.
|
1513
|
+
# @param options [::Gapic::CallOptions]
|
1514
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1515
|
+
#
|
1516
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1517
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesResponse]
|
1518
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1519
|
+
#
|
1520
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesResponse]
|
1521
|
+
# A result object deserialized from the server's reply
|
1522
|
+
def list_analysis_rules request_pb, options = nil
|
1523
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1524
|
+
|
1525
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_analysis_rules_request request_pb
|
1526
|
+
query_string_params = if query_string_params.any?
|
1527
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1528
|
+
else
|
1529
|
+
{}
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
response = @client_stub.make_http_request(
|
1533
|
+
verb,
|
1534
|
+
uri: uri,
|
1535
|
+
body: body || "",
|
1536
|
+
params: query_string_params,
|
1537
|
+
options: options
|
1538
|
+
)
|
1539
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1540
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesResponse.decode_json response.body, ignore_unknown_fields: true
|
1541
|
+
|
1542
|
+
yield result, operation if block_given?
|
1543
|
+
result
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
##
|
1547
|
+
# Baseline implementation for the update_analysis_rule REST call
|
1548
|
+
#
|
1549
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest]
|
1550
|
+
# A request object representing the call parameters. Required.
|
1551
|
+
# @param options [::Gapic::CallOptions]
|
1552
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1553
|
+
#
|
1554
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1555
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1556
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1557
|
+
#
|
1558
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
1559
|
+
# A result object deserialized from the server's reply
|
1560
|
+
def update_analysis_rule request_pb, options = nil
|
1561
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1562
|
+
|
1563
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_analysis_rule_request request_pb
|
1564
|
+
query_string_params = if query_string_params.any?
|
1565
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1566
|
+
else
|
1567
|
+
{}
|
1568
|
+
end
|
1569
|
+
|
1570
|
+
response = @client_stub.make_http_request(
|
1571
|
+
verb,
|
1572
|
+
uri: uri,
|
1573
|
+
body: body || "",
|
1574
|
+
params: query_string_params,
|
1575
|
+
options: options
|
1576
|
+
)
|
1577
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1578
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule.decode_json response.body, ignore_unknown_fields: true
|
1579
|
+
|
1580
|
+
yield result, operation if block_given?
|
1581
|
+
result
|
1582
|
+
end
|
1583
|
+
|
1584
|
+
##
|
1585
|
+
# Baseline implementation for the delete_analysis_rule REST call
|
1586
|
+
#
|
1587
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest]
|
1588
|
+
# A request object representing the call parameters. Required.
|
1589
|
+
# @param options [::Gapic::CallOptions]
|
1590
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1591
|
+
#
|
1592
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1593
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1594
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1595
|
+
#
|
1596
|
+
# @return [::Google::Protobuf::Empty]
|
1597
|
+
# A result object deserialized from the server's reply
|
1598
|
+
def delete_analysis_rule request_pb, options = nil
|
1599
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1600
|
+
|
1601
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_analysis_rule_request request_pb
|
1602
|
+
query_string_params = if query_string_params.any?
|
1603
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1604
|
+
else
|
1605
|
+
{}
|
1606
|
+
end
|
1607
|
+
|
1608
|
+
response = @client_stub.make_http_request(
|
1609
|
+
verb,
|
1610
|
+
uri: uri,
|
1611
|
+
body: body || "",
|
1612
|
+
params: query_string_params,
|
1613
|
+
options: options
|
1614
|
+
)
|
1615
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1616
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1617
|
+
|
1618
|
+
yield result, operation if block_given?
|
1619
|
+
result
|
1620
|
+
end
|
1621
|
+
|
1432
1622
|
##
|
1433
1623
|
# Baseline implementation for the get_encryption_spec REST call
|
1434
1624
|
#
|
@@ -1696,66 +1886,1549 @@ module Google
|
|
1696
1886
|
end
|
1697
1887
|
|
1698
1888
|
##
|
1699
|
-
#
|
1700
|
-
#
|
1701
|
-
# GRPC transcoding helper method for the create_conversation REST call
|
1889
|
+
# Baseline implementation for the query_metrics REST call
|
1702
1890
|
#
|
1703
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
1891
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest]
|
1704
1892
|
# A request object representing the call parameters. Required.
|
1705
|
-
# @
|
1706
|
-
#
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1893
|
+
# @param options [::Gapic::CallOptions]
|
1894
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1895
|
+
#
|
1896
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1897
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1898
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1899
|
+
#
|
1900
|
+
# @return [::Google::Longrunning::Operation]
|
1901
|
+
# A result object deserialized from the server's reply
|
1902
|
+
def query_metrics request_pb, options = nil
|
1903
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1904
|
+
|
1905
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_query_metrics_request request_pb
|
1906
|
+
query_string_params = if query_string_params.any?
|
1907
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1908
|
+
else
|
1909
|
+
{}
|
1910
|
+
end
|
1911
|
+
|
1912
|
+
response = @client_stub.make_http_request(
|
1913
|
+
verb,
|
1914
|
+
uri: uri,
|
1915
|
+
body: body || "",
|
1916
|
+
params: query_string_params,
|
1917
|
+
options: options
|
1918
|
+
)
|
1919
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1920
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1921
|
+
|
1922
|
+
yield result, operation if block_given?
|
1923
|
+
result
|
1718
1924
|
end
|
1719
1925
|
|
1720
1926
|
##
|
1721
|
-
#
|
1722
|
-
#
|
1723
|
-
# GRPC transcoding helper method for the upload_conversation REST call
|
1927
|
+
# Baseline implementation for the create_qa_question REST call
|
1724
1928
|
#
|
1725
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
1929
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest]
|
1726
1930
|
# A request object representing the call parameters. Required.
|
1727
|
-
# @
|
1728
|
-
#
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1931
|
+
# @param options [::Gapic::CallOptions]
|
1932
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1933
|
+
#
|
1934
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1935
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
1936
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1937
|
+
#
|
1938
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
1939
|
+
# A result object deserialized from the server's reply
|
1940
|
+
def create_qa_question request_pb, options = nil
|
1941
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1942
|
+
|
1943
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_qa_question_request request_pb
|
1944
|
+
query_string_params = if query_string_params.any?
|
1945
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1946
|
+
else
|
1947
|
+
{}
|
1948
|
+
end
|
1949
|
+
|
1950
|
+
response = @client_stub.make_http_request(
|
1951
|
+
verb,
|
1952
|
+
uri: uri,
|
1953
|
+
body: body || "",
|
1954
|
+
params: query_string_params,
|
1955
|
+
options: options
|
1956
|
+
)
|
1957
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1958
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaQuestion.decode_json response.body, ignore_unknown_fields: true
|
1959
|
+
|
1960
|
+
yield result, operation if block_given?
|
1961
|
+
result
|
1740
1962
|
end
|
1741
1963
|
|
1742
1964
|
##
|
1743
|
-
#
|
1965
|
+
# Baseline implementation for the get_qa_question REST call
|
1744
1966
|
#
|
1745
|
-
#
|
1746
|
-
#
|
1747
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateConversationRequest]
|
1967
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest]
|
1748
1968
|
# A request object representing the call parameters. Required.
|
1749
|
-
# @
|
1750
|
-
#
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1969
|
+
# @param options [::Gapic::CallOptions]
|
1970
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1971
|
+
#
|
1972
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1973
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
1974
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1975
|
+
#
|
1976
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
1977
|
+
# A result object deserialized from the server's reply
|
1978
|
+
def get_qa_question request_pb, options = nil
|
1979
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1980
|
+
|
1981
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_qa_question_request request_pb
|
1982
|
+
query_string_params = if query_string_params.any?
|
1983
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1984
|
+
else
|
1985
|
+
{}
|
1986
|
+
end
|
1987
|
+
|
1988
|
+
response = @client_stub.make_http_request(
|
1989
|
+
verb,
|
1990
|
+
uri: uri,
|
1991
|
+
body: body || "",
|
1992
|
+
params: query_string_params,
|
1993
|
+
options: options
|
1994
|
+
)
|
1995
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1996
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaQuestion.decode_json response.body, ignore_unknown_fields: true
|
1997
|
+
|
1998
|
+
yield result, operation if block_given?
|
1999
|
+
result
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
##
|
2003
|
+
# Baseline implementation for the update_qa_question REST call
|
2004
|
+
#
|
2005
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest]
|
2006
|
+
# A request object representing the call parameters. Required.
|
2007
|
+
# @param options [::Gapic::CallOptions]
|
2008
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2009
|
+
#
|
2010
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2011
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
2012
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2013
|
+
#
|
2014
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
2015
|
+
# A result object deserialized from the server's reply
|
2016
|
+
def update_qa_question request_pb, options = nil
|
2017
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2018
|
+
|
2019
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_qa_question_request request_pb
|
2020
|
+
query_string_params = if query_string_params.any?
|
2021
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2022
|
+
else
|
2023
|
+
{}
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
response = @client_stub.make_http_request(
|
2027
|
+
verb,
|
2028
|
+
uri: uri,
|
2029
|
+
body: body || "",
|
2030
|
+
params: query_string_params,
|
2031
|
+
options: options
|
2032
|
+
)
|
2033
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2034
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaQuestion.decode_json response.body, ignore_unknown_fields: true
|
2035
|
+
|
2036
|
+
yield result, operation if block_given?
|
2037
|
+
result
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
##
|
2041
|
+
# Baseline implementation for the delete_qa_question REST call
|
2042
|
+
#
|
2043
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest]
|
2044
|
+
# A request object representing the call parameters. Required.
|
2045
|
+
# @param options [::Gapic::CallOptions]
|
2046
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2047
|
+
#
|
2048
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2049
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
2050
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2051
|
+
#
|
2052
|
+
# @return [::Google::Protobuf::Empty]
|
2053
|
+
# A result object deserialized from the server's reply
|
2054
|
+
def delete_qa_question request_pb, options = nil
|
2055
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2056
|
+
|
2057
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_qa_question_request request_pb
|
2058
|
+
query_string_params = if query_string_params.any?
|
2059
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2060
|
+
else
|
2061
|
+
{}
|
2062
|
+
end
|
2063
|
+
|
2064
|
+
response = @client_stub.make_http_request(
|
2065
|
+
verb,
|
2066
|
+
uri: uri,
|
2067
|
+
body: body || "",
|
2068
|
+
params: query_string_params,
|
2069
|
+
options: options
|
2070
|
+
)
|
2071
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2072
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
2073
|
+
|
2074
|
+
yield result, operation if block_given?
|
2075
|
+
result
|
2076
|
+
end
|
2077
|
+
|
2078
|
+
##
|
2079
|
+
# Baseline implementation for the list_qa_questions REST call
|
2080
|
+
#
|
2081
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest]
|
2082
|
+
# A request object representing the call parameters. Required.
|
2083
|
+
# @param options [::Gapic::CallOptions]
|
2084
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2085
|
+
#
|
2086
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2087
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsResponse]
|
2088
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2089
|
+
#
|
2090
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsResponse]
|
2091
|
+
# A result object deserialized from the server's reply
|
2092
|
+
def list_qa_questions request_pb, options = nil
|
2093
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2094
|
+
|
2095
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_qa_questions_request request_pb
|
2096
|
+
query_string_params = if query_string_params.any?
|
2097
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2098
|
+
else
|
2099
|
+
{}
|
2100
|
+
end
|
2101
|
+
|
2102
|
+
response = @client_stub.make_http_request(
|
2103
|
+
verb,
|
2104
|
+
uri: uri,
|
2105
|
+
body: body || "",
|
2106
|
+
params: query_string_params,
|
2107
|
+
options: options
|
2108
|
+
)
|
2109
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2110
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsResponse.decode_json response.body, ignore_unknown_fields: true
|
2111
|
+
|
2112
|
+
yield result, operation if block_given?
|
2113
|
+
result
|
2114
|
+
end
|
2115
|
+
|
2116
|
+
##
|
2117
|
+
# Baseline implementation for the create_qa_scorecard REST call
|
2118
|
+
#
|
2119
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest]
|
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::QaScorecard]
|
2126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2127
|
+
#
|
2128
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2129
|
+
# A result object deserialized from the server's reply
|
2130
|
+
def create_qa_scorecard 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_create_qa_scorecard_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
|
+
options: options
|
2146
|
+
)
|
2147
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2148
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecard.decode_json response.body, ignore_unknown_fields: true
|
2149
|
+
|
2150
|
+
yield result, operation if block_given?
|
2151
|
+
result
|
2152
|
+
end
|
2153
|
+
|
2154
|
+
##
|
2155
|
+
# Baseline implementation for the get_qa_scorecard REST call
|
2156
|
+
#
|
2157
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest]
|
2158
|
+
# A request object representing the call parameters. Required.
|
2159
|
+
# @param options [::Gapic::CallOptions]
|
2160
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2161
|
+
#
|
2162
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2163
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2164
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2165
|
+
#
|
2166
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2167
|
+
# A result object deserialized from the server's reply
|
2168
|
+
def get_qa_scorecard request_pb, options = nil
|
2169
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2170
|
+
|
2171
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_qa_scorecard_request request_pb
|
2172
|
+
query_string_params = if query_string_params.any?
|
2173
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2174
|
+
else
|
2175
|
+
{}
|
2176
|
+
end
|
2177
|
+
|
2178
|
+
response = @client_stub.make_http_request(
|
2179
|
+
verb,
|
2180
|
+
uri: uri,
|
2181
|
+
body: body || "",
|
2182
|
+
params: query_string_params,
|
2183
|
+
options: options
|
2184
|
+
)
|
2185
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2186
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecard.decode_json response.body, ignore_unknown_fields: true
|
2187
|
+
|
2188
|
+
yield result, operation if block_given?
|
2189
|
+
result
|
2190
|
+
end
|
2191
|
+
|
2192
|
+
##
|
2193
|
+
# Baseline implementation for the update_qa_scorecard REST call
|
2194
|
+
#
|
2195
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest]
|
2196
|
+
# A request object representing the call parameters. Required.
|
2197
|
+
# @param options [::Gapic::CallOptions]
|
2198
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2199
|
+
#
|
2200
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2201
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2202
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2203
|
+
#
|
2204
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
2205
|
+
# A result object deserialized from the server's reply
|
2206
|
+
def update_qa_scorecard request_pb, options = nil
|
2207
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2208
|
+
|
2209
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_qa_scorecard_request request_pb
|
2210
|
+
query_string_params = if query_string_params.any?
|
2211
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2212
|
+
else
|
2213
|
+
{}
|
2214
|
+
end
|
2215
|
+
|
2216
|
+
response = @client_stub.make_http_request(
|
2217
|
+
verb,
|
2218
|
+
uri: uri,
|
2219
|
+
body: body || "",
|
2220
|
+
params: query_string_params,
|
2221
|
+
options: options
|
2222
|
+
)
|
2223
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2224
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecard.decode_json response.body, ignore_unknown_fields: true
|
2225
|
+
|
2226
|
+
yield result, operation if block_given?
|
2227
|
+
result
|
2228
|
+
end
|
2229
|
+
|
2230
|
+
##
|
2231
|
+
# Baseline implementation for the delete_qa_scorecard REST call
|
2232
|
+
#
|
2233
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest]
|
2234
|
+
# A request object representing the call parameters. Required.
|
2235
|
+
# @param options [::Gapic::CallOptions]
|
2236
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2237
|
+
#
|
2238
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2239
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
2240
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2241
|
+
#
|
2242
|
+
# @return [::Google::Protobuf::Empty]
|
2243
|
+
# A result object deserialized from the server's reply
|
2244
|
+
def delete_qa_scorecard request_pb, options = nil
|
2245
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2246
|
+
|
2247
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_qa_scorecard_request request_pb
|
2248
|
+
query_string_params = if query_string_params.any?
|
2249
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2250
|
+
else
|
2251
|
+
{}
|
2252
|
+
end
|
2253
|
+
|
2254
|
+
response = @client_stub.make_http_request(
|
2255
|
+
verb,
|
2256
|
+
uri: uri,
|
2257
|
+
body: body || "",
|
2258
|
+
params: query_string_params,
|
2259
|
+
options: options
|
2260
|
+
)
|
2261
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2262
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
2263
|
+
|
2264
|
+
yield result, operation if block_given?
|
2265
|
+
result
|
2266
|
+
end
|
2267
|
+
|
2268
|
+
##
|
2269
|
+
# Baseline implementation for the list_qa_scorecards REST call
|
2270
|
+
#
|
2271
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest]
|
2272
|
+
# A request object representing the call parameters. Required.
|
2273
|
+
# @param options [::Gapic::CallOptions]
|
2274
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2275
|
+
#
|
2276
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2277
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsResponse]
|
2278
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2279
|
+
#
|
2280
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsResponse]
|
2281
|
+
# A result object deserialized from the server's reply
|
2282
|
+
def list_qa_scorecards request_pb, options = nil
|
2283
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2284
|
+
|
2285
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_qa_scorecards_request request_pb
|
2286
|
+
query_string_params = if query_string_params.any?
|
2287
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2288
|
+
else
|
2289
|
+
{}
|
2290
|
+
end
|
2291
|
+
|
2292
|
+
response = @client_stub.make_http_request(
|
2293
|
+
verb,
|
2294
|
+
uri: uri,
|
2295
|
+
body: body || "",
|
2296
|
+
params: query_string_params,
|
2297
|
+
options: options
|
2298
|
+
)
|
2299
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2300
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsResponse.decode_json response.body, ignore_unknown_fields: true
|
2301
|
+
|
2302
|
+
yield result, operation if block_given?
|
2303
|
+
result
|
2304
|
+
end
|
2305
|
+
|
2306
|
+
##
|
2307
|
+
# Baseline implementation for the create_qa_scorecard_revision REST call
|
2308
|
+
#
|
2309
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest]
|
2310
|
+
# A request object representing the call parameters. Required.
|
2311
|
+
# @param options [::Gapic::CallOptions]
|
2312
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2313
|
+
#
|
2314
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2315
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2316
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2317
|
+
#
|
2318
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2319
|
+
# A result object deserialized from the server's reply
|
2320
|
+
def create_qa_scorecard_revision request_pb, options = nil
|
2321
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2322
|
+
|
2323
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_qa_scorecard_revision_request request_pb
|
2324
|
+
query_string_params = if query_string_params.any?
|
2325
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2326
|
+
else
|
2327
|
+
{}
|
2328
|
+
end
|
2329
|
+
|
2330
|
+
response = @client_stub.make_http_request(
|
2331
|
+
verb,
|
2332
|
+
uri: uri,
|
2333
|
+
body: body || "",
|
2334
|
+
params: query_string_params,
|
2335
|
+
options: options
|
2336
|
+
)
|
2337
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2338
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.decode_json response.body, ignore_unknown_fields: true
|
2339
|
+
|
2340
|
+
yield result, operation if block_given?
|
2341
|
+
result
|
2342
|
+
end
|
2343
|
+
|
2344
|
+
##
|
2345
|
+
# Baseline implementation for the get_qa_scorecard_revision REST call
|
2346
|
+
#
|
2347
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest]
|
2348
|
+
# A request object representing the call parameters. Required.
|
2349
|
+
# @param options [::Gapic::CallOptions]
|
2350
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2351
|
+
#
|
2352
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2353
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2354
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2355
|
+
#
|
2356
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2357
|
+
# A result object deserialized from the server's reply
|
2358
|
+
def get_qa_scorecard_revision request_pb, options = nil
|
2359
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2360
|
+
|
2361
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_qa_scorecard_revision_request request_pb
|
2362
|
+
query_string_params = if query_string_params.any?
|
2363
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2364
|
+
else
|
2365
|
+
{}
|
2366
|
+
end
|
2367
|
+
|
2368
|
+
response = @client_stub.make_http_request(
|
2369
|
+
verb,
|
2370
|
+
uri: uri,
|
2371
|
+
body: body || "",
|
2372
|
+
params: query_string_params,
|
2373
|
+
options: options
|
2374
|
+
)
|
2375
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2376
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.decode_json response.body, ignore_unknown_fields: true
|
2377
|
+
|
2378
|
+
yield result, operation if block_given?
|
2379
|
+
result
|
2380
|
+
end
|
2381
|
+
|
2382
|
+
##
|
2383
|
+
# Baseline implementation for the tune_qa_scorecard_revision REST call
|
2384
|
+
#
|
2385
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest]
|
2386
|
+
# A request object representing the call parameters. Required.
|
2387
|
+
# @param options [::Gapic::CallOptions]
|
2388
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2389
|
+
#
|
2390
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2391
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
2392
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2393
|
+
#
|
2394
|
+
# @return [::Google::Longrunning::Operation]
|
2395
|
+
# A result object deserialized from the server's reply
|
2396
|
+
def tune_qa_scorecard_revision request_pb, options = nil
|
2397
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2398
|
+
|
2399
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_tune_qa_scorecard_revision_request request_pb
|
2400
|
+
query_string_params = if query_string_params.any?
|
2401
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2402
|
+
else
|
2403
|
+
{}
|
2404
|
+
end
|
2405
|
+
|
2406
|
+
response = @client_stub.make_http_request(
|
2407
|
+
verb,
|
2408
|
+
uri: uri,
|
2409
|
+
body: body || "",
|
2410
|
+
params: query_string_params,
|
2411
|
+
options: options
|
2412
|
+
)
|
2413
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2414
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
2415
|
+
|
2416
|
+
yield result, operation if block_given?
|
2417
|
+
result
|
2418
|
+
end
|
2419
|
+
|
2420
|
+
##
|
2421
|
+
# Baseline implementation for the deploy_qa_scorecard_revision REST call
|
2422
|
+
#
|
2423
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest]
|
2424
|
+
# A request object representing the call parameters. Required.
|
2425
|
+
# @param options [::Gapic::CallOptions]
|
2426
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2427
|
+
#
|
2428
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2429
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2430
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2431
|
+
#
|
2432
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2433
|
+
# A result object deserialized from the server's reply
|
2434
|
+
def deploy_qa_scorecard_revision request_pb, options = nil
|
2435
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2436
|
+
|
2437
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_deploy_qa_scorecard_revision_request request_pb
|
2438
|
+
query_string_params = if query_string_params.any?
|
2439
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2440
|
+
else
|
2441
|
+
{}
|
2442
|
+
end
|
2443
|
+
|
2444
|
+
response = @client_stub.make_http_request(
|
2445
|
+
verb,
|
2446
|
+
uri: uri,
|
2447
|
+
body: body || "",
|
2448
|
+
params: query_string_params,
|
2449
|
+
options: options
|
2450
|
+
)
|
2451
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2452
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.decode_json response.body, ignore_unknown_fields: true
|
2453
|
+
|
2454
|
+
yield result, operation if block_given?
|
2455
|
+
result
|
2456
|
+
end
|
2457
|
+
|
2458
|
+
##
|
2459
|
+
# Baseline implementation for the undeploy_qa_scorecard_revision REST call
|
2460
|
+
#
|
2461
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest]
|
2462
|
+
# A request object representing the call parameters. Required.
|
2463
|
+
# @param options [::Gapic::CallOptions]
|
2464
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2465
|
+
#
|
2466
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2467
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2468
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2469
|
+
#
|
2470
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
2471
|
+
# A result object deserialized from the server's reply
|
2472
|
+
def undeploy_qa_scorecard_revision request_pb, options = nil
|
2473
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2474
|
+
|
2475
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_undeploy_qa_scorecard_revision_request request_pb
|
2476
|
+
query_string_params = if query_string_params.any?
|
2477
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2478
|
+
else
|
2479
|
+
{}
|
2480
|
+
end
|
2481
|
+
|
2482
|
+
response = @client_stub.make_http_request(
|
2483
|
+
verb,
|
2484
|
+
uri: uri,
|
2485
|
+
body: body || "",
|
2486
|
+
params: query_string_params,
|
2487
|
+
options: options
|
2488
|
+
)
|
2489
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2490
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.decode_json response.body, ignore_unknown_fields: true
|
2491
|
+
|
2492
|
+
yield result, operation if block_given?
|
2493
|
+
result
|
2494
|
+
end
|
2495
|
+
|
2496
|
+
##
|
2497
|
+
# Baseline implementation for the delete_qa_scorecard_revision REST call
|
2498
|
+
#
|
2499
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest]
|
2500
|
+
# A request object representing the call parameters. Required.
|
2501
|
+
# @param options [::Gapic::CallOptions]
|
2502
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2503
|
+
#
|
2504
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2505
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
2506
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2507
|
+
#
|
2508
|
+
# @return [::Google::Protobuf::Empty]
|
2509
|
+
# A result object deserialized from the server's reply
|
2510
|
+
def delete_qa_scorecard_revision request_pb, options = nil
|
2511
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2512
|
+
|
2513
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_qa_scorecard_revision_request request_pb
|
2514
|
+
query_string_params = if query_string_params.any?
|
2515
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2516
|
+
else
|
2517
|
+
{}
|
2518
|
+
end
|
2519
|
+
|
2520
|
+
response = @client_stub.make_http_request(
|
2521
|
+
verb,
|
2522
|
+
uri: uri,
|
2523
|
+
body: body || "",
|
2524
|
+
params: query_string_params,
|
2525
|
+
options: options
|
2526
|
+
)
|
2527
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2528
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
2529
|
+
|
2530
|
+
yield result, operation if block_given?
|
2531
|
+
result
|
2532
|
+
end
|
2533
|
+
|
2534
|
+
##
|
2535
|
+
# Baseline implementation for the list_qa_scorecard_revisions REST call
|
2536
|
+
#
|
2537
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest]
|
2538
|
+
# A request object representing the call parameters. Required.
|
2539
|
+
# @param options [::Gapic::CallOptions]
|
2540
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2541
|
+
#
|
2542
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2543
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsResponse]
|
2544
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2545
|
+
#
|
2546
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsResponse]
|
2547
|
+
# A result object deserialized from the server's reply
|
2548
|
+
def list_qa_scorecard_revisions request_pb, options = nil
|
2549
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2550
|
+
|
2551
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_qa_scorecard_revisions_request request_pb
|
2552
|
+
query_string_params = if query_string_params.any?
|
2553
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2554
|
+
else
|
2555
|
+
{}
|
2556
|
+
end
|
2557
|
+
|
2558
|
+
response = @client_stub.make_http_request(
|
2559
|
+
verb,
|
2560
|
+
uri: uri,
|
2561
|
+
body: body || "",
|
2562
|
+
params: query_string_params,
|
2563
|
+
options: options
|
2564
|
+
)
|
2565
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2566
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
|
2567
|
+
|
2568
|
+
yield result, operation if block_given?
|
2569
|
+
result
|
2570
|
+
end
|
2571
|
+
|
2572
|
+
##
|
2573
|
+
# Baseline implementation for the create_feedback_label REST call
|
2574
|
+
#
|
2575
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest]
|
2576
|
+
# A request object representing the call parameters. Required.
|
2577
|
+
# @param options [::Gapic::CallOptions]
|
2578
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2579
|
+
#
|
2580
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2581
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2582
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2583
|
+
#
|
2584
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2585
|
+
# A result object deserialized from the server's reply
|
2586
|
+
def create_feedback_label request_pb, options = nil
|
2587
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2588
|
+
|
2589
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_feedback_label_request request_pb
|
2590
|
+
query_string_params = if query_string_params.any?
|
2591
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2592
|
+
else
|
2593
|
+
{}
|
2594
|
+
end
|
2595
|
+
|
2596
|
+
response = @client_stub.make_http_request(
|
2597
|
+
verb,
|
2598
|
+
uri: uri,
|
2599
|
+
body: body || "",
|
2600
|
+
params: query_string_params,
|
2601
|
+
options: options
|
2602
|
+
)
|
2603
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2604
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.decode_json response.body, ignore_unknown_fields: true
|
2605
|
+
|
2606
|
+
yield result, operation if block_given?
|
2607
|
+
result
|
2608
|
+
end
|
2609
|
+
|
2610
|
+
##
|
2611
|
+
# Baseline implementation for the list_feedback_labels REST call
|
2612
|
+
#
|
2613
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest]
|
2614
|
+
# A request object representing the call parameters. Required.
|
2615
|
+
# @param options [::Gapic::CallOptions]
|
2616
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2617
|
+
#
|
2618
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2619
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsResponse]
|
2620
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2621
|
+
#
|
2622
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsResponse]
|
2623
|
+
# A result object deserialized from the server's reply
|
2624
|
+
def list_feedback_labels request_pb, options = nil
|
2625
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2626
|
+
|
2627
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_feedback_labels_request request_pb
|
2628
|
+
query_string_params = if query_string_params.any?
|
2629
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2630
|
+
else
|
2631
|
+
{}
|
2632
|
+
end
|
2633
|
+
|
2634
|
+
response = @client_stub.make_http_request(
|
2635
|
+
verb,
|
2636
|
+
uri: uri,
|
2637
|
+
body: body || "",
|
2638
|
+
params: query_string_params,
|
2639
|
+
options: options
|
2640
|
+
)
|
2641
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2642
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsResponse.decode_json response.body, ignore_unknown_fields: true
|
2643
|
+
|
2644
|
+
yield result, operation if block_given?
|
2645
|
+
result
|
2646
|
+
end
|
2647
|
+
|
2648
|
+
##
|
2649
|
+
# Baseline implementation for the get_feedback_label REST call
|
2650
|
+
#
|
2651
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest]
|
2652
|
+
# A request object representing the call parameters. Required.
|
2653
|
+
# @param options [::Gapic::CallOptions]
|
2654
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2655
|
+
#
|
2656
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2657
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2658
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2659
|
+
#
|
2660
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2661
|
+
# A result object deserialized from the server's reply
|
2662
|
+
def get_feedback_label request_pb, options = nil
|
2663
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2664
|
+
|
2665
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_feedback_label_request request_pb
|
2666
|
+
query_string_params = if query_string_params.any?
|
2667
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2668
|
+
else
|
2669
|
+
{}
|
2670
|
+
end
|
2671
|
+
|
2672
|
+
response = @client_stub.make_http_request(
|
2673
|
+
verb,
|
2674
|
+
uri: uri,
|
2675
|
+
body: body || "",
|
2676
|
+
params: query_string_params,
|
2677
|
+
options: options
|
2678
|
+
)
|
2679
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2680
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.decode_json response.body, ignore_unknown_fields: true
|
2681
|
+
|
2682
|
+
yield result, operation if block_given?
|
2683
|
+
result
|
2684
|
+
end
|
2685
|
+
|
2686
|
+
##
|
2687
|
+
# Baseline implementation for the update_feedback_label REST call
|
2688
|
+
#
|
2689
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest]
|
2690
|
+
# A request object representing the call parameters. Required.
|
2691
|
+
# @param options [::Gapic::CallOptions]
|
2692
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2693
|
+
#
|
2694
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2695
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2696
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2697
|
+
#
|
2698
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
2699
|
+
# A result object deserialized from the server's reply
|
2700
|
+
def update_feedback_label request_pb, options = nil
|
2701
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2702
|
+
|
2703
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_feedback_label_request request_pb
|
2704
|
+
query_string_params = if query_string_params.any?
|
2705
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2706
|
+
else
|
2707
|
+
{}
|
2708
|
+
end
|
2709
|
+
|
2710
|
+
response = @client_stub.make_http_request(
|
2711
|
+
verb,
|
2712
|
+
uri: uri,
|
2713
|
+
body: body || "",
|
2714
|
+
params: query_string_params,
|
2715
|
+
options: options
|
2716
|
+
)
|
2717
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2718
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.decode_json response.body, ignore_unknown_fields: true
|
2719
|
+
|
2720
|
+
yield result, operation if block_given?
|
2721
|
+
result
|
2722
|
+
end
|
2723
|
+
|
2724
|
+
##
|
2725
|
+
# Baseline implementation for the delete_feedback_label REST call
|
2726
|
+
#
|
2727
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest]
|
2728
|
+
# A request object representing the call parameters. Required.
|
2729
|
+
# @param options [::Gapic::CallOptions]
|
2730
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2731
|
+
#
|
2732
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2733
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
2734
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2735
|
+
#
|
2736
|
+
# @return [::Google::Protobuf::Empty]
|
2737
|
+
# A result object deserialized from the server's reply
|
2738
|
+
def delete_feedback_label request_pb, options = nil
|
2739
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2740
|
+
|
2741
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_feedback_label_request request_pb
|
2742
|
+
query_string_params = if query_string_params.any?
|
2743
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2744
|
+
else
|
2745
|
+
{}
|
2746
|
+
end
|
2747
|
+
|
2748
|
+
response = @client_stub.make_http_request(
|
2749
|
+
verb,
|
2750
|
+
uri: uri,
|
2751
|
+
body: body || "",
|
2752
|
+
params: query_string_params,
|
2753
|
+
options: options
|
2754
|
+
)
|
2755
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2756
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
2757
|
+
|
2758
|
+
yield result, operation if block_given?
|
2759
|
+
result
|
2760
|
+
end
|
2761
|
+
|
2762
|
+
##
|
2763
|
+
# Baseline implementation for the list_all_feedback_labels REST call
|
2764
|
+
#
|
2765
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest]
|
2766
|
+
# A request object representing the call parameters. Required.
|
2767
|
+
# @param options [::Gapic::CallOptions]
|
2768
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2769
|
+
#
|
2770
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2771
|
+
# @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsResponse]
|
2772
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2773
|
+
#
|
2774
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsResponse]
|
2775
|
+
# A result object deserialized from the server's reply
|
2776
|
+
def list_all_feedback_labels request_pb, options = nil
|
2777
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2778
|
+
|
2779
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_all_feedback_labels_request request_pb
|
2780
|
+
query_string_params = if query_string_params.any?
|
2781
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2782
|
+
else
|
2783
|
+
{}
|
2784
|
+
end
|
2785
|
+
|
2786
|
+
response = @client_stub.make_http_request(
|
2787
|
+
verb,
|
2788
|
+
uri: uri,
|
2789
|
+
body: body || "",
|
2790
|
+
params: query_string_params,
|
2791
|
+
options: options
|
2792
|
+
)
|
2793
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2794
|
+
result = ::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsResponse.decode_json response.body, ignore_unknown_fields: true
|
2795
|
+
|
2796
|
+
yield result, operation if block_given?
|
2797
|
+
result
|
2798
|
+
end
|
2799
|
+
|
2800
|
+
##
|
2801
|
+
# Baseline implementation for the bulk_upload_feedback_labels REST call
|
2802
|
+
#
|
2803
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest]
|
2804
|
+
# A request object representing the call parameters. Required.
|
2805
|
+
# @param options [::Gapic::CallOptions]
|
2806
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2807
|
+
#
|
2808
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2809
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
2810
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2811
|
+
#
|
2812
|
+
# @return [::Google::Longrunning::Operation]
|
2813
|
+
# A result object deserialized from the server's reply
|
2814
|
+
def bulk_upload_feedback_labels request_pb, options = nil
|
2815
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2816
|
+
|
2817
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_bulk_upload_feedback_labels_request request_pb
|
2818
|
+
query_string_params = if query_string_params.any?
|
2819
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2820
|
+
else
|
2821
|
+
{}
|
2822
|
+
end
|
2823
|
+
|
2824
|
+
response = @client_stub.make_http_request(
|
2825
|
+
verb,
|
2826
|
+
uri: uri,
|
2827
|
+
body: body || "",
|
2828
|
+
params: query_string_params,
|
2829
|
+
options: options
|
2830
|
+
)
|
2831
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2832
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
2833
|
+
|
2834
|
+
yield result, operation if block_given?
|
2835
|
+
result
|
2836
|
+
end
|
2837
|
+
|
2838
|
+
##
|
2839
|
+
# Baseline implementation for the bulk_download_feedback_labels REST call
|
2840
|
+
#
|
2841
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest]
|
2842
|
+
# A request object representing the call parameters. Required.
|
2843
|
+
# @param options [::Gapic::CallOptions]
|
2844
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2845
|
+
#
|
2846
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2847
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
2848
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2849
|
+
#
|
2850
|
+
# @return [::Google::Longrunning::Operation]
|
2851
|
+
# A result object deserialized from the server's reply
|
2852
|
+
def bulk_download_feedback_labels request_pb, options = nil
|
2853
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
2854
|
+
|
2855
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_bulk_download_feedback_labels_request request_pb
|
2856
|
+
query_string_params = if query_string_params.any?
|
2857
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
2858
|
+
else
|
2859
|
+
{}
|
2860
|
+
end
|
2861
|
+
|
2862
|
+
response = @client_stub.make_http_request(
|
2863
|
+
verb,
|
2864
|
+
uri: uri,
|
2865
|
+
body: body || "",
|
2866
|
+
params: query_string_params,
|
2867
|
+
options: options
|
2868
|
+
)
|
2869
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2870
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
2871
|
+
|
2872
|
+
yield result, operation if block_given?
|
2873
|
+
result
|
2874
|
+
end
|
2875
|
+
|
2876
|
+
##
|
2877
|
+
# @private
|
2878
|
+
#
|
2879
|
+
# GRPC transcoding helper method for the create_conversation REST call
|
2880
|
+
#
|
2881
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest]
|
2882
|
+
# A request object representing the call parameters. Required.
|
2883
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2884
|
+
# Uri, Body, Query string parameters
|
2885
|
+
def self.transcode_create_conversation_request request_pb
|
2886
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2887
|
+
.with_bindings(
|
2888
|
+
uri_method: :post,
|
2889
|
+
uri_template: "/v1/{parent}/conversations",
|
2890
|
+
body: "conversation",
|
2891
|
+
matches: [
|
2892
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2893
|
+
]
|
2894
|
+
)
|
2895
|
+
transcoder.transcode request_pb
|
2896
|
+
end
|
2897
|
+
|
2898
|
+
##
|
2899
|
+
# @private
|
2900
|
+
#
|
2901
|
+
# GRPC transcoding helper method for the upload_conversation REST call
|
2902
|
+
#
|
2903
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest]
|
2904
|
+
# A request object representing the call parameters. Required.
|
2905
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2906
|
+
# Uri, Body, Query string parameters
|
2907
|
+
def self.transcode_upload_conversation_request request_pb
|
2908
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2909
|
+
.with_bindings(
|
2910
|
+
uri_method: :post,
|
2911
|
+
uri_template: "/v1/{parent}/conversations:upload",
|
2912
|
+
body: "*",
|
2913
|
+
matches: [
|
2914
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2915
|
+
]
|
2916
|
+
)
|
2917
|
+
transcoder.transcode request_pb
|
2918
|
+
end
|
2919
|
+
|
2920
|
+
##
|
2921
|
+
# @private
|
2922
|
+
#
|
2923
|
+
# GRPC transcoding helper method for the update_conversation REST call
|
2924
|
+
#
|
2925
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateConversationRequest]
|
2926
|
+
# A request object representing the call parameters. Required.
|
2927
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2928
|
+
# Uri, Body, Query string parameters
|
2929
|
+
def self.transcode_update_conversation_request request_pb
|
2930
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2931
|
+
.with_bindings(
|
2932
|
+
uri_method: :patch,
|
2933
|
+
uri_template: "/v1/{conversation.name}",
|
2934
|
+
body: "conversation",
|
2935
|
+
matches: [
|
2936
|
+
["conversation.name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
2937
|
+
]
|
2938
|
+
)
|
2939
|
+
transcoder.transcode request_pb
|
2940
|
+
end
|
2941
|
+
|
2942
|
+
##
|
2943
|
+
# @private
|
2944
|
+
#
|
2945
|
+
# GRPC transcoding helper method for the get_conversation REST call
|
2946
|
+
#
|
2947
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetConversationRequest]
|
2948
|
+
# A request object representing the call parameters. Required.
|
2949
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2950
|
+
# Uri, Body, Query string parameters
|
2951
|
+
def self.transcode_get_conversation_request request_pb
|
2952
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2953
|
+
.with_bindings(
|
2954
|
+
uri_method: :get,
|
2955
|
+
uri_template: "/v1/{name}",
|
2956
|
+
matches: [
|
2957
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
2958
|
+
]
|
2959
|
+
)
|
2960
|
+
transcoder.transcode request_pb
|
2961
|
+
end
|
2962
|
+
|
2963
|
+
##
|
2964
|
+
# @private
|
2965
|
+
#
|
2966
|
+
# GRPC transcoding helper method for the list_conversations REST call
|
2967
|
+
#
|
2968
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListConversationsRequest]
|
2969
|
+
# A request object representing the call parameters. Required.
|
2970
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2971
|
+
# Uri, Body, Query string parameters
|
2972
|
+
def self.transcode_list_conversations_request request_pb
|
2973
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2974
|
+
.with_bindings(
|
2975
|
+
uri_method: :get,
|
2976
|
+
uri_template: "/v1/{parent}/conversations",
|
2977
|
+
matches: [
|
2978
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2979
|
+
]
|
2980
|
+
)
|
2981
|
+
transcoder.transcode request_pb
|
2982
|
+
end
|
2983
|
+
|
2984
|
+
##
|
2985
|
+
# @private
|
2986
|
+
#
|
2987
|
+
# GRPC transcoding helper method for the delete_conversation REST call
|
2988
|
+
#
|
2989
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteConversationRequest]
|
2990
|
+
# A request object representing the call parameters. Required.
|
2991
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2992
|
+
# Uri, Body, Query string parameters
|
2993
|
+
def self.transcode_delete_conversation_request request_pb
|
2994
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2995
|
+
.with_bindings(
|
2996
|
+
uri_method: :delete,
|
2997
|
+
uri_template: "/v1/{name}",
|
2998
|
+
matches: [
|
2999
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
3000
|
+
]
|
3001
|
+
)
|
3002
|
+
transcoder.transcode request_pb
|
3003
|
+
end
|
3004
|
+
|
3005
|
+
##
|
3006
|
+
# @private
|
3007
|
+
#
|
3008
|
+
# GRPC transcoding helper method for the create_analysis REST call
|
3009
|
+
#
|
3010
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRequest]
|
3011
|
+
# A request object representing the call parameters. Required.
|
3012
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3013
|
+
# Uri, Body, Query string parameters
|
3014
|
+
def self.transcode_create_analysis_request request_pb
|
3015
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3016
|
+
.with_bindings(
|
3017
|
+
uri_method: :post,
|
3018
|
+
uri_template: "/v1/{parent}/analyses",
|
3019
|
+
body: "analysis",
|
3020
|
+
matches: [
|
3021
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
3022
|
+
]
|
3023
|
+
)
|
3024
|
+
transcoder.transcode request_pb
|
3025
|
+
end
|
3026
|
+
|
3027
|
+
##
|
3028
|
+
# @private
|
3029
|
+
#
|
3030
|
+
# GRPC transcoding helper method for the get_analysis REST call
|
3031
|
+
#
|
3032
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRequest]
|
3033
|
+
# A request object representing the call parameters. Required.
|
3034
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3035
|
+
# Uri, Body, Query string parameters
|
3036
|
+
def self.transcode_get_analysis_request request_pb
|
3037
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3038
|
+
.with_bindings(
|
3039
|
+
uri_method: :get,
|
3040
|
+
uri_template: "/v1/{name}",
|
3041
|
+
matches: [
|
3042
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+/?$}, false]
|
3043
|
+
]
|
3044
|
+
)
|
3045
|
+
transcoder.transcode request_pb
|
3046
|
+
end
|
3047
|
+
|
3048
|
+
##
|
3049
|
+
# @private
|
3050
|
+
#
|
3051
|
+
# GRPC transcoding helper method for the list_analyses REST call
|
3052
|
+
#
|
3053
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAnalysesRequest]
|
3054
|
+
# A request object representing the call parameters. Required.
|
3055
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3056
|
+
# Uri, Body, Query string parameters
|
3057
|
+
def self.transcode_list_analyses_request request_pb
|
3058
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3059
|
+
.with_bindings(
|
3060
|
+
uri_method: :get,
|
3061
|
+
uri_template: "/v1/{parent}/analyses",
|
3062
|
+
matches: [
|
3063
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
3064
|
+
]
|
3065
|
+
)
|
3066
|
+
transcoder.transcode request_pb
|
3067
|
+
end
|
3068
|
+
|
3069
|
+
##
|
3070
|
+
# @private
|
3071
|
+
#
|
3072
|
+
# GRPC transcoding helper method for the delete_analysis REST call
|
3073
|
+
#
|
3074
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRequest]
|
3075
|
+
# A request object representing the call parameters. Required.
|
3076
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3077
|
+
# Uri, Body, Query string parameters
|
3078
|
+
def self.transcode_delete_analysis_request request_pb
|
3079
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3080
|
+
.with_bindings(
|
3081
|
+
uri_method: :delete,
|
3082
|
+
uri_template: "/v1/{name}",
|
3083
|
+
matches: [
|
3084
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+/?$}, false]
|
3085
|
+
]
|
3086
|
+
)
|
3087
|
+
transcoder.transcode request_pb
|
3088
|
+
end
|
3089
|
+
|
3090
|
+
##
|
3091
|
+
# @private
|
3092
|
+
#
|
3093
|
+
# GRPC transcoding helper method for the bulk_analyze_conversations REST call
|
3094
|
+
#
|
3095
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest]
|
3096
|
+
# A request object representing the call parameters. Required.
|
3097
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3098
|
+
# Uri, Body, Query string parameters
|
3099
|
+
def self.transcode_bulk_analyze_conversations_request request_pb
|
3100
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3101
|
+
.with_bindings(
|
3102
|
+
uri_method: :post,
|
3103
|
+
uri_template: "/v1/{parent}/conversations:bulkAnalyze",
|
3104
|
+
body: "*",
|
3105
|
+
matches: [
|
3106
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3107
|
+
]
|
3108
|
+
)
|
3109
|
+
transcoder.transcode request_pb
|
3110
|
+
end
|
3111
|
+
|
3112
|
+
##
|
3113
|
+
# @private
|
3114
|
+
#
|
3115
|
+
# GRPC transcoding helper method for the bulk_delete_conversations REST call
|
3116
|
+
#
|
3117
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkDeleteConversationsRequest]
|
3118
|
+
# A request object representing the call parameters. Required.
|
3119
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3120
|
+
# Uri, Body, Query string parameters
|
3121
|
+
def self.transcode_bulk_delete_conversations_request request_pb
|
3122
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3123
|
+
.with_bindings(
|
3124
|
+
uri_method: :post,
|
3125
|
+
uri_template: "/v1/{parent}/conversations:bulkDelete",
|
3126
|
+
body: "*",
|
3127
|
+
matches: [
|
3128
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3129
|
+
]
|
3130
|
+
)
|
3131
|
+
transcoder.transcode request_pb
|
3132
|
+
end
|
3133
|
+
|
3134
|
+
##
|
3135
|
+
# @private
|
3136
|
+
#
|
3137
|
+
# GRPC transcoding helper method for the ingest_conversations REST call
|
3138
|
+
#
|
3139
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest]
|
3140
|
+
# A request object representing the call parameters. Required.
|
3141
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3142
|
+
# Uri, Body, Query string parameters
|
3143
|
+
def self.transcode_ingest_conversations_request request_pb
|
3144
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3145
|
+
.with_bindings(
|
3146
|
+
uri_method: :post,
|
3147
|
+
uri_template: "/v1/{parent}/conversations:ingest",
|
3148
|
+
body: "*",
|
3149
|
+
matches: [
|
3150
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3151
|
+
]
|
3152
|
+
)
|
3153
|
+
transcoder.transcode request_pb
|
3154
|
+
end
|
3155
|
+
|
3156
|
+
##
|
3157
|
+
# @private
|
3158
|
+
#
|
3159
|
+
# GRPC transcoding helper method for the export_insights_data REST call
|
3160
|
+
#
|
3161
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest]
|
3162
|
+
# A request object representing the call parameters. Required.
|
3163
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3164
|
+
# Uri, Body, Query string parameters
|
3165
|
+
def self.transcode_export_insights_data_request request_pb
|
3166
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3167
|
+
.with_bindings(
|
3168
|
+
uri_method: :post,
|
3169
|
+
uri_template: "/v1/{parent}/insightsdata:export",
|
3170
|
+
body: "*",
|
3171
|
+
matches: [
|
3172
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3173
|
+
]
|
3174
|
+
)
|
3175
|
+
transcoder.transcode request_pb
|
3176
|
+
end
|
3177
|
+
|
3178
|
+
##
|
3179
|
+
# @private
|
3180
|
+
#
|
3181
|
+
# GRPC transcoding helper method for the create_issue_model REST call
|
3182
|
+
#
|
3183
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateIssueModelRequest]
|
3184
|
+
# A request object representing the call parameters. Required.
|
3185
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3186
|
+
# Uri, Body, Query string parameters
|
3187
|
+
def self.transcode_create_issue_model_request request_pb
|
3188
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3189
|
+
.with_bindings(
|
3190
|
+
uri_method: :post,
|
3191
|
+
uri_template: "/v1/{parent}/issueModels",
|
3192
|
+
body: "issue_model",
|
3193
|
+
matches: [
|
3194
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3195
|
+
]
|
3196
|
+
)
|
3197
|
+
transcoder.transcode request_pb
|
3198
|
+
end
|
3199
|
+
|
3200
|
+
##
|
3201
|
+
# @private
|
3202
|
+
#
|
3203
|
+
# GRPC transcoding helper method for the update_issue_model REST call
|
3204
|
+
#
|
3205
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateIssueModelRequest]
|
3206
|
+
# A request object representing the call parameters. Required.
|
3207
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3208
|
+
# Uri, Body, Query string parameters
|
3209
|
+
def self.transcode_update_issue_model_request request_pb
|
3210
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3211
|
+
.with_bindings(
|
3212
|
+
uri_method: :patch,
|
3213
|
+
uri_template: "/v1/{issue_model.name}",
|
3214
|
+
body: "issue_model",
|
3215
|
+
matches: [
|
3216
|
+
["issue_model.name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3217
|
+
]
|
3218
|
+
)
|
3219
|
+
transcoder.transcode request_pb
|
3220
|
+
end
|
3221
|
+
|
3222
|
+
##
|
3223
|
+
# @private
|
3224
|
+
#
|
3225
|
+
# GRPC transcoding helper method for the get_issue_model REST call
|
3226
|
+
#
|
3227
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetIssueModelRequest]
|
3228
|
+
# A request object representing the call parameters. Required.
|
3229
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3230
|
+
# Uri, Body, Query string parameters
|
3231
|
+
def self.transcode_get_issue_model_request request_pb
|
3232
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3233
|
+
.with_bindings(
|
3234
|
+
uri_method: :get,
|
3235
|
+
uri_template: "/v1/{name}",
|
3236
|
+
matches: [
|
3237
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3238
|
+
]
|
3239
|
+
)
|
3240
|
+
transcoder.transcode request_pb
|
3241
|
+
end
|
3242
|
+
|
3243
|
+
##
|
3244
|
+
# @private
|
3245
|
+
#
|
3246
|
+
# GRPC transcoding helper method for the list_issue_models REST call
|
3247
|
+
#
|
3248
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListIssueModelsRequest]
|
3249
|
+
# A request object representing the call parameters. Required.
|
3250
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3251
|
+
# Uri, Body, Query string parameters
|
3252
|
+
def self.transcode_list_issue_models_request request_pb
|
3253
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3254
|
+
.with_bindings(
|
3255
|
+
uri_method: :get,
|
3256
|
+
uri_template: "/v1/{parent}/issueModels",
|
3257
|
+
matches: [
|
3258
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3259
|
+
]
|
3260
|
+
)
|
3261
|
+
transcoder.transcode request_pb
|
3262
|
+
end
|
3263
|
+
|
3264
|
+
##
|
3265
|
+
# @private
|
3266
|
+
#
|
3267
|
+
# GRPC transcoding helper method for the delete_issue_model REST call
|
3268
|
+
#
|
3269
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteIssueModelRequest]
|
3270
|
+
# A request object representing the call parameters. Required.
|
3271
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3272
|
+
# Uri, Body, Query string parameters
|
3273
|
+
def self.transcode_delete_issue_model_request request_pb
|
3274
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3275
|
+
.with_bindings(
|
3276
|
+
uri_method: :delete,
|
3277
|
+
uri_template: "/v1/{name}",
|
3278
|
+
matches: [
|
3279
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3280
|
+
]
|
3281
|
+
)
|
3282
|
+
transcoder.transcode request_pb
|
3283
|
+
end
|
3284
|
+
|
3285
|
+
##
|
3286
|
+
# @private
|
3287
|
+
#
|
3288
|
+
# GRPC transcoding helper method for the deploy_issue_model REST call
|
3289
|
+
#
|
3290
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeployIssueModelRequest]
|
3291
|
+
# A request object representing the call parameters. Required.
|
3292
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3293
|
+
# Uri, Body, Query string parameters
|
3294
|
+
def self.transcode_deploy_issue_model_request request_pb
|
3295
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3296
|
+
.with_bindings(
|
3297
|
+
uri_method: :post,
|
3298
|
+
uri_template: "/v1/{name}:deploy",
|
3299
|
+
body: "*",
|
3300
|
+
matches: [
|
3301
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3302
|
+
]
|
3303
|
+
)
|
3304
|
+
transcoder.transcode request_pb
|
3305
|
+
end
|
3306
|
+
|
3307
|
+
##
|
3308
|
+
# @private
|
3309
|
+
#
|
3310
|
+
# GRPC transcoding helper method for the undeploy_issue_model REST call
|
3311
|
+
#
|
3312
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UndeployIssueModelRequest]
|
3313
|
+
# A request object representing the call parameters. Required.
|
3314
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3315
|
+
# Uri, Body, Query string parameters
|
3316
|
+
def self.transcode_undeploy_issue_model_request request_pb
|
3317
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3318
|
+
.with_bindings(
|
3319
|
+
uri_method: :post,
|
3320
|
+
uri_template: "/v1/{name}:undeploy",
|
3321
|
+
body: "*",
|
3322
|
+
matches: [
|
3323
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3324
|
+
]
|
3325
|
+
)
|
3326
|
+
transcoder.transcode request_pb
|
3327
|
+
end
|
3328
|
+
|
3329
|
+
##
|
3330
|
+
# @private
|
3331
|
+
#
|
3332
|
+
# GRPC transcoding helper method for the export_issue_model REST call
|
3333
|
+
#
|
3334
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest]
|
3335
|
+
# A request object representing the call parameters. Required.
|
3336
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3337
|
+
# Uri, Body, Query string parameters
|
3338
|
+
def self.transcode_export_issue_model_request request_pb
|
3339
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3340
|
+
.with_bindings(
|
3341
|
+
uri_method: :post,
|
3342
|
+
uri_template: "/v1/{name}:export",
|
3343
|
+
body: "*",
|
3344
|
+
matches: [
|
3345
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3346
|
+
]
|
3347
|
+
)
|
3348
|
+
transcoder.transcode request_pb
|
3349
|
+
end
|
3350
|
+
|
3351
|
+
##
|
3352
|
+
# @private
|
3353
|
+
#
|
3354
|
+
# GRPC transcoding helper method for the import_issue_model REST call
|
3355
|
+
#
|
3356
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest]
|
3357
|
+
# A request object representing the call parameters. Required.
|
3358
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3359
|
+
# Uri, Body, Query string parameters
|
3360
|
+
def self.transcode_import_issue_model_request request_pb
|
3361
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3362
|
+
.with_bindings(
|
3363
|
+
uri_method: :post,
|
3364
|
+
uri_template: "/v1/{parent}/issueModels:import",
|
3365
|
+
body: "*",
|
3366
|
+
matches: [
|
3367
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3368
|
+
]
|
3369
|
+
)
|
3370
|
+
transcoder.transcode request_pb
|
3371
|
+
end
|
3372
|
+
|
3373
|
+
##
|
3374
|
+
# @private
|
3375
|
+
#
|
3376
|
+
# GRPC transcoding helper method for the get_issue REST call
|
3377
|
+
#
|
3378
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetIssueRequest]
|
3379
|
+
# A request object representing the call parameters. Required.
|
3380
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3381
|
+
# Uri, Body, Query string parameters
|
3382
|
+
def self.transcode_get_issue_request request_pb
|
3383
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3384
|
+
.with_bindings(
|
3385
|
+
uri_method: :get,
|
3386
|
+
uri_template: "/v1/{name}",
|
3387
|
+
matches: [
|
3388
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+/?$}, false]
|
3389
|
+
]
|
3390
|
+
)
|
3391
|
+
transcoder.transcode request_pb
|
3392
|
+
end
|
3393
|
+
|
3394
|
+
##
|
3395
|
+
# @private
|
3396
|
+
#
|
3397
|
+
# GRPC transcoding helper method for the list_issues REST call
|
3398
|
+
#
|
3399
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListIssuesRequest]
|
3400
|
+
# A request object representing the call parameters. Required.
|
3401
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3402
|
+
# Uri, Body, Query string parameters
|
3403
|
+
def self.transcode_list_issues_request request_pb
|
3404
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3405
|
+
.with_bindings(
|
3406
|
+
uri_method: :get,
|
3407
|
+
uri_template: "/v1/{parent}/issues",
|
3408
|
+
matches: [
|
3409
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3410
|
+
]
|
3411
|
+
)
|
3412
|
+
transcoder.transcode request_pb
|
3413
|
+
end
|
3414
|
+
|
3415
|
+
##
|
3416
|
+
# @private
|
3417
|
+
#
|
3418
|
+
# GRPC transcoding helper method for the update_issue REST call
|
3419
|
+
#
|
3420
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateIssueRequest]
|
3421
|
+
# A request object representing the call parameters. Required.
|
3422
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3423
|
+
# Uri, Body, Query string parameters
|
3424
|
+
def self.transcode_update_issue_request request_pb
|
3425
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3426
|
+
.with_bindings(
|
1754
3427
|
uri_method: :patch,
|
1755
|
-
uri_template: "/v1/{
|
1756
|
-
body: "
|
3428
|
+
uri_template: "/v1/{issue.name}",
|
3429
|
+
body: "issue",
|
1757
3430
|
matches: [
|
1758
|
-
["
|
3431
|
+
["issue.name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+/?$}, false]
|
1759
3432
|
]
|
1760
3433
|
)
|
1761
3434
|
transcoder.transcode request_pb
|
@@ -1764,19 +3437,83 @@ module Google
|
|
1764
3437
|
##
|
1765
3438
|
# @private
|
1766
3439
|
#
|
1767
|
-
# GRPC transcoding helper method for the
|
3440
|
+
# GRPC transcoding helper method for the delete_issue REST call
|
1768
3441
|
#
|
1769
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3442
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest]
|
1770
3443
|
# A request object representing the call parameters. Required.
|
1771
3444
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1772
3445
|
# Uri, Body, Query string parameters
|
1773
|
-
def self.
|
3446
|
+
def self.transcode_delete_issue_request request_pb
|
3447
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3448
|
+
.with_bindings(
|
3449
|
+
uri_method: :delete,
|
3450
|
+
uri_template: "/v1/{name}",
|
3451
|
+
matches: [
|
3452
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+/?$}, false]
|
3453
|
+
]
|
3454
|
+
)
|
3455
|
+
transcoder.transcode request_pb
|
3456
|
+
end
|
3457
|
+
|
3458
|
+
##
|
3459
|
+
# @private
|
3460
|
+
#
|
3461
|
+
# GRPC transcoding helper method for the calculate_issue_model_stats REST call
|
3462
|
+
#
|
3463
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsRequest]
|
3464
|
+
# A request object representing the call parameters. Required.
|
3465
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3466
|
+
# Uri, Body, Query string parameters
|
3467
|
+
def self.transcode_calculate_issue_model_stats_request request_pb
|
3468
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3469
|
+
.with_bindings(
|
3470
|
+
uri_method: :get,
|
3471
|
+
uri_template: "/v1/{issue_model}:calculateIssueModelStats",
|
3472
|
+
matches: [
|
3473
|
+
["issue_model", %r{^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/?$}, false]
|
3474
|
+
]
|
3475
|
+
)
|
3476
|
+
transcoder.transcode request_pb
|
3477
|
+
end
|
3478
|
+
|
3479
|
+
##
|
3480
|
+
# @private
|
3481
|
+
#
|
3482
|
+
# GRPC transcoding helper method for the create_phrase_matcher REST call
|
3483
|
+
#
|
3484
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreatePhraseMatcherRequest]
|
3485
|
+
# A request object representing the call parameters. Required.
|
3486
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3487
|
+
# Uri, Body, Query string parameters
|
3488
|
+
def self.transcode_create_phrase_matcher_request request_pb
|
3489
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3490
|
+
.with_bindings(
|
3491
|
+
uri_method: :post,
|
3492
|
+
uri_template: "/v1/{parent}/phraseMatchers",
|
3493
|
+
body: "phrase_matcher",
|
3494
|
+
matches: [
|
3495
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3496
|
+
]
|
3497
|
+
)
|
3498
|
+
transcoder.transcode request_pb
|
3499
|
+
end
|
3500
|
+
|
3501
|
+
##
|
3502
|
+
# @private
|
3503
|
+
#
|
3504
|
+
# GRPC transcoding helper method for the get_phrase_matcher REST call
|
3505
|
+
#
|
3506
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetPhraseMatcherRequest]
|
3507
|
+
# A request object representing the call parameters. Required.
|
3508
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3509
|
+
# Uri, Body, Query string parameters
|
3510
|
+
def self.transcode_get_phrase_matcher_request request_pb
|
1774
3511
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1775
3512
|
.with_bindings(
|
1776
3513
|
uri_method: :get,
|
1777
3514
|
uri_template: "/v1/{name}",
|
1778
3515
|
matches: [
|
1779
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3516
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+/?$}, false]
|
1780
3517
|
]
|
1781
3518
|
)
|
1782
3519
|
transcoder.transcode request_pb
|
@@ -1785,17 +3522,17 @@ module Google
|
|
1785
3522
|
##
|
1786
3523
|
# @private
|
1787
3524
|
#
|
1788
|
-
# GRPC transcoding helper method for the
|
3525
|
+
# GRPC transcoding helper method for the list_phrase_matchers REST call
|
1789
3526
|
#
|
1790
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3527
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersRequest]
|
1791
3528
|
# A request object representing the call parameters. Required.
|
1792
3529
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1793
3530
|
# Uri, Body, Query string parameters
|
1794
|
-
def self.
|
3531
|
+
def self.transcode_list_phrase_matchers_request request_pb
|
1795
3532
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1796
3533
|
.with_bindings(
|
1797
3534
|
uri_method: :get,
|
1798
|
-
uri_template: "/v1/{parent}/
|
3535
|
+
uri_template: "/v1/{parent}/phraseMatchers",
|
1799
3536
|
matches: [
|
1800
3537
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1801
3538
|
]
|
@@ -1806,19 +3543,19 @@ module Google
|
|
1806
3543
|
##
|
1807
3544
|
# @private
|
1808
3545
|
#
|
1809
|
-
# GRPC transcoding helper method for the
|
3546
|
+
# GRPC transcoding helper method for the delete_phrase_matcher REST call
|
1810
3547
|
#
|
1811
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3548
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeletePhraseMatcherRequest]
|
1812
3549
|
# A request object representing the call parameters. Required.
|
1813
3550
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1814
3551
|
# Uri, Body, Query string parameters
|
1815
|
-
def self.
|
3552
|
+
def self.transcode_delete_phrase_matcher_request request_pb
|
1816
3553
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1817
3554
|
.with_bindings(
|
1818
3555
|
uri_method: :delete,
|
1819
3556
|
uri_template: "/v1/{name}",
|
1820
3557
|
matches: [
|
1821
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3558
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+/?$}, false]
|
1822
3559
|
]
|
1823
3560
|
)
|
1824
3561
|
transcoder.transcode request_pb
|
@@ -1827,20 +3564,106 @@ module Google
|
|
1827
3564
|
##
|
1828
3565
|
# @private
|
1829
3566
|
#
|
1830
|
-
# GRPC transcoding helper method for the
|
3567
|
+
# GRPC transcoding helper method for the update_phrase_matcher REST call
|
1831
3568
|
#
|
1832
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3569
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest]
|
1833
3570
|
# A request object representing the call parameters. Required.
|
1834
3571
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1835
3572
|
# Uri, Body, Query string parameters
|
1836
|
-
def self.
|
3573
|
+
def self.transcode_update_phrase_matcher_request request_pb
|
3574
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3575
|
+
.with_bindings(
|
3576
|
+
uri_method: :patch,
|
3577
|
+
uri_template: "/v1/{phrase_matcher.name}",
|
3578
|
+
body: "phrase_matcher",
|
3579
|
+
matches: [
|
3580
|
+
["phrase_matcher.name", %r{^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+/?$}, false]
|
3581
|
+
]
|
3582
|
+
)
|
3583
|
+
transcoder.transcode request_pb
|
3584
|
+
end
|
3585
|
+
|
3586
|
+
##
|
3587
|
+
# @private
|
3588
|
+
#
|
3589
|
+
# GRPC transcoding helper method for the calculate_stats REST call
|
3590
|
+
#
|
3591
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest]
|
3592
|
+
# A request object representing the call parameters. Required.
|
3593
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3594
|
+
# Uri, Body, Query string parameters
|
3595
|
+
def self.transcode_calculate_stats_request request_pb
|
3596
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3597
|
+
.with_bindings(
|
3598
|
+
uri_method: :get,
|
3599
|
+
uri_template: "/v1/{location}/conversations:calculateStats",
|
3600
|
+
matches: [
|
3601
|
+
["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3602
|
+
]
|
3603
|
+
)
|
3604
|
+
transcoder.transcode request_pb
|
3605
|
+
end
|
3606
|
+
|
3607
|
+
##
|
3608
|
+
# @private
|
3609
|
+
#
|
3610
|
+
# GRPC transcoding helper method for the get_settings REST call
|
3611
|
+
#
|
3612
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetSettingsRequest]
|
3613
|
+
# A request object representing the call parameters. Required.
|
3614
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3615
|
+
# Uri, Body, Query string parameters
|
3616
|
+
def self.transcode_get_settings_request request_pb
|
3617
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3618
|
+
.with_bindings(
|
3619
|
+
uri_method: :get,
|
3620
|
+
uri_template: "/v1/{name}",
|
3621
|
+
matches: [
|
3622
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
|
3623
|
+
]
|
3624
|
+
)
|
3625
|
+
transcoder.transcode request_pb
|
3626
|
+
end
|
3627
|
+
|
3628
|
+
##
|
3629
|
+
# @private
|
3630
|
+
#
|
3631
|
+
# GRPC transcoding helper method for the update_settings REST call
|
3632
|
+
#
|
3633
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateSettingsRequest]
|
3634
|
+
# A request object representing the call parameters. Required.
|
3635
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3636
|
+
# Uri, Body, Query string parameters
|
3637
|
+
def self.transcode_update_settings_request request_pb
|
3638
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3639
|
+
.with_bindings(
|
3640
|
+
uri_method: :patch,
|
3641
|
+
uri_template: "/v1/{settings.name}",
|
3642
|
+
body: "settings",
|
3643
|
+
matches: [
|
3644
|
+
["settings.name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
|
3645
|
+
]
|
3646
|
+
)
|
3647
|
+
transcoder.transcode request_pb
|
3648
|
+
end
|
3649
|
+
|
3650
|
+
##
|
3651
|
+
# @private
|
3652
|
+
#
|
3653
|
+
# GRPC transcoding helper method for the create_analysis_rule REST call
|
3654
|
+
#
|
3655
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest]
|
3656
|
+
# A request object representing the call parameters. Required.
|
3657
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3658
|
+
# Uri, Body, Query string parameters
|
3659
|
+
def self.transcode_create_analysis_rule_request request_pb
|
1837
3660
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1838
3661
|
.with_bindings(
|
1839
3662
|
uri_method: :post,
|
1840
|
-
uri_template: "/v1/{parent}/
|
1841
|
-
body: "
|
3663
|
+
uri_template: "/v1/{parent}/analysisRules",
|
3664
|
+
body: "analysis_rule",
|
1842
3665
|
matches: [
|
1843
|
-
["parent", %r{^projects/[^/]+/locations/[^/]
|
3666
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1844
3667
|
]
|
1845
3668
|
)
|
1846
3669
|
transcoder.transcode request_pb
|
@@ -1849,19 +3672,19 @@ module Google
|
|
1849
3672
|
##
|
1850
3673
|
# @private
|
1851
3674
|
#
|
1852
|
-
# GRPC transcoding helper method for the
|
3675
|
+
# GRPC transcoding helper method for the get_analysis_rule REST call
|
1853
3676
|
#
|
1854
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3677
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest]
|
1855
3678
|
# A request object representing the call parameters. Required.
|
1856
3679
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1857
3680
|
# Uri, Body, Query string parameters
|
1858
|
-
def self.
|
3681
|
+
def self.transcode_get_analysis_rule_request request_pb
|
1859
3682
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1860
3683
|
.with_bindings(
|
1861
3684
|
uri_method: :get,
|
1862
3685
|
uri_template: "/v1/{name}",
|
1863
3686
|
matches: [
|
1864
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3687
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+/?$}, false]
|
1865
3688
|
]
|
1866
3689
|
)
|
1867
3690
|
transcoder.transcode request_pb
|
@@ -1870,19 +3693,19 @@ module Google
|
|
1870
3693
|
##
|
1871
3694
|
# @private
|
1872
3695
|
#
|
1873
|
-
# GRPC transcoding helper method for the
|
3696
|
+
# GRPC transcoding helper method for the list_analysis_rules REST call
|
1874
3697
|
#
|
1875
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3698
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest]
|
1876
3699
|
# A request object representing the call parameters. Required.
|
1877
3700
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1878
3701
|
# Uri, Body, Query string parameters
|
1879
|
-
def self.
|
3702
|
+
def self.transcode_list_analysis_rules_request request_pb
|
1880
3703
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1881
3704
|
.with_bindings(
|
1882
3705
|
uri_method: :get,
|
1883
|
-
uri_template: "/v1/{parent}/
|
3706
|
+
uri_template: "/v1/{parent}/analysisRules",
|
1884
3707
|
matches: [
|
1885
|
-
["parent", %r{^projects/[^/]+/locations/[^/]
|
3708
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1886
3709
|
]
|
1887
3710
|
)
|
1888
3711
|
transcoder.transcode request_pb
|
@@ -1891,19 +3714,41 @@ module Google
|
|
1891
3714
|
##
|
1892
3715
|
# @private
|
1893
3716
|
#
|
1894
|
-
# GRPC transcoding helper method for the
|
3717
|
+
# GRPC transcoding helper method for the update_analysis_rule REST call
|
1895
3718
|
#
|
1896
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3719
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest]
|
1897
3720
|
# A request object representing the call parameters. Required.
|
1898
3721
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1899
3722
|
# Uri, Body, Query string parameters
|
1900
|
-
def self.
|
3723
|
+
def self.transcode_update_analysis_rule_request request_pb
|
3724
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3725
|
+
.with_bindings(
|
3726
|
+
uri_method: :patch,
|
3727
|
+
uri_template: "/v1/{analysis_rule.name}",
|
3728
|
+
body: "analysis_rule",
|
3729
|
+
matches: [
|
3730
|
+
["analysis_rule.name", %r{^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+/?$}, false]
|
3731
|
+
]
|
3732
|
+
)
|
3733
|
+
transcoder.transcode request_pb
|
3734
|
+
end
|
3735
|
+
|
3736
|
+
##
|
3737
|
+
# @private
|
3738
|
+
#
|
3739
|
+
# GRPC transcoding helper method for the delete_analysis_rule REST call
|
3740
|
+
#
|
3741
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest]
|
3742
|
+
# A request object representing the call parameters. Required.
|
3743
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3744
|
+
# Uri, Body, Query string parameters
|
3745
|
+
def self.transcode_delete_analysis_rule_request request_pb
|
1901
3746
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1902
3747
|
.with_bindings(
|
1903
3748
|
uri_method: :delete,
|
1904
3749
|
uri_template: "/v1/{name}",
|
1905
3750
|
matches: [
|
1906
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3751
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+/?$}, false]
|
1907
3752
|
]
|
1908
3753
|
)
|
1909
3754
|
transcoder.transcode request_pb
|
@@ -1912,20 +3757,19 @@ module Google
|
|
1912
3757
|
##
|
1913
3758
|
# @private
|
1914
3759
|
#
|
1915
|
-
# GRPC transcoding helper method for the
|
3760
|
+
# GRPC transcoding helper method for the get_encryption_spec REST call
|
1916
3761
|
#
|
1917
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3762
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest]
|
1918
3763
|
# A request object representing the call parameters. Required.
|
1919
3764
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1920
3765
|
# Uri, Body, Query string parameters
|
1921
|
-
def self.
|
3766
|
+
def self.transcode_get_encryption_spec_request request_pb
|
1922
3767
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1923
3768
|
.with_bindings(
|
1924
|
-
uri_method: :
|
1925
|
-
uri_template: "/v1/{
|
1926
|
-
body: "*",
|
3769
|
+
uri_method: :get,
|
3770
|
+
uri_template: "/v1/{name}",
|
1927
3771
|
matches: [
|
1928
|
-
["
|
3772
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/encryptionSpec/?$}, false]
|
1929
3773
|
]
|
1930
3774
|
)
|
1931
3775
|
transcoder.transcode request_pb
|
@@ -1934,20 +3778,20 @@ module Google
|
|
1934
3778
|
##
|
1935
3779
|
# @private
|
1936
3780
|
#
|
1937
|
-
# GRPC transcoding helper method for the
|
3781
|
+
# GRPC transcoding helper method for the initialize_encryption_spec REST call
|
1938
3782
|
#
|
1939
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3783
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest]
|
1940
3784
|
# A request object representing the call parameters. Required.
|
1941
3785
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1942
3786
|
# Uri, Body, Query string parameters
|
1943
|
-
def self.
|
3787
|
+
def self.transcode_initialize_encryption_spec_request request_pb
|
1944
3788
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1945
3789
|
.with_bindings(
|
1946
3790
|
uri_method: :post,
|
1947
|
-
uri_template: "/v1/{
|
3791
|
+
uri_template: "/v1/{encryption_spec.name}:initialize",
|
1948
3792
|
body: "*",
|
1949
3793
|
matches: [
|
1950
|
-
["
|
3794
|
+
["encryption_spec.name", %r{^projects/[^/]+/locations/[^/]+/encryptionSpec/?$}, false]
|
1951
3795
|
]
|
1952
3796
|
)
|
1953
3797
|
transcoder.transcode request_pb
|
@@ -1956,18 +3800,18 @@ module Google
|
|
1956
3800
|
##
|
1957
3801
|
# @private
|
1958
3802
|
#
|
1959
|
-
# GRPC transcoding helper method for the
|
3803
|
+
# GRPC transcoding helper method for the create_view REST call
|
1960
3804
|
#
|
1961
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3805
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest]
|
1962
3806
|
# A request object representing the call parameters. Required.
|
1963
3807
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1964
3808
|
# Uri, Body, Query string parameters
|
1965
|
-
def self.
|
3809
|
+
def self.transcode_create_view_request request_pb
|
1966
3810
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1967
3811
|
.with_bindings(
|
1968
3812
|
uri_method: :post,
|
1969
|
-
uri_template: "/v1/{parent}/
|
1970
|
-
body: "
|
3813
|
+
uri_template: "/v1/{parent}/views",
|
3814
|
+
body: "view",
|
1971
3815
|
matches: [
|
1972
3816
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1973
3817
|
]
|
@@ -1978,20 +3822,19 @@ module Google
|
|
1978
3822
|
##
|
1979
3823
|
# @private
|
1980
3824
|
#
|
1981
|
-
# GRPC transcoding helper method for the
|
3825
|
+
# GRPC transcoding helper method for the get_view REST call
|
1982
3826
|
#
|
1983
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3827
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetViewRequest]
|
1984
3828
|
# A request object representing the call parameters. Required.
|
1985
3829
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1986
3830
|
# Uri, Body, Query string parameters
|
1987
|
-
def self.
|
3831
|
+
def self.transcode_get_view_request request_pb
|
1988
3832
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1989
3833
|
.with_bindings(
|
1990
|
-
uri_method: :
|
1991
|
-
uri_template: "/v1/{
|
1992
|
-
body: "*",
|
3834
|
+
uri_method: :get,
|
3835
|
+
uri_template: "/v1/{name}",
|
1993
3836
|
matches: [
|
1994
|
-
["
|
3837
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/views/[^/]+/?$}, false]
|
1995
3838
|
]
|
1996
3839
|
)
|
1997
3840
|
transcoder.transcode request_pb
|
@@ -2000,18 +3843,17 @@ module Google
|
|
2000
3843
|
##
|
2001
3844
|
# @private
|
2002
3845
|
#
|
2003
|
-
# GRPC transcoding helper method for the
|
3846
|
+
# GRPC transcoding helper method for the list_views REST call
|
2004
3847
|
#
|
2005
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3848
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest]
|
2006
3849
|
# A request object representing the call parameters. Required.
|
2007
3850
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2008
3851
|
# Uri, Body, Query string parameters
|
2009
|
-
def self.
|
3852
|
+
def self.transcode_list_views_request request_pb
|
2010
3853
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2011
3854
|
.with_bindings(
|
2012
|
-
uri_method: :
|
2013
|
-
uri_template: "/v1/{parent}/
|
2014
|
-
body: "issue_model",
|
3855
|
+
uri_method: :get,
|
3856
|
+
uri_template: "/v1/{parent}/views",
|
2015
3857
|
matches: [
|
2016
3858
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2017
3859
|
]
|
@@ -2022,20 +3864,20 @@ module Google
|
|
2022
3864
|
##
|
2023
3865
|
# @private
|
2024
3866
|
#
|
2025
|
-
# GRPC transcoding helper method for the
|
3867
|
+
# GRPC transcoding helper method for the update_view REST call
|
2026
3868
|
#
|
2027
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3869
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest]
|
2028
3870
|
# A request object representing the call parameters. Required.
|
2029
3871
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2030
3872
|
# Uri, Body, Query string parameters
|
2031
|
-
def self.
|
3873
|
+
def self.transcode_update_view_request request_pb
|
2032
3874
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2033
3875
|
.with_bindings(
|
2034
3876
|
uri_method: :patch,
|
2035
|
-
uri_template: "/v1/{
|
2036
|
-
body: "
|
3877
|
+
uri_template: "/v1/{view.name}",
|
3878
|
+
body: "view",
|
2037
3879
|
matches: [
|
2038
|
-
["
|
3880
|
+
["view.name", %r{^projects/[^/]+/locations/[^/]+/views/[^/]+/?$}, false]
|
2039
3881
|
]
|
2040
3882
|
)
|
2041
3883
|
transcoder.transcode request_pb
|
@@ -2044,19 +3886,19 @@ module Google
|
|
2044
3886
|
##
|
2045
3887
|
# @private
|
2046
3888
|
#
|
2047
|
-
# GRPC transcoding helper method for the
|
3889
|
+
# GRPC transcoding helper method for the delete_view REST call
|
2048
3890
|
#
|
2049
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3891
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest]
|
2050
3892
|
# A request object representing the call parameters. Required.
|
2051
3893
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2052
3894
|
# Uri, Body, Query string parameters
|
2053
|
-
def self.
|
3895
|
+
def self.transcode_delete_view_request request_pb
|
2054
3896
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2055
3897
|
.with_bindings(
|
2056
|
-
uri_method: :
|
3898
|
+
uri_method: :delete,
|
2057
3899
|
uri_template: "/v1/{name}",
|
2058
3900
|
matches: [
|
2059
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3901
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/views/[^/]+/?$}, false]
|
2060
3902
|
]
|
2061
3903
|
)
|
2062
3904
|
transcoder.transcode request_pb
|
@@ -2065,19 +3907,20 @@ module Google
|
|
2065
3907
|
##
|
2066
3908
|
# @private
|
2067
3909
|
#
|
2068
|
-
# GRPC transcoding helper method for the
|
3910
|
+
# GRPC transcoding helper method for the query_metrics REST call
|
2069
3911
|
#
|
2070
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3912
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest]
|
2071
3913
|
# A request object representing the call parameters. Required.
|
2072
3914
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2073
3915
|
# Uri, Body, Query string parameters
|
2074
|
-
def self.
|
3916
|
+
def self.transcode_query_metrics_request request_pb
|
2075
3917
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2076
3918
|
.with_bindings(
|
2077
|
-
uri_method: :
|
2078
|
-
uri_template: "/v1/{
|
3919
|
+
uri_method: :post,
|
3920
|
+
uri_template: "/v1/{location}:queryMetrics",
|
3921
|
+
body: "*",
|
2079
3922
|
matches: [
|
2080
|
-
["
|
3923
|
+
["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2081
3924
|
]
|
2082
3925
|
)
|
2083
3926
|
transcoder.transcode request_pb
|
@@ -2086,19 +3929,20 @@ module Google
|
|
2086
3929
|
##
|
2087
3930
|
# @private
|
2088
3931
|
#
|
2089
|
-
# GRPC transcoding helper method for the
|
3932
|
+
# GRPC transcoding helper method for the create_qa_question REST call
|
2090
3933
|
#
|
2091
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3934
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest]
|
2092
3935
|
# A request object representing the call parameters. Required.
|
2093
3936
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2094
3937
|
# Uri, Body, Query string parameters
|
2095
|
-
def self.
|
3938
|
+
def self.transcode_create_qa_question_request request_pb
|
2096
3939
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2097
3940
|
.with_bindings(
|
2098
|
-
uri_method: :
|
2099
|
-
uri_template: "/v1/{
|
3941
|
+
uri_method: :post,
|
3942
|
+
uri_template: "/v1/{parent}/qaQuestions",
|
3943
|
+
body: "qa_question",
|
2100
3944
|
matches: [
|
2101
|
-
["
|
3945
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2102
3946
|
]
|
2103
3947
|
)
|
2104
3948
|
transcoder.transcode request_pb
|
@@ -2107,20 +3951,19 @@ module Google
|
|
2107
3951
|
##
|
2108
3952
|
# @private
|
2109
3953
|
#
|
2110
|
-
# GRPC transcoding helper method for the
|
3954
|
+
# GRPC transcoding helper method for the get_qa_question REST call
|
2111
3955
|
#
|
2112
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3956
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest]
|
2113
3957
|
# A request object representing the call parameters. Required.
|
2114
3958
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2115
3959
|
# Uri, Body, Query string parameters
|
2116
|
-
def self.
|
3960
|
+
def self.transcode_get_qa_question_request request_pb
|
2117
3961
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2118
3962
|
.with_bindings(
|
2119
|
-
uri_method: :
|
2120
|
-
uri_template: "/v1/{name}
|
2121
|
-
body: "*",
|
3963
|
+
uri_method: :get,
|
3964
|
+
uri_template: "/v1/{name}",
|
2122
3965
|
matches: [
|
2123
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3966
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+/?$}, false]
|
2124
3967
|
]
|
2125
3968
|
)
|
2126
3969
|
transcoder.transcode request_pb
|
@@ -2129,20 +3972,20 @@ module Google
|
|
2129
3972
|
##
|
2130
3973
|
# @private
|
2131
3974
|
#
|
2132
|
-
# GRPC transcoding helper method for the
|
3975
|
+
# GRPC transcoding helper method for the update_qa_question REST call
|
2133
3976
|
#
|
2134
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3977
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest]
|
2135
3978
|
# A request object representing the call parameters. Required.
|
2136
3979
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2137
3980
|
# Uri, Body, Query string parameters
|
2138
|
-
def self.
|
3981
|
+
def self.transcode_update_qa_question_request request_pb
|
2139
3982
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2140
3983
|
.with_bindings(
|
2141
|
-
uri_method: :
|
2142
|
-
uri_template: "/v1/{name}
|
2143
|
-
body: "
|
3984
|
+
uri_method: :patch,
|
3985
|
+
uri_template: "/v1/{qa_question.name}",
|
3986
|
+
body: "qa_question",
|
2144
3987
|
matches: [
|
2145
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3988
|
+
["qa_question.name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+/?$}, false]
|
2146
3989
|
]
|
2147
3990
|
)
|
2148
3991
|
transcoder.transcode request_pb
|
@@ -2151,20 +3994,19 @@ module Google
|
|
2151
3994
|
##
|
2152
3995
|
# @private
|
2153
3996
|
#
|
2154
|
-
# GRPC transcoding helper method for the
|
3997
|
+
# GRPC transcoding helper method for the delete_qa_question REST call
|
2155
3998
|
#
|
2156
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
3999
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest]
|
2157
4000
|
# A request object representing the call parameters. Required.
|
2158
4001
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2159
4002
|
# Uri, Body, Query string parameters
|
2160
|
-
def self.
|
4003
|
+
def self.transcode_delete_qa_question_request request_pb
|
2161
4004
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2162
4005
|
.with_bindings(
|
2163
|
-
uri_method: :
|
2164
|
-
uri_template: "/v1/{name}
|
2165
|
-
body: "*",
|
4006
|
+
uri_method: :delete,
|
4007
|
+
uri_template: "/v1/{name}",
|
2166
4008
|
matches: [
|
2167
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4009
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+/?$}, false]
|
2168
4010
|
]
|
2169
4011
|
)
|
2170
4012
|
transcoder.transcode request_pb
|
@@ -2173,20 +4015,19 @@ module Google
|
|
2173
4015
|
##
|
2174
4016
|
# @private
|
2175
4017
|
#
|
2176
|
-
# GRPC transcoding helper method for the
|
4018
|
+
# GRPC transcoding helper method for the list_qa_questions REST call
|
2177
4019
|
#
|
2178
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4020
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest]
|
2179
4021
|
# A request object representing the call parameters. Required.
|
2180
4022
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2181
4023
|
# Uri, Body, Query string parameters
|
2182
|
-
def self.
|
4024
|
+
def self.transcode_list_qa_questions_request request_pb
|
2183
4025
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2184
4026
|
.with_bindings(
|
2185
|
-
uri_method: :
|
2186
|
-
uri_template: "/v1/{parent}/
|
2187
|
-
body: "*",
|
4027
|
+
uri_method: :get,
|
4028
|
+
uri_template: "/v1/{parent}/qaQuestions",
|
2188
4029
|
matches: [
|
2189
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
4030
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2190
4031
|
]
|
2191
4032
|
)
|
2192
4033
|
transcoder.transcode request_pb
|
@@ -2195,19 +4036,20 @@ module Google
|
|
2195
4036
|
##
|
2196
4037
|
# @private
|
2197
4038
|
#
|
2198
|
-
# GRPC transcoding helper method for the
|
4039
|
+
# GRPC transcoding helper method for the create_qa_scorecard REST call
|
2199
4040
|
#
|
2200
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4041
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest]
|
2201
4042
|
# A request object representing the call parameters. Required.
|
2202
4043
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2203
4044
|
# Uri, Body, Query string parameters
|
2204
|
-
def self.
|
4045
|
+
def self.transcode_create_qa_scorecard_request request_pb
|
2205
4046
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2206
4047
|
.with_bindings(
|
2207
|
-
uri_method: :
|
2208
|
-
uri_template: "/v1/{
|
4048
|
+
uri_method: :post,
|
4049
|
+
uri_template: "/v1/{parent}/qaScorecards",
|
4050
|
+
body: "qa_scorecard",
|
2209
4051
|
matches: [
|
2210
|
-
["
|
4052
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2211
4053
|
]
|
2212
4054
|
)
|
2213
4055
|
transcoder.transcode request_pb
|
@@ -2216,19 +4058,19 @@ module Google
|
|
2216
4058
|
##
|
2217
4059
|
# @private
|
2218
4060
|
#
|
2219
|
-
# GRPC transcoding helper method for the
|
4061
|
+
# GRPC transcoding helper method for the get_qa_scorecard REST call
|
2220
4062
|
#
|
2221
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4063
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest]
|
2222
4064
|
# A request object representing the call parameters. Required.
|
2223
4065
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2224
4066
|
# Uri, Body, Query string parameters
|
2225
|
-
def self.
|
4067
|
+
def self.transcode_get_qa_scorecard_request request_pb
|
2226
4068
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2227
4069
|
.with_bindings(
|
2228
4070
|
uri_method: :get,
|
2229
|
-
uri_template: "/v1/{
|
4071
|
+
uri_template: "/v1/{name}",
|
2230
4072
|
matches: [
|
2231
|
-
["
|
4073
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2232
4074
|
]
|
2233
4075
|
)
|
2234
4076
|
transcoder.transcode request_pb
|
@@ -2237,20 +4079,20 @@ module Google
|
|
2237
4079
|
##
|
2238
4080
|
# @private
|
2239
4081
|
#
|
2240
|
-
# GRPC transcoding helper method for the
|
4082
|
+
# GRPC transcoding helper method for the update_qa_scorecard REST call
|
2241
4083
|
#
|
2242
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4084
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest]
|
2243
4085
|
# A request object representing the call parameters. Required.
|
2244
4086
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2245
4087
|
# Uri, Body, Query string parameters
|
2246
|
-
def self.
|
4088
|
+
def self.transcode_update_qa_scorecard_request request_pb
|
2247
4089
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2248
4090
|
.with_bindings(
|
2249
4091
|
uri_method: :patch,
|
2250
|
-
uri_template: "/v1/{
|
2251
|
-
body: "
|
4092
|
+
uri_template: "/v1/{qa_scorecard.name}",
|
4093
|
+
body: "qa_scorecard",
|
2252
4094
|
matches: [
|
2253
|
-
["
|
4095
|
+
["qa_scorecard.name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2254
4096
|
]
|
2255
4097
|
)
|
2256
4098
|
transcoder.transcode request_pb
|
@@ -2259,19 +4101,19 @@ module Google
|
|
2259
4101
|
##
|
2260
4102
|
# @private
|
2261
4103
|
#
|
2262
|
-
# GRPC transcoding helper method for the
|
4104
|
+
# GRPC transcoding helper method for the delete_qa_scorecard REST call
|
2263
4105
|
#
|
2264
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4106
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest]
|
2265
4107
|
# A request object representing the call parameters. Required.
|
2266
4108
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2267
4109
|
# Uri, Body, Query string parameters
|
2268
|
-
def self.
|
4110
|
+
def self.transcode_delete_qa_scorecard_request request_pb
|
2269
4111
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2270
4112
|
.with_bindings(
|
2271
4113
|
uri_method: :delete,
|
2272
4114
|
uri_template: "/v1/{name}",
|
2273
4115
|
matches: [
|
2274
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4116
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2275
4117
|
]
|
2276
4118
|
)
|
2277
4119
|
transcoder.transcode request_pb
|
@@ -2280,19 +4122,19 @@ module Google
|
|
2280
4122
|
##
|
2281
4123
|
# @private
|
2282
4124
|
#
|
2283
|
-
# GRPC transcoding helper method for the
|
4125
|
+
# GRPC transcoding helper method for the list_qa_scorecards REST call
|
2284
4126
|
#
|
2285
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4127
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest]
|
2286
4128
|
# A request object representing the call parameters. Required.
|
2287
4129
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2288
4130
|
# Uri, Body, Query string parameters
|
2289
|
-
def self.
|
4131
|
+
def self.transcode_list_qa_scorecards_request request_pb
|
2290
4132
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2291
4133
|
.with_bindings(
|
2292
4134
|
uri_method: :get,
|
2293
|
-
uri_template: "/v1/{
|
4135
|
+
uri_template: "/v1/{parent}/qaScorecards",
|
2294
4136
|
matches: [
|
2295
|
-
["
|
4137
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2296
4138
|
]
|
2297
4139
|
)
|
2298
4140
|
transcoder.transcode request_pb
|
@@ -2301,20 +4143,20 @@ module Google
|
|
2301
4143
|
##
|
2302
4144
|
# @private
|
2303
4145
|
#
|
2304
|
-
# GRPC transcoding helper method for the
|
4146
|
+
# GRPC transcoding helper method for the create_qa_scorecard_revision REST call
|
2305
4147
|
#
|
2306
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4148
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest]
|
2307
4149
|
# A request object representing the call parameters. Required.
|
2308
4150
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2309
4151
|
# Uri, Body, Query string parameters
|
2310
|
-
def self.
|
4152
|
+
def self.transcode_create_qa_scorecard_revision_request request_pb
|
2311
4153
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2312
4154
|
.with_bindings(
|
2313
4155
|
uri_method: :post,
|
2314
|
-
uri_template: "/v1/{parent}/
|
2315
|
-
body: "
|
4156
|
+
uri_template: "/v1/{parent}/revisions",
|
4157
|
+
body: "qa_scorecard_revision",
|
2316
4158
|
matches: [
|
2317
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
4159
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2318
4160
|
]
|
2319
4161
|
)
|
2320
4162
|
transcoder.transcode request_pb
|
@@ -2323,19 +4165,19 @@ module Google
|
|
2323
4165
|
##
|
2324
4166
|
# @private
|
2325
4167
|
#
|
2326
|
-
# GRPC transcoding helper method for the
|
4168
|
+
# GRPC transcoding helper method for the get_qa_scorecard_revision REST call
|
2327
4169
|
#
|
2328
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4170
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest]
|
2329
4171
|
# A request object representing the call parameters. Required.
|
2330
4172
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2331
4173
|
# Uri, Body, Query string parameters
|
2332
|
-
def self.
|
4174
|
+
def self.transcode_get_qa_scorecard_revision_request request_pb
|
2333
4175
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2334
4176
|
.with_bindings(
|
2335
4177
|
uri_method: :get,
|
2336
4178
|
uri_template: "/v1/{name}",
|
2337
4179
|
matches: [
|
2338
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4180
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2339
4181
|
]
|
2340
4182
|
)
|
2341
4183
|
transcoder.transcode request_pb
|
@@ -2344,19 +4186,20 @@ module Google
|
|
2344
4186
|
##
|
2345
4187
|
# @private
|
2346
4188
|
#
|
2347
|
-
# GRPC transcoding helper method for the
|
4189
|
+
# GRPC transcoding helper method for the tune_qa_scorecard_revision REST call
|
2348
4190
|
#
|
2349
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4191
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest]
|
2350
4192
|
# A request object representing the call parameters. Required.
|
2351
4193
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2352
4194
|
# Uri, Body, Query string parameters
|
2353
|
-
def self.
|
4195
|
+
def self.transcode_tune_qa_scorecard_revision_request request_pb
|
2354
4196
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2355
4197
|
.with_bindings(
|
2356
|
-
uri_method: :
|
2357
|
-
uri_template: "/v1/{parent}
|
4198
|
+
uri_method: :post,
|
4199
|
+
uri_template: "/v1/{parent}:tuneQaScorecardRevision",
|
4200
|
+
body: "*",
|
2358
4201
|
matches: [
|
2359
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
4202
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2360
4203
|
]
|
2361
4204
|
)
|
2362
4205
|
transcoder.transcode request_pb
|
@@ -2365,19 +4208,20 @@ module Google
|
|
2365
4208
|
##
|
2366
4209
|
# @private
|
2367
4210
|
#
|
2368
|
-
# GRPC transcoding helper method for the
|
4211
|
+
# GRPC transcoding helper method for the deploy_qa_scorecard_revision REST call
|
2369
4212
|
#
|
2370
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4213
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest]
|
2371
4214
|
# A request object representing the call parameters. Required.
|
2372
4215
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2373
4216
|
# Uri, Body, Query string parameters
|
2374
|
-
def self.
|
4217
|
+
def self.transcode_deploy_qa_scorecard_revision_request request_pb
|
2375
4218
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2376
4219
|
.with_bindings(
|
2377
|
-
uri_method: :
|
2378
|
-
uri_template: "/v1/{name}",
|
4220
|
+
uri_method: :post,
|
4221
|
+
uri_template: "/v1/{name}:deploy",
|
4222
|
+
body: "*",
|
2379
4223
|
matches: [
|
2380
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4224
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2381
4225
|
]
|
2382
4226
|
)
|
2383
4227
|
transcoder.transcode request_pb
|
@@ -2386,20 +4230,20 @@ module Google
|
|
2386
4230
|
##
|
2387
4231
|
# @private
|
2388
4232
|
#
|
2389
|
-
# GRPC transcoding helper method for the
|
4233
|
+
# GRPC transcoding helper method for the undeploy_qa_scorecard_revision REST call
|
2390
4234
|
#
|
2391
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4235
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest]
|
2392
4236
|
# A request object representing the call parameters. Required.
|
2393
4237
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2394
4238
|
# Uri, Body, Query string parameters
|
2395
|
-
def self.
|
4239
|
+
def self.transcode_undeploy_qa_scorecard_revision_request request_pb
|
2396
4240
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2397
4241
|
.with_bindings(
|
2398
|
-
uri_method: :
|
2399
|
-
uri_template: "/v1/{
|
2400
|
-
body: "
|
4242
|
+
uri_method: :post,
|
4243
|
+
uri_template: "/v1/{name}:undeploy",
|
4244
|
+
body: "*",
|
2401
4245
|
matches: [
|
2402
|
-
["
|
4246
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2403
4247
|
]
|
2404
4248
|
)
|
2405
4249
|
transcoder.transcode request_pb
|
@@ -2408,19 +4252,19 @@ module Google
|
|
2408
4252
|
##
|
2409
4253
|
# @private
|
2410
4254
|
#
|
2411
|
-
# GRPC transcoding helper method for the
|
4255
|
+
# GRPC transcoding helper method for the delete_qa_scorecard_revision REST call
|
2412
4256
|
#
|
2413
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4257
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest]
|
2414
4258
|
# A request object representing the call parameters. Required.
|
2415
4259
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2416
4260
|
# Uri, Body, Query string parameters
|
2417
|
-
def self.
|
4261
|
+
def self.transcode_delete_qa_scorecard_revision_request request_pb
|
2418
4262
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2419
4263
|
.with_bindings(
|
2420
|
-
uri_method: :
|
2421
|
-
uri_template: "/v1/{
|
4264
|
+
uri_method: :delete,
|
4265
|
+
uri_template: "/v1/{name}",
|
2422
4266
|
matches: [
|
2423
|
-
["
|
4267
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/?$}, false]
|
2424
4268
|
]
|
2425
4269
|
)
|
2426
4270
|
transcoder.transcode request_pb
|
@@ -2429,19 +4273,19 @@ module Google
|
|
2429
4273
|
##
|
2430
4274
|
# @private
|
2431
4275
|
#
|
2432
|
-
# GRPC transcoding helper method for the
|
4276
|
+
# GRPC transcoding helper method for the list_qa_scorecard_revisions REST call
|
2433
4277
|
#
|
2434
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4278
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest]
|
2435
4279
|
# A request object representing the call parameters. Required.
|
2436
4280
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2437
4281
|
# Uri, Body, Query string parameters
|
2438
|
-
def self.
|
4282
|
+
def self.transcode_list_qa_scorecard_revisions_request request_pb
|
2439
4283
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2440
4284
|
.with_bindings(
|
2441
4285
|
uri_method: :get,
|
2442
|
-
uri_template: "/v1/{
|
4286
|
+
uri_template: "/v1/{parent}/revisions",
|
2443
4287
|
matches: [
|
2444
|
-
["
|
4288
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/?$}, false]
|
2445
4289
|
]
|
2446
4290
|
)
|
2447
4291
|
transcoder.transcode request_pb
|
@@ -2450,20 +4294,20 @@ module Google
|
|
2450
4294
|
##
|
2451
4295
|
# @private
|
2452
4296
|
#
|
2453
|
-
# GRPC transcoding helper method for the
|
4297
|
+
# GRPC transcoding helper method for the create_feedback_label REST call
|
2454
4298
|
#
|
2455
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4299
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest]
|
2456
4300
|
# A request object representing the call parameters. Required.
|
2457
4301
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2458
4302
|
# Uri, Body, Query string parameters
|
2459
|
-
def self.
|
4303
|
+
def self.transcode_create_feedback_label_request request_pb
|
2460
4304
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2461
4305
|
.with_bindings(
|
2462
|
-
uri_method: :
|
2463
|
-
uri_template: "/v1/{
|
2464
|
-
body: "
|
4306
|
+
uri_method: :post,
|
4307
|
+
uri_template: "/v1/{parent}/feedbackLabels",
|
4308
|
+
body: "feedback_label",
|
2465
4309
|
matches: [
|
2466
|
-
["
|
4310
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
2467
4311
|
]
|
2468
4312
|
)
|
2469
4313
|
transcoder.transcode request_pb
|
@@ -2472,19 +4316,19 @@ module Google
|
|
2472
4316
|
##
|
2473
4317
|
# @private
|
2474
4318
|
#
|
2475
|
-
# GRPC transcoding helper method for the
|
4319
|
+
# GRPC transcoding helper method for the list_feedback_labels REST call
|
2476
4320
|
#
|
2477
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4321
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest]
|
2478
4322
|
# A request object representing the call parameters. Required.
|
2479
4323
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2480
4324
|
# Uri, Body, Query string parameters
|
2481
|
-
def self.
|
4325
|
+
def self.transcode_list_feedback_labels_request request_pb
|
2482
4326
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2483
4327
|
.with_bindings(
|
2484
4328
|
uri_method: :get,
|
2485
|
-
uri_template: "/v1/{
|
4329
|
+
uri_template: "/v1/{parent}/feedbackLabels",
|
2486
4330
|
matches: [
|
2487
|
-
["
|
4331
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
2488
4332
|
]
|
2489
4333
|
)
|
2490
4334
|
transcoder.transcode request_pb
|
@@ -2493,20 +4337,19 @@ module Google
|
|
2493
4337
|
##
|
2494
4338
|
# @private
|
2495
4339
|
#
|
2496
|
-
# GRPC transcoding helper method for the
|
4340
|
+
# GRPC transcoding helper method for the get_feedback_label REST call
|
2497
4341
|
#
|
2498
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4342
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest]
|
2499
4343
|
# A request object representing the call parameters. Required.
|
2500
4344
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2501
4345
|
# Uri, Body, Query string parameters
|
2502
|
-
def self.
|
4346
|
+
def self.transcode_get_feedback_label_request request_pb
|
2503
4347
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2504
4348
|
.with_bindings(
|
2505
|
-
uri_method: :
|
2506
|
-
uri_template: "/v1/{
|
2507
|
-
body: "*",
|
4349
|
+
uri_method: :get,
|
4350
|
+
uri_template: "/v1/{name}",
|
2508
4351
|
matches: [
|
2509
|
-
["
|
4352
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+/?$}, false]
|
2510
4353
|
]
|
2511
4354
|
)
|
2512
4355
|
transcoder.transcode request_pb
|
@@ -2515,20 +4358,20 @@ module Google
|
|
2515
4358
|
##
|
2516
4359
|
# @private
|
2517
4360
|
#
|
2518
|
-
# GRPC transcoding helper method for the
|
4361
|
+
# GRPC transcoding helper method for the update_feedback_label REST call
|
2519
4362
|
#
|
2520
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4363
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest]
|
2521
4364
|
# A request object representing the call parameters. Required.
|
2522
4365
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2523
4366
|
# Uri, Body, Query string parameters
|
2524
|
-
def self.
|
4367
|
+
def self.transcode_update_feedback_label_request request_pb
|
2525
4368
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2526
4369
|
.with_bindings(
|
2527
|
-
uri_method: :
|
2528
|
-
uri_template: "/v1/{
|
2529
|
-
body: "
|
4370
|
+
uri_method: :patch,
|
4371
|
+
uri_template: "/v1/{feedback_label.name}",
|
4372
|
+
body: "feedback_label",
|
2530
4373
|
matches: [
|
2531
|
-
["
|
4374
|
+
["feedback_label.name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+/?$}, false]
|
2532
4375
|
]
|
2533
4376
|
)
|
2534
4377
|
transcoder.transcode request_pb
|
@@ -2537,19 +4380,19 @@ module Google
|
|
2537
4380
|
##
|
2538
4381
|
# @private
|
2539
4382
|
#
|
2540
|
-
# GRPC transcoding helper method for the
|
4383
|
+
# GRPC transcoding helper method for the delete_feedback_label REST call
|
2541
4384
|
#
|
2542
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4385
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest]
|
2543
4386
|
# A request object representing the call parameters. Required.
|
2544
4387
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2545
4388
|
# Uri, Body, Query string parameters
|
2546
|
-
def self.
|
4389
|
+
def self.transcode_delete_feedback_label_request request_pb
|
2547
4390
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2548
4391
|
.with_bindings(
|
2549
|
-
uri_method: :
|
4392
|
+
uri_method: :delete,
|
2550
4393
|
uri_template: "/v1/{name}",
|
2551
4394
|
matches: [
|
2552
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
4395
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+/?$}, false]
|
2553
4396
|
]
|
2554
4397
|
)
|
2555
4398
|
transcoder.transcode request_pb
|
@@ -2558,17 +4401,17 @@ module Google
|
|
2558
4401
|
##
|
2559
4402
|
# @private
|
2560
4403
|
#
|
2561
|
-
# GRPC transcoding helper method for the
|
4404
|
+
# GRPC transcoding helper method for the list_all_feedback_labels REST call
|
2562
4405
|
#
|
2563
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4406
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest]
|
2564
4407
|
# A request object representing the call parameters. Required.
|
2565
4408
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2566
4409
|
# Uri, Body, Query string parameters
|
2567
|
-
def self.
|
4410
|
+
def self.transcode_list_all_feedback_labels_request request_pb
|
2568
4411
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2569
4412
|
.with_bindings(
|
2570
4413
|
uri_method: :get,
|
2571
|
-
uri_template: "/v1/{parent}
|
4414
|
+
uri_template: "/v1/{parent}:listAllFeedbackLabels",
|
2572
4415
|
matches: [
|
2573
4416
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2574
4417
|
]
|
@@ -2579,20 +4422,20 @@ module Google
|
|
2579
4422
|
##
|
2580
4423
|
# @private
|
2581
4424
|
#
|
2582
|
-
# GRPC transcoding helper method for the
|
4425
|
+
# GRPC transcoding helper method for the bulk_upload_feedback_labels REST call
|
2583
4426
|
#
|
2584
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4427
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest]
|
2585
4428
|
# A request object representing the call parameters. Required.
|
2586
4429
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2587
4430
|
# Uri, Body, Query string parameters
|
2588
|
-
def self.
|
4431
|
+
def self.transcode_bulk_upload_feedback_labels_request request_pb
|
2589
4432
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2590
4433
|
.with_bindings(
|
2591
|
-
uri_method: :
|
2592
|
-
uri_template: "/v1/{
|
2593
|
-
body: "
|
4434
|
+
uri_method: :post,
|
4435
|
+
uri_template: "/v1/{parent}:bulkUploadFeedbackLabels",
|
4436
|
+
body: "*",
|
2594
4437
|
matches: [
|
2595
|
-
["
|
4438
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2596
4439
|
]
|
2597
4440
|
)
|
2598
4441
|
transcoder.transcode request_pb
|
@@ -2601,19 +4444,20 @@ module Google
|
|
2601
4444
|
##
|
2602
4445
|
# @private
|
2603
4446
|
#
|
2604
|
-
# GRPC transcoding helper method for the
|
4447
|
+
# GRPC transcoding helper method for the bulk_download_feedback_labels REST call
|
2605
4448
|
#
|
2606
|
-
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::
|
4449
|
+
# @param request_pb [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest]
|
2607
4450
|
# A request object representing the call parameters. Required.
|
2608
4451
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2609
4452
|
# Uri, Body, Query string parameters
|
2610
|
-
def self.
|
4453
|
+
def self.transcode_bulk_download_feedback_labels_request request_pb
|
2611
4454
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2612
4455
|
.with_bindings(
|
2613
|
-
uri_method: :
|
2614
|
-
uri_template: "/v1/{
|
4456
|
+
uri_method: :post,
|
4457
|
+
uri_template: "/v1/{parent}:bulkDownloadFeedbackLabels",
|
4458
|
+
body: "*",
|
2615
4459
|
matches: [
|
2616
|
-
["
|
4460
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2617
4461
|
]
|
2618
4462
|
)
|
2619
4463
|
transcoder.transcode request_pb
|