google-cloud-dlp-v2 0.7.3 → 0.7.4

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: 252a802f2034ed0dd5e674d887902ac383b1b2179f04045f766521ab09c41e1f
4
- data.tar.gz: 8d37700d3a6d818961f0d31b90dca9f459ac5ded84179ab330bf136bc2a8e001
3
+ metadata.gz: 6510ec23fca41980b6dc811b377e3df7dcf55cf8eaf72f2ccc1c6f1fb1b2bbbf
4
+ data.tar.gz: 8d088ae6958de87947996999f8d2b999f9f2c7c516b87b879fcfb66dafd416c5
5
5
  SHA512:
6
- metadata.gz: eaa34b57bc427c9568e49bc90c3f5d80c8525bf4d1a25ad0ff37be740a1e7796d337ff0a64994551e22fc34fc5b3a2dbd3a0b5c84cc165b3bf0b559f579b8020
7
- data.tar.gz: a06b1c0f862ba7814dbd168106357b577cc70ab81990725d64644a39b0b91cc7532a6ce1a037ef833b6cc3ca0b5cfe6d510ee0978d5984dc600a1d63106c8393
6
+ metadata.gz: b39a024246c7cec2aaac822efd5eb5d90dfdb585d54ffaaf2aab8fb92c2425985d68cc0343e27133770580edf272ad36e30ea0710a1d74ff198e55b2c54c5854
7
+ data.tar.gz: 5c13a401e90af32a24df54290703b8f0625224fb78a359b47403d2bdf12e3caadcc17f2f1e5acba3d9ab3a656823fd9d651a4a9fa0070a5005f99518e78b1afa
@@ -345,6 +345,21 @@ module Google
345
345
  #
346
346
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
347
347
  #
348
+ # @example Basic example
349
+ # require "google/cloud/dlp/v2"
350
+ #
351
+ # # Create a client object. The client can be reused for multiple calls.
352
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
353
+ #
354
+ # # Create a request. To set request fields, pass in keyword arguments.
355
+ # request = Google::Cloud::Dlp::V2::InspectContentRequest.new
356
+ #
357
+ # # Call the inspect_content method.
358
+ # result = client.inspect_content request
359
+ #
360
+ # # The returned object is of type Google::Cloud::Dlp::V2::InspectContentResponse.
361
+ # p result
362
+ #
348
363
  def inspect_content request, options = nil
349
364
  raise ::ArgumentError, "request must be provided" if request.nil?
350
365
 
@@ -362,9 +377,11 @@ module Google
362
377
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
363
378
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
364
379
 
365
- header_params = {
366
- "parent" => request.parent
367
- }
380
+ header_params = {}
381
+ if request.parent
382
+ header_params["parent"] = request.parent
383
+ end
384
+
368
385
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
369
386
  metadata[:"x-goog-request-params"] ||= request_params_header
370
387
 
@@ -446,6 +463,21 @@ module Google
446
463
  #
447
464
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
448
465
  #
466
+ # @example Basic example
467
+ # require "google/cloud/dlp/v2"
468
+ #
469
+ # # Create a client object. The client can be reused for multiple calls.
470
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
471
+ #
472
+ # # Create a request. To set request fields, pass in keyword arguments.
473
+ # request = Google::Cloud::Dlp::V2::RedactImageRequest.new
474
+ #
475
+ # # Call the redact_image method.
476
+ # result = client.redact_image request
477
+ #
478
+ # # The returned object is of type Google::Cloud::Dlp::V2::RedactImageResponse.
479
+ # p result
480
+ #
449
481
  def redact_image request, options = nil
450
482
  raise ::ArgumentError, "request must be provided" if request.nil?
451
483
 
@@ -463,9 +495,11 @@ module Google
463
495
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
464
496
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
465
497
 
466
- header_params = {
467
- "parent" => request.parent
468
- }
498
+ header_params = {}
499
+ if request.parent
500
+ header_params["parent"] = request.parent
501
+ end
502
+
469
503
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
470
504
  metadata[:"x-goog-request-params"] ||= request_params_header
471
505
 
@@ -560,6 +594,21 @@ module Google
560
594
  #
561
595
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
562
596
  #
597
+ # @example Basic example
598
+ # require "google/cloud/dlp/v2"
599
+ #
600
+ # # Create a client object. The client can be reused for multiple calls.
601
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
602
+ #
603
+ # # Create a request. To set request fields, pass in keyword arguments.
604
+ # request = Google::Cloud::Dlp::V2::DeidentifyContentRequest.new
605
+ #
606
+ # # Call the deidentify_content method.
607
+ # result = client.deidentify_content request
608
+ #
609
+ # # The returned object is of type Google::Cloud::Dlp::V2::DeidentifyContentResponse.
610
+ # p result
611
+ #
563
612
  def deidentify_content request, options = nil
564
613
  raise ::ArgumentError, "request must be provided" if request.nil?
565
614
 
@@ -577,9 +626,11 @@ module Google
577
626
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
578
627
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
628
 
580
- header_params = {
581
- "parent" => request.parent
582
- }
629
+ header_params = {}
630
+ if request.parent
631
+ header_params["parent"] = request.parent
632
+ end
633
+
583
634
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
584
635
  metadata[:"x-goog-request-params"] ||= request_params_header
585
636
 
@@ -677,6 +728,21 @@ module Google
677
728
  #
678
729
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
679
730
  #
731
+ # @example Basic example
732
+ # require "google/cloud/dlp/v2"
733
+ #
734
+ # # Create a client object. The client can be reused for multiple calls.
735
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
736
+ #
737
+ # # Create a request. To set request fields, pass in keyword arguments.
738
+ # request = Google::Cloud::Dlp::V2::ReidentifyContentRequest.new
739
+ #
740
+ # # Call the reidentify_content method.
741
+ # result = client.reidentify_content request
742
+ #
743
+ # # The returned object is of type Google::Cloud::Dlp::V2::ReidentifyContentResponse.
744
+ # p result
745
+ #
680
746
  def reidentify_content request, options = nil
681
747
  raise ::ArgumentError, "request must be provided" if request.nil?
682
748
 
@@ -694,9 +760,11 @@ module Google
694
760
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
695
761
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
696
762
 
697
- header_params = {
698
- "parent" => request.parent
699
- }
763
+ header_params = {}
764
+ if request.parent
765
+ header_params["parent"] = request.parent
766
+ end
767
+
700
768
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
701
769
  metadata[:"x-goog-request-params"] ||= request_params_header
702
770
 
@@ -760,6 +828,21 @@ module Google
760
828
  #
761
829
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
762
830
  #
831
+ # @example Basic example
832
+ # require "google/cloud/dlp/v2"
833
+ #
834
+ # # Create a client object. The client can be reused for multiple calls.
835
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
836
+ #
837
+ # # Create a request. To set request fields, pass in keyword arguments.
838
+ # request = Google::Cloud::Dlp::V2::ListInfoTypesRequest.new
839
+ #
840
+ # # Call the list_info_types method.
841
+ # result = client.list_info_types request
842
+ #
843
+ # # The returned object is of type Google::Cloud::Dlp::V2::ListInfoTypesResponse.
844
+ # p result
845
+ #
763
846
  def list_info_types request, options = nil
764
847
  raise ::ArgumentError, "request must be provided" if request.nil?
765
848
 
@@ -852,6 +935,21 @@ module Google
852
935
  #
853
936
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
854
937
  #
938
+ # @example Basic example
939
+ # require "google/cloud/dlp/v2"
940
+ #
941
+ # # Create a client object. The client can be reused for multiple calls.
942
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
943
+ #
944
+ # # Create a request. To set request fields, pass in keyword arguments.
945
+ # request = Google::Cloud::Dlp::V2::CreateInspectTemplateRequest.new
946
+ #
947
+ # # Call the create_inspect_template method.
948
+ # result = client.create_inspect_template request
949
+ #
950
+ # # The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
951
+ # p result
952
+ #
855
953
  def create_inspect_template request, options = nil
856
954
  raise ::ArgumentError, "request must be provided" if request.nil?
857
955
 
@@ -869,9 +967,11 @@ module Google
869
967
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
870
968
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
871
969
 
872
- header_params = {
873
- "parent" => request.parent
874
- }
970
+ header_params = {}
971
+ if request.parent
972
+ header_params["parent"] = request.parent
973
+ end
974
+
875
975
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
876
976
  metadata[:"x-goog-request-params"] ||= request_params_header
877
977
 
@@ -927,6 +1027,21 @@ module Google
927
1027
  #
928
1028
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
929
1029
  #
1030
+ # @example Basic example
1031
+ # require "google/cloud/dlp/v2"
1032
+ #
1033
+ # # Create a client object. The client can be reused for multiple calls.
1034
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1035
+ #
1036
+ # # Create a request. To set request fields, pass in keyword arguments.
1037
+ # request = Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest.new
1038
+ #
1039
+ # # Call the update_inspect_template method.
1040
+ # result = client.update_inspect_template request
1041
+ #
1042
+ # # The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
1043
+ # p result
1044
+ #
930
1045
  def update_inspect_template request, options = nil
931
1046
  raise ::ArgumentError, "request must be provided" if request.nil?
932
1047
 
@@ -944,9 +1059,11 @@ module Google
944
1059
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
945
1060
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
946
1061
 
947
- header_params = {
948
- "name" => request.name
949
- }
1062
+ header_params = {}
1063
+ if request.name
1064
+ header_params["name"] = request.name
1065
+ end
1066
+
950
1067
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
951
1068
  metadata[:"x-goog-request-params"] ||= request_params_header
952
1069
 
@@ -998,6 +1115,21 @@ module Google
998
1115
  #
999
1116
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1000
1117
  #
1118
+ # @example Basic example
1119
+ # require "google/cloud/dlp/v2"
1120
+ #
1121
+ # # Create a client object. The client can be reused for multiple calls.
1122
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1123
+ #
1124
+ # # Create a request. To set request fields, pass in keyword arguments.
1125
+ # request = Google::Cloud::Dlp::V2::GetInspectTemplateRequest.new
1126
+ #
1127
+ # # Call the get_inspect_template method.
1128
+ # result = client.get_inspect_template request
1129
+ #
1130
+ # # The returned object is of type Google::Cloud::Dlp::V2::InspectTemplate.
1131
+ # p result
1132
+ #
1001
1133
  def get_inspect_template request, options = nil
1002
1134
  raise ::ArgumentError, "request must be provided" if request.nil?
1003
1135
 
@@ -1015,9 +1147,11 @@ module Google
1015
1147
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1016
1148
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1017
1149
 
1018
- header_params = {
1019
- "name" => request.name
1020
- }
1150
+ header_params = {}
1151
+ if request.name
1152
+ header_params["name"] = request.name
1153
+ end
1154
+
1021
1155
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1022
1156
  metadata[:"x-goog-request-params"] ||= request_params_header
1023
1157
 
@@ -1108,6 +1242,27 @@ module Google
1108
1242
  #
1109
1243
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1110
1244
  #
1245
+ # @example Basic example
1246
+ # require "google/cloud/dlp/v2"
1247
+ #
1248
+ # # Create a client object. The client can be reused for multiple calls.
1249
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1250
+ #
1251
+ # # Create a request. To set request fields, pass in keyword arguments.
1252
+ # request = Google::Cloud::Dlp::V2::ListInspectTemplatesRequest.new
1253
+ #
1254
+ # # Call the list_inspect_templates method.
1255
+ # result = client.list_inspect_templates request
1256
+ #
1257
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1258
+ # # iterate over all elements by calling #each, and the enumerable
1259
+ # # will lazily make API calls to fetch subsequent pages. Other
1260
+ # # methods are also available for managing paging directly.
1261
+ # result.each do |response|
1262
+ # # Each element is of type ::Google::Cloud::Dlp::V2::InspectTemplate.
1263
+ # p response
1264
+ # end
1265
+ #
1111
1266
  def list_inspect_templates request, options = nil
1112
1267
  raise ::ArgumentError, "request must be provided" if request.nil?
1113
1268
 
@@ -1125,9 +1280,11 @@ module Google
1125
1280
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1126
1281
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1127
1282
 
1128
- header_params = {
1129
- "parent" => request.parent
1130
- }
1283
+ header_params = {}
1284
+ if request.parent
1285
+ header_params["parent"] = request.parent
1286
+ end
1287
+
1131
1288
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1132
1289
  metadata[:"x-goog-request-params"] ||= request_params_header
1133
1290
 
@@ -1180,6 +1337,21 @@ module Google
1180
1337
  #
1181
1338
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1182
1339
  #
1340
+ # @example Basic example
1341
+ # require "google/cloud/dlp/v2"
1342
+ #
1343
+ # # Create a client object. The client can be reused for multiple calls.
1344
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1345
+ #
1346
+ # # Create a request. To set request fields, pass in keyword arguments.
1347
+ # request = Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest.new
1348
+ #
1349
+ # # Call the delete_inspect_template method.
1350
+ # result = client.delete_inspect_template request
1351
+ #
1352
+ # # The returned object is of type Google::Protobuf::Empty.
1353
+ # p result
1354
+ #
1183
1355
  def delete_inspect_template request, options = nil
1184
1356
  raise ::ArgumentError, "request must be provided" if request.nil?
1185
1357
 
@@ -1197,9 +1369,11 @@ module Google
1197
1369
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1198
1370
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1199
1371
 
1200
- header_params = {
1201
- "name" => request.name
1202
- }
1372
+ header_params = {}
1373
+ if request.name
1374
+ header_params["name"] = request.name
1375
+ end
1376
+
1203
1377
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1204
1378
  metadata[:"x-goog-request-params"] ||= request_params_header
1205
1379
 
@@ -1279,6 +1453,21 @@ module Google
1279
1453
  #
1280
1454
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1281
1455
  #
1456
+ # @example Basic example
1457
+ # require "google/cloud/dlp/v2"
1458
+ #
1459
+ # # Create a client object. The client can be reused for multiple calls.
1460
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1461
+ #
1462
+ # # Create a request. To set request fields, pass in keyword arguments.
1463
+ # request = Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest.new
1464
+ #
1465
+ # # Call the create_deidentify_template method.
1466
+ # result = client.create_deidentify_template request
1467
+ #
1468
+ # # The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
1469
+ # p result
1470
+ #
1282
1471
  def create_deidentify_template request, options = nil
1283
1472
  raise ::ArgumentError, "request must be provided" if request.nil?
1284
1473
 
@@ -1296,9 +1485,11 @@ module Google
1296
1485
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1297
1486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1298
1487
 
1299
- header_params = {
1300
- "parent" => request.parent
1301
- }
1488
+ header_params = {}
1489
+ if request.parent
1490
+ header_params["parent"] = request.parent
1491
+ end
1492
+
1302
1493
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1303
1494
  metadata[:"x-goog-request-params"] ||= request_params_header
1304
1495
 
@@ -1355,6 +1546,21 @@ module Google
1355
1546
  #
1356
1547
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1357
1548
  #
1549
+ # @example Basic example
1550
+ # require "google/cloud/dlp/v2"
1551
+ #
1552
+ # # Create a client object. The client can be reused for multiple calls.
1553
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1554
+ #
1555
+ # # Create a request. To set request fields, pass in keyword arguments.
1556
+ # request = Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest.new
1557
+ #
1558
+ # # Call the update_deidentify_template method.
1559
+ # result = client.update_deidentify_template request
1560
+ #
1561
+ # # The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
1562
+ # p result
1563
+ #
1358
1564
  def update_deidentify_template request, options = nil
1359
1565
  raise ::ArgumentError, "request must be provided" if request.nil?
1360
1566
 
@@ -1372,9 +1578,11 @@ module Google
1372
1578
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1373
1579
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1374
1580
 
1375
- header_params = {
1376
- "name" => request.name
1377
- }
1581
+ header_params = {}
1582
+ if request.name
1583
+ header_params["name"] = request.name
1584
+ end
1585
+
1378
1586
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1379
1587
  metadata[:"x-goog-request-params"] ||= request_params_header
1380
1588
 
@@ -1427,6 +1635,21 @@ module Google
1427
1635
  #
1428
1636
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1429
1637
  #
1638
+ # @example Basic example
1639
+ # require "google/cloud/dlp/v2"
1640
+ #
1641
+ # # Create a client object. The client can be reused for multiple calls.
1642
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1643
+ #
1644
+ # # Create a request. To set request fields, pass in keyword arguments.
1645
+ # request = Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest.new
1646
+ #
1647
+ # # Call the get_deidentify_template method.
1648
+ # result = client.get_deidentify_template request
1649
+ #
1650
+ # # The returned object is of type Google::Cloud::Dlp::V2::DeidentifyTemplate.
1651
+ # p result
1652
+ #
1430
1653
  def get_deidentify_template request, options = nil
1431
1654
  raise ::ArgumentError, "request must be provided" if request.nil?
1432
1655
 
@@ -1444,9 +1667,11 @@ module Google
1444
1667
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1445
1668
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1446
1669
 
1447
- header_params = {
1448
- "name" => request.name
1449
- }
1670
+ header_params = {}
1671
+ if request.name
1672
+ header_params["name"] = request.name
1673
+ end
1674
+
1450
1675
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1451
1676
  metadata[:"x-goog-request-params"] ||= request_params_header
1452
1677
 
@@ -1538,6 +1763,27 @@ module Google
1538
1763
  #
1539
1764
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1540
1765
  #
1766
+ # @example Basic example
1767
+ # require "google/cloud/dlp/v2"
1768
+ #
1769
+ # # Create a client object. The client can be reused for multiple calls.
1770
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1771
+ #
1772
+ # # Create a request. To set request fields, pass in keyword arguments.
1773
+ # request = Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest.new
1774
+ #
1775
+ # # Call the list_deidentify_templates method.
1776
+ # result = client.list_deidentify_templates request
1777
+ #
1778
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1779
+ # # iterate over all elements by calling #each, and the enumerable
1780
+ # # will lazily make API calls to fetch subsequent pages. Other
1781
+ # # methods are also available for managing paging directly.
1782
+ # result.each do |response|
1783
+ # # Each element is of type ::Google::Cloud::Dlp::V2::DeidentifyTemplate.
1784
+ # p response
1785
+ # end
1786
+ #
1541
1787
  def list_deidentify_templates request, options = nil
1542
1788
  raise ::ArgumentError, "request must be provided" if request.nil?
1543
1789
 
@@ -1555,9 +1801,11 @@ module Google
1555
1801
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1556
1802
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1557
1803
 
1558
- header_params = {
1559
- "parent" => request.parent
1560
- }
1804
+ header_params = {}
1805
+ if request.parent
1806
+ header_params["parent"] = request.parent
1807
+ end
1808
+
1561
1809
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1562
1810
  metadata[:"x-goog-request-params"] ||= request_params_header
1563
1811
 
@@ -1611,6 +1859,21 @@ module Google
1611
1859
  #
1612
1860
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1613
1861
  #
1862
+ # @example Basic example
1863
+ # require "google/cloud/dlp/v2"
1864
+ #
1865
+ # # Create a client object. The client can be reused for multiple calls.
1866
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1867
+ #
1868
+ # # Create a request. To set request fields, pass in keyword arguments.
1869
+ # request = Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest.new
1870
+ #
1871
+ # # Call the delete_deidentify_template method.
1872
+ # result = client.delete_deidentify_template request
1873
+ #
1874
+ # # The returned object is of type Google::Protobuf::Empty.
1875
+ # p result
1876
+ #
1614
1877
  def delete_deidentify_template request, options = nil
1615
1878
  raise ::ArgumentError, "request must be provided" if request.nil?
1616
1879
 
@@ -1628,9 +1891,11 @@ module Google
1628
1891
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1629
1892
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1630
1893
 
1631
- header_params = {
1632
- "name" => request.name
1633
- }
1894
+ header_params = {}
1895
+ if request.name
1896
+ header_params["name"] = request.name
1897
+ end
1898
+
1634
1899
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1635
1900
  metadata[:"x-goog-request-params"] ||= request_params_header
1636
1901
 
@@ -1705,6 +1970,21 @@ module Google
1705
1970
  #
1706
1971
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1707
1972
  #
1973
+ # @example Basic example
1974
+ # require "google/cloud/dlp/v2"
1975
+ #
1976
+ # # Create a client object. The client can be reused for multiple calls.
1977
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
1978
+ #
1979
+ # # Create a request. To set request fields, pass in keyword arguments.
1980
+ # request = Google::Cloud::Dlp::V2::CreateJobTriggerRequest.new
1981
+ #
1982
+ # # Call the create_job_trigger method.
1983
+ # result = client.create_job_trigger request
1984
+ #
1985
+ # # The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
1986
+ # p result
1987
+ #
1708
1988
  def create_job_trigger request, options = nil
1709
1989
  raise ::ArgumentError, "request must be provided" if request.nil?
1710
1990
 
@@ -1722,9 +2002,11 @@ module Google
1722
2002
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1723
2003
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1724
2004
 
1725
- header_params = {
1726
- "parent" => request.parent
1727
- }
2005
+ header_params = {}
2006
+ if request.parent
2007
+ header_params["parent"] = request.parent
2008
+ end
2009
+
1728
2010
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1729
2011
  metadata[:"x-goog-request-params"] ||= request_params_header
1730
2012
 
@@ -1779,6 +2061,21 @@ module Google
1779
2061
  #
1780
2062
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1781
2063
  #
2064
+ # @example Basic example
2065
+ # require "google/cloud/dlp/v2"
2066
+ #
2067
+ # # Create a client object. The client can be reused for multiple calls.
2068
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2069
+ #
2070
+ # # Create a request. To set request fields, pass in keyword arguments.
2071
+ # request = Google::Cloud::Dlp::V2::UpdateJobTriggerRequest.new
2072
+ #
2073
+ # # Call the update_job_trigger method.
2074
+ # result = client.update_job_trigger request
2075
+ #
2076
+ # # The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
2077
+ # p result
2078
+ #
1782
2079
  def update_job_trigger request, options = nil
1783
2080
  raise ::ArgumentError, "request must be provided" if request.nil?
1784
2081
 
@@ -1796,9 +2093,11 @@ module Google
1796
2093
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1797
2094
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1798
2095
 
1799
- header_params = {
1800
- "name" => request.name
1801
- }
2096
+ header_params = {}
2097
+ if request.name
2098
+ header_params["name"] = request.name
2099
+ end
2100
+
1802
2101
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1803
2102
  metadata[:"x-goog-request-params"] ||= request_params_header
1804
2103
 
@@ -1855,6 +2154,21 @@ module Google
1855
2154
  #
1856
2155
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1857
2156
  #
2157
+ # @example Basic example
2158
+ # require "google/cloud/dlp/v2"
2159
+ #
2160
+ # # Create a client object. The client can be reused for multiple calls.
2161
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2162
+ #
2163
+ # # Create a request. To set request fields, pass in keyword arguments.
2164
+ # request = Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest.new
2165
+ #
2166
+ # # Call the hybrid_inspect_job_trigger method.
2167
+ # result = client.hybrid_inspect_job_trigger request
2168
+ #
2169
+ # # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
2170
+ # p result
2171
+ #
1858
2172
  def hybrid_inspect_job_trigger request, options = nil
1859
2173
  raise ::ArgumentError, "request must be provided" if request.nil?
1860
2174
 
@@ -1872,9 +2186,11 @@ module Google
1872
2186
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1873
2187
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1874
2188
 
1875
- header_params = {
1876
- "name" => request.name
1877
- }
2189
+ header_params = {}
2190
+ if request.name
2191
+ header_params["name"] = request.name
2192
+ end
2193
+
1878
2194
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1879
2195
  metadata[:"x-goog-request-params"] ||= request_params_header
1880
2196
 
@@ -1925,6 +2241,21 @@ module Google
1925
2241
  #
1926
2242
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1927
2243
  #
2244
+ # @example Basic example
2245
+ # require "google/cloud/dlp/v2"
2246
+ #
2247
+ # # Create a client object. The client can be reused for multiple calls.
2248
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2249
+ #
2250
+ # # Create a request. To set request fields, pass in keyword arguments.
2251
+ # request = Google::Cloud::Dlp::V2::GetJobTriggerRequest.new
2252
+ #
2253
+ # # Call the get_job_trigger method.
2254
+ # result = client.get_job_trigger request
2255
+ #
2256
+ # # The returned object is of type Google::Cloud::Dlp::V2::JobTrigger.
2257
+ # p result
2258
+ #
1928
2259
  def get_job_trigger request, options = nil
1929
2260
  raise ::ArgumentError, "request must be provided" if request.nil?
1930
2261
 
@@ -1942,9 +2273,11 @@ module Google
1942
2273
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1943
2274
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1944
2275
 
1945
- header_params = {
1946
- "name" => request.name
1947
- }
2276
+ header_params = {}
2277
+ if request.name
2278
+ header_params["name"] = request.name
2279
+ end
2280
+
1948
2281
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1949
2282
  metadata[:"x-goog-request-params"] ||= request_params_header
1950
2283
 
@@ -2058,6 +2391,27 @@ module Google
2058
2391
  #
2059
2392
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2060
2393
  #
2394
+ # @example Basic example
2395
+ # require "google/cloud/dlp/v2"
2396
+ #
2397
+ # # Create a client object. The client can be reused for multiple calls.
2398
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2399
+ #
2400
+ # # Create a request. To set request fields, pass in keyword arguments.
2401
+ # request = Google::Cloud::Dlp::V2::ListJobTriggersRequest.new
2402
+ #
2403
+ # # Call the list_job_triggers method.
2404
+ # result = client.list_job_triggers request
2405
+ #
2406
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2407
+ # # iterate over all elements by calling #each, and the enumerable
2408
+ # # will lazily make API calls to fetch subsequent pages. Other
2409
+ # # methods are also available for managing paging directly.
2410
+ # result.each do |response|
2411
+ # # Each element is of type ::Google::Cloud::Dlp::V2::JobTrigger.
2412
+ # p response
2413
+ # end
2414
+ #
2061
2415
  def list_job_triggers request, options = nil
2062
2416
  raise ::ArgumentError, "request must be provided" if request.nil?
2063
2417
 
@@ -2075,9 +2429,11 @@ module Google
2075
2429
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2076
2430
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2077
2431
 
2078
- header_params = {
2079
- "parent" => request.parent
2080
- }
2432
+ header_params = {}
2433
+ if request.parent
2434
+ header_params["parent"] = request.parent
2435
+ end
2436
+
2081
2437
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2082
2438
  metadata[:"x-goog-request-params"] ||= request_params_header
2083
2439
 
@@ -2129,6 +2485,21 @@ module Google
2129
2485
  #
2130
2486
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2131
2487
  #
2488
+ # @example Basic example
2489
+ # require "google/cloud/dlp/v2"
2490
+ #
2491
+ # # Create a client object. The client can be reused for multiple calls.
2492
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2493
+ #
2494
+ # # Create a request. To set request fields, pass in keyword arguments.
2495
+ # request = Google::Cloud::Dlp::V2::DeleteJobTriggerRequest.new
2496
+ #
2497
+ # # Call the delete_job_trigger method.
2498
+ # result = client.delete_job_trigger request
2499
+ #
2500
+ # # The returned object is of type Google::Protobuf::Empty.
2501
+ # p result
2502
+ #
2132
2503
  def delete_job_trigger request, options = nil
2133
2504
  raise ::ArgumentError, "request must be provided" if request.nil?
2134
2505
 
@@ -2146,9 +2517,11 @@ module Google
2146
2517
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2147
2518
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2148
2519
 
2149
- header_params = {
2150
- "name" => request.name
2151
- }
2520
+ header_params = {}
2521
+ if request.name
2522
+ header_params["name"] = request.name
2523
+ end
2524
+
2152
2525
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2153
2526
  metadata[:"x-goog-request-params"] ||= request_params_header
2154
2527
 
@@ -2199,6 +2572,21 @@ module Google
2199
2572
  #
2200
2573
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2201
2574
  #
2575
+ # @example Basic example
2576
+ # require "google/cloud/dlp/v2"
2577
+ #
2578
+ # # Create a client object. The client can be reused for multiple calls.
2579
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2580
+ #
2581
+ # # Create a request. To set request fields, pass in keyword arguments.
2582
+ # request = Google::Cloud::Dlp::V2::ActivateJobTriggerRequest.new
2583
+ #
2584
+ # # Call the activate_job_trigger method.
2585
+ # result = client.activate_job_trigger request
2586
+ #
2587
+ # # The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
2588
+ # p result
2589
+ #
2202
2590
  def activate_job_trigger request, options = nil
2203
2591
  raise ::ArgumentError, "request must be provided" if request.nil?
2204
2592
 
@@ -2216,9 +2604,11 @@ module Google
2216
2604
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2217
2605
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2218
2606
 
2219
- header_params = {
2220
- "name" => request.name
2221
- }
2607
+ header_params = {}
2608
+ if request.name
2609
+ header_params["name"] = request.name
2610
+ end
2611
+
2222
2612
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2223
2613
  metadata[:"x-goog-request-params"] ||= request_params_header
2224
2614
 
@@ -2299,6 +2689,21 @@ module Google
2299
2689
  #
2300
2690
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2301
2691
  #
2692
+ # @example Basic example
2693
+ # require "google/cloud/dlp/v2"
2694
+ #
2695
+ # # Create a client object. The client can be reused for multiple calls.
2696
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2697
+ #
2698
+ # # Create a request. To set request fields, pass in keyword arguments.
2699
+ # request = Google::Cloud::Dlp::V2::CreateDlpJobRequest.new
2700
+ #
2701
+ # # Call the create_dlp_job method.
2702
+ # result = client.create_dlp_job request
2703
+ #
2704
+ # # The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
2705
+ # p result
2706
+ #
2302
2707
  def create_dlp_job request, options = nil
2303
2708
  raise ::ArgumentError, "request must be provided" if request.nil?
2304
2709
 
@@ -2316,9 +2721,11 @@ module Google
2316
2721
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2317
2722
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2318
2723
 
2319
- header_params = {
2320
- "parent" => request.parent
2321
- }
2724
+ header_params = {}
2725
+ if request.parent
2726
+ header_params["parent"] = request.parent
2727
+ end
2728
+
2322
2729
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2323
2730
  metadata[:"x-goog-request-params"] ||= request_params_header
2324
2731
 
@@ -2435,6 +2842,27 @@ module Google
2435
2842
  #
2436
2843
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2437
2844
  #
2845
+ # @example Basic example
2846
+ # require "google/cloud/dlp/v2"
2847
+ #
2848
+ # # Create a client object. The client can be reused for multiple calls.
2849
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2850
+ #
2851
+ # # Create a request. To set request fields, pass in keyword arguments.
2852
+ # request = Google::Cloud::Dlp::V2::ListDlpJobsRequest.new
2853
+ #
2854
+ # # Call the list_dlp_jobs method.
2855
+ # result = client.list_dlp_jobs request
2856
+ #
2857
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2858
+ # # iterate over all elements by calling #each, and the enumerable
2859
+ # # will lazily make API calls to fetch subsequent pages. Other
2860
+ # # methods are also available for managing paging directly.
2861
+ # result.each do |response|
2862
+ # # Each element is of type ::Google::Cloud::Dlp::V2::DlpJob.
2863
+ # p response
2864
+ # end
2865
+ #
2438
2866
  def list_dlp_jobs request, options = nil
2439
2867
  raise ::ArgumentError, "request must be provided" if request.nil?
2440
2868
 
@@ -2452,9 +2880,11 @@ module Google
2452
2880
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2453
2881
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2454
2882
 
2455
- header_params = {
2456
- "parent" => request.parent
2457
- }
2883
+ header_params = {}
2884
+ if request.parent
2885
+ header_params["parent"] = request.parent
2886
+ end
2887
+
2458
2888
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2459
2889
  metadata[:"x-goog-request-params"] ||= request_params_header
2460
2890
 
@@ -2506,6 +2936,21 @@ module Google
2506
2936
  #
2507
2937
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2508
2938
  #
2939
+ # @example Basic example
2940
+ # require "google/cloud/dlp/v2"
2941
+ #
2942
+ # # Create a client object. The client can be reused for multiple calls.
2943
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
2944
+ #
2945
+ # # Create a request. To set request fields, pass in keyword arguments.
2946
+ # request = Google::Cloud::Dlp::V2::GetDlpJobRequest.new
2947
+ #
2948
+ # # Call the get_dlp_job method.
2949
+ # result = client.get_dlp_job request
2950
+ #
2951
+ # # The returned object is of type Google::Cloud::Dlp::V2::DlpJob.
2952
+ # p result
2953
+ #
2509
2954
  def get_dlp_job request, options = nil
2510
2955
  raise ::ArgumentError, "request must be provided" if request.nil?
2511
2956
 
@@ -2523,9 +2968,11 @@ module Google
2523
2968
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2524
2969
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2525
2970
 
2526
- header_params = {
2527
- "name" => request.name
2528
- }
2971
+ header_params = {}
2972
+ if request.name
2973
+ header_params["name"] = request.name
2974
+ end
2975
+
2529
2976
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2530
2977
  metadata[:"x-goog-request-params"] ||= request_params_header
2531
2978
 
@@ -2578,6 +3025,21 @@ module Google
2578
3025
  #
2579
3026
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2580
3027
  #
3028
+ # @example Basic example
3029
+ # require "google/cloud/dlp/v2"
3030
+ #
3031
+ # # Create a client object. The client can be reused for multiple calls.
3032
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3033
+ #
3034
+ # # Create a request. To set request fields, pass in keyword arguments.
3035
+ # request = Google::Cloud::Dlp::V2::DeleteDlpJobRequest.new
3036
+ #
3037
+ # # Call the delete_dlp_job method.
3038
+ # result = client.delete_dlp_job request
3039
+ #
3040
+ # # The returned object is of type Google::Protobuf::Empty.
3041
+ # p result
3042
+ #
2581
3043
  def delete_dlp_job request, options = nil
2582
3044
  raise ::ArgumentError, "request must be provided" if request.nil?
2583
3045
 
@@ -2595,9 +3057,11 @@ module Google
2595
3057
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2596
3058
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2597
3059
 
2598
- header_params = {
2599
- "name" => request.name
2600
- }
3060
+ header_params = {}
3061
+ if request.name
3062
+ header_params["name"] = request.name
3063
+ end
3064
+
2601
3065
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2602
3066
  metadata[:"x-goog-request-params"] ||= request_params_header
2603
3067
 
@@ -2650,6 +3114,21 @@ module Google
2650
3114
  #
2651
3115
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2652
3116
  #
3117
+ # @example Basic example
3118
+ # require "google/cloud/dlp/v2"
3119
+ #
3120
+ # # Create a client object. The client can be reused for multiple calls.
3121
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3122
+ #
3123
+ # # Create a request. To set request fields, pass in keyword arguments.
3124
+ # request = Google::Cloud::Dlp::V2::CancelDlpJobRequest.new
3125
+ #
3126
+ # # Call the cancel_dlp_job method.
3127
+ # result = client.cancel_dlp_job request
3128
+ #
3129
+ # # The returned object is of type Google::Protobuf::Empty.
3130
+ # p result
3131
+ #
2653
3132
  def cancel_dlp_job request, options = nil
2654
3133
  raise ::ArgumentError, "request must be provided" if request.nil?
2655
3134
 
@@ -2667,9 +3146,11 @@ module Google
2667
3146
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2668
3147
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2669
3148
 
2670
- header_params = {
2671
- "name" => request.name
2672
- }
3149
+ header_params = {}
3150
+ if request.name
3151
+ header_params["name"] = request.name
3152
+ end
3153
+
2673
3154
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2674
3155
  metadata[:"x-goog-request-params"] ||= request_params_header
2675
3156
 
@@ -2748,6 +3229,21 @@ module Google
2748
3229
  #
2749
3230
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2750
3231
  #
3232
+ # @example Basic example
3233
+ # require "google/cloud/dlp/v2"
3234
+ #
3235
+ # # Create a client object. The client can be reused for multiple calls.
3236
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3237
+ #
3238
+ # # Create a request. To set request fields, pass in keyword arguments.
3239
+ # request = Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest.new
3240
+ #
3241
+ # # Call the create_stored_info_type method.
3242
+ # result = client.create_stored_info_type request
3243
+ #
3244
+ # # The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
3245
+ # p result
3246
+ #
2751
3247
  def create_stored_info_type request, options = nil
2752
3248
  raise ::ArgumentError, "request must be provided" if request.nil?
2753
3249
 
@@ -2765,9 +3261,11 @@ module Google
2765
3261
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2766
3262
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2767
3263
 
2768
- header_params = {
2769
- "parent" => request.parent
2770
- }
3264
+ header_params = {}
3265
+ if request.parent
3266
+ header_params["parent"] = request.parent
3267
+ end
3268
+
2771
3269
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2772
3270
  metadata[:"x-goog-request-params"] ||= request_params_header
2773
3271
 
@@ -2827,6 +3325,21 @@ module Google
2827
3325
  #
2828
3326
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2829
3327
  #
3328
+ # @example Basic example
3329
+ # require "google/cloud/dlp/v2"
3330
+ #
3331
+ # # Create a client object. The client can be reused for multiple calls.
3332
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3333
+ #
3334
+ # # Create a request. To set request fields, pass in keyword arguments.
3335
+ # request = Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest.new
3336
+ #
3337
+ # # Call the update_stored_info_type method.
3338
+ # result = client.update_stored_info_type request
3339
+ #
3340
+ # # The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
3341
+ # p result
3342
+ #
2830
3343
  def update_stored_info_type request, options = nil
2831
3344
  raise ::ArgumentError, "request must be provided" if request.nil?
2832
3345
 
@@ -2844,9 +3357,11 @@ module Google
2844
3357
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2845
3358
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2846
3359
 
2847
- header_params = {
2848
- "name" => request.name
2849
- }
3360
+ header_params = {}
3361
+ if request.name
3362
+ header_params["name"] = request.name
3363
+ end
3364
+
2850
3365
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2851
3366
  metadata[:"x-goog-request-params"] ||= request_params_header
2852
3367
 
@@ -2899,6 +3414,21 @@ module Google
2899
3414
  #
2900
3415
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2901
3416
  #
3417
+ # @example Basic example
3418
+ # require "google/cloud/dlp/v2"
3419
+ #
3420
+ # # Create a client object. The client can be reused for multiple calls.
3421
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3422
+ #
3423
+ # # Create a request. To set request fields, pass in keyword arguments.
3424
+ # request = Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest.new
3425
+ #
3426
+ # # Call the get_stored_info_type method.
3427
+ # result = client.get_stored_info_type request
3428
+ #
3429
+ # # The returned object is of type Google::Cloud::Dlp::V2::StoredInfoType.
3430
+ # p result
3431
+ #
2902
3432
  def get_stored_info_type request, options = nil
2903
3433
  raise ::ArgumentError, "request must be provided" if request.nil?
2904
3434
 
@@ -2916,9 +3446,11 @@ module Google
2916
3446
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2917
3447
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2918
3448
 
2919
- header_params = {
2920
- "name" => request.name
2921
- }
3449
+ header_params = {}
3450
+ if request.name
3451
+ header_params["name"] = request.name
3452
+ end
3453
+
2922
3454
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2923
3455
  metadata[:"x-goog-request-params"] ||= request_params_header
2924
3456
 
@@ -3011,6 +3543,27 @@ module Google
3011
3543
  #
3012
3544
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3013
3545
  #
3546
+ # @example Basic example
3547
+ # require "google/cloud/dlp/v2"
3548
+ #
3549
+ # # Create a client object. The client can be reused for multiple calls.
3550
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3551
+ #
3552
+ # # Create a request. To set request fields, pass in keyword arguments.
3553
+ # request = Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest.new
3554
+ #
3555
+ # # Call the list_stored_info_types method.
3556
+ # result = client.list_stored_info_types request
3557
+ #
3558
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3559
+ # # iterate over all elements by calling #each, and the enumerable
3560
+ # # will lazily make API calls to fetch subsequent pages. Other
3561
+ # # methods are also available for managing paging directly.
3562
+ # result.each do |response|
3563
+ # # Each element is of type ::Google::Cloud::Dlp::V2::StoredInfoType.
3564
+ # p response
3565
+ # end
3566
+ #
3014
3567
  def list_stored_info_types request, options = nil
3015
3568
  raise ::ArgumentError, "request must be provided" if request.nil?
3016
3569
 
@@ -3028,9 +3581,11 @@ module Google
3028
3581
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
3029
3582
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3030
3583
 
3031
- header_params = {
3032
- "parent" => request.parent
3033
- }
3584
+ header_params = {}
3585
+ if request.parent
3586
+ header_params["parent"] = request.parent
3587
+ end
3588
+
3034
3589
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3035
3590
  metadata[:"x-goog-request-params"] ||= request_params_header
3036
3591
 
@@ -3084,6 +3639,21 @@ module Google
3084
3639
  #
3085
3640
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3086
3641
  #
3642
+ # @example Basic example
3643
+ # require "google/cloud/dlp/v2"
3644
+ #
3645
+ # # Create a client object. The client can be reused for multiple calls.
3646
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3647
+ #
3648
+ # # Create a request. To set request fields, pass in keyword arguments.
3649
+ # request = Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest.new
3650
+ #
3651
+ # # Call the delete_stored_info_type method.
3652
+ # result = client.delete_stored_info_type request
3653
+ #
3654
+ # # The returned object is of type Google::Protobuf::Empty.
3655
+ # p result
3656
+ #
3087
3657
  def delete_stored_info_type request, options = nil
3088
3658
  raise ::ArgumentError, "request must be provided" if request.nil?
3089
3659
 
@@ -3101,9 +3671,11 @@ module Google
3101
3671
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
3102
3672
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3103
3673
 
3104
- header_params = {
3105
- "name" => request.name
3106
- }
3674
+ header_params = {}
3675
+ if request.name
3676
+ header_params["name"] = request.name
3677
+ end
3678
+
3107
3679
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3108
3680
  metadata[:"x-goog-request-params"] ||= request_params_header
3109
3681
 
@@ -3160,6 +3732,21 @@ module Google
3160
3732
  #
3161
3733
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3162
3734
  #
3735
+ # @example Basic example
3736
+ # require "google/cloud/dlp/v2"
3737
+ #
3738
+ # # Create a client object. The client can be reused for multiple calls.
3739
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3740
+ #
3741
+ # # Create a request. To set request fields, pass in keyword arguments.
3742
+ # request = Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest.new
3743
+ #
3744
+ # # Call the hybrid_inspect_dlp_job method.
3745
+ # result = client.hybrid_inspect_dlp_job request
3746
+ #
3747
+ # # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
3748
+ # p result
3749
+ #
3163
3750
  def hybrid_inspect_dlp_job request, options = nil
3164
3751
  raise ::ArgumentError, "request must be provided" if request.nil?
3165
3752
 
@@ -3177,9 +3764,11 @@ module Google
3177
3764
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
3178
3765
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3179
3766
 
3180
- header_params = {
3181
- "name" => request.name
3182
- }
3767
+ header_params = {}
3768
+ if request.name
3769
+ header_params["name"] = request.name
3770
+ end
3771
+
3183
3772
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3184
3773
  metadata[:"x-goog-request-params"] ||= request_params_header
3185
3774
 
@@ -3232,6 +3821,21 @@ module Google
3232
3821
  #
3233
3822
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3234
3823
  #
3824
+ # @example Basic example
3825
+ # require "google/cloud/dlp/v2"
3826
+ #
3827
+ # # Create a client object. The client can be reused for multiple calls.
3828
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
3829
+ #
3830
+ # # Create a request. To set request fields, pass in keyword arguments.
3831
+ # request = Google::Cloud::Dlp::V2::FinishDlpJobRequest.new
3832
+ #
3833
+ # # Call the finish_dlp_job method.
3834
+ # result = client.finish_dlp_job request
3835
+ #
3836
+ # # The returned object is of type Google::Protobuf::Empty.
3837
+ # p result
3838
+ #
3235
3839
  def finish_dlp_job request, options = nil
3236
3840
  raise ::ArgumentError, "request must be provided" if request.nil?
3237
3841
 
@@ -3249,9 +3853,11 @@ module Google
3249
3853
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
3250
3854
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3251
3855
 
3252
- header_params = {
3253
- "name" => request.name
3254
- }
3856
+ header_params = {}
3857
+ if request.name
3858
+ header_params["name"] = request.name
3859
+ end
3860
+
3255
3861
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3256
3862
  metadata[:"x-goog-request-params"] ||= request_params_header
3257
3863
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.7.3"
24
+ VERSION = "0.7.4"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/privacy/dlp/v2/dlp.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/client_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/api/resource_pb'
@@ -16,6 +14,8 @@ require 'google/type/date_pb'
16
14
  require 'google/type/dayofweek_pb'
17
15
  require 'google/type/timeofday_pb'
18
16
  require 'google/api/annotations_pb'
17
+ require 'google/protobuf'
18
+
19
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  add_file("google/privacy/dlp/v2/dlp.proto", :syntax => :proto3) do
21
21
  add_message "google.privacy.dlp.v2.ExcludeInfoTypes" do
@@ -35,7 +35,7 @@ module Google
35
35
  # https://cloud.google.com/dlp/docs/.
36
36
  class Service
37
37
 
38
- include GRPC::GenericService
38
+ include ::GRPC::GenericService
39
39
 
40
40
  self.marshal_class_method = :encode
41
41
  self.unmarshal_class_method = :decode
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/privacy/dlp/v2/storage.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do
11
11
  add_message "google.privacy.dlp.v2.InfoType" do
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.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common