google-cloud-dlp-v2 0.21.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +1755 -208
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +148 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +1632 -176
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +1368 -543
- data/lib/google/cloud/dlp/v2/dlp_service/rest.rb +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service.rb +1 -1
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +40 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +127 -50
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +891 -65
- data/proto_docs/google/privacy/dlp/v2/storage.rb +46 -18
- metadata +4 -4
@@ -1467,6 +1467,272 @@ module Google
|
|
1467
1467
|
result
|
1468
1468
|
end
|
1469
1469
|
|
1470
|
+
##
|
1471
|
+
# Baseline implementation for the list_project_data_profiles REST call
|
1472
|
+
#
|
1473
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest]
|
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::Dlp::V2::ListProjectDataProfilesResponse]
|
1480
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1481
|
+
#
|
1482
|
+
# @return [::Google::Cloud::Dlp::V2::ListProjectDataProfilesResponse]
|
1483
|
+
# A result object deserialized from the server's reply
|
1484
|
+
def list_project_data_profiles 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_list_project_data_profiles_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::Dlp::V2::ListProjectDataProfilesResponse.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_table_data_profiles REST call
|
1510
|
+
#
|
1511
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest]
|
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::Dlp::V2::ListTableDataProfilesResponse]
|
1518
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1519
|
+
#
|
1520
|
+
# @return [::Google::Cloud::Dlp::V2::ListTableDataProfilesResponse]
|
1521
|
+
# A result object deserialized from the server's reply
|
1522
|
+
def list_table_data_profiles 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_table_data_profiles_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::Dlp::V2::ListTableDataProfilesResponse.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 list_column_data_profiles REST call
|
1548
|
+
#
|
1549
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest]
|
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::Dlp::V2::ListColumnDataProfilesResponse]
|
1556
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1557
|
+
#
|
1558
|
+
# @return [::Google::Cloud::Dlp::V2::ListColumnDataProfilesResponse]
|
1559
|
+
# A result object deserialized from the server's reply
|
1560
|
+
def list_column_data_profiles 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_list_column_data_profiles_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::Dlp::V2::ListColumnDataProfilesResponse.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 get_project_data_profile REST call
|
1586
|
+
#
|
1587
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest]
|
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::Cloud::Dlp::V2::ProjectDataProfile]
|
1594
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1595
|
+
#
|
1596
|
+
# @return [::Google::Cloud::Dlp::V2::ProjectDataProfile]
|
1597
|
+
# A result object deserialized from the server's reply
|
1598
|
+
def get_project_data_profile 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_get_project_data_profile_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::Cloud::Dlp::V2::ProjectDataProfile.decode_json response.body, ignore_unknown_fields: true
|
1617
|
+
|
1618
|
+
yield result, operation if block_given?
|
1619
|
+
result
|
1620
|
+
end
|
1621
|
+
|
1622
|
+
##
|
1623
|
+
# Baseline implementation for the get_table_data_profile REST call
|
1624
|
+
#
|
1625
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetTableDataProfileRequest]
|
1626
|
+
# A request object representing the call parameters. Required.
|
1627
|
+
# @param options [::Gapic::CallOptions]
|
1628
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1629
|
+
#
|
1630
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1631
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::TableDataProfile]
|
1632
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1633
|
+
#
|
1634
|
+
# @return [::Google::Cloud::Dlp::V2::TableDataProfile]
|
1635
|
+
# A result object deserialized from the server's reply
|
1636
|
+
def get_table_data_profile request_pb, options = nil
|
1637
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1638
|
+
|
1639
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_table_data_profile_request request_pb
|
1640
|
+
query_string_params = if query_string_params.any?
|
1641
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1642
|
+
else
|
1643
|
+
{}
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
response = @client_stub.make_http_request(
|
1647
|
+
verb,
|
1648
|
+
uri: uri,
|
1649
|
+
body: body || "",
|
1650
|
+
params: query_string_params,
|
1651
|
+
options: options
|
1652
|
+
)
|
1653
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1654
|
+
result = ::Google::Cloud::Dlp::V2::TableDataProfile.decode_json response.body, ignore_unknown_fields: true
|
1655
|
+
|
1656
|
+
yield result, operation if block_given?
|
1657
|
+
result
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
##
|
1661
|
+
# Baseline implementation for the get_column_data_profile REST call
|
1662
|
+
#
|
1663
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest]
|
1664
|
+
# A request object representing the call parameters. Required.
|
1665
|
+
# @param options [::Gapic::CallOptions]
|
1666
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1667
|
+
#
|
1668
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1669
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::ColumnDataProfile]
|
1670
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1671
|
+
#
|
1672
|
+
# @return [::Google::Cloud::Dlp::V2::ColumnDataProfile]
|
1673
|
+
# A result object deserialized from the server's reply
|
1674
|
+
def get_column_data_profile request_pb, options = nil
|
1675
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1676
|
+
|
1677
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_column_data_profile_request request_pb
|
1678
|
+
query_string_params = if query_string_params.any?
|
1679
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1680
|
+
else
|
1681
|
+
{}
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
response = @client_stub.make_http_request(
|
1685
|
+
verb,
|
1686
|
+
uri: uri,
|
1687
|
+
body: body || "",
|
1688
|
+
params: query_string_params,
|
1689
|
+
options: options
|
1690
|
+
)
|
1691
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1692
|
+
result = ::Google::Cloud::Dlp::V2::ColumnDataProfile.decode_json response.body, ignore_unknown_fields: true
|
1693
|
+
|
1694
|
+
yield result, operation if block_given?
|
1695
|
+
result
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
##
|
1699
|
+
# Baseline implementation for the delete_table_data_profile REST call
|
1700
|
+
#
|
1701
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest]
|
1702
|
+
# A request object representing the call parameters. Required.
|
1703
|
+
# @param options [::Gapic::CallOptions]
|
1704
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1705
|
+
#
|
1706
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1707
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1708
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1709
|
+
#
|
1710
|
+
# @return [::Google::Protobuf::Empty]
|
1711
|
+
# A result object deserialized from the server's reply
|
1712
|
+
def delete_table_data_profile request_pb, options = nil
|
1713
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1714
|
+
|
1715
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_table_data_profile_request request_pb
|
1716
|
+
query_string_params = if query_string_params.any?
|
1717
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1718
|
+
else
|
1719
|
+
{}
|
1720
|
+
end
|
1721
|
+
|
1722
|
+
response = @client_stub.make_http_request(
|
1723
|
+
verb,
|
1724
|
+
uri: uri,
|
1725
|
+
body: body || "",
|
1726
|
+
params: query_string_params,
|
1727
|
+
options: options
|
1728
|
+
)
|
1729
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1730
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1731
|
+
|
1732
|
+
yield result, operation if block_given?
|
1733
|
+
result
|
1734
|
+
end
|
1735
|
+
|
1470
1736
|
##
|
1471
1737
|
# Baseline implementation for the hybrid_inspect_dlp_job REST call
|
1472
1738
|
#
|
@@ -1506,57 +1772,665 @@ module Google
|
|
1506
1772
|
end
|
1507
1773
|
|
1508
1774
|
##
|
1509
|
-
# Baseline implementation for the finish_dlp_job REST call
|
1510
|
-
#
|
1511
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::FinishDlpJobRequest]
|
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.
|
1775
|
+
# Baseline implementation for the finish_dlp_job REST call
|
1776
|
+
#
|
1777
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::FinishDlpJobRequest]
|
1778
|
+
# A request object representing the call parameters. Required.
|
1779
|
+
# @param options [::Gapic::CallOptions]
|
1780
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1781
|
+
#
|
1782
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1783
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1784
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1785
|
+
#
|
1786
|
+
# @return [::Google::Protobuf::Empty]
|
1787
|
+
# A result object deserialized from the server's reply
|
1788
|
+
def finish_dlp_job request_pb, options = nil
|
1789
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1790
|
+
|
1791
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_finish_dlp_job_request request_pb
|
1792
|
+
query_string_params = if query_string_params.any?
|
1793
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1794
|
+
else
|
1795
|
+
{}
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
response = @client_stub.make_http_request(
|
1799
|
+
verb,
|
1800
|
+
uri: uri,
|
1801
|
+
body: body || "",
|
1802
|
+
params: query_string_params,
|
1803
|
+
options: options
|
1804
|
+
)
|
1805
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1806
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1807
|
+
|
1808
|
+
yield result, operation if block_given?
|
1809
|
+
result
|
1810
|
+
end
|
1811
|
+
|
1812
|
+
##
|
1813
|
+
# Baseline implementation for the create_connection REST call
|
1814
|
+
#
|
1815
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CreateConnectionRequest]
|
1816
|
+
# A request object representing the call parameters. Required.
|
1817
|
+
# @param options [::Gapic::CallOptions]
|
1818
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1819
|
+
#
|
1820
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1821
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
1822
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1823
|
+
#
|
1824
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
1825
|
+
# A result object deserialized from the server's reply
|
1826
|
+
def create_connection request_pb, options = nil
|
1827
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1828
|
+
|
1829
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_connection_request request_pb
|
1830
|
+
query_string_params = if query_string_params.any?
|
1831
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1832
|
+
else
|
1833
|
+
{}
|
1834
|
+
end
|
1835
|
+
|
1836
|
+
response = @client_stub.make_http_request(
|
1837
|
+
verb,
|
1838
|
+
uri: uri,
|
1839
|
+
body: body || "",
|
1840
|
+
params: query_string_params,
|
1841
|
+
options: options
|
1842
|
+
)
|
1843
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1844
|
+
result = ::Google::Cloud::Dlp::V2::Connection.decode_json response.body, ignore_unknown_fields: true
|
1845
|
+
|
1846
|
+
yield result, operation if block_given?
|
1847
|
+
result
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
##
|
1851
|
+
# Baseline implementation for the get_connection REST call
|
1852
|
+
#
|
1853
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetConnectionRequest]
|
1854
|
+
# A request object representing the call parameters. Required.
|
1855
|
+
# @param options [::Gapic::CallOptions]
|
1856
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1857
|
+
#
|
1858
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1859
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
1860
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1861
|
+
#
|
1862
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
1863
|
+
# A result object deserialized from the server's reply
|
1864
|
+
def get_connection request_pb, options = nil
|
1865
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1866
|
+
|
1867
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_connection_request request_pb
|
1868
|
+
query_string_params = if query_string_params.any?
|
1869
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1870
|
+
else
|
1871
|
+
{}
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
response = @client_stub.make_http_request(
|
1875
|
+
verb,
|
1876
|
+
uri: uri,
|
1877
|
+
body: body || "",
|
1878
|
+
params: query_string_params,
|
1879
|
+
options: options
|
1880
|
+
)
|
1881
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1882
|
+
result = ::Google::Cloud::Dlp::V2::Connection.decode_json response.body, ignore_unknown_fields: true
|
1883
|
+
|
1884
|
+
yield result, operation if block_given?
|
1885
|
+
result
|
1886
|
+
end
|
1887
|
+
|
1888
|
+
##
|
1889
|
+
# Baseline implementation for the list_connections REST call
|
1890
|
+
#
|
1891
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListConnectionsRequest]
|
1892
|
+
# A request object representing the call parameters. Required.
|
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::Cloud::Dlp::V2::ListConnectionsResponse]
|
1898
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1899
|
+
#
|
1900
|
+
# @return [::Google::Cloud::Dlp::V2::ListConnectionsResponse]
|
1901
|
+
# A result object deserialized from the server's reply
|
1902
|
+
def list_connections 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_list_connections_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::Cloud::Dlp::V2::ListConnectionsResponse.decode_json response.body, ignore_unknown_fields: true
|
1921
|
+
|
1922
|
+
yield result, operation if block_given?
|
1923
|
+
result
|
1924
|
+
end
|
1925
|
+
|
1926
|
+
##
|
1927
|
+
# Baseline implementation for the search_connections REST call
|
1928
|
+
#
|
1929
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::SearchConnectionsRequest]
|
1930
|
+
# A request object representing the call parameters. Required.
|
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::Dlp::V2::SearchConnectionsResponse]
|
1936
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1937
|
+
#
|
1938
|
+
# @return [::Google::Cloud::Dlp::V2::SearchConnectionsResponse]
|
1939
|
+
# A result object deserialized from the server's reply
|
1940
|
+
def search_connections 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_search_connections_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::Dlp::V2::SearchConnectionsResponse.decode_json response.body, ignore_unknown_fields: true
|
1959
|
+
|
1960
|
+
yield result, operation if block_given?
|
1961
|
+
result
|
1962
|
+
end
|
1963
|
+
|
1964
|
+
##
|
1965
|
+
# Baseline implementation for the delete_connection REST call
|
1966
|
+
#
|
1967
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteConnectionRequest]
|
1968
|
+
# A request object representing the call parameters. Required.
|
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::Protobuf::Empty]
|
1974
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1975
|
+
#
|
1976
|
+
# @return [::Google::Protobuf::Empty]
|
1977
|
+
# A result object deserialized from the server's reply
|
1978
|
+
def delete_connection 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_delete_connection_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::Protobuf::Empty.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_connection REST call
|
2004
|
+
#
|
2005
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::UpdateConnectionRequest]
|
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::Dlp::V2::Connection]
|
2012
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2013
|
+
#
|
2014
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
2015
|
+
# A result object deserialized from the server's reply
|
2016
|
+
def update_connection 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_connection_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::Dlp::V2::Connection.decode_json response.body, ignore_unknown_fields: true
|
2035
|
+
|
2036
|
+
yield result, operation if block_given?
|
2037
|
+
result
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
##
|
2041
|
+
# @private
|
2042
|
+
#
|
2043
|
+
# GRPC transcoding helper method for the inspect_content REST call
|
2044
|
+
#
|
2045
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::InspectContentRequest]
|
2046
|
+
# A request object representing the call parameters. Required.
|
2047
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2048
|
+
# Uri, Body, Query string parameters
|
2049
|
+
def self.transcode_inspect_content_request request_pb
|
2050
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2051
|
+
.with_bindings(
|
2052
|
+
uri_method: :post,
|
2053
|
+
uri_template: "/v2/{parent}/content:inspect",
|
2054
|
+
body: "*",
|
2055
|
+
matches: [
|
2056
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2057
|
+
]
|
2058
|
+
)
|
2059
|
+
.with_bindings(
|
2060
|
+
uri_method: :post,
|
2061
|
+
uri_template: "/v2/{parent}/content:inspect",
|
2062
|
+
body: "*",
|
2063
|
+
matches: [
|
2064
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2065
|
+
]
|
2066
|
+
)
|
2067
|
+
transcoder.transcode request_pb
|
2068
|
+
end
|
2069
|
+
|
2070
|
+
##
|
2071
|
+
# @private
|
2072
|
+
#
|
2073
|
+
# GRPC transcoding helper method for the redact_image REST call
|
2074
|
+
#
|
2075
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::RedactImageRequest]
|
2076
|
+
# A request object representing the call parameters. Required.
|
2077
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2078
|
+
# Uri, Body, Query string parameters
|
2079
|
+
def self.transcode_redact_image_request request_pb
|
2080
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2081
|
+
.with_bindings(
|
2082
|
+
uri_method: :post,
|
2083
|
+
uri_template: "/v2/{parent}/image:redact",
|
2084
|
+
body: "*",
|
2085
|
+
matches: [
|
2086
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2087
|
+
]
|
2088
|
+
)
|
2089
|
+
.with_bindings(
|
2090
|
+
uri_method: :post,
|
2091
|
+
uri_template: "/v2/{parent}/image:redact",
|
2092
|
+
body: "*",
|
2093
|
+
matches: [
|
2094
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2095
|
+
]
|
2096
|
+
)
|
2097
|
+
transcoder.transcode request_pb
|
2098
|
+
end
|
2099
|
+
|
2100
|
+
##
|
2101
|
+
# @private
|
2102
|
+
#
|
2103
|
+
# GRPC transcoding helper method for the deidentify_content REST call
|
2104
|
+
#
|
2105
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeidentifyContentRequest]
|
2106
|
+
# A request object representing the call parameters. Required.
|
2107
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2108
|
+
# Uri, Body, Query string parameters
|
2109
|
+
def self.transcode_deidentify_content_request request_pb
|
2110
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2111
|
+
.with_bindings(
|
2112
|
+
uri_method: :post,
|
2113
|
+
uri_template: "/v2/{parent}/content:deidentify",
|
2114
|
+
body: "*",
|
2115
|
+
matches: [
|
2116
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2117
|
+
]
|
2118
|
+
)
|
2119
|
+
.with_bindings(
|
2120
|
+
uri_method: :post,
|
2121
|
+
uri_template: "/v2/{parent}/content:deidentify",
|
2122
|
+
body: "*",
|
2123
|
+
matches: [
|
2124
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2125
|
+
]
|
2126
|
+
)
|
2127
|
+
transcoder.transcode request_pb
|
2128
|
+
end
|
2129
|
+
|
2130
|
+
##
|
2131
|
+
# @private
|
2132
|
+
#
|
2133
|
+
# GRPC transcoding helper method for the reidentify_content REST call
|
2134
|
+
#
|
2135
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ReidentifyContentRequest]
|
2136
|
+
# A request object representing the call parameters. Required.
|
2137
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2138
|
+
# Uri, Body, Query string parameters
|
2139
|
+
def self.transcode_reidentify_content_request request_pb
|
2140
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2141
|
+
.with_bindings(
|
2142
|
+
uri_method: :post,
|
2143
|
+
uri_template: "/v2/{parent}/content:reidentify",
|
2144
|
+
body: "*",
|
2145
|
+
matches: [
|
2146
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2147
|
+
]
|
2148
|
+
)
|
2149
|
+
.with_bindings(
|
2150
|
+
uri_method: :post,
|
2151
|
+
uri_template: "/v2/{parent}/content:reidentify",
|
2152
|
+
body: "*",
|
2153
|
+
matches: [
|
2154
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2155
|
+
]
|
2156
|
+
)
|
2157
|
+
transcoder.transcode request_pb
|
2158
|
+
end
|
2159
|
+
|
2160
|
+
##
|
2161
|
+
# @private
|
2162
|
+
#
|
2163
|
+
# GRPC transcoding helper method for the list_info_types REST call
|
2164
|
+
#
|
2165
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListInfoTypesRequest]
|
2166
|
+
# A request object representing the call parameters. Required.
|
2167
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2168
|
+
# Uri, Body, Query string parameters
|
2169
|
+
def self.transcode_list_info_types_request request_pb
|
2170
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2171
|
+
.with_bindings(
|
2172
|
+
uri_method: :get,
|
2173
|
+
uri_template: "/v2/infoTypes",
|
2174
|
+
matches: []
|
2175
|
+
)
|
2176
|
+
.with_bindings(
|
2177
|
+
uri_method: :get,
|
2178
|
+
uri_template: "/v2/{parent}/infoTypes",
|
2179
|
+
matches: [
|
2180
|
+
["parent", %r{^locations/[^/]+/?$}, false]
|
2181
|
+
]
|
2182
|
+
)
|
2183
|
+
transcoder.transcode request_pb
|
2184
|
+
end
|
2185
|
+
|
2186
|
+
##
|
2187
|
+
# @private
|
2188
|
+
#
|
2189
|
+
# GRPC transcoding helper method for the create_inspect_template REST call
|
2190
|
+
#
|
2191
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CreateInspectTemplateRequest]
|
2192
|
+
# A request object representing the call parameters. Required.
|
2193
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2194
|
+
# Uri, Body, Query string parameters
|
2195
|
+
def self.transcode_create_inspect_template_request request_pb
|
2196
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2197
|
+
.with_bindings(
|
2198
|
+
uri_method: :post,
|
2199
|
+
uri_template: "/v2/{parent}/inspectTemplates",
|
2200
|
+
body: "*",
|
2201
|
+
matches: [
|
2202
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
2203
|
+
]
|
2204
|
+
)
|
2205
|
+
.with_bindings(
|
2206
|
+
uri_method: :post,
|
2207
|
+
uri_template: "/v2/{parent}/inspectTemplates",
|
2208
|
+
body: "*",
|
2209
|
+
matches: [
|
2210
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2211
|
+
]
|
2212
|
+
)
|
2213
|
+
.with_bindings(
|
2214
|
+
uri_method: :post,
|
2215
|
+
uri_template: "/v2/{parent}/inspectTemplates",
|
2216
|
+
body: "*",
|
2217
|
+
matches: [
|
2218
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2219
|
+
]
|
2220
|
+
)
|
2221
|
+
.with_bindings(
|
2222
|
+
uri_method: :post,
|
2223
|
+
uri_template: "/v2/{parent}/inspectTemplates",
|
2224
|
+
body: "*",
|
2225
|
+
matches: [
|
2226
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2227
|
+
]
|
2228
|
+
)
|
2229
|
+
transcoder.transcode request_pb
|
2230
|
+
end
|
2231
|
+
|
2232
|
+
##
|
2233
|
+
# @private
|
2234
|
+
#
|
2235
|
+
# GRPC transcoding helper method for the update_inspect_template REST call
|
2236
|
+
#
|
2237
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest]
|
2238
|
+
# A request object representing the call parameters. Required.
|
2239
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2240
|
+
# Uri, Body, Query string parameters
|
2241
|
+
def self.transcode_update_inspect_template_request request_pb
|
2242
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2243
|
+
.with_bindings(
|
2244
|
+
uri_method: :patch,
|
2245
|
+
uri_template: "/v2/{name}",
|
2246
|
+
body: "*",
|
2247
|
+
matches: [
|
2248
|
+
["name", %r{^organizations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2249
|
+
]
|
2250
|
+
)
|
2251
|
+
.with_bindings(
|
2252
|
+
uri_method: :patch,
|
2253
|
+
uri_template: "/v2/{name}",
|
2254
|
+
body: "*",
|
2255
|
+
matches: [
|
2256
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2257
|
+
]
|
2258
|
+
)
|
2259
|
+
.with_bindings(
|
2260
|
+
uri_method: :patch,
|
2261
|
+
uri_template: "/v2/{name}",
|
2262
|
+
body: "*",
|
2263
|
+
matches: [
|
2264
|
+
["name", %r{^projects/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2265
|
+
]
|
2266
|
+
)
|
2267
|
+
.with_bindings(
|
2268
|
+
uri_method: :patch,
|
2269
|
+
uri_template: "/v2/{name}",
|
2270
|
+
body: "*",
|
2271
|
+
matches: [
|
2272
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2273
|
+
]
|
2274
|
+
)
|
2275
|
+
transcoder.transcode request_pb
|
2276
|
+
end
|
2277
|
+
|
2278
|
+
##
|
2279
|
+
# @private
|
2280
|
+
#
|
2281
|
+
# GRPC transcoding helper method for the get_inspect_template REST call
|
2282
|
+
#
|
2283
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetInspectTemplateRequest]
|
2284
|
+
# A request object representing the call parameters. Required.
|
2285
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2286
|
+
# Uri, Body, Query string parameters
|
2287
|
+
def self.transcode_get_inspect_template_request request_pb
|
2288
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2289
|
+
.with_bindings(
|
2290
|
+
uri_method: :get,
|
2291
|
+
uri_template: "/v2/{name}",
|
2292
|
+
matches: [
|
2293
|
+
["name", %r{^organizations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2294
|
+
]
|
2295
|
+
)
|
2296
|
+
.with_bindings(
|
2297
|
+
uri_method: :get,
|
2298
|
+
uri_template: "/v2/{name}",
|
2299
|
+
matches: [
|
2300
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2301
|
+
]
|
2302
|
+
)
|
2303
|
+
.with_bindings(
|
2304
|
+
uri_method: :get,
|
2305
|
+
uri_template: "/v2/{name}",
|
2306
|
+
matches: [
|
2307
|
+
["name", %r{^projects/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2308
|
+
]
|
2309
|
+
)
|
2310
|
+
.with_bindings(
|
2311
|
+
uri_method: :get,
|
2312
|
+
uri_template: "/v2/{name}",
|
2313
|
+
matches: [
|
2314
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2315
|
+
]
|
2316
|
+
)
|
2317
|
+
transcoder.transcode request_pb
|
2318
|
+
end
|
2319
|
+
|
2320
|
+
##
|
2321
|
+
# @private
|
2322
|
+
#
|
2323
|
+
# GRPC transcoding helper method for the list_inspect_templates REST call
|
2324
|
+
#
|
2325
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListInspectTemplatesRequest]
|
2326
|
+
# A request object representing the call parameters. Required.
|
2327
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2328
|
+
# Uri, Body, Query string parameters
|
2329
|
+
def self.transcode_list_inspect_templates_request request_pb
|
2330
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2331
|
+
.with_bindings(
|
2332
|
+
uri_method: :get,
|
2333
|
+
uri_template: "/v2/{parent}/inspectTemplates",
|
2334
|
+
matches: [
|
2335
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
2336
|
+
]
|
2337
|
+
)
|
2338
|
+
.with_bindings(
|
2339
|
+
uri_method: :get,
|
2340
|
+
uri_template: "/v2/{parent}/inspectTemplates",
|
2341
|
+
matches: [
|
2342
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2343
|
+
]
|
2344
|
+
)
|
2345
|
+
.with_bindings(
|
2346
|
+
uri_method: :get,
|
2347
|
+
uri_template: "/v2/{parent}/inspectTemplates",
|
2348
|
+
matches: [
|
2349
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2350
|
+
]
|
2351
|
+
)
|
2352
|
+
.with_bindings(
|
2353
|
+
uri_method: :get,
|
2354
|
+
uri_template: "/v2/{parent}/inspectTemplates",
|
2355
|
+
matches: [
|
2356
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2357
|
+
]
|
2358
|
+
)
|
2359
|
+
transcoder.transcode request_pb
|
2360
|
+
end
|
2361
|
+
|
2362
|
+
##
|
2363
|
+
# @private
|
1515
2364
|
#
|
1516
|
-
#
|
1517
|
-
# @yieldparam result [::Google::Protobuf::Empty]
|
1518
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2365
|
+
# GRPC transcoding helper method for the delete_inspect_template REST call
|
1519
2366
|
#
|
1520
|
-
# @
|
1521
|
-
# A
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
2367
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest]
|
2368
|
+
# A request object representing the call parameters. Required.
|
2369
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2370
|
+
# Uri, Body, Query string parameters
|
2371
|
+
def self.transcode_delete_inspect_template_request request_pb
|
2372
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2373
|
+
.with_bindings(
|
2374
|
+
uri_method: :delete,
|
2375
|
+
uri_template: "/v2/{name}",
|
2376
|
+
matches: [
|
2377
|
+
["name", %r{^organizations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2378
|
+
]
|
2379
|
+
)
|
2380
|
+
.with_bindings(
|
2381
|
+
uri_method: :delete,
|
2382
|
+
uri_template: "/v2/{name}",
|
2383
|
+
matches: [
|
2384
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2385
|
+
]
|
2386
|
+
)
|
2387
|
+
.with_bindings(
|
2388
|
+
uri_method: :delete,
|
2389
|
+
uri_template: "/v2/{name}",
|
2390
|
+
matches: [
|
2391
|
+
["name", %r{^projects/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2392
|
+
]
|
2393
|
+
)
|
2394
|
+
.with_bindings(
|
2395
|
+
uri_method: :delete,
|
2396
|
+
uri_template: "/v2/{name}",
|
2397
|
+
matches: [
|
2398
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2399
|
+
]
|
2400
|
+
)
|
2401
|
+
transcoder.transcode request_pb
|
1544
2402
|
end
|
1545
2403
|
|
1546
2404
|
##
|
1547
2405
|
# @private
|
1548
2406
|
#
|
1549
|
-
# GRPC transcoding helper method for the
|
2407
|
+
# GRPC transcoding helper method for the create_deidentify_template REST call
|
1550
2408
|
#
|
1551
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2409
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest]
|
1552
2410
|
# A request object representing the call parameters. Required.
|
1553
2411
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1554
2412
|
# Uri, Body, Query string parameters
|
1555
|
-
def self.
|
2413
|
+
def self.transcode_create_deidentify_template_request request_pb
|
1556
2414
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1557
2415
|
.with_bindings(
|
1558
2416
|
uri_method: :post,
|
1559
|
-
uri_template: "/v2/{parent}/
|
2417
|
+
uri_template: "/v2/{parent}/deidentifyTemplates",
|
2418
|
+
body: "*",
|
2419
|
+
matches: [
|
2420
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
2421
|
+
]
|
2422
|
+
)
|
2423
|
+
.with_bindings(
|
2424
|
+
uri_method: :post,
|
2425
|
+
uri_template: "/v2/{parent}/deidentifyTemplates",
|
2426
|
+
body: "*",
|
2427
|
+
matches: [
|
2428
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2429
|
+
]
|
2430
|
+
)
|
2431
|
+
.with_bindings(
|
2432
|
+
uri_method: :post,
|
2433
|
+
uri_template: "/v2/{parent}/deidentifyTemplates",
|
1560
2434
|
body: "*",
|
1561
2435
|
matches: [
|
1562
2436
|
["parent", %r{^projects/[^/]+/?$}, false]
|
@@ -1564,7 +2438,7 @@ module Google
|
|
1564
2438
|
)
|
1565
2439
|
.with_bindings(
|
1566
2440
|
uri_method: :post,
|
1567
|
-
uri_template: "/v2/{parent}/
|
2441
|
+
uri_template: "/v2/{parent}/deidentifyTemplates",
|
1568
2442
|
body: "*",
|
1569
2443
|
matches: [
|
1570
2444
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
@@ -1576,28 +2450,44 @@ module Google
|
|
1576
2450
|
##
|
1577
2451
|
# @private
|
1578
2452
|
#
|
1579
|
-
# GRPC transcoding helper method for the
|
2453
|
+
# GRPC transcoding helper method for the update_deidentify_template REST call
|
1580
2454
|
#
|
1581
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2455
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest]
|
1582
2456
|
# A request object representing the call parameters. Required.
|
1583
2457
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1584
2458
|
# Uri, Body, Query string parameters
|
1585
|
-
def self.
|
2459
|
+
def self.transcode_update_deidentify_template_request request_pb
|
1586
2460
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1587
2461
|
.with_bindings(
|
1588
|
-
uri_method: :
|
1589
|
-
uri_template: "/v2/{
|
2462
|
+
uri_method: :patch,
|
2463
|
+
uri_template: "/v2/{name}",
|
1590
2464
|
body: "*",
|
1591
2465
|
matches: [
|
1592
|
-
["
|
2466
|
+
["name", %r{^organizations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
1593
2467
|
]
|
1594
2468
|
)
|
1595
2469
|
.with_bindings(
|
1596
|
-
uri_method: :
|
1597
|
-
uri_template: "/v2/{
|
2470
|
+
uri_method: :patch,
|
2471
|
+
uri_template: "/v2/{name}",
|
1598
2472
|
body: "*",
|
1599
2473
|
matches: [
|
1600
|
-
["
|
2474
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
2475
|
+
]
|
2476
|
+
)
|
2477
|
+
.with_bindings(
|
2478
|
+
uri_method: :patch,
|
2479
|
+
uri_template: "/v2/{name}",
|
2480
|
+
body: "*",
|
2481
|
+
matches: [
|
2482
|
+
["name", %r{^projects/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
2483
|
+
]
|
2484
|
+
)
|
2485
|
+
.with_bindings(
|
2486
|
+
uri_method: :patch,
|
2487
|
+
uri_template: "/v2/{name}",
|
2488
|
+
body: "*",
|
2489
|
+
matches: [
|
2490
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
1601
2491
|
]
|
1602
2492
|
)
|
1603
2493
|
transcoder.transcode request_pb
|
@@ -1606,28 +2496,40 @@ module Google
|
|
1606
2496
|
##
|
1607
2497
|
# @private
|
1608
2498
|
#
|
1609
|
-
# GRPC transcoding helper method for the
|
2499
|
+
# GRPC transcoding helper method for the get_deidentify_template REST call
|
1610
2500
|
#
|
1611
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2501
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest]
|
1612
2502
|
# A request object representing the call parameters. Required.
|
1613
2503
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1614
2504
|
# Uri, Body, Query string parameters
|
1615
|
-
def self.
|
2505
|
+
def self.transcode_get_deidentify_template_request request_pb
|
1616
2506
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1617
2507
|
.with_bindings(
|
1618
|
-
uri_method: :
|
1619
|
-
uri_template: "/v2/{
|
1620
|
-
body: "*",
|
2508
|
+
uri_method: :get,
|
2509
|
+
uri_template: "/v2/{name}",
|
1621
2510
|
matches: [
|
1622
|
-
["
|
2511
|
+
["name", %r{^organizations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
1623
2512
|
]
|
1624
2513
|
)
|
1625
2514
|
.with_bindings(
|
1626
|
-
uri_method: :
|
1627
|
-
uri_template: "/v2/{
|
1628
|
-
body: "*",
|
2515
|
+
uri_method: :get,
|
2516
|
+
uri_template: "/v2/{name}",
|
1629
2517
|
matches: [
|
1630
|
-
["
|
2518
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
2519
|
+
]
|
2520
|
+
)
|
2521
|
+
.with_bindings(
|
2522
|
+
uri_method: :get,
|
2523
|
+
uri_template: "/v2/{name}",
|
2524
|
+
matches: [
|
2525
|
+
["name", %r{^projects/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
2526
|
+
]
|
2527
|
+
)
|
2528
|
+
.with_bindings(
|
2529
|
+
uri_method: :get,
|
2530
|
+
uri_template: "/v2/{name}",
|
2531
|
+
matches: [
|
2532
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
1631
2533
|
]
|
1632
2534
|
)
|
1633
2535
|
transcoder.transcode request_pb
|
@@ -1636,26 +2538,38 @@ module Google
|
|
1636
2538
|
##
|
1637
2539
|
# @private
|
1638
2540
|
#
|
1639
|
-
# GRPC transcoding helper method for the
|
2541
|
+
# GRPC transcoding helper method for the list_deidentify_templates REST call
|
1640
2542
|
#
|
1641
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2543
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest]
|
1642
2544
|
# A request object representing the call parameters. Required.
|
1643
2545
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1644
2546
|
# Uri, Body, Query string parameters
|
1645
|
-
def self.
|
2547
|
+
def self.transcode_list_deidentify_templates_request request_pb
|
1646
2548
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1647
2549
|
.with_bindings(
|
1648
|
-
uri_method: :
|
1649
|
-
uri_template: "/v2/{parent}/
|
1650
|
-
|
2550
|
+
uri_method: :get,
|
2551
|
+
uri_template: "/v2/{parent}/deidentifyTemplates",
|
2552
|
+
matches: [
|
2553
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
2554
|
+
]
|
2555
|
+
)
|
2556
|
+
.with_bindings(
|
2557
|
+
uri_method: :get,
|
2558
|
+
uri_template: "/v2/{parent}/deidentifyTemplates",
|
2559
|
+
matches: [
|
2560
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2561
|
+
]
|
2562
|
+
)
|
2563
|
+
.with_bindings(
|
2564
|
+
uri_method: :get,
|
2565
|
+
uri_template: "/v2/{parent}/deidentifyTemplates",
|
1651
2566
|
matches: [
|
1652
2567
|
["parent", %r{^projects/[^/]+/?$}, false]
|
1653
2568
|
]
|
1654
2569
|
)
|
1655
2570
|
.with_bindings(
|
1656
|
-
uri_method: :
|
1657
|
-
uri_template: "/v2/{parent}/
|
1658
|
-
body: "*",
|
2571
|
+
uri_method: :get,
|
2572
|
+
uri_template: "/v2/{parent}/deidentifyTemplates",
|
1659
2573
|
matches: [
|
1660
2574
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1661
2575
|
]
|
@@ -1666,24 +2580,40 @@ module Google
|
|
1666
2580
|
##
|
1667
2581
|
# @private
|
1668
2582
|
#
|
1669
|
-
# GRPC transcoding helper method for the
|
2583
|
+
# GRPC transcoding helper method for the delete_deidentify_template REST call
|
1670
2584
|
#
|
1671
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2585
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest]
|
1672
2586
|
# A request object representing the call parameters. Required.
|
1673
2587
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1674
2588
|
# Uri, Body, Query string parameters
|
1675
|
-
def self.
|
2589
|
+
def self.transcode_delete_deidentify_template_request request_pb
|
1676
2590
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1677
2591
|
.with_bindings(
|
1678
|
-
uri_method: :
|
1679
|
-
uri_template: "/v2/
|
1680
|
-
matches: [
|
2592
|
+
uri_method: :delete,
|
2593
|
+
uri_template: "/v2/{name}",
|
2594
|
+
matches: [
|
2595
|
+
["name", %r{^organizations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
2596
|
+
]
|
1681
2597
|
)
|
1682
2598
|
.with_bindings(
|
1683
|
-
uri_method: :
|
1684
|
-
uri_template: "/v2/{
|
2599
|
+
uri_method: :delete,
|
2600
|
+
uri_template: "/v2/{name}",
|
1685
2601
|
matches: [
|
1686
|
-
["
|
2602
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
2603
|
+
]
|
2604
|
+
)
|
2605
|
+
.with_bindings(
|
2606
|
+
uri_method: :delete,
|
2607
|
+
uri_template: "/v2/{name}",
|
2608
|
+
matches: [
|
2609
|
+
["name", %r{^projects/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
2610
|
+
]
|
2611
|
+
)
|
2612
|
+
.with_bindings(
|
2613
|
+
uri_method: :delete,
|
2614
|
+
uri_template: "/v2/{name}",
|
2615
|
+
matches: [
|
2616
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/deidentifyTemplates/[^/]+/?$}, false]
|
1687
2617
|
]
|
1688
2618
|
)
|
1689
2619
|
transcoder.transcode request_pb
|
@@ -1692,44 +2622,36 @@ module Google
|
|
1692
2622
|
##
|
1693
2623
|
# @private
|
1694
2624
|
#
|
1695
|
-
# GRPC transcoding helper method for the
|
2625
|
+
# GRPC transcoding helper method for the create_job_trigger REST call
|
1696
2626
|
#
|
1697
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2627
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CreateJobTriggerRequest]
|
1698
2628
|
# A request object representing the call parameters. Required.
|
1699
2629
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1700
2630
|
# Uri, Body, Query string parameters
|
1701
|
-
def self.
|
2631
|
+
def self.transcode_create_job_trigger_request request_pb
|
1702
2632
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1703
2633
|
.with_bindings(
|
1704
2634
|
uri_method: :post,
|
1705
|
-
uri_template: "/v2/{parent}/
|
1706
|
-
body: "*",
|
1707
|
-
matches: [
|
1708
|
-
["parent", %r{^organizations/[^/]+/?$}, false]
|
1709
|
-
]
|
1710
|
-
)
|
1711
|
-
.with_bindings(
|
1712
|
-
uri_method: :post,
|
1713
|
-
uri_template: "/v2/{parent}/inspectTemplates",
|
2635
|
+
uri_template: "/v2/{parent}/jobTriggers",
|
1714
2636
|
body: "*",
|
1715
2637
|
matches: [
|
1716
|
-
["parent", %r{^
|
2638
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
1717
2639
|
]
|
1718
2640
|
)
|
1719
2641
|
.with_bindings(
|
1720
2642
|
uri_method: :post,
|
1721
|
-
uri_template: "/v2/{parent}/
|
2643
|
+
uri_template: "/v2/{parent}/jobTriggers",
|
1722
2644
|
body: "*",
|
1723
2645
|
matches: [
|
1724
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
2646
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1725
2647
|
]
|
1726
2648
|
)
|
1727
2649
|
.with_bindings(
|
1728
2650
|
uri_method: :post,
|
1729
|
-
uri_template: "/v2/{parent}/
|
2651
|
+
uri_template: "/v2/{parent}/jobTriggers",
|
1730
2652
|
body: "*",
|
1731
2653
|
matches: [
|
1732
|
-
["parent", %r{^
|
2654
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
1733
2655
|
]
|
1734
2656
|
)
|
1735
2657
|
transcoder.transcode request_pb
|
@@ -1738,20 +2660,20 @@ module Google
|
|
1738
2660
|
##
|
1739
2661
|
# @private
|
1740
2662
|
#
|
1741
|
-
# GRPC transcoding helper method for the
|
2663
|
+
# GRPC transcoding helper method for the update_job_trigger REST call
|
1742
2664
|
#
|
1743
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2665
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::UpdateJobTriggerRequest]
|
1744
2666
|
# A request object representing the call parameters. Required.
|
1745
2667
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1746
2668
|
# Uri, Body, Query string parameters
|
1747
|
-
def self.
|
2669
|
+
def self.transcode_update_job_trigger_request request_pb
|
1748
2670
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1749
2671
|
.with_bindings(
|
1750
2672
|
uri_method: :patch,
|
1751
2673
|
uri_template: "/v2/{name}",
|
1752
2674
|
body: "*",
|
1753
2675
|
matches: [
|
1754
|
-
["name", %r{^
|
2676
|
+
["name", %r{^projects/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1755
2677
|
]
|
1756
2678
|
)
|
1757
2679
|
.with_bindings(
|
@@ -1759,7 +2681,7 @@ module Google
|
|
1759
2681
|
uri_template: "/v2/{name}",
|
1760
2682
|
body: "*",
|
1761
2683
|
matches: [
|
1762
|
-
["name", %r{^
|
2684
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1763
2685
|
]
|
1764
2686
|
)
|
1765
2687
|
.with_bindings(
|
@@ -1767,15 +2689,29 @@ module Google
|
|
1767
2689
|
uri_template: "/v2/{name}",
|
1768
2690
|
body: "*",
|
1769
2691
|
matches: [
|
1770
|
-
["name", %r{^
|
2692
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1771
2693
|
]
|
1772
2694
|
)
|
2695
|
+
transcoder.transcode request_pb
|
2696
|
+
end
|
2697
|
+
|
2698
|
+
##
|
2699
|
+
# @private
|
2700
|
+
#
|
2701
|
+
# GRPC transcoding helper method for the hybrid_inspect_job_trigger REST call
|
2702
|
+
#
|
2703
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest]
|
2704
|
+
# A request object representing the call parameters. Required.
|
2705
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2706
|
+
# Uri, Body, Query string parameters
|
2707
|
+
def self.transcode_hybrid_inspect_job_trigger_request request_pb
|
2708
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1773
2709
|
.with_bindings(
|
1774
|
-
uri_method: :
|
1775
|
-
uri_template: "/v2/{name}",
|
2710
|
+
uri_method: :post,
|
2711
|
+
uri_template: "/v2/{name}:hybridInspect",
|
1776
2712
|
body: "*",
|
1777
2713
|
matches: [
|
1778
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
2714
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1779
2715
|
]
|
1780
2716
|
)
|
1781
2717
|
transcoder.transcode request_pb
|
@@ -1784,40 +2720,33 @@ module Google
|
|
1784
2720
|
##
|
1785
2721
|
# @private
|
1786
2722
|
#
|
1787
|
-
# GRPC transcoding helper method for the
|
2723
|
+
# GRPC transcoding helper method for the get_job_trigger REST call
|
1788
2724
|
#
|
1789
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2725
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetJobTriggerRequest]
|
1790
2726
|
# A request object representing the call parameters. Required.
|
1791
2727
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1792
2728
|
# Uri, Body, Query string parameters
|
1793
|
-
def self.
|
2729
|
+
def self.transcode_get_job_trigger_request request_pb
|
1794
2730
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1795
2731
|
.with_bindings(
|
1796
2732
|
uri_method: :get,
|
1797
2733
|
uri_template: "/v2/{name}",
|
1798
2734
|
matches: [
|
1799
|
-
["name", %r{^
|
1800
|
-
]
|
1801
|
-
)
|
1802
|
-
.with_bindings(
|
1803
|
-
uri_method: :get,
|
1804
|
-
uri_template: "/v2/{name}",
|
1805
|
-
matches: [
|
1806
|
-
["name", %r{^organizations/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2735
|
+
["name", %r{^projects/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1807
2736
|
]
|
1808
2737
|
)
|
1809
2738
|
.with_bindings(
|
1810
2739
|
uri_method: :get,
|
1811
2740
|
uri_template: "/v2/{name}",
|
1812
2741
|
matches: [
|
1813
|
-
["name", %r{^projects/[^/]+/
|
2742
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1814
2743
|
]
|
1815
2744
|
)
|
1816
2745
|
.with_bindings(
|
1817
2746
|
uri_method: :get,
|
1818
2747
|
uri_template: "/v2/{name}",
|
1819
2748
|
matches: [
|
1820
|
-
["name", %r{^
|
2749
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1821
2750
|
]
|
1822
2751
|
)
|
1823
2752
|
transcoder.transcode request_pb
|
@@ -1826,40 +2755,33 @@ module Google
|
|
1826
2755
|
##
|
1827
2756
|
# @private
|
1828
2757
|
#
|
1829
|
-
# GRPC transcoding helper method for the
|
2758
|
+
# GRPC transcoding helper method for the list_job_triggers REST call
|
1830
2759
|
#
|
1831
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2760
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListJobTriggersRequest]
|
1832
2761
|
# A request object representing the call parameters. Required.
|
1833
2762
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1834
2763
|
# Uri, Body, Query string parameters
|
1835
|
-
def self.
|
2764
|
+
def self.transcode_list_job_triggers_request request_pb
|
1836
2765
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1837
2766
|
.with_bindings(
|
1838
2767
|
uri_method: :get,
|
1839
|
-
uri_template: "/v2/{parent}/
|
1840
|
-
matches: [
|
1841
|
-
["parent", %r{^organizations/[^/]+/?$}, false]
|
1842
|
-
]
|
1843
|
-
)
|
1844
|
-
.with_bindings(
|
1845
|
-
uri_method: :get,
|
1846
|
-
uri_template: "/v2/{parent}/inspectTemplates",
|
2768
|
+
uri_template: "/v2/{parent}/jobTriggers",
|
1847
2769
|
matches: [
|
1848
|
-
["parent", %r{^
|
2770
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
1849
2771
|
]
|
1850
2772
|
)
|
1851
2773
|
.with_bindings(
|
1852
2774
|
uri_method: :get,
|
1853
|
-
uri_template: "/v2/{parent}/
|
2775
|
+
uri_template: "/v2/{parent}/jobTriggers",
|
1854
2776
|
matches: [
|
1855
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
2777
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1856
2778
|
]
|
1857
2779
|
)
|
1858
2780
|
.with_bindings(
|
1859
2781
|
uri_method: :get,
|
1860
|
-
uri_template: "/v2/{parent}/
|
2782
|
+
uri_template: "/v2/{parent}/jobTriggers",
|
1861
2783
|
matches: [
|
1862
|
-
["parent", %r{^
|
2784
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
1863
2785
|
]
|
1864
2786
|
)
|
1865
2787
|
transcoder.transcode request_pb
|
@@ -1868,40 +2790,33 @@ module Google
|
|
1868
2790
|
##
|
1869
2791
|
# @private
|
1870
2792
|
#
|
1871
|
-
# GRPC transcoding helper method for the
|
2793
|
+
# GRPC transcoding helper method for the delete_job_trigger REST call
|
1872
2794
|
#
|
1873
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2795
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteJobTriggerRequest]
|
1874
2796
|
# A request object representing the call parameters. Required.
|
1875
2797
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1876
2798
|
# Uri, Body, Query string parameters
|
1877
|
-
def self.
|
2799
|
+
def self.transcode_delete_job_trigger_request request_pb
|
1878
2800
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1879
2801
|
.with_bindings(
|
1880
2802
|
uri_method: :delete,
|
1881
2803
|
uri_template: "/v2/{name}",
|
1882
2804
|
matches: [
|
1883
|
-
["name", %r{^
|
1884
|
-
]
|
1885
|
-
)
|
1886
|
-
.with_bindings(
|
1887
|
-
uri_method: :delete,
|
1888
|
-
uri_template: "/v2/{name}",
|
1889
|
-
matches: [
|
1890
|
-
["name", %r{^organizations/[^/]+/locations/[^/]+/inspectTemplates/[^/]+/?$}, false]
|
2805
|
+
["name", %r{^projects/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1891
2806
|
]
|
1892
2807
|
)
|
1893
2808
|
.with_bindings(
|
1894
2809
|
uri_method: :delete,
|
1895
2810
|
uri_template: "/v2/{name}",
|
1896
2811
|
matches: [
|
1897
|
-
["name", %r{^projects/[^/]+/
|
2812
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1898
2813
|
]
|
1899
2814
|
)
|
1900
2815
|
.with_bindings(
|
1901
2816
|
uri_method: :delete,
|
1902
2817
|
uri_template: "/v2/{name}",
|
1903
2818
|
matches: [
|
1904
|
-
["name", %r{^
|
2819
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1905
2820
|
]
|
1906
2821
|
)
|
1907
2822
|
transcoder.transcode request_pb
|
@@ -1910,44 +2825,58 @@ module Google
|
|
1910
2825
|
##
|
1911
2826
|
# @private
|
1912
2827
|
#
|
1913
|
-
# GRPC transcoding helper method for the
|
2828
|
+
# GRPC transcoding helper method for the activate_job_trigger REST call
|
1914
2829
|
#
|
1915
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2830
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ActivateJobTriggerRequest]
|
1916
2831
|
# A request object representing the call parameters. Required.
|
1917
2832
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1918
2833
|
# Uri, Body, Query string parameters
|
1919
|
-
def self.
|
2834
|
+
def self.transcode_activate_job_trigger_request request_pb
|
1920
2835
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1921
2836
|
.with_bindings(
|
1922
2837
|
uri_method: :post,
|
1923
|
-
uri_template: "/v2/{
|
2838
|
+
uri_template: "/v2/{name}:activate",
|
1924
2839
|
body: "*",
|
1925
2840
|
matches: [
|
1926
|
-
["
|
2841
|
+
["name", %r{^projects/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1927
2842
|
]
|
1928
2843
|
)
|
1929
2844
|
.with_bindings(
|
1930
2845
|
uri_method: :post,
|
1931
|
-
uri_template: "/v2/{
|
2846
|
+
uri_template: "/v2/{name}:activate",
|
1932
2847
|
body: "*",
|
1933
2848
|
matches: [
|
1934
|
-
["
|
2849
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/jobTriggers/[^/]+/?$}, false]
|
1935
2850
|
]
|
1936
2851
|
)
|
2852
|
+
transcoder.transcode request_pb
|
2853
|
+
end
|
2854
|
+
|
2855
|
+
##
|
2856
|
+
# @private
|
2857
|
+
#
|
2858
|
+
# GRPC transcoding helper method for the create_discovery_config REST call
|
2859
|
+
#
|
2860
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CreateDiscoveryConfigRequest]
|
2861
|
+
# A request object representing the call parameters. Required.
|
2862
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2863
|
+
# Uri, Body, Query string parameters
|
2864
|
+
def self.transcode_create_discovery_config_request request_pb
|
2865
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1937
2866
|
.with_bindings(
|
1938
2867
|
uri_method: :post,
|
1939
|
-
uri_template: "/v2/{parent}/
|
2868
|
+
uri_template: "/v2/{parent}/discoveryConfigs",
|
1940
2869
|
body: "*",
|
1941
2870
|
matches: [
|
1942
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
2871
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1943
2872
|
]
|
1944
2873
|
)
|
1945
2874
|
.with_bindings(
|
1946
2875
|
uri_method: :post,
|
1947
|
-
uri_template: "/v2/{parent}/
|
2876
|
+
uri_template: "/v2/{parent}/discoveryConfigs",
|
1948
2877
|
body: "*",
|
1949
2878
|
matches: [
|
1950
|
-
["parent", %r{^
|
2879
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
1951
2880
|
]
|
1952
2881
|
)
|
1953
2882
|
transcoder.transcode request_pb
|
@@ -1956,20 +2885,20 @@ module Google
|
|
1956
2885
|
##
|
1957
2886
|
# @private
|
1958
2887
|
#
|
1959
|
-
# GRPC transcoding helper method for the
|
2888
|
+
# GRPC transcoding helper method for the update_discovery_config REST call
|
1960
2889
|
#
|
1961
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2890
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::UpdateDiscoveryConfigRequest]
|
1962
2891
|
# A request object representing the call parameters. Required.
|
1963
2892
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1964
2893
|
# Uri, Body, Query string parameters
|
1965
|
-
def self.
|
2894
|
+
def self.transcode_update_discovery_config_request request_pb
|
1966
2895
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1967
2896
|
.with_bindings(
|
1968
2897
|
uri_method: :patch,
|
1969
2898
|
uri_template: "/v2/{name}",
|
1970
2899
|
body: "*",
|
1971
2900
|
matches: [
|
1972
|
-
["name", %r{^
|
2901
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+/?$}, false]
|
1973
2902
|
]
|
1974
2903
|
)
|
1975
2904
|
.with_bindings(
|
@@ -1977,23 +2906,35 @@ module Google
|
|
1977
2906
|
uri_template: "/v2/{name}",
|
1978
2907
|
body: "*",
|
1979
2908
|
matches: [
|
1980
|
-
["name", %r{^organizations/[^/]+/locations/[^/]+/
|
2909
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+/?$}, false]
|
1981
2910
|
]
|
1982
2911
|
)
|
2912
|
+
transcoder.transcode request_pb
|
2913
|
+
end
|
2914
|
+
|
2915
|
+
##
|
2916
|
+
# @private
|
2917
|
+
#
|
2918
|
+
# GRPC transcoding helper method for the get_discovery_config REST call
|
2919
|
+
#
|
2920
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetDiscoveryConfigRequest]
|
2921
|
+
# A request object representing the call parameters. Required.
|
2922
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2923
|
+
# Uri, Body, Query string parameters
|
2924
|
+
def self.transcode_get_discovery_config_request request_pb
|
2925
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1983
2926
|
.with_bindings(
|
1984
|
-
uri_method: :
|
2927
|
+
uri_method: :get,
|
1985
2928
|
uri_template: "/v2/{name}",
|
1986
|
-
body: "*",
|
1987
2929
|
matches: [
|
1988
|
-
["name", %r{^projects/[^/]+/
|
2930
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+/?$}, false]
|
1989
2931
|
]
|
1990
2932
|
)
|
1991
2933
|
.with_bindings(
|
1992
|
-
uri_method: :
|
2934
|
+
uri_method: :get,
|
1993
2935
|
uri_template: "/v2/{name}",
|
1994
|
-
body: "*",
|
1995
2936
|
matches: [
|
1996
|
-
["name", %r{^
|
2937
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+/?$}, false]
|
1997
2938
|
]
|
1998
2939
|
)
|
1999
2940
|
transcoder.transcode request_pb
|
@@ -2002,40 +2943,54 @@ module Google
|
|
2002
2943
|
##
|
2003
2944
|
# @private
|
2004
2945
|
#
|
2005
|
-
# GRPC transcoding helper method for the
|
2946
|
+
# GRPC transcoding helper method for the list_discovery_configs REST call
|
2006
2947
|
#
|
2007
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
2948
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListDiscoveryConfigsRequest]
|
2008
2949
|
# A request object representing the call parameters. Required.
|
2009
2950
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2010
2951
|
# Uri, Body, Query string parameters
|
2011
|
-
def self.
|
2952
|
+
def self.transcode_list_discovery_configs_request request_pb
|
2012
2953
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2013
2954
|
.with_bindings(
|
2014
2955
|
uri_method: :get,
|
2015
|
-
uri_template: "/v2/{
|
2956
|
+
uri_template: "/v2/{parent}/discoveryConfigs",
|
2016
2957
|
matches: [
|
2017
|
-
["
|
2958
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2018
2959
|
]
|
2019
2960
|
)
|
2020
2961
|
.with_bindings(
|
2021
2962
|
uri_method: :get,
|
2022
|
-
uri_template: "/v2/{
|
2963
|
+
uri_template: "/v2/{parent}/discoveryConfigs",
|
2023
2964
|
matches: [
|
2024
|
-
["
|
2965
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2025
2966
|
]
|
2026
2967
|
)
|
2968
|
+
transcoder.transcode request_pb
|
2969
|
+
end
|
2970
|
+
|
2971
|
+
##
|
2972
|
+
# @private
|
2973
|
+
#
|
2974
|
+
# GRPC transcoding helper method for the delete_discovery_config REST call
|
2975
|
+
#
|
2976
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteDiscoveryConfigRequest]
|
2977
|
+
# A request object representing the call parameters. Required.
|
2978
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2979
|
+
# Uri, Body, Query string parameters
|
2980
|
+
def self.transcode_delete_discovery_config_request request_pb
|
2981
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2027
2982
|
.with_bindings(
|
2028
|
-
uri_method: :
|
2983
|
+
uri_method: :delete,
|
2029
2984
|
uri_template: "/v2/{name}",
|
2030
2985
|
matches: [
|
2031
|
-
["name", %r{^projects/[^/]+/
|
2986
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+/?$}, false]
|
2032
2987
|
]
|
2033
2988
|
)
|
2034
2989
|
.with_bindings(
|
2035
|
-
uri_method: :
|
2990
|
+
uri_method: :delete,
|
2036
2991
|
uri_template: "/v2/{name}",
|
2037
2992
|
matches: [
|
2038
|
-
["name", %r{^
|
2993
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+/?$}, false]
|
2039
2994
|
]
|
2040
2995
|
)
|
2041
2996
|
transcoder.transcode request_pb
|
@@ -2044,40 +2999,63 @@ module Google
|
|
2044
2999
|
##
|
2045
3000
|
# @private
|
2046
3001
|
#
|
2047
|
-
# GRPC transcoding helper method for the
|
3002
|
+
# GRPC transcoding helper method for the create_dlp_job REST call
|
2048
3003
|
#
|
2049
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3004
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CreateDlpJobRequest]
|
2050
3005
|
# A request object representing the call parameters. Required.
|
2051
3006
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2052
3007
|
# Uri, Body, Query string parameters
|
2053
|
-
def self.
|
3008
|
+
def self.transcode_create_dlp_job_request request_pb
|
2054
3009
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2055
3010
|
.with_bindings(
|
2056
|
-
uri_method: :
|
2057
|
-
uri_template: "/v2/{parent}/
|
3011
|
+
uri_method: :post,
|
3012
|
+
uri_template: "/v2/{parent}/dlpJobs",
|
3013
|
+
body: "*",
|
2058
3014
|
matches: [
|
2059
|
-
["parent", %r{^
|
3015
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
3016
|
+
]
|
3017
|
+
)
|
3018
|
+
.with_bindings(
|
3019
|
+
uri_method: :post,
|
3020
|
+
uri_template: "/v2/{parent}/dlpJobs",
|
3021
|
+
body: "*",
|
3022
|
+
matches: [
|
3023
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2060
3024
|
]
|
2061
3025
|
)
|
3026
|
+
transcoder.transcode request_pb
|
3027
|
+
end
|
3028
|
+
|
3029
|
+
##
|
3030
|
+
# @private
|
3031
|
+
#
|
3032
|
+
# GRPC transcoding helper method for the list_dlp_jobs REST call
|
3033
|
+
#
|
3034
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListDlpJobsRequest]
|
3035
|
+
# A request object representing the call parameters. Required.
|
3036
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3037
|
+
# Uri, Body, Query string parameters
|
3038
|
+
def self.transcode_list_dlp_jobs_request request_pb
|
3039
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2062
3040
|
.with_bindings(
|
2063
3041
|
uri_method: :get,
|
2064
|
-
uri_template: "/v2/{parent}/
|
3042
|
+
uri_template: "/v2/{parent}/dlpJobs",
|
2065
3043
|
matches: [
|
2066
|
-
["parent", %r{^
|
3044
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2067
3045
|
]
|
2068
3046
|
)
|
2069
3047
|
.with_bindings(
|
2070
3048
|
uri_method: :get,
|
2071
|
-
uri_template: "/v2/{parent}/
|
3049
|
+
uri_template: "/v2/{parent}/dlpJobs",
|
2072
3050
|
matches: [
|
2073
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
3051
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2074
3052
|
]
|
2075
3053
|
)
|
2076
3054
|
.with_bindings(
|
2077
3055
|
uri_method: :get,
|
2078
|
-
uri_template: "/v2/{parent}/
|
3056
|
+
uri_template: "/v2/{parent}/dlpJobs",
|
2079
3057
|
matches: [
|
2080
|
-
["parent", %r{^
|
3058
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2081
3059
|
]
|
2082
3060
|
)
|
2083
3061
|
transcoder.transcode request_pb
|
@@ -2086,40 +3064,54 @@ module Google
|
|
2086
3064
|
##
|
2087
3065
|
# @private
|
2088
3066
|
#
|
2089
|
-
# GRPC transcoding helper method for the
|
3067
|
+
# GRPC transcoding helper method for the get_dlp_job REST call
|
2090
3068
|
#
|
2091
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3069
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetDlpJobRequest]
|
2092
3070
|
# A request object representing the call parameters. Required.
|
2093
3071
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2094
3072
|
# Uri, Body, Query string parameters
|
2095
|
-
def self.
|
3073
|
+
def self.transcode_get_dlp_job_request request_pb
|
2096
3074
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2097
3075
|
.with_bindings(
|
2098
|
-
uri_method: :
|
3076
|
+
uri_method: :get,
|
2099
3077
|
uri_template: "/v2/{name}",
|
2100
3078
|
matches: [
|
2101
|
-
["name", %r{^
|
3079
|
+
["name", %r{^projects/[^/]+/dlpJobs/[^/]+/?$}, false]
|
2102
3080
|
]
|
2103
3081
|
)
|
2104
3082
|
.with_bindings(
|
2105
|
-
uri_method: :
|
3083
|
+
uri_method: :get,
|
2106
3084
|
uri_template: "/v2/{name}",
|
2107
3085
|
matches: [
|
2108
|
-
["name", %r{^
|
3086
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+/?$}, false]
|
2109
3087
|
]
|
2110
3088
|
)
|
3089
|
+
transcoder.transcode request_pb
|
3090
|
+
end
|
3091
|
+
|
3092
|
+
##
|
3093
|
+
# @private
|
3094
|
+
#
|
3095
|
+
# GRPC transcoding helper method for the delete_dlp_job REST call
|
3096
|
+
#
|
3097
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteDlpJobRequest]
|
3098
|
+
# A request object representing the call parameters. Required.
|
3099
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3100
|
+
# Uri, Body, Query string parameters
|
3101
|
+
def self.transcode_delete_dlp_job_request request_pb
|
3102
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2111
3103
|
.with_bindings(
|
2112
3104
|
uri_method: :delete,
|
2113
3105
|
uri_template: "/v2/{name}",
|
2114
3106
|
matches: [
|
2115
|
-
["name", %r{^projects/[^/]+/
|
3107
|
+
["name", %r{^projects/[^/]+/dlpJobs/[^/]+/?$}, false]
|
2116
3108
|
]
|
2117
3109
|
)
|
2118
3110
|
.with_bindings(
|
2119
3111
|
uri_method: :delete,
|
2120
3112
|
uri_template: "/v2/{name}",
|
2121
3113
|
matches: [
|
2122
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3114
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+/?$}, false]
|
2123
3115
|
]
|
2124
3116
|
)
|
2125
3117
|
transcoder.transcode request_pb
|
@@ -2128,36 +3120,28 @@ module Google
|
|
2128
3120
|
##
|
2129
3121
|
# @private
|
2130
3122
|
#
|
2131
|
-
# GRPC transcoding helper method for the
|
3123
|
+
# GRPC transcoding helper method for the cancel_dlp_job REST call
|
2132
3124
|
#
|
2133
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3125
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CancelDlpJobRequest]
|
2134
3126
|
# A request object representing the call parameters. Required.
|
2135
3127
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2136
3128
|
# Uri, Body, Query string parameters
|
2137
|
-
def self.
|
3129
|
+
def self.transcode_cancel_dlp_job_request request_pb
|
2138
3130
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2139
3131
|
.with_bindings(
|
2140
3132
|
uri_method: :post,
|
2141
|
-
uri_template: "/v2/{
|
2142
|
-
body: "*",
|
2143
|
-
matches: [
|
2144
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
2145
|
-
]
|
2146
|
-
)
|
2147
|
-
.with_bindings(
|
2148
|
-
uri_method: :post,
|
2149
|
-
uri_template: "/v2/{parent}/jobTriggers",
|
3133
|
+
uri_template: "/v2/{name}:cancel",
|
2150
3134
|
body: "*",
|
2151
3135
|
matches: [
|
2152
|
-
["
|
3136
|
+
["name", %r{^projects/[^/]+/dlpJobs/[^/]+/?$}, false]
|
2153
3137
|
]
|
2154
3138
|
)
|
2155
3139
|
.with_bindings(
|
2156
3140
|
uri_method: :post,
|
2157
|
-
uri_template: "/v2/{
|
3141
|
+
uri_template: "/v2/{name}:cancel",
|
2158
3142
|
body: "*",
|
2159
3143
|
matches: [
|
2160
|
-
["
|
3144
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+/?$}, false]
|
2161
3145
|
]
|
2162
3146
|
)
|
2163
3147
|
transcoder.transcode request_pb
|
@@ -2166,58 +3150,44 @@ module Google
|
|
2166
3150
|
##
|
2167
3151
|
# @private
|
2168
3152
|
#
|
2169
|
-
# GRPC transcoding helper method for the
|
3153
|
+
# GRPC transcoding helper method for the create_stored_info_type REST call
|
2170
3154
|
#
|
2171
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3155
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest]
|
2172
3156
|
# A request object representing the call parameters. Required.
|
2173
3157
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2174
3158
|
# Uri, Body, Query string parameters
|
2175
|
-
def self.
|
3159
|
+
def self.transcode_create_stored_info_type_request request_pb
|
2176
3160
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2177
3161
|
.with_bindings(
|
2178
|
-
uri_method: :
|
2179
|
-
uri_template: "/v2/{
|
3162
|
+
uri_method: :post,
|
3163
|
+
uri_template: "/v2/{parent}/storedInfoTypes",
|
2180
3164
|
body: "*",
|
2181
3165
|
matches: [
|
2182
|
-
["
|
3166
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
2183
3167
|
]
|
2184
3168
|
)
|
2185
3169
|
.with_bindings(
|
2186
|
-
uri_method: :
|
2187
|
-
uri_template: "/v2/{
|
3170
|
+
uri_method: :post,
|
3171
|
+
uri_template: "/v2/{parent}/storedInfoTypes",
|
2188
3172
|
body: "*",
|
2189
3173
|
matches: [
|
2190
|
-
["
|
3174
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2191
3175
|
]
|
2192
3176
|
)
|
2193
3177
|
.with_bindings(
|
2194
|
-
uri_method: :
|
2195
|
-
uri_template: "/v2/{
|
3178
|
+
uri_method: :post,
|
3179
|
+
uri_template: "/v2/{parent}/storedInfoTypes",
|
2196
3180
|
body: "*",
|
2197
3181
|
matches: [
|
2198
|
-
["
|
3182
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2199
3183
|
]
|
2200
3184
|
)
|
2201
|
-
transcoder.transcode request_pb
|
2202
|
-
end
|
2203
|
-
|
2204
|
-
##
|
2205
|
-
# @private
|
2206
|
-
#
|
2207
|
-
# GRPC transcoding helper method for the hybrid_inspect_job_trigger REST call
|
2208
|
-
#
|
2209
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest]
|
2210
|
-
# A request object representing the call parameters. Required.
|
2211
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
2212
|
-
# Uri, Body, Query string parameters
|
2213
|
-
def self.transcode_hybrid_inspect_job_trigger_request request_pb
|
2214
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2215
3185
|
.with_bindings(
|
2216
3186
|
uri_method: :post,
|
2217
|
-
uri_template: "/v2/{
|
3187
|
+
uri_template: "/v2/{parent}/storedInfoTypes",
|
2218
3188
|
body: "*",
|
2219
3189
|
matches: [
|
2220
|
-
["
|
3190
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2221
3191
|
]
|
2222
3192
|
)
|
2223
3193
|
transcoder.transcode request_pb
|
@@ -2226,33 +3196,44 @@ module Google
|
|
2226
3196
|
##
|
2227
3197
|
# @private
|
2228
3198
|
#
|
2229
|
-
# GRPC transcoding helper method for the
|
3199
|
+
# GRPC transcoding helper method for the update_stored_info_type REST call
|
2230
3200
|
#
|
2231
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3201
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest]
|
2232
3202
|
# A request object representing the call parameters. Required.
|
2233
3203
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2234
3204
|
# Uri, Body, Query string parameters
|
2235
|
-
def self.
|
3205
|
+
def self.transcode_update_stored_info_type_request request_pb
|
2236
3206
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2237
3207
|
.with_bindings(
|
2238
|
-
uri_method: :
|
3208
|
+
uri_method: :patch,
|
2239
3209
|
uri_template: "/v2/{name}",
|
3210
|
+
body: "*",
|
2240
3211
|
matches: [
|
2241
|
-
["name", %r{^
|
3212
|
+
["name", %r{^organizations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2242
3213
|
]
|
2243
3214
|
)
|
2244
3215
|
.with_bindings(
|
2245
|
-
uri_method: :
|
3216
|
+
uri_method: :patch,
|
2246
3217
|
uri_template: "/v2/{name}",
|
3218
|
+
body: "*",
|
2247
3219
|
matches: [
|
2248
|
-
["name", %r{^
|
3220
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2249
3221
|
]
|
2250
3222
|
)
|
2251
3223
|
.with_bindings(
|
2252
|
-
uri_method: :
|
3224
|
+
uri_method: :patch,
|
2253
3225
|
uri_template: "/v2/{name}",
|
3226
|
+
body: "*",
|
2254
3227
|
matches: [
|
2255
|
-
["name", %r{^
|
3228
|
+
["name", %r{^projects/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
3229
|
+
]
|
3230
|
+
)
|
3231
|
+
.with_bindings(
|
3232
|
+
uri_method: :patch,
|
3233
|
+
uri_template: "/v2/{name}",
|
3234
|
+
body: "*",
|
3235
|
+
matches: [
|
3236
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2256
3237
|
]
|
2257
3238
|
)
|
2258
3239
|
transcoder.transcode request_pb
|
@@ -2261,33 +3242,40 @@ module Google
|
|
2261
3242
|
##
|
2262
3243
|
# @private
|
2263
3244
|
#
|
2264
|
-
# GRPC transcoding helper method for the
|
3245
|
+
# GRPC transcoding helper method for the get_stored_info_type REST call
|
2265
3246
|
#
|
2266
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3247
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest]
|
2267
3248
|
# A request object representing the call parameters. Required.
|
2268
3249
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2269
3250
|
# Uri, Body, Query string parameters
|
2270
|
-
def self.
|
3251
|
+
def self.transcode_get_stored_info_type_request request_pb
|
2271
3252
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2272
3253
|
.with_bindings(
|
2273
3254
|
uri_method: :get,
|
2274
|
-
uri_template: "/v2/{
|
3255
|
+
uri_template: "/v2/{name}",
|
2275
3256
|
matches: [
|
2276
|
-
["
|
3257
|
+
["name", %r{^organizations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2277
3258
|
]
|
2278
3259
|
)
|
2279
3260
|
.with_bindings(
|
2280
3261
|
uri_method: :get,
|
2281
|
-
uri_template: "/v2/{
|
3262
|
+
uri_template: "/v2/{name}",
|
2282
3263
|
matches: [
|
2283
|
-
["
|
3264
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2284
3265
|
]
|
2285
3266
|
)
|
2286
3267
|
.with_bindings(
|
2287
3268
|
uri_method: :get,
|
2288
|
-
uri_template: "/v2/{
|
3269
|
+
uri_template: "/v2/{name}",
|
2289
3270
|
matches: [
|
2290
|
-
["
|
3271
|
+
["name", %r{^projects/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
3272
|
+
]
|
3273
|
+
)
|
3274
|
+
.with_bindings(
|
3275
|
+
uri_method: :get,
|
3276
|
+
uri_template: "/v2/{name}",
|
3277
|
+
matches: [
|
3278
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2291
3279
|
]
|
2292
3280
|
)
|
2293
3281
|
transcoder.transcode request_pb
|
@@ -2296,63 +3284,40 @@ module Google
|
|
2296
3284
|
##
|
2297
3285
|
# @private
|
2298
3286
|
#
|
2299
|
-
# GRPC transcoding helper method for the
|
3287
|
+
# GRPC transcoding helper method for the list_stored_info_types REST call
|
2300
3288
|
#
|
2301
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3289
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest]
|
2302
3290
|
# A request object representing the call parameters. Required.
|
2303
3291
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2304
3292
|
# Uri, Body, Query string parameters
|
2305
|
-
def self.
|
3293
|
+
def self.transcode_list_stored_info_types_request request_pb
|
2306
3294
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2307
3295
|
.with_bindings(
|
2308
|
-
uri_method: :
|
2309
|
-
uri_template: "/v2/{
|
2310
|
-
matches: [
|
2311
|
-
["name", %r{^projects/[^/]+/jobTriggers/[^/]+/?$}, false]
|
2312
|
-
]
|
2313
|
-
)
|
2314
|
-
.with_bindings(
|
2315
|
-
uri_method: :delete,
|
2316
|
-
uri_template: "/v2/{name}",
|
3296
|
+
uri_method: :get,
|
3297
|
+
uri_template: "/v2/{parent}/storedInfoTypes",
|
2317
3298
|
matches: [
|
2318
|
-
["
|
3299
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
2319
3300
|
]
|
2320
3301
|
)
|
2321
3302
|
.with_bindings(
|
2322
|
-
uri_method: :
|
2323
|
-
uri_template: "/v2/{
|
3303
|
+
uri_method: :get,
|
3304
|
+
uri_template: "/v2/{parent}/storedInfoTypes",
|
2324
3305
|
matches: [
|
2325
|
-
["
|
3306
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2326
3307
|
]
|
2327
3308
|
)
|
2328
|
-
transcoder.transcode request_pb
|
2329
|
-
end
|
2330
|
-
|
2331
|
-
##
|
2332
|
-
# @private
|
2333
|
-
#
|
2334
|
-
# GRPC transcoding helper method for the activate_job_trigger REST call
|
2335
|
-
#
|
2336
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::ActivateJobTriggerRequest]
|
2337
|
-
# A request object representing the call parameters. Required.
|
2338
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
2339
|
-
# Uri, Body, Query string parameters
|
2340
|
-
def self.transcode_activate_job_trigger_request request_pb
|
2341
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2342
3309
|
.with_bindings(
|
2343
|
-
uri_method: :
|
2344
|
-
uri_template: "/v2/{
|
2345
|
-
body: "*",
|
3310
|
+
uri_method: :get,
|
3311
|
+
uri_template: "/v2/{parent}/storedInfoTypes",
|
2346
3312
|
matches: [
|
2347
|
-
["
|
3313
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
2348
3314
|
]
|
2349
3315
|
)
|
2350
3316
|
.with_bindings(
|
2351
|
-
uri_method: :
|
2352
|
-
uri_template: "/v2/{
|
2353
|
-
body: "*",
|
3317
|
+
uri_method: :get,
|
3318
|
+
uri_template: "/v2/{parent}/storedInfoTypes",
|
2354
3319
|
matches: [
|
2355
|
-
["
|
3320
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2356
3321
|
]
|
2357
3322
|
)
|
2358
3323
|
transcoder.transcode request_pb
|
@@ -2361,58 +3326,40 @@ module Google
|
|
2361
3326
|
##
|
2362
3327
|
# @private
|
2363
3328
|
#
|
2364
|
-
# GRPC transcoding helper method for the
|
3329
|
+
# GRPC transcoding helper method for the delete_stored_info_type REST call
|
2365
3330
|
#
|
2366
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3331
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest]
|
2367
3332
|
# A request object representing the call parameters. Required.
|
2368
3333
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2369
3334
|
# Uri, Body, Query string parameters
|
2370
|
-
def self.
|
3335
|
+
def self.transcode_delete_stored_info_type_request request_pb
|
2371
3336
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2372
3337
|
.with_bindings(
|
2373
|
-
uri_method: :
|
2374
|
-
uri_template: "/v2/{
|
2375
|
-
body: "*",
|
3338
|
+
uri_method: :delete,
|
3339
|
+
uri_template: "/v2/{name}",
|
2376
3340
|
matches: [
|
2377
|
-
["
|
3341
|
+
["name", %r{^organizations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2378
3342
|
]
|
2379
3343
|
)
|
2380
3344
|
.with_bindings(
|
2381
|
-
uri_method: :
|
2382
|
-
uri_template: "/v2/{
|
2383
|
-
body: "*",
|
3345
|
+
uri_method: :delete,
|
3346
|
+
uri_template: "/v2/{name}",
|
2384
3347
|
matches: [
|
2385
|
-
["
|
3348
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2386
3349
|
]
|
2387
3350
|
)
|
2388
|
-
transcoder.transcode request_pb
|
2389
|
-
end
|
2390
|
-
|
2391
|
-
##
|
2392
|
-
# @private
|
2393
|
-
#
|
2394
|
-
# GRPC transcoding helper method for the update_discovery_config REST call
|
2395
|
-
#
|
2396
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::UpdateDiscoveryConfigRequest]
|
2397
|
-
# A request object representing the call parameters. Required.
|
2398
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
2399
|
-
# Uri, Body, Query string parameters
|
2400
|
-
def self.transcode_update_discovery_config_request request_pb
|
2401
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2402
3351
|
.with_bindings(
|
2403
|
-
uri_method: :
|
3352
|
+
uri_method: :delete,
|
2404
3353
|
uri_template: "/v2/{name}",
|
2405
|
-
body: "*",
|
2406
3354
|
matches: [
|
2407
|
-
["name", %r{^projects/[^/]+/
|
3355
|
+
["name", %r{^projects/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2408
3356
|
]
|
2409
3357
|
)
|
2410
3358
|
.with_bindings(
|
2411
|
-
uri_method: :
|
3359
|
+
uri_method: :delete,
|
2412
3360
|
uri_template: "/v2/{name}",
|
2413
|
-
body: "*",
|
2414
3361
|
matches: [
|
2415
|
-
["name", %r{^
|
3362
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2416
3363
|
]
|
2417
3364
|
)
|
2418
3365
|
transcoder.transcode request_pb
|
@@ -2421,26 +3368,26 @@ module Google
|
|
2421
3368
|
##
|
2422
3369
|
# @private
|
2423
3370
|
#
|
2424
|
-
# GRPC transcoding helper method for the
|
3371
|
+
# GRPC transcoding helper method for the list_project_data_profiles REST call
|
2425
3372
|
#
|
2426
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3373
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest]
|
2427
3374
|
# A request object representing the call parameters. Required.
|
2428
3375
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2429
3376
|
# Uri, Body, Query string parameters
|
2430
|
-
def self.
|
3377
|
+
def self.transcode_list_project_data_profiles_request request_pb
|
2431
3378
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2432
3379
|
.with_bindings(
|
2433
3380
|
uri_method: :get,
|
2434
|
-
uri_template: "/v2/{
|
3381
|
+
uri_template: "/v2/{parent}/projectDataProfiles",
|
2435
3382
|
matches: [
|
2436
|
-
["
|
3383
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2437
3384
|
]
|
2438
3385
|
)
|
2439
3386
|
.with_bindings(
|
2440
3387
|
uri_method: :get,
|
2441
|
-
uri_template: "/v2/{
|
3388
|
+
uri_template: "/v2/{parent}/projectDataProfiles",
|
2442
3389
|
matches: [
|
2443
|
-
["
|
3390
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2444
3391
|
]
|
2445
3392
|
)
|
2446
3393
|
transcoder.transcode request_pb
|
@@ -2449,26 +3396,26 @@ module Google
|
|
2449
3396
|
##
|
2450
3397
|
# @private
|
2451
3398
|
#
|
2452
|
-
# GRPC transcoding helper method for the
|
3399
|
+
# GRPC transcoding helper method for the list_table_data_profiles REST call
|
2453
3400
|
#
|
2454
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3401
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest]
|
2455
3402
|
# A request object representing the call parameters. Required.
|
2456
3403
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2457
3404
|
# Uri, Body, Query string parameters
|
2458
|
-
def self.
|
3405
|
+
def self.transcode_list_table_data_profiles_request request_pb
|
2459
3406
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2460
3407
|
.with_bindings(
|
2461
3408
|
uri_method: :get,
|
2462
|
-
uri_template: "/v2/{parent}/
|
3409
|
+
uri_template: "/v2/{parent}/tableDataProfiles",
|
2463
3410
|
matches: [
|
2464
|
-
["parent", %r{^
|
3411
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2465
3412
|
]
|
2466
3413
|
)
|
2467
3414
|
.with_bindings(
|
2468
3415
|
uri_method: :get,
|
2469
|
-
uri_template: "/v2/{parent}/
|
3416
|
+
uri_template: "/v2/{parent}/tableDataProfiles",
|
2470
3417
|
matches: [
|
2471
|
-
["parent", %r{^
|
3418
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2472
3419
|
]
|
2473
3420
|
)
|
2474
3421
|
transcoder.transcode request_pb
|
@@ -2477,26 +3424,26 @@ module Google
|
|
2477
3424
|
##
|
2478
3425
|
# @private
|
2479
3426
|
#
|
2480
|
-
# GRPC transcoding helper method for the
|
3427
|
+
# GRPC transcoding helper method for the list_column_data_profiles REST call
|
2481
3428
|
#
|
2482
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3429
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest]
|
2483
3430
|
# A request object representing the call parameters. Required.
|
2484
3431
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2485
3432
|
# Uri, Body, Query string parameters
|
2486
|
-
def self.
|
3433
|
+
def self.transcode_list_column_data_profiles_request request_pb
|
2487
3434
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2488
3435
|
.with_bindings(
|
2489
|
-
uri_method: :
|
2490
|
-
uri_template: "/v2/{
|
3436
|
+
uri_method: :get,
|
3437
|
+
uri_template: "/v2/{parent}/columnDataProfiles",
|
2491
3438
|
matches: [
|
2492
|
-
["
|
3439
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2493
3440
|
]
|
2494
3441
|
)
|
2495
3442
|
.with_bindings(
|
2496
|
-
uri_method: :
|
2497
|
-
uri_template: "/v2/{
|
3443
|
+
uri_method: :get,
|
3444
|
+
uri_template: "/v2/{parent}/columnDataProfiles",
|
2498
3445
|
matches: [
|
2499
|
-
["
|
3446
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2500
3447
|
]
|
2501
3448
|
)
|
2502
3449
|
transcoder.transcode request_pb
|
@@ -2505,28 +3452,26 @@ module Google
|
|
2505
3452
|
##
|
2506
3453
|
# @private
|
2507
3454
|
#
|
2508
|
-
# GRPC transcoding helper method for the
|
3455
|
+
# GRPC transcoding helper method for the get_project_data_profile REST call
|
2509
3456
|
#
|
2510
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3457
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest]
|
2511
3458
|
# A request object representing the call parameters. Required.
|
2512
3459
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2513
3460
|
# Uri, Body, Query string parameters
|
2514
|
-
def self.
|
3461
|
+
def self.transcode_get_project_data_profile_request request_pb
|
2515
3462
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2516
3463
|
.with_bindings(
|
2517
|
-
uri_method: :
|
2518
|
-
uri_template: "/v2/{
|
2519
|
-
body: "*",
|
3464
|
+
uri_method: :get,
|
3465
|
+
uri_template: "/v2/{name}",
|
2520
3466
|
matches: [
|
2521
|
-
["
|
3467
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/projectDataProfiles/[^/]+/?$}, false]
|
2522
3468
|
]
|
2523
3469
|
)
|
2524
3470
|
.with_bindings(
|
2525
|
-
uri_method: :
|
2526
|
-
uri_template: "/v2/{
|
2527
|
-
body: "*",
|
3471
|
+
uri_method: :get,
|
3472
|
+
uri_template: "/v2/{name}",
|
2528
3473
|
matches: [
|
2529
|
-
["
|
3474
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/projectDataProfiles/[^/]+/?$}, false]
|
2530
3475
|
]
|
2531
3476
|
)
|
2532
3477
|
transcoder.transcode request_pb
|
@@ -2535,33 +3480,26 @@ module Google
|
|
2535
3480
|
##
|
2536
3481
|
# @private
|
2537
3482
|
#
|
2538
|
-
# GRPC transcoding helper method for the
|
3483
|
+
# GRPC transcoding helper method for the get_table_data_profile REST call
|
2539
3484
|
#
|
2540
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3485
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetTableDataProfileRequest]
|
2541
3486
|
# A request object representing the call parameters. Required.
|
2542
3487
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2543
3488
|
# Uri, Body, Query string parameters
|
2544
|
-
def self.
|
3489
|
+
def self.transcode_get_table_data_profile_request request_pb
|
2545
3490
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2546
3491
|
.with_bindings(
|
2547
3492
|
uri_method: :get,
|
2548
|
-
uri_template: "/v2/{
|
2549
|
-
matches: [
|
2550
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
2551
|
-
]
|
2552
|
-
)
|
2553
|
-
.with_bindings(
|
2554
|
-
uri_method: :get,
|
2555
|
-
uri_template: "/v2/{parent}/dlpJobs",
|
3493
|
+
uri_template: "/v2/{name}",
|
2556
3494
|
matches: [
|
2557
|
-
["
|
3495
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+/?$}, false]
|
2558
3496
|
]
|
2559
3497
|
)
|
2560
3498
|
.with_bindings(
|
2561
3499
|
uri_method: :get,
|
2562
|
-
uri_template: "/v2/{
|
3500
|
+
uri_template: "/v2/{name}",
|
2563
3501
|
matches: [
|
2564
|
-
["
|
3502
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+/?$}, false]
|
2565
3503
|
]
|
2566
3504
|
)
|
2567
3505
|
transcoder.transcode request_pb
|
@@ -2570,26 +3508,26 @@ module Google
|
|
2570
3508
|
##
|
2571
3509
|
# @private
|
2572
3510
|
#
|
2573
|
-
# GRPC transcoding helper method for the
|
3511
|
+
# GRPC transcoding helper method for the get_column_data_profile REST call
|
2574
3512
|
#
|
2575
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3513
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest]
|
2576
3514
|
# A request object representing the call parameters. Required.
|
2577
3515
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2578
3516
|
# Uri, Body, Query string parameters
|
2579
|
-
def self.
|
3517
|
+
def self.transcode_get_column_data_profile_request request_pb
|
2580
3518
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2581
3519
|
.with_bindings(
|
2582
3520
|
uri_method: :get,
|
2583
3521
|
uri_template: "/v2/{name}",
|
2584
3522
|
matches: [
|
2585
|
-
["name", %r{^
|
3523
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/columnDataProfiles/[^/]+/?$}, false]
|
2586
3524
|
]
|
2587
3525
|
)
|
2588
3526
|
.with_bindings(
|
2589
3527
|
uri_method: :get,
|
2590
3528
|
uri_template: "/v2/{name}",
|
2591
3529
|
matches: [
|
2592
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3530
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/columnDataProfiles/[^/]+/?$}, false]
|
2593
3531
|
]
|
2594
3532
|
)
|
2595
3533
|
transcoder.transcode request_pb
|
@@ -2598,26 +3536,26 @@ module Google
|
|
2598
3536
|
##
|
2599
3537
|
# @private
|
2600
3538
|
#
|
2601
|
-
# GRPC transcoding helper method for the
|
3539
|
+
# GRPC transcoding helper method for the delete_table_data_profile REST call
|
2602
3540
|
#
|
2603
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3541
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest]
|
2604
3542
|
# A request object representing the call parameters. Required.
|
2605
3543
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2606
3544
|
# Uri, Body, Query string parameters
|
2607
|
-
def self.
|
3545
|
+
def self.transcode_delete_table_data_profile_request request_pb
|
2608
3546
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2609
3547
|
.with_bindings(
|
2610
3548
|
uri_method: :delete,
|
2611
3549
|
uri_template: "/v2/{name}",
|
2612
3550
|
matches: [
|
2613
|
-
["name", %r{^
|
3551
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+/?$}, false]
|
2614
3552
|
]
|
2615
3553
|
)
|
2616
3554
|
.with_bindings(
|
2617
3555
|
uri_method: :delete,
|
2618
3556
|
uri_template: "/v2/{name}",
|
2619
3557
|
matches: [
|
2620
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3558
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+/?$}, false]
|
2621
3559
|
]
|
2622
3560
|
)
|
2623
3561
|
transcoder.transcode request_pb
|
@@ -2626,25 +3564,17 @@ module Google
|
|
2626
3564
|
##
|
2627
3565
|
# @private
|
2628
3566
|
#
|
2629
|
-
# GRPC transcoding helper method for the
|
3567
|
+
# GRPC transcoding helper method for the hybrid_inspect_dlp_job REST call
|
2630
3568
|
#
|
2631
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3569
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest]
|
2632
3570
|
# A request object representing the call parameters. Required.
|
2633
3571
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2634
3572
|
# Uri, Body, Query string parameters
|
2635
|
-
def self.
|
3573
|
+
def self.transcode_hybrid_inspect_dlp_job_request request_pb
|
2636
3574
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2637
3575
|
.with_bindings(
|
2638
3576
|
uri_method: :post,
|
2639
|
-
uri_template: "/v2/{name}:
|
2640
|
-
body: "*",
|
2641
|
-
matches: [
|
2642
|
-
["name", %r{^projects/[^/]+/dlpJobs/[^/]+/?$}, false]
|
2643
|
-
]
|
2644
|
-
)
|
2645
|
-
.with_bindings(
|
2646
|
-
uri_method: :post,
|
2647
|
-
uri_template: "/v2/{name}:cancel",
|
3577
|
+
uri_template: "/v2/{name}:hybridInspect",
|
2648
3578
|
body: "*",
|
2649
3579
|
matches: [
|
2650
3580
|
["name", %r{^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+/?$}, false]
|
@@ -2656,44 +3586,20 @@ module Google
|
|
2656
3586
|
##
|
2657
3587
|
# @private
|
2658
3588
|
#
|
2659
|
-
# GRPC transcoding helper method for the
|
3589
|
+
# GRPC transcoding helper method for the finish_dlp_job REST call
|
2660
3590
|
#
|
2661
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3591
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::FinishDlpJobRequest]
|
2662
3592
|
# A request object representing the call parameters. Required.
|
2663
3593
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2664
3594
|
# Uri, Body, Query string parameters
|
2665
|
-
def self.
|
3595
|
+
def self.transcode_finish_dlp_job_request request_pb
|
2666
3596
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2667
3597
|
.with_bindings(
|
2668
3598
|
uri_method: :post,
|
2669
|
-
uri_template: "/v2/{
|
2670
|
-
body: "*",
|
2671
|
-
matches: [
|
2672
|
-
["parent", %r{^organizations/[^/]+/?$}, false]
|
2673
|
-
]
|
2674
|
-
)
|
2675
|
-
.with_bindings(
|
2676
|
-
uri_method: :post,
|
2677
|
-
uri_template: "/v2/{parent}/storedInfoTypes",
|
2678
|
-
body: "*",
|
2679
|
-
matches: [
|
2680
|
-
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2681
|
-
]
|
2682
|
-
)
|
2683
|
-
.with_bindings(
|
2684
|
-
uri_method: :post,
|
2685
|
-
uri_template: "/v2/{parent}/storedInfoTypes",
|
2686
|
-
body: "*",
|
2687
|
-
matches: [
|
2688
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
2689
|
-
]
|
2690
|
-
)
|
2691
|
-
.with_bindings(
|
2692
|
-
uri_method: :post,
|
2693
|
-
uri_template: "/v2/{parent}/storedInfoTypes",
|
3599
|
+
uri_template: "/v2/{name}:finish",
|
2694
3600
|
body: "*",
|
2695
3601
|
matches: [
|
2696
|
-
["
|
3602
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+/?$}, false]
|
2697
3603
|
]
|
2698
3604
|
)
|
2699
3605
|
transcoder.transcode request_pb
|
@@ -2702,44 +3608,20 @@ module Google
|
|
2702
3608
|
##
|
2703
3609
|
# @private
|
2704
3610
|
#
|
2705
|
-
# GRPC transcoding helper method for the
|
3611
|
+
# GRPC transcoding helper method for the create_connection REST call
|
2706
3612
|
#
|
2707
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3613
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::CreateConnectionRequest]
|
2708
3614
|
# A request object representing the call parameters. Required.
|
2709
3615
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2710
3616
|
# Uri, Body, Query string parameters
|
2711
|
-
def self.
|
3617
|
+
def self.transcode_create_connection_request request_pb
|
2712
3618
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2713
3619
|
.with_bindings(
|
2714
|
-
uri_method: :
|
2715
|
-
uri_template: "/v2/{
|
2716
|
-
body: "*",
|
2717
|
-
matches: [
|
2718
|
-
["name", %r{^organizations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2719
|
-
]
|
2720
|
-
)
|
2721
|
-
.with_bindings(
|
2722
|
-
uri_method: :patch,
|
2723
|
-
uri_template: "/v2/{name}",
|
2724
|
-
body: "*",
|
2725
|
-
matches: [
|
2726
|
-
["name", %r{^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2727
|
-
]
|
2728
|
-
)
|
2729
|
-
.with_bindings(
|
2730
|
-
uri_method: :patch,
|
2731
|
-
uri_template: "/v2/{name}",
|
2732
|
-
body: "*",
|
2733
|
-
matches: [
|
2734
|
-
["name", %r{^projects/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2735
|
-
]
|
2736
|
-
)
|
2737
|
-
.with_bindings(
|
2738
|
-
uri_method: :patch,
|
2739
|
-
uri_template: "/v2/{name}",
|
3620
|
+
uri_method: :post,
|
3621
|
+
uri_template: "/v2/{parent}/connections",
|
2740
3622
|
body: "*",
|
2741
3623
|
matches: [
|
2742
|
-
["
|
3624
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2743
3625
|
]
|
2744
3626
|
)
|
2745
3627
|
transcoder.transcode request_pb
|
@@ -2748,40 +3630,19 @@ module Google
|
|
2748
3630
|
##
|
2749
3631
|
# @private
|
2750
3632
|
#
|
2751
|
-
# GRPC transcoding helper method for the
|
3633
|
+
# GRPC transcoding helper method for the get_connection REST call
|
2752
3634
|
#
|
2753
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3635
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::GetConnectionRequest]
|
2754
3636
|
# A request object representing the call parameters. Required.
|
2755
3637
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2756
3638
|
# Uri, Body, Query string parameters
|
2757
|
-
def self.
|
3639
|
+
def self.transcode_get_connection_request request_pb
|
2758
3640
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2759
3641
|
.with_bindings(
|
2760
3642
|
uri_method: :get,
|
2761
3643
|
uri_template: "/v2/{name}",
|
2762
3644
|
matches: [
|
2763
|
-
["name", %r{^
|
2764
|
-
]
|
2765
|
-
)
|
2766
|
-
.with_bindings(
|
2767
|
-
uri_method: :get,
|
2768
|
-
uri_template: "/v2/{name}",
|
2769
|
-
matches: [
|
2770
|
-
["name", %r{^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2771
|
-
]
|
2772
|
-
)
|
2773
|
-
.with_bindings(
|
2774
|
-
uri_method: :get,
|
2775
|
-
uri_template: "/v2/{name}",
|
2776
|
-
matches: [
|
2777
|
-
["name", %r{^projects/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2778
|
-
]
|
2779
|
-
)
|
2780
|
-
.with_bindings(
|
2781
|
-
uri_method: :get,
|
2782
|
-
uri_template: "/v2/{name}",
|
2783
|
-
matches: [
|
2784
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
3645
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
2785
3646
|
]
|
2786
3647
|
)
|
2787
3648
|
transcoder.transcode request_pb
|
@@ -2790,38 +3651,17 @@ module Google
|
|
2790
3651
|
##
|
2791
3652
|
# @private
|
2792
3653
|
#
|
2793
|
-
# GRPC transcoding helper method for the
|
3654
|
+
# GRPC transcoding helper method for the list_connections REST call
|
2794
3655
|
#
|
2795
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3656
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::ListConnectionsRequest]
|
2796
3657
|
# A request object representing the call parameters. Required.
|
2797
3658
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2798
3659
|
# Uri, Body, Query string parameters
|
2799
|
-
def self.
|
3660
|
+
def self.transcode_list_connections_request request_pb
|
2800
3661
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2801
3662
|
.with_bindings(
|
2802
3663
|
uri_method: :get,
|
2803
|
-
uri_template: "/v2/{parent}/
|
2804
|
-
matches: [
|
2805
|
-
["parent", %r{^organizations/[^/]+/?$}, false]
|
2806
|
-
]
|
2807
|
-
)
|
2808
|
-
.with_bindings(
|
2809
|
-
uri_method: :get,
|
2810
|
-
uri_template: "/v2/{parent}/storedInfoTypes",
|
2811
|
-
matches: [
|
2812
|
-
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2813
|
-
]
|
2814
|
-
)
|
2815
|
-
.with_bindings(
|
2816
|
-
uri_method: :get,
|
2817
|
-
uri_template: "/v2/{parent}/storedInfoTypes",
|
2818
|
-
matches: [
|
2819
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
2820
|
-
]
|
2821
|
-
)
|
2822
|
-
.with_bindings(
|
2823
|
-
uri_method: :get,
|
2824
|
-
uri_template: "/v2/{parent}/storedInfoTypes",
|
3664
|
+
uri_template: "/v2/{parent}/connections",
|
2825
3665
|
matches: [
|
2826
3666
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2827
3667
|
]
|
@@ -2832,40 +3672,26 @@ module Google
|
|
2832
3672
|
##
|
2833
3673
|
# @private
|
2834
3674
|
#
|
2835
|
-
# GRPC transcoding helper method for the
|
3675
|
+
# GRPC transcoding helper method for the search_connections REST call
|
2836
3676
|
#
|
2837
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3677
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::SearchConnectionsRequest]
|
2838
3678
|
# A request object representing the call parameters. Required.
|
2839
3679
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2840
3680
|
# Uri, Body, Query string parameters
|
2841
|
-
def self.
|
3681
|
+
def self.transcode_search_connections_request request_pb
|
2842
3682
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2843
3683
|
.with_bindings(
|
2844
|
-
uri_method: :
|
2845
|
-
uri_template: "/v2/{
|
2846
|
-
matches: [
|
2847
|
-
["name", %r{^organizations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2848
|
-
]
|
2849
|
-
)
|
2850
|
-
.with_bindings(
|
2851
|
-
uri_method: :delete,
|
2852
|
-
uri_template: "/v2/{name}",
|
2853
|
-
matches: [
|
2854
|
-
["name", %r{^organizations/[^/]+/locations/[^/]+/storedInfoTypes/[^/]+/?$}, false]
|
2855
|
-
]
|
2856
|
-
)
|
2857
|
-
.with_bindings(
|
2858
|
-
uri_method: :delete,
|
2859
|
-
uri_template: "/v2/{name}",
|
3684
|
+
uri_method: :get,
|
3685
|
+
uri_template: "/v2/{parent}/connections:search",
|
2860
3686
|
matches: [
|
2861
|
-
["
|
3687
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2862
3688
|
]
|
2863
3689
|
)
|
2864
3690
|
.with_bindings(
|
2865
|
-
uri_method: :
|
2866
|
-
uri_template: "/v2/{
|
3691
|
+
uri_method: :get,
|
3692
|
+
uri_template: "/v2/{parent}/connections:search",
|
2867
3693
|
matches: [
|
2868
|
-
["
|
3694
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
2869
3695
|
]
|
2870
3696
|
)
|
2871
3697
|
transcoder.transcode request_pb
|
@@ -2874,20 +3700,19 @@ module Google
|
|
2874
3700
|
##
|
2875
3701
|
# @private
|
2876
3702
|
#
|
2877
|
-
# GRPC transcoding helper method for the
|
3703
|
+
# GRPC transcoding helper method for the delete_connection REST call
|
2878
3704
|
#
|
2879
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3705
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::DeleteConnectionRequest]
|
2880
3706
|
# A request object representing the call parameters. Required.
|
2881
3707
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2882
3708
|
# Uri, Body, Query string parameters
|
2883
|
-
def self.
|
3709
|
+
def self.transcode_delete_connection_request request_pb
|
2884
3710
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2885
3711
|
.with_bindings(
|
2886
|
-
uri_method: :
|
2887
|
-
uri_template: "/v2/{name}
|
2888
|
-
body: "*",
|
3712
|
+
uri_method: :delete,
|
3713
|
+
uri_template: "/v2/{name}",
|
2889
3714
|
matches: [
|
2890
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3715
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
2891
3716
|
]
|
2892
3717
|
)
|
2893
3718
|
transcoder.transcode request_pb
|
@@ -2896,20 +3721,20 @@ module Google
|
|
2896
3721
|
##
|
2897
3722
|
# @private
|
2898
3723
|
#
|
2899
|
-
# GRPC transcoding helper method for the
|
3724
|
+
# GRPC transcoding helper method for the update_connection REST call
|
2900
3725
|
#
|
2901
|
-
# @param request_pb [::Google::Cloud::Dlp::V2::
|
3726
|
+
# @param request_pb [::Google::Cloud::Dlp::V2::UpdateConnectionRequest]
|
2902
3727
|
# A request object representing the call parameters. Required.
|
2903
3728
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
2904
3729
|
# Uri, Body, Query string parameters
|
2905
|
-
def self.
|
3730
|
+
def self.transcode_update_connection_request request_pb
|
2906
3731
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2907
3732
|
.with_bindings(
|
2908
|
-
uri_method: :
|
2909
|
-
uri_template: "/v2/{name}
|
3733
|
+
uri_method: :patch,
|
3734
|
+
uri_template: "/v2/{name}",
|
2910
3735
|
body: "*",
|
2911
3736
|
matches: [
|
2912
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
3737
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/?$}, false]
|
2913
3738
|
]
|
2914
3739
|
)
|
2915
3740
|
transcoder.transcode request_pb
|