google-cloud-dlp-v2 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7eede7ce20c4c5b06471f13be98e00454dd15e886bcb77360ddd8d311246b3c3
4
- data.tar.gz: e6f062ae18517a5f4ac7a86a602e54d2bdd3388ae10f50e784ede125cf26ad13
3
+ metadata.gz: ca9ce3893cb120835b7de425bad3e70fc3be7bad363eb5793267f27566a5922b
4
+ data.tar.gz: 6b06a20cc78a891df2d918eb627aba82d30a547cbb8c1dab7126b6dc53ffe7f5
5
5
  SHA512:
6
- metadata.gz: 1efabf7aff8008c5a9d9804d63ccc6ea126eee4eaf71d0165c38cf934307e934b45172a3dc6e95aeca432c95e5d3bdc448a9fcc8b338ee051b441665762d7147
7
- data.tar.gz: 363664c1ca51d1f9077982bb299f21ee1aad941d57e5bd98780af847bd822c78f93dd434769f474a39c9bf86a529c671254d44815fcd77ba8f8c3bbaf061cfad
6
+ metadata.gz: ad0e452a98b49a564bb9bef0f24afd65130ce29bdfcf2fabb2e28540c322bf35e6325afb7cb6824f31545020bc90174bf00650ec5386f30a54a5a666af94bd58
7
+ data.tar.gz: d57b1befd3690f51148772e1d52c7d0f5f1e397035cc72ab79f04665361a5aa653398ece19c2cfaf264ffb656292b08c3768851011f9a55074983a0b602ddded
@@ -281,7 +281,8 @@ module Google
281
281
  credentials: credentials,
282
282
  endpoint: @config.endpoint,
283
283
  channel_args: @config.channel_args,
284
- interceptors: @config.interceptors
284
+ interceptors: @config.interceptors,
285
+ channel_pool_config: @config.channel_pool
285
286
  )
286
287
  end
287
288
 
@@ -3997,6 +3998,14 @@ module Google
3997
3998
  end
3998
3999
  end
3999
4000
 
4001
+ ##
4002
+ # Configuration for the channel pool
4003
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
4004
+ #
4005
+ def channel_pool
4006
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
4007
+ end
4008
+
4000
4009
  ##
4001
4010
  # Configuration RPC class for the DlpService API.
4002
4011
  #
@@ -348,6 +348,22 @@ module Google
348
348
  # @return [::Google::Cloud::Dlp::V2::InspectContentResponse]
349
349
  #
350
350
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
351
+ #
352
+ # @example Basic example
353
+ # require "google/cloud/dlp/v2"
354
+ #
355
+ # # Create a client object. The client can be reused for multiple calls.
356
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
357
+ #
358
+ # # Create a request. To set request fields, pass in keyword arguments.
359
+ # request = Google::Cloud::Dlp::V2::InspectContentRequest.new
360
+ #
361
+ # # Call the inspect_content method.
362
+ # result = client.inspect_content request
363
+ #
364
+ # # The returned object is of type Google::Cloud::Dlp::V2::InspectContentResponse.
365
+ # p result
366
+ #
351
367
  def inspect_content request, options = nil
352
368
  raise ::ArgumentError, "request must be provided" if request.nil?
353
369
 
@@ -443,6 +459,22 @@ module Google
443
459
  # @return [::Google::Cloud::Dlp::V2::RedactImageResponse]
444
460
  #
445
461
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
462
+ #
463
+ # @example Basic example
464
+ # require "google/cloud/dlp/v2"
465
+ #
466
+ # # Create a client object. The client can be reused for multiple calls.
467
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
468
+ #
469
+ # # Create a request. To set request fields, pass in keyword arguments.
470
+ # request = Google::Cloud::Dlp::V2::RedactImageRequest.new
471
+ #
472
+ # # Call the redact_image method.
473
+ # result = client.redact_image request
474
+ #
475
+ # # The returned object is of type Google::Cloud::Dlp::V2::RedactImageResponse.
476
+ # p result
477
+ #
446
478
  def redact_image request, options = nil
447
479
  raise ::ArgumentError, "request must be provided" if request.nil?
448
480
 
@@ -558,6 +590,22 @@ module Google
558
590
  # @return [::Google::Cloud::Dlp::V2::DeidentifyContentResponse]
559
591
  #
560
592
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
593
+ #
594
+ # @example Basic example
595
+ # require "google/cloud/dlp/v2"
596
+ #
597
+ # # Create a client object. The client can be reused for multiple calls.
598
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
599
+ #
600
+ # # Create a request. To set request fields, pass in keyword arguments.
601
+ # request = Google::Cloud::Dlp::V2::DeidentifyContentRequest.new
602
+ #
603
+ # # Call the deidentify_content method.
604
+ # result = client.deidentify_content request
605
+ #
606
+ # # The returned object is of type Google::Cloud::Dlp::V2::DeidentifyContentResponse.
607
+ # p result
608
+ #
561
609
  def deidentify_content request, options = nil
562
610
  raise ::ArgumentError, "request must be provided" if request.nil?
563
611
 
@@ -669,6 +717,22 @@ module Google
669
717
  # @return [::Google::Cloud::Dlp::V2::ReidentifyContentResponse]
670
718
  #
671
719
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
720
+ #
721
+ # @example Basic example
722
+ # require "google/cloud/dlp/v2"
723
+ #
724
+ # # Create a client object. The client can be reused for multiple calls.
725
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
726
+ #
727
+ # # Create a request. To set request fields, pass in keyword arguments.
728
+ # request = Google::Cloud::Dlp::V2::ReidentifyContentRequest.new
729
+ #
730
+ # # Call the reidentify_content method.
731
+ # result = client.reidentify_content request
732
+ #
733
+ # # The returned object is of type Google::Cloud::Dlp::V2::ReidentifyContentResponse.
734
+ # p result
735
+ #
672
736
  def reidentify_content request, options = nil
673
737
  raise ::ArgumentError, "request must be provided" if request.nil?
674
738
 
@@ -746,6 +810,22 @@ module Google
746
810
  # @return [::Google::Cloud::Dlp::V2::ListInfoTypesResponse]
747
811
  #
748
812
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
813
+ #
814
+ # @example Basic example
815
+ # require "google/cloud/dlp/v2"
816
+ #
817
+ # # Create a client object. The client can be reused for multiple calls.
818
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
819
+ #
820
+ # # Create a request. To set request fields, pass in keyword arguments.
821
+ # request = Google::Cloud::Dlp::V2::ListInfoTypesRequest.new
822
+ #
823
+ # # Call the list_info_types method.
824
+ # result = client.list_info_types request
825
+ #
826
+ # # The returned object is of type Google::Cloud::Dlp::V2::ListInfoTypesResponse.
827
+ # p result
828
+ #
749
829
  def list_info_types request, options = nil
750
830
  raise ::ArgumentError, "request must be provided" if request.nil?
751
831
 
@@ -838,6 +918,22 @@ module Google
838
918
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
839
919
  #
840
920
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
921
+ #
922
+ # @example Basic example
923
+ # require "google/cloud/dlp/v2"
924
+ #
925
+ # # Create a client object. The client can be reused for multiple calls.
926
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
927
+ #
928
+ # # Create a request. To set request fields, pass in keyword arguments.
929
+ # request = Google::Cloud::Dlp::V2::CreateInspectTemplateRequest.new
930
+ #
931
+ # # Call the create_inspect_template method.
932
+ # result = client.create_inspect_template request
933
+ #
934
+ # # The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
935
+ # p result
936
+ #
841
937
  def create_inspect_template request, options = nil
842
938
  raise ::ArgumentError, "request must be provided" if request.nil?
843
939
 
@@ -907,6 +1003,22 @@ module Google
907
1003
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
908
1004
  #
909
1005
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1006
+ #
1007
+ # @example Basic example
1008
+ # require "google/cloud/dlp/v2"
1009
+ #
1010
+ # # Create a client object. The client can be reused for multiple calls.
1011
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1012
+ #
1013
+ # # Create a request. To set request fields, pass in keyword arguments.
1014
+ # request = Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest.new
1015
+ #
1016
+ # # Call the update_inspect_template method.
1017
+ # result = client.update_inspect_template request
1018
+ #
1019
+ # # The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
1020
+ # p result
1021
+ #
910
1022
  def update_inspect_template request, options = nil
911
1023
  raise ::ArgumentError, "request must be provided" if request.nil?
912
1024
 
@@ -972,6 +1084,22 @@ module Google
972
1084
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
973
1085
  #
974
1086
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1087
+ #
1088
+ # @example Basic example
1089
+ # require "google/cloud/dlp/v2"
1090
+ #
1091
+ # # Create a client object. The client can be reused for multiple calls.
1092
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1093
+ #
1094
+ # # Create a request. To set request fields, pass in keyword arguments.
1095
+ # request = Google::Cloud::Dlp::V2::GetInspectTemplateRequest.new
1096
+ #
1097
+ # # Call the get_inspect_template method.
1098
+ # result = client.get_inspect_template request
1099
+ #
1100
+ # # The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
1101
+ # p result
1102
+ #
975
1103
  def get_inspect_template request, options = nil
976
1104
  raise ::ArgumentError, "request must be provided" if request.nil?
977
1105
 
@@ -1076,6 +1204,26 @@ module Google
1076
1204
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::InspectTemplate>]
1077
1205
  #
1078
1206
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1207
+ #
1208
+ # @example Basic example
1209
+ # require "google/cloud/dlp/v2"
1210
+ #
1211
+ # # Create a client object. The client can be reused for multiple calls.
1212
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1213
+ #
1214
+ # # Create a request. To set request fields, pass in keyword arguments.
1215
+ # request = Google::Cloud::Dlp::V2::ListInspectTemplatesRequest.new
1216
+ #
1217
+ # # Call the list_inspect_templates method.
1218
+ # result = client.list_inspect_templates request
1219
+ #
1220
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1221
+ # # over elements, and API calls will be issued to fetch pages as needed.
1222
+ # result.each do |item|
1223
+ # # Each element is of type ::Google::Cloud::Dlp::V2::InspectTemplate.
1224
+ # p item
1225
+ # end
1226
+ #
1079
1227
  def list_inspect_templates request, options = nil
1080
1228
  raise ::ArgumentError, "request must be provided" if request.nil?
1081
1229
 
@@ -1142,6 +1290,22 @@ module Google
1142
1290
  # @return [::Google::Protobuf::Empty]
1143
1291
  #
1144
1292
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1293
+ #
1294
+ # @example Basic example
1295
+ # require "google/cloud/dlp/v2"
1296
+ #
1297
+ # # Create a client object. The client can be reused for multiple calls.
1298
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1299
+ #
1300
+ # # Create a request. To set request fields, pass in keyword arguments.
1301
+ # request = Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest.new
1302
+ #
1303
+ # # Call the delete_inspect_template method.
1304
+ # result = client.delete_inspect_template request
1305
+ #
1306
+ # # The returned object is of type Google::Protobuf::Empty.
1307
+ # p result
1308
+ #
1145
1309
  def delete_inspect_template request, options = nil
1146
1310
  raise ::ArgumentError, "request must be provided" if request.nil?
1147
1311
 
@@ -1235,6 +1399,22 @@ module Google
1235
1399
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1236
1400
  #
1237
1401
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1402
+ #
1403
+ # @example Basic example
1404
+ # require "google/cloud/dlp/v2"
1405
+ #
1406
+ # # Create a client object. The client can be reused for multiple calls.
1407
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1408
+ #
1409
+ # # Create a request. To set request fields, pass in keyword arguments.
1410
+ # request = Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest.new
1411
+ #
1412
+ # # Call the create_deidentify_template method.
1413
+ # result = client.create_deidentify_template request
1414
+ #
1415
+ # # The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
1416
+ # p result
1417
+ #
1238
1418
  def create_deidentify_template request, options = nil
1239
1419
  raise ::ArgumentError, "request must be provided" if request.nil?
1240
1420
 
@@ -1305,6 +1485,22 @@ module Google
1305
1485
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1306
1486
  #
1307
1487
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1488
+ #
1489
+ # @example Basic example
1490
+ # require "google/cloud/dlp/v2"
1491
+ #
1492
+ # # Create a client object. The client can be reused for multiple calls.
1493
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1494
+ #
1495
+ # # Create a request. To set request fields, pass in keyword arguments.
1496
+ # request = Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest.new
1497
+ #
1498
+ # # Call the update_deidentify_template method.
1499
+ # result = client.update_deidentify_template request
1500
+ #
1501
+ # # The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
1502
+ # p result
1503
+ #
1308
1504
  def update_deidentify_template request, options = nil
1309
1505
  raise ::ArgumentError, "request must be provided" if request.nil?
1310
1506
 
@@ -1371,6 +1567,22 @@ module Google
1371
1567
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1372
1568
  #
1373
1569
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1570
+ #
1571
+ # @example Basic example
1572
+ # require "google/cloud/dlp/v2"
1573
+ #
1574
+ # # Create a client object. The client can be reused for multiple calls.
1575
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1576
+ #
1577
+ # # Create a request. To set request fields, pass in keyword arguments.
1578
+ # request = Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest.new
1579
+ #
1580
+ # # Call the get_deidentify_template method.
1581
+ # result = client.get_deidentify_template request
1582
+ #
1583
+ # # The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
1584
+ # p result
1585
+ #
1374
1586
  def get_deidentify_template request, options = nil
1375
1587
  raise ::ArgumentError, "request must be provided" if request.nil?
1376
1588
 
@@ -1476,6 +1688,26 @@ module Google
1476
1688
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::DeidentifyTemplate>]
1477
1689
  #
1478
1690
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1691
+ #
1692
+ # @example Basic example
1693
+ # require "google/cloud/dlp/v2"
1694
+ #
1695
+ # # Create a client object. The client can be reused for multiple calls.
1696
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1697
+ #
1698
+ # # Create a request. To set request fields, pass in keyword arguments.
1699
+ # request = Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest.new
1700
+ #
1701
+ # # Call the list_deidentify_templates method.
1702
+ # result = client.list_deidentify_templates request
1703
+ #
1704
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1705
+ # # over elements, and API calls will be issued to fetch pages as needed.
1706
+ # result.each do |item|
1707
+ # # Each element is of type ::Google::Cloud::Dlp::V2::DeidentifyTemplate.
1708
+ # p item
1709
+ # end
1710
+ #
1479
1711
  def list_deidentify_templates request, options = nil
1480
1712
  raise ::ArgumentError, "request must be provided" if request.nil?
1481
1713
 
@@ -1543,6 +1775,22 @@ module Google
1543
1775
  # @return [::Google::Protobuf::Empty]
1544
1776
  #
1545
1777
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1778
+ #
1779
+ # @example Basic example
1780
+ # require "google/cloud/dlp/v2"
1781
+ #
1782
+ # # Create a client object. The client can be reused for multiple calls.
1783
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1784
+ #
1785
+ # # Create a request. To set request fields, pass in keyword arguments.
1786
+ # request = Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest.new
1787
+ #
1788
+ # # Call the delete_deidentify_template method.
1789
+ # result = client.delete_deidentify_template request
1790
+ #
1791
+ # # The returned object is of type Google::Protobuf::Empty.
1792
+ # p result
1793
+ #
1546
1794
  def delete_deidentify_template request, options = nil
1547
1795
  raise ::ArgumentError, "request must be provided" if request.nil?
1548
1796
 
@@ -1631,6 +1879,22 @@ module Google
1631
1879
  # @return [::Google::Cloud::Dlp::V2::JobTrigger]
1632
1880
  #
1633
1881
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1882
+ #
1883
+ # @example Basic example
1884
+ # require "google/cloud/dlp/v2"
1885
+ #
1886
+ # # Create a client object. The client can be reused for multiple calls.
1887
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1888
+ #
1889
+ # # Create a request. To set request fields, pass in keyword arguments.
1890
+ # request = Google::Cloud::Dlp::V2::CreateJobTriggerRequest.new
1891
+ #
1892
+ # # Call the create_job_trigger method.
1893
+ # result = client.create_job_trigger request
1894
+ #
1895
+ # # The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
1896
+ # p result
1897
+ #
1634
1898
  def create_job_trigger request, options = nil
1635
1899
  raise ::ArgumentError, "request must be provided" if request.nil?
1636
1900
 
@@ -1699,6 +1963,22 @@ module Google
1699
1963
  # @return [::Google::Cloud::Dlp::V2::JobTrigger]
1700
1964
  #
1701
1965
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1966
+ #
1967
+ # @example Basic example
1968
+ # require "google/cloud/dlp/v2"
1969
+ #
1970
+ # # Create a client object. The client can be reused for multiple calls.
1971
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
1972
+ #
1973
+ # # Create a request. To set request fields, pass in keyword arguments.
1974
+ # request = Google::Cloud::Dlp::V2::UpdateJobTriggerRequest.new
1975
+ #
1976
+ # # Call the update_job_trigger method.
1977
+ # result = client.update_job_trigger request
1978
+ #
1979
+ # # The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
1980
+ # p result
1981
+ #
1702
1982
  def update_job_trigger request, options = nil
1703
1983
  raise ::ArgumentError, "request must be provided" if request.nil?
1704
1984
 
@@ -1766,6 +2046,22 @@ module Google
1766
2046
  # @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
1767
2047
  #
1768
2048
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2049
+ #
2050
+ # @example Basic example
2051
+ # require "google/cloud/dlp/v2"
2052
+ #
2053
+ # # Create a client object. The client can be reused for multiple calls.
2054
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2055
+ #
2056
+ # # Create a request. To set request fields, pass in keyword arguments.
2057
+ # request = Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest.new
2058
+ #
2059
+ # # Call the hybrid_inspect_job_trigger method.
2060
+ # result = client.hybrid_inspect_job_trigger request
2061
+ #
2062
+ # # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
2063
+ # p result
2064
+ #
1769
2065
  def hybrid_inspect_job_trigger request, options = nil
1770
2066
  raise ::ArgumentError, "request must be provided" if request.nil?
1771
2067
 
@@ -1830,6 +2126,22 @@ module Google
1830
2126
  # @return [::Google::Cloud::Dlp::V2::JobTrigger]
1831
2127
  #
1832
2128
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2129
+ #
2130
+ # @example Basic example
2131
+ # require "google/cloud/dlp/v2"
2132
+ #
2133
+ # # Create a client object. The client can be reused for multiple calls.
2134
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2135
+ #
2136
+ # # Create a request. To set request fields, pass in keyword arguments.
2137
+ # request = Google::Cloud::Dlp::V2::GetJobTriggerRequest.new
2138
+ #
2139
+ # # Call the get_job_trigger method.
2140
+ # result = client.get_job_trigger request
2141
+ #
2142
+ # # The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
2143
+ # p result
2144
+ #
1833
2145
  def get_job_trigger request, options = nil
1834
2146
  raise ::ArgumentError, "request must be provided" if request.nil?
1835
2147
 
@@ -1959,6 +2271,26 @@ module Google
1959
2271
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::JobTrigger>]
1960
2272
  #
1961
2273
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2274
+ #
2275
+ # @example Basic example
2276
+ # require "google/cloud/dlp/v2"
2277
+ #
2278
+ # # Create a client object. The client can be reused for multiple calls.
2279
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2280
+ #
2281
+ # # Create a request. To set request fields, pass in keyword arguments.
2282
+ # request = Google::Cloud::Dlp::V2::ListJobTriggersRequest.new
2283
+ #
2284
+ # # Call the list_job_triggers method.
2285
+ # result = client.list_job_triggers request
2286
+ #
2287
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2288
+ # # over elements, and API calls will be issued to fetch pages as needed.
2289
+ # result.each do |item|
2290
+ # # Each element is of type ::Google::Cloud::Dlp::V2::JobTrigger.
2291
+ # p item
2292
+ # end
2293
+ #
1962
2294
  def list_job_triggers request, options = nil
1963
2295
  raise ::ArgumentError, "request must be provided" if request.nil?
1964
2296
 
@@ -2024,6 +2356,22 @@ module Google
2024
2356
  # @return [::Google::Protobuf::Empty]
2025
2357
  #
2026
2358
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2359
+ #
2360
+ # @example Basic example
2361
+ # require "google/cloud/dlp/v2"
2362
+ #
2363
+ # # Create a client object. The client can be reused for multiple calls.
2364
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2365
+ #
2366
+ # # Create a request. To set request fields, pass in keyword arguments.
2367
+ # request = Google::Cloud::Dlp::V2::DeleteJobTriggerRequest.new
2368
+ #
2369
+ # # Call the delete_job_trigger method.
2370
+ # result = client.delete_job_trigger request
2371
+ #
2372
+ # # The returned object is of type Google::Protobuf::Empty.
2373
+ # p result
2374
+ #
2027
2375
  def delete_job_trigger request, options = nil
2028
2376
  raise ::ArgumentError, "request must be provided" if request.nil?
2029
2377
 
@@ -2088,6 +2436,22 @@ module Google
2088
2436
  # @return [::Google::Cloud::Dlp::V2::DlpJob]
2089
2437
  #
2090
2438
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2439
+ #
2440
+ # @example Basic example
2441
+ # require "google/cloud/dlp/v2"
2442
+ #
2443
+ # # Create a client object. The client can be reused for multiple calls.
2444
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2445
+ #
2446
+ # # Create a request. To set request fields, pass in keyword arguments.
2447
+ # request = Google::Cloud::Dlp::V2::ActivateJobTriggerRequest.new
2448
+ #
2449
+ # # Call the activate_job_trigger method.
2450
+ # result = client.activate_job_trigger request
2451
+ #
2452
+ # # The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
2453
+ # p result
2454
+ #
2091
2455
  def activate_job_trigger request, options = nil
2092
2456
  raise ::ArgumentError, "request must be provided" if request.nil?
2093
2457
 
@@ -2183,6 +2547,22 @@ module Google
2183
2547
  # @return [::Google::Cloud::Dlp::V2::DlpJob]
2184
2548
  #
2185
2549
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2550
+ #
2551
+ # @example Basic example
2552
+ # require "google/cloud/dlp/v2"
2553
+ #
2554
+ # # Create a client object. The client can be reused for multiple calls.
2555
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2556
+ #
2557
+ # # Create a request. To set request fields, pass in keyword arguments.
2558
+ # request = Google::Cloud::Dlp::V2::CreateDlpJobRequest.new
2559
+ #
2560
+ # # Call the create_dlp_job method.
2561
+ # result = client.create_dlp_job request
2562
+ #
2563
+ # # The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
2564
+ # p result
2565
+ #
2186
2566
  def create_dlp_job request, options = nil
2187
2567
  raise ::ArgumentError, "request must be provided" if request.nil?
2188
2568
 
@@ -2313,6 +2693,26 @@ module Google
2313
2693
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::DlpJob>]
2314
2694
  #
2315
2695
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2696
+ #
2697
+ # @example Basic example
2698
+ # require "google/cloud/dlp/v2"
2699
+ #
2700
+ # # Create a client object. The client can be reused for multiple calls.
2701
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2702
+ #
2703
+ # # Create a request. To set request fields, pass in keyword arguments.
2704
+ # request = Google::Cloud::Dlp::V2::ListDlpJobsRequest.new
2705
+ #
2706
+ # # Call the list_dlp_jobs method.
2707
+ # result = client.list_dlp_jobs request
2708
+ #
2709
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2710
+ # # over elements, and API calls will be issued to fetch pages as needed.
2711
+ # result.each do |item|
2712
+ # # Each element is of type ::Google::Cloud::Dlp::V2::DlpJob.
2713
+ # p item
2714
+ # end
2715
+ #
2316
2716
  def list_dlp_jobs request, options = nil
2317
2717
  raise ::ArgumentError, "request must be provided" if request.nil?
2318
2718
 
@@ -2378,6 +2778,22 @@ module Google
2378
2778
  # @return [::Google::Cloud::Dlp::V2::DlpJob]
2379
2779
  #
2380
2780
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2781
+ #
2782
+ # @example Basic example
2783
+ # require "google/cloud/dlp/v2"
2784
+ #
2785
+ # # Create a client object. The client can be reused for multiple calls.
2786
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2787
+ #
2788
+ # # Create a request. To set request fields, pass in keyword arguments.
2789
+ # request = Google::Cloud::Dlp::V2::GetDlpJobRequest.new
2790
+ #
2791
+ # # Call the get_dlp_job method.
2792
+ # result = client.get_dlp_job request
2793
+ #
2794
+ # # The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
2795
+ # p result
2796
+ #
2381
2797
  def get_dlp_job request, options = nil
2382
2798
  raise ::ArgumentError, "request must be provided" if request.nil?
2383
2799
 
@@ -2444,6 +2860,22 @@ module Google
2444
2860
  # @return [::Google::Protobuf::Empty]
2445
2861
  #
2446
2862
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2863
+ #
2864
+ # @example Basic example
2865
+ # require "google/cloud/dlp/v2"
2866
+ #
2867
+ # # Create a client object. The client can be reused for multiple calls.
2868
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2869
+ #
2870
+ # # Create a request. To set request fields, pass in keyword arguments.
2871
+ # request = Google::Cloud::Dlp::V2::DeleteDlpJobRequest.new
2872
+ #
2873
+ # # Call the delete_dlp_job method.
2874
+ # result = client.delete_dlp_job request
2875
+ #
2876
+ # # The returned object is of type Google::Protobuf::Empty.
2877
+ # p result
2878
+ #
2447
2879
  def delete_dlp_job request, options = nil
2448
2880
  raise ::ArgumentError, "request must be provided" if request.nil?
2449
2881
 
@@ -2510,6 +2942,22 @@ module Google
2510
2942
  # @return [::Google::Protobuf::Empty]
2511
2943
  #
2512
2944
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2945
+ #
2946
+ # @example Basic example
2947
+ # require "google/cloud/dlp/v2"
2948
+ #
2949
+ # # Create a client object. The client can be reused for multiple calls.
2950
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
2951
+ #
2952
+ # # Create a request. To set request fields, pass in keyword arguments.
2953
+ # request = Google::Cloud::Dlp::V2::CancelDlpJobRequest.new
2954
+ #
2955
+ # # Call the cancel_dlp_job method.
2956
+ # result = client.cancel_dlp_job request
2957
+ #
2958
+ # # The returned object is of type Google::Protobuf::Empty.
2959
+ # p result
2960
+ #
2513
2961
  def cancel_dlp_job request, options = nil
2514
2962
  raise ::ArgumentError, "request must be provided" if request.nil?
2515
2963
 
@@ -2602,6 +3050,22 @@ module Google
2602
3050
  # @return [::Google::Cloud::Dlp::V2::StoredInfoType]
2603
3051
  #
2604
3052
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3053
+ #
3054
+ # @example Basic example
3055
+ # require "google/cloud/dlp/v2"
3056
+ #
3057
+ # # Create a client object. The client can be reused for multiple calls.
3058
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
3059
+ #
3060
+ # # Create a request. To set request fields, pass in keyword arguments.
3061
+ # request = Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest.new
3062
+ #
3063
+ # # Call the create_stored_info_type method.
3064
+ # result = client.create_stored_info_type request
3065
+ #
3066
+ # # The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
3067
+ # p result
3068
+ #
2605
3069
  def create_stored_info_type request, options = nil
2606
3070
  raise ::ArgumentError, "request must be provided" if request.nil?
2607
3071
 
@@ -2675,6 +3139,22 @@ module Google
2675
3139
  # @return [::Google::Cloud::Dlp::V2::StoredInfoType]
2676
3140
  #
2677
3141
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3142
+ #
3143
+ # @example Basic example
3144
+ # require "google/cloud/dlp/v2"
3145
+ #
3146
+ # # Create a client object. The client can be reused for multiple calls.
3147
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
3148
+ #
3149
+ # # Create a request. To set request fields, pass in keyword arguments.
3150
+ # request = Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest.new
3151
+ #
3152
+ # # Call the update_stored_info_type method.
3153
+ # result = client.update_stored_info_type request
3154
+ #
3155
+ # # The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
3156
+ # p result
3157
+ #
2678
3158
  def update_stored_info_type request, options = nil
2679
3159
  raise ::ArgumentError, "request must be provided" if request.nil?
2680
3160
 
@@ -2741,6 +3221,22 @@ module Google
2741
3221
  # @return [::Google::Cloud::Dlp::V2::StoredInfoType]
2742
3222
  #
2743
3223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3224
+ #
3225
+ # @example Basic example
3226
+ # require "google/cloud/dlp/v2"
3227
+ #
3228
+ # # Create a client object. The client can be reused for multiple calls.
3229
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
3230
+ #
3231
+ # # Create a request. To set request fields, pass in keyword arguments.
3232
+ # request = Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest.new
3233
+ #
3234
+ # # Call the get_stored_info_type method.
3235
+ # result = client.get_stored_info_type request
3236
+ #
3237
+ # # The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
3238
+ # p result
3239
+ #
2744
3240
  def get_stored_info_type request, options = nil
2745
3241
  raise ::ArgumentError, "request must be provided" if request.nil?
2746
3242
 
@@ -2843,6 +3339,26 @@ module Google
2843
3339
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::StoredInfoType>]
2844
3340
  #
2845
3341
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3342
+ #
3343
+ # @example Basic example
3344
+ # require "google/cloud/dlp/v2"
3345
+ #
3346
+ # # Create a client object. The client can be reused for multiple calls.
3347
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
3348
+ #
3349
+ # # Create a request. To set request fields, pass in keyword arguments.
3350
+ # request = Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest.new
3351
+ #
3352
+ # # Call the list_stored_info_types method.
3353
+ # result = client.list_stored_info_types request
3354
+ #
3355
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3356
+ # # over elements, and API calls will be issued to fetch pages as needed.
3357
+ # result.each do |item|
3358
+ # # Each element is of type ::Google::Cloud::Dlp::V2::StoredInfoType.
3359
+ # p item
3360
+ # end
3361
+ #
2846
3362
  def list_stored_info_types request, options = nil
2847
3363
  raise ::ArgumentError, "request must be provided" if request.nil?
2848
3364
 
@@ -2910,6 +3426,22 @@ module Google
2910
3426
  # @return [::Google::Protobuf::Empty]
2911
3427
  #
2912
3428
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3429
+ #
3430
+ # @example Basic example
3431
+ # require "google/cloud/dlp/v2"
3432
+ #
3433
+ # # Create a client object. The client can be reused for multiple calls.
3434
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
3435
+ #
3436
+ # # Create a request. To set request fields, pass in keyword arguments.
3437
+ # request = Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest.new
3438
+ #
3439
+ # # Call the delete_stored_info_type method.
3440
+ # result = client.delete_stored_info_type request
3441
+ #
3442
+ # # The returned object is of type Google::Protobuf::Empty.
3443
+ # p result
3444
+ #
2913
3445
  def delete_stored_info_type request, options = nil
2914
3446
  raise ::ArgumentError, "request must be provided" if request.nil?
2915
3447
 
@@ -2977,6 +3509,22 @@ module Google
2977
3509
  # @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
2978
3510
  #
2979
3511
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3512
+ #
3513
+ # @example Basic example
3514
+ # require "google/cloud/dlp/v2"
3515
+ #
3516
+ # # Create a client object. The client can be reused for multiple calls.
3517
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
3518
+ #
3519
+ # # Create a request. To set request fields, pass in keyword arguments.
3520
+ # request = Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest.new
3521
+ #
3522
+ # # Call the hybrid_inspect_dlp_job method.
3523
+ # result = client.hybrid_inspect_dlp_job request
3524
+ #
3525
+ # # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
3526
+ # p result
3527
+ #
2980
3528
  def hybrid_inspect_dlp_job request, options = nil
2981
3529
  raise ::ArgumentError, "request must be provided" if request.nil?
2982
3530
 
@@ -3040,6 +3588,22 @@ module Google
3040
3588
  # @return [::Google::Protobuf::Empty]
3041
3589
  #
3042
3590
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3591
+ #
3592
+ # @example Basic example
3593
+ # require "google/cloud/dlp/v2"
3594
+ #
3595
+ # # Create a client object. The client can be reused for multiple calls.
3596
+ # client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
3597
+ #
3598
+ # # Create a request. To set request fields, pass in keyword arguments.
3599
+ # request = Google::Cloud::Dlp::V2::FinishDlpJobRequest.new
3600
+ #
3601
+ # # Call the finish_dlp_job method.
3602
+ # result = client.finish_dlp_job request
3603
+ #
3604
+ # # The returned object is of type Google::Protobuf::Empty.
3605
+ # p result
3606
+ #
3043
3607
  def finish_dlp_job request, options = nil
3044
3608
  raise ::ArgumentError, "request must be provided" if request.nil?
3045
3609
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.17.0"
24
+ VERSION = "0.18.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dlp-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  - !ruby/object:Gem::Version
239
239
  version: '0'
240
240
  requirements: []
241
- rubygems_version: 3.4.2
241
+ rubygems_version: 3.4.19
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: Provides methods for detection, risk analysis, and de-identification of privacy-sensitive