google-cloud-dlp-v2 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b92e3213f9c1d1a5f808ca703cd7759f474520f9d0f3c24d0580993aaf6c2e07
4
- data.tar.gz: 535de29e1a1ac106bccd55327971ba841cd151b41e32f7296c84fbdcc6d85f3d
3
+ metadata.gz: 532bee2d8fd58203eb35dd788853ce9173dd7fd2ee469d05ba70de27c0c46ce7
4
+ data.tar.gz: e14647ef944ae34c1016b43be48f1300adbcfbb4178ef68896e6933d930faae1
5
5
  SHA512:
6
- metadata.gz: 502e8b861ea752647cf2c16db674082f0ea6775ae25ea0185709c067d8c51d33b488092399b979892b3bb132edfe899617fb4c1c598f09f13e2e341a65107532
7
- data.tar.gz: 67f860bf279321dd8bd5d187c7a46304b1abc4aacf558993ace94cd2f2f7882b5ffa4938d614fcb60a6dfd8f9138b3072945c67b7d16e19f800cbd042d12c886
6
+ metadata.gz: 5ad21583233ebe765e5943444543adf86ae5c1615bf17a140a02cbe409b568d15803275ad54f37fcf4b055501a9b8a73dd4abe65c15510ed35fd59dcca4e7ffb
7
+ data.tar.gz: bedccec1545c50c028b1b4c6d8490e46802c3f92633a6d3eea2c5b1ae63a6a4796adcf993ea30d233d2c3d3ceec3b88193cad0f6c0f54d1abbbd0174d178eb48
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/dlp.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.inspect_content request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dlp-v2/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/dlp)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -174,12 +174,6 @@ module Google
174
174
  default_config.rpcs.update_job_trigger.timeout = 300.0
175
175
 
176
176
  default_config.rpcs.hybrid_inspect_job_trigger.timeout = 300.0
177
- default_config.rpcs.hybrid_inspect_job_trigger.retry_policy = {
178
- initial_delay: 0.1,
179
- max_delay: 60.0,
180
- multiplier: 1.3,
181
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
182
- }
183
177
 
184
178
  default_config.rpcs.get_job_trigger.timeout = 300.0
185
179
  default_config.rpcs.get_job_trigger.retry_policy = {
@@ -264,20 +258,8 @@ module Google
264
258
  }
265
259
 
266
260
  default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
267
- default_config.rpcs.hybrid_inspect_dlp_job.retry_policy = {
268
- initial_delay: 0.1,
269
- max_delay: 60.0,
270
- multiplier: 1.3,
271
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
272
- }
273
261
 
274
262
  default_config.rpcs.finish_dlp_job.timeout = 300.0
275
- default_config.rpcs.finish_dlp_job.retry_policy = {
276
- initial_delay: 0.1,
277
- max_delay: 60.0,
278
- multiplier: 1.3,
279
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
280
- }
281
263
 
282
264
  default_config
283
265
  end
@@ -344,7 +326,8 @@ module Google
344
326
  if credentials.is_a?(String) || credentials.is_a?(Hash)
345
327
  credentials = Credentials.new credentials, scope: @config.scope
346
328
  end
347
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
329
+ @quota_project_id = @config.quota_project
330
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
348
331
 
349
332
  @dlp_service_stub = ::Gapic::ServiceStub.new(
350
333
  ::Google::Cloud::Dlp::V2::DlpService::Stub,
@@ -384,8 +367,9 @@ module Google
384
367
  # the default parameter values, pass an empty Hash as a request object (see above).
385
368
  #
386
369
  # @param parent [::String]
387
- # The parent resource name, for example projects/my-project-id
388
- # or projects/my-project-id/locations/\\{location_id}
370
+ # Parent resource name.
371
+ # - Format:projects/[PROJECT-ID]
372
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
389
373
  # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
390
374
  # Configuration for the inspector. What specified here will override
391
375
  # the template referenced by the inspect_template_name argument.
@@ -471,8 +455,9 @@ module Google
471
455
  # the default parameter values, pass an empty Hash as a request object (see above).
472
456
  #
473
457
  # @param parent [::String]
474
- # The parent resource name, for example projects/my-project-id
475
- # or projects/my-project-id/locations/\\{location_id}.
458
+ # The parent resource name.
459
+ # - Format:projects/[PROJECT-ID]
460
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
476
461
  # @param location_id [::String]
477
462
  # Deprecated. This field has no effect.
478
463
  # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
@@ -556,8 +541,9 @@ module Google
556
541
  # the default parameter values, pass an empty Hash as a request object (see above).
557
542
  #
558
543
  # @param parent [::String]
559
- # The parent resource name, for example projects/my-project-id
560
- # or projects/my-project-id/locations/\\{location_id}.
544
+ # Parent resource name.
545
+ # - Format:projects/[PROJECT-ID]
546
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
561
547
  # @param deidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
562
548
  # Configuration for the de-identification of the content item.
563
549
  # Items specified here will override the template referenced by the
@@ -651,6 +637,8 @@ module Google
651
637
  #
652
638
  # @param parent [::String]
653
639
  # Required. The parent resource name.
640
+ # - Format:projects/[PROJECT-ID]
641
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
654
642
  # @param reidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
655
643
  # Configuration for the re-identification of the content item.
656
644
  # This field shares the same proto message type that is used for
@@ -748,7 +736,8 @@ module Google
748
736
  # the default parameter values, pass an empty Hash as a request object (see above).
749
737
  #
750
738
  # @param parent [::String]
751
- # The parent resource name, for example locations/\\{location_id}
739
+ # The parent resource name.
740
+ # - Format:locations/[LOCATION-ID]
752
741
  # @param language_code [::String]
753
742
  # BCP-47 language code for localized infoType friendly
754
743
  # names. If omitted, or if localized strings are not available,
@@ -819,8 +808,11 @@ module Google
819
808
  # the default parameter values, pass an empty Hash as a request object (see above).
820
809
  #
821
810
  # @param parent [::String]
822
- # Required. The parent resource name, for example projects/my-project-id or
823
- # organizations/my-org-id or projects/my-project-id/locations/\\{location-id}.
811
+ # Required. Parent resource name.
812
+ # - Format:projects/[PROJECT-ID]
813
+ # - Format:organizations/[ORGANIZATION-ID]
814
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
815
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
824
816
  # @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
825
817
  # Required. The InspectTemplate to create.
826
818
  # @param template_id [::String]
@@ -896,8 +888,8 @@ module Google
896
888
  # the default parameter values, pass an empty Hash as a request object (see above).
897
889
  #
898
890
  # @param name [::String]
899
- # Required. Resource name of organization and inspectTemplate to be updated,
900
- # for example `organizations/433245324/inspectTemplates/432452342` or
891
+ # Required. Resource name of organization and inspectTemplate to be updated, for
892
+ # example `organizations/433245324/inspectTemplates/432452342` or
901
893
  # projects/project-id/inspectTemplates/432452342.
902
894
  # @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
903
895
  # New InspectTemplate value.
@@ -969,8 +961,8 @@ module Google
969
961
  # the default parameter values, pass an empty Hash as a request object (see above).
970
962
  #
971
963
  # @param name [::String]
972
- # Required. Resource name of the organization and inspectTemplate to be read,
973
- # for example `organizations/433245324/inspectTemplates/432452342` or
964
+ # Required. Resource name of the organization and inspectTemplate to be read, for
965
+ # example `organizations/433245324/inspectTemplates/432452342` or
974
966
  # projects/project-id/inspectTemplates/432452342.
975
967
  #
976
968
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1038,8 +1030,11 @@ module Google
1038
1030
  # the default parameter values, pass an empty Hash as a request object (see above).
1039
1031
  #
1040
1032
  # @param parent [::String]
1041
- # Required. The parent resource name, for example projects/my-project-id or
1042
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1033
+ # Required. Parent resource name.
1034
+ # - Format:projects/[PROJECT-ID]
1035
+ # - Format:organizations/[ORGANIZATION-ID]
1036
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1037
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
1043
1038
  # @param page_token [::String]
1044
1039
  # Page token to continue retrieval. Comes from previous call
1045
1040
  # to `ListInspectTemplates`.
@@ -1129,9 +1124,9 @@ module Google
1129
1124
  # the default parameter values, pass an empty Hash as a request object (see above).
1130
1125
  #
1131
1126
  # @param name [::String]
1132
- # Required. Resource name of the organization and inspectTemplate to be
1133
- # deleted, for example `organizations/433245324/inspectTemplates/432452342`
1134
- # or projects/project-id/inspectTemplates/432452342.
1127
+ # Required. Resource name of the organization and inspectTemplate to be deleted, for
1128
+ # example `organizations/433245324/inspectTemplates/432452342` or
1129
+ # projects/project-id/inspectTemplates/432452342.
1135
1130
  #
1136
1131
  # @yield [response, operation] Access the result along with the RPC operation
1137
1132
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -1200,8 +1195,11 @@ module Google
1200
1195
  # the default parameter values, pass an empty Hash as a request object (see above).
1201
1196
  #
1202
1197
  # @param parent [::String]
1203
- # Required. The parent resource name, for example projects/my-project-id or
1204
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1198
+ # Required. Parent resource name.
1199
+ # - Format:projects/[PROJECT-ID]
1200
+ # - Format:organizations/[ORGANIZATION-ID]
1201
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1202
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
1205
1203
  # @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
1206
1204
  # Required. The DeidentifyTemplate to create.
1207
1205
  # @param template_id [::String]
@@ -1278,9 +1276,8 @@ module Google
1278
1276
  # the default parameter values, pass an empty Hash as a request object (see above).
1279
1277
  #
1280
1278
  # @param name [::String]
1281
- # Required. Resource name of organization and deidentify template to be
1282
- # updated, for example
1283
- # `organizations/433245324/deidentifyTemplates/432452342` or
1279
+ # Required. Resource name of organization and deidentify template to be updated, for
1280
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
1284
1281
  # projects/project-id/deidentifyTemplates/432452342.
1285
1282
  # @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
1286
1283
  # New DeidentifyTemplate value.
@@ -1353,9 +1350,9 @@ module Google
1353
1350
  # the default parameter values, pass an empty Hash as a request object (see above).
1354
1351
  #
1355
1352
  # @param name [::String]
1356
- # Required. Resource name of the organization and deidentify template to be
1357
- # read, for example `organizations/433245324/deidentifyTemplates/432452342`
1358
- # or projects/project-id/deidentifyTemplates/432452342.
1353
+ # Required. Resource name of the organization and deidentify template to be read, for
1354
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
1355
+ # projects/project-id/deidentifyTemplates/432452342.
1359
1356
  #
1360
1357
  # @yield [response, operation] Access the result along with the RPC operation
1361
1358
  # @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
@@ -1423,8 +1420,11 @@ module Google
1423
1420
  # the default parameter values, pass an empty Hash as a request object (see above).
1424
1421
  #
1425
1422
  # @param parent [::String]
1426
- # Required. The parent resource name, for example projects/my-project-id or
1427
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1423
+ # Required. Parent resource name.
1424
+ # - Format:projects/[PROJECT-ID]
1425
+ # - Format:organizations/[ORGANIZATION-ID]
1426
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1427
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
1428
1428
  # @param page_token [::String]
1429
1429
  # Page token to continue retrieval. Comes from previous call
1430
1430
  # to `ListDeidentifyTemplates`.
@@ -1515,9 +1515,8 @@ module Google
1515
1515
  # the default parameter values, pass an empty Hash as a request object (see above).
1516
1516
  #
1517
1517
  # @param name [::String]
1518
- # Required. Resource name of the organization and deidentify template to be
1519
- # deleted, for example
1520
- # `organizations/433245324/deidentifyTemplates/432452342` or
1518
+ # Required. Resource name of the organization and deidentify template to be deleted,
1519
+ # for example `organizations/433245324/deidentifyTemplates/432452342` or
1521
1520
  # projects/project-id/deidentifyTemplates/432452342.
1522
1521
  #
1523
1522
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1586,8 +1585,9 @@ module Google
1586
1585
  # the default parameter values, pass an empty Hash as a request object (see above).
1587
1586
  #
1588
1587
  # @param parent [::String]
1589
- # Required. The parent resource name, for example projects/my-project-id
1590
- # or projects/my-project-id/locations/\\{location_id}.
1588
+ # Required. Parent resource name.
1589
+ # - Format:projects/[PROJECT-ID]
1590
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1591
1591
  # @param job_trigger [::Google::Cloud::Dlp::V2::JobTrigger, ::Hash]
1592
1592
  # Required. The JobTrigger to create.
1593
1593
  # @param trigger_id [::String]
@@ -1739,8 +1739,8 @@ module Google
1739
1739
  # the default parameter values, pass an empty Hash as a request object (see above).
1740
1740
  #
1741
1741
  # @param name [::String]
1742
- # Required. Resource name of the trigger to execute a hybrid inspect on, for
1743
- # example `projects/dlp-test-project/jobTriggers/53234423`.
1742
+ # Required. Resource name of the trigger to execute a hybrid inspect on, for example
1743
+ # `projects/dlp-test-project/jobTriggers/53234423`.
1744
1744
  # @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
1745
1745
  # The item to inspect.
1746
1746
  #
@@ -1877,8 +1877,9 @@ module Google
1877
1877
  # the default parameter values, pass an empty Hash as a request object (see above).
1878
1878
  #
1879
1879
  # @param parent [::String]
1880
- # Required. The parent resource name, for example `projects/my-project-id`
1881
- # or projects/my-project-id/locations/\\{location_id}.
1880
+ # Required. Parent resource name.
1881
+ # - Format:projects/[PROJECT-ID]
1882
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
1882
1883
  # @param page_token [::String]
1883
1884
  # Page token to continue retrieval. Comes from previous call
1884
1885
  # to ListJobTriggers. `order_by` field must not
@@ -2136,8 +2137,9 @@ module Google
2136
2137
  # the default parameter values, pass an empty Hash as a request object (see above).
2137
2138
  #
2138
2139
  # @param parent [::String]
2139
- # Required. The parent resource name, for example projects/my-project-id
2140
- # or projects/my-project-id/locations/\\{location_id}.
2140
+ # Required. Parent resource name.
2141
+ # - Format:projects/[PROJECT-ID]
2142
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2141
2143
  # @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
2142
2144
  # Set to control what and how to inspect.
2143
2145
  # @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
@@ -2216,8 +2218,9 @@ module Google
2216
2218
  # the default parameter values, pass an empty Hash as a request object (see above).
2217
2219
  #
2218
2220
  # @param parent [::String]
2219
- # Required. The parent resource name, for example projects/my-project-id
2220
- # or projects/my-project-id/locations/\\{location_id}.
2221
+ # Required. Parent resource name.
2222
+ # - Format:projects/[PROJECT-ID]
2223
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2221
2224
  # @param filter [::String]
2222
2225
  # Allows filtering.
2223
2226
  #
@@ -2545,8 +2548,11 @@ module Google
2545
2548
  # the default parameter values, pass an empty Hash as a request object (see above).
2546
2549
  #
2547
2550
  # @param parent [::String]
2548
- # Required. The parent resource name, for example projects/my-project-id or
2549
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}
2551
+ # Required. Parent resource name.
2552
+ # - Format:projects/[PROJECT-ID]
2553
+ # - Format:organizations/[ORGANIZATION-ID]
2554
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2555
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
2550
2556
  # @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
2551
2557
  # Required. Configuration of the storedInfoType to create.
2552
2558
  # @param stored_info_type_id [::String]
@@ -2700,8 +2706,8 @@ module Google
2700
2706
  # the default parameter values, pass an empty Hash as a request object (see above).
2701
2707
  #
2702
2708
  # @param name [::String]
2703
- # Required. Resource name of the organization and storedInfoType to be read,
2704
- # for example `organizations/433245324/storedInfoTypes/432452342` or
2709
+ # Required. Resource name of the organization and storedInfoType to be read, for
2710
+ # example `organizations/433245324/storedInfoTypes/432452342` or
2705
2711
  # projects/project-id/storedInfoTypes/432452342.
2706
2712
  #
2707
2713
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2770,8 +2776,11 @@ module Google
2770
2776
  # the default parameter values, pass an empty Hash as a request object (see above).
2771
2777
  #
2772
2778
  # @param parent [::String]
2773
- # Required. The parent resource name, for example projects/my-project-id or
2774
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
2779
+ # Required. Parent resource name.
2780
+ # - Format:projects/[PROJECT-ID]
2781
+ # - Format:organizations/[ORGANIZATION-ID]
2782
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2783
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
2775
2784
  # @param page_token [::String]
2776
2785
  # Page token to continue retrieval. Comes from previous call
2777
2786
  # to `ListStoredInfoTypes`.
@@ -2863,8 +2872,8 @@ module Google
2863
2872
  # the default parameter values, pass an empty Hash as a request object (see above).
2864
2873
  #
2865
2874
  # @param name [::String]
2866
- # Required. Resource name of the organization and storedInfoType to be
2867
- # deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
2875
+ # Required. Resource name of the organization and storedInfoType to be deleted, for
2876
+ # example `organizations/433245324/storedInfoTypes/432452342` or
2868
2877
  # projects/project-id/storedInfoTypes/432452342.
2869
2878
  #
2870
2879
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2936,8 +2945,8 @@ module Google
2936
2945
  # the default parameter values, pass an empty Hash as a request object (see above).
2937
2946
  #
2938
2947
  # @param name [::String]
2939
- # Required. Resource name of the job to execute a hybrid inspect on, for
2940
- # example `projects/dlp-test-project/dlpJob/53234423`.
2948
+ # Required. Resource name of the job to execute a hybrid inspect on, for example
2949
+ # `projects/dlp-test-project/dlpJob/53234423`.
2941
2950
  # @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
2942
2951
  # The item to inspect.
2943
2952
  #
@@ -3132,24 +3141,28 @@ module Google
3132
3141
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3133
3142
  # trigger a retry.
3134
3143
  # @return [::Hash]
3144
+ # @!attribute [rw] quota_project
3145
+ # A separate project against which to charge quota.
3146
+ # @return [::String]
3135
3147
  #
3136
3148
  class Configuration
3137
3149
  extend ::Gapic::Config
3138
3150
 
3139
- config_attr :endpoint, "dlp.googleapis.com", String
3140
- config_attr :credentials, nil do |value|
3151
+ config_attr :endpoint, "dlp.googleapis.com", ::String
3152
+ config_attr :credentials, nil do |value|
3141
3153
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3142
3154
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
3143
3155
  allowed.any? { |klass| klass === value }
3144
3156
  end
3145
- config_attr :scope, nil, ::String, ::Array, nil
3146
- config_attr :lib_name, nil, ::String, nil
3147
- config_attr :lib_version, nil, ::String, nil
3148
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3149
- config_attr :interceptors, nil, ::Array, nil
3150
- config_attr :timeout, nil, ::Numeric, nil
3151
- config_attr :metadata, nil, ::Hash, nil
3152
- config_attr :retry_policy, nil, ::Hash, Proc, nil
3157
+ config_attr :scope, nil, ::String, ::Array, nil
3158
+ config_attr :lib_name, nil, ::String, nil
3159
+ config_attr :lib_version, nil, ::String, nil
3160
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3161
+ config_attr :interceptors, nil, ::Array, nil
3162
+ config_attr :timeout, nil, ::Numeric, nil
3163
+ config_attr :metadata, nil, ::Hash, nil
3164
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3165
+ config_attr :quota_project, nil, ::String, nil
3153
3166
 
3154
3167
  # @private
3155
3168
  def initialize parent_config = nil
@@ -3165,7 +3178,7 @@ module Google
3165
3178
  def rpcs
3166
3179
  @rpcs ||= begin
3167
3180
  parent_rpcs = nil
3168
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
3181
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
3169
3182
  Rpcs.new parent_rpcs
3170
3183
  end
3171
3184
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.2.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/client_pb'
8
7
  require 'google/api/field_behavior_pb'
9
8
  require 'google/api/resource_pb'
@@ -16,6 +15,7 @@ require 'google/rpc/status_pb'
16
15
  require 'google/type/date_pb'
17
16
  require 'google/type/dayofweek_pb'
18
17
  require 'google/type/timeofday_pb'
18
+ require 'google/api/annotations_pb'
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
@@ -73,6 +73,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
73
73
  value :WORD_DOCUMENT, 7
74
74
  value :PDF, 8
75
75
  value :AVRO, 11
76
+ value :CSV, 12
77
+ value :TSV, 13
76
78
  end
77
79
  add_message "google.privacy.dlp.v2.ContentItem" do
78
80
  oneof :data_item do
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/resource_pb'
7
7
  require 'google/protobuf/timestamp_pb'
8
+ require 'google/api/annotations_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do
10
11
  add_message "google.privacy.dlp.v2.InfoType" do
@@ -197,6 +198,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
197
198
  value :WORD, 5
198
199
  value :PDF, 6
199
200
  value :AVRO, 7
201
+ value :CSV, 8
202
+ value :TSV, 9
200
203
  end
201
204
  end
202
205
  end
@@ -209,6 +209,12 @@ module Google
209
209
 
210
210
  # avro
211
211
  AVRO = 11
212
+
213
+ # csv
214
+ CSV = 12
215
+
216
+ # tsv
217
+ TSV = 13
212
218
  end
213
219
  end
214
220
 
@@ -273,8 +279,8 @@ module Google
273
279
  # @!attribute [rw] name
274
280
  # @return [::String]
275
281
  # Resource name in format
276
- # projects/\\{project}/locations/\\{location}/findings/\\{finding}
277
- # Populated only when viewing persisted findings.
282
+ # projects/\\{project}/locations/\\{location}/findings/\\{finding} Populated only
283
+ # when viewing persisted findings.
278
284
  # @!attribute [rw] quote
279
285
  # @return [::String]
280
286
  # The content that was found. Even if the content is not textual, it
@@ -555,8 +561,9 @@ module Google
555
561
  # by covering it with a colored rectangle.
556
562
  # @!attribute [rw] parent
557
563
  # @return [::String]
558
- # The parent resource name, for example projects/my-project-id
559
- # or projects/my-project-id/locations/\\{location_id}.
564
+ # The parent resource name.
565
+ # - Format:projects/[PROJECT-ID]
566
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
560
567
  # @!attribute [rw] location_id
561
568
  # @return [::String]
562
569
  # Deprecated. This field has no effect.
@@ -633,8 +640,9 @@ module Google
633
640
  # Request to de-identify a list of items.
634
641
  # @!attribute [rw] parent
635
642
  # @return [::String]
636
- # The parent resource name, for example projects/my-project-id
637
- # or projects/my-project-id/locations/\\{location_id}.
643
+ # Parent resource name.
644
+ # - Format:projects/[PROJECT-ID]
645
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
638
646
  # @!attribute [rw] deidentify_config
639
647
  # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
640
648
  # Configuration for the de-identification of the content item.
@@ -686,6 +694,8 @@ module Google
686
694
  # @!attribute [rw] parent
687
695
  # @return [::String]
688
696
  # Required. The parent resource name.
697
+ # - Format:projects/[PROJECT-ID]
698
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
689
699
  # @!attribute [rw] reidentify_config
690
700
  # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
691
701
  # Configuration for the re-identification of the content item.
@@ -742,8 +752,9 @@ module Google
742
752
  # Request to search for potentially sensitive info in a ContentItem.
743
753
  # @!attribute [rw] parent
744
754
  # @return [::String]
745
- # The parent resource name, for example projects/my-project-id
746
- # or projects/my-project-id/locations/\\{location_id}
755
+ # Parent resource name.
756
+ # - Format:projects/[PROJECT-ID]
757
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
747
758
  # @!attribute [rw] inspect_config
748
759
  # @return [::Google::Cloud::Dlp::V2::InspectConfig]
749
760
  # Configuration for the inspector. What specified here will override
@@ -891,7 +902,7 @@ module Google
891
902
  end
892
903
  end
893
904
 
894
- # Statistics related to processing hybrid inspect requests.s
905
+ # Statistics related to processing hybrid inspect requests.
895
906
  # @!attribute [rw] processed_count
896
907
  # @return [::Integer]
897
908
  # The number of hybrid inspection requests processed within this job.
@@ -933,7 +944,8 @@ module Google
933
944
  # Request for the list of infoTypes.
934
945
  # @!attribute [rw] parent
935
946
  # @return [::String]
936
- # The parent resource name, for example locations/\\{location_id}
947
+ # The parent resource name.
948
+ # - Format:locations/[LOCATION-ID]
937
949
  # @!attribute [rw] language_code
938
950
  # @return [::String]
939
951
  # BCP-47 language code for localized infoType friendly
@@ -1017,8 +1029,8 @@ module Google
1017
1029
  # Required. Quasi-identifier columns.
1018
1030
  # @!attribute [rw] relative_frequency
1019
1031
  # @return [::Google::Cloud::Dlp::V2::FieldId]
1020
- # Required. The relative frequency column must contain a floating-point
1021
- # number between 0 and 1 (inclusive). Null values are assumed to be zero.
1032
+ # Required. The relative frequency column must contain a floating-point number
1033
+ # between 0 and 1 (inclusive). Null values are assumed to be zero.
1022
1034
  class StatisticalTable
1023
1035
  include ::Google::Protobuf::MessageExts
1024
1036
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1133,8 +1145,8 @@ module Google
1133
1145
  # extrapolating from the distribution of values in the input dataset.
1134
1146
  # @!attribute [rw] quasi_ids
1135
1147
  # @return [::Array<::Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::TaggedField>]
1136
- # Required. Fields considered to be quasi-identifiers. No two columns can
1137
- # have the same tag.
1148
+ # Required. Fields considered to be quasi-identifiers. No two columns can have the
1149
+ # same tag.
1138
1150
  # @!attribute [rw] region_code
1139
1151
  # @return [::String]
1140
1152
  # ISO 3166-1 alpha-2 region code to use in the statistical modeling.
@@ -1189,8 +1201,8 @@ module Google
1189
1201
  # Required. Quasi-identifier columns.
1190
1202
  # @!attribute [rw] relative_frequency
1191
1203
  # @return [::Google::Cloud::Dlp::V2::FieldId]
1192
- # Required. The relative frequency column must contain a floating-point
1193
- # number between 0 and 1 (inclusive). Null values are assumed to be zero.
1204
+ # Required. The relative frequency column must contain a floating-point number
1205
+ # between 0 and 1 (inclusive). Null values are assumed to be zero.
1194
1206
  class AuxiliaryTable
1195
1207
  include ::Google::Protobuf::MessageExts
1196
1208
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1216,8 +1228,8 @@ module Google
1216
1228
  # knowing the attack dataset, so we use a statistical model instead.
1217
1229
  # @!attribute [rw] quasi_ids
1218
1230
  # @return [::Array<::Google::Cloud::Dlp::V2::QuasiId>]
1219
- # Required. Fields considered to be quasi-identifiers. No two fields can
1220
- # have the same tag.
1231
+ # Required. Fields considered to be quasi-identifiers. No two fields can have the
1232
+ # same tag.
1221
1233
  # @!attribute [rw] region_code
1222
1234
  # @return [::String]
1223
1235
  # ISO 3166-1 alpha-2 region code to use in the statistical modeling.
@@ -1935,18 +1947,18 @@ module Google
1935
1947
  # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
1936
1948
  # @!attribute [rw] lower_bound
1937
1949
  # @return [::Google::Cloud::Dlp::V2::Value]
1938
- # Required. Lower bound value of buckets. All values less than `lower_bound`
1939
- # are grouped together into a single bucket; for example if `lower_bound` =
1940
- # 10, then all values less than 10 are replaced with the value “-10”.
1950
+ # Required. Lower bound value of buckets. All values less than `lower_bound` are
1951
+ # grouped together into a single bucket; for example if `lower_bound` = 10,
1952
+ # then all values less than 10 are replaced with the value "-10".
1941
1953
  # @!attribute [rw] upper_bound
1942
1954
  # @return [::Google::Cloud::Dlp::V2::Value]
1943
- # Required. Upper bound value of buckets. All values greater than upper_bound
1944
- # are grouped together into a single bucket; for example if `upper_bound` =
1945
- # 89, then all values greater than 89 are replaced with the value 89+”.
1955
+ # Required. Upper bound value of buckets. All values greater than upper_bound are
1956
+ # grouped together into a single bucket; for example if `upper_bound` = 89,
1957
+ # then all values greater than 89 are replaced with the value "89+".
1946
1958
  # @!attribute [rw] bucket_size
1947
1959
  # @return [::Float]
1948
- # Required. Size of each bucket (except for minimum and maximum buckets). So
1949
- # if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
1960
+ # Required. Size of each bucket (except for minimum and maximum buckets). So if
1961
+ # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
1950
1962
  # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
1951
1963
  # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
1952
1964
  class FixedSizeBucketingConfig
@@ -1980,8 +1992,7 @@ module Google
1980
1992
  # Upper bound of the range, exclusive; type must match min.
1981
1993
  # @!attribute [rw] replacement_value
1982
1994
  # @return [::Google::Cloud::Dlp::V2::Value]
1983
- # Replacement value for this bucket. If not provided
1984
- # the default behavior will be to hyphenate the min-max range.
1995
+ # Required. Replacement value for this bucket.
1985
1996
  class Bucket
1986
1997
  include ::Google::Protobuf::MessageExts
1987
1998
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2055,7 +2066,7 @@ module Google
2055
2066
  #
2056
2067
  # This annotation identifies the surrogate when inspecting content using the
2057
2068
  # custom infoType
2058
- # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
2069
+ # [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
2059
2070
  # This facilitates reversal of the surrogate when it occurs in free text.
2060
2071
  #
2061
2072
  # In order for inspection to work properly, the name of this infoType must
@@ -2079,16 +2090,16 @@ module Google
2079
2090
  # Unused.
2080
2091
  FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0
2081
2092
 
2082
- # [0-9] (radix of 10)
2093
+ # `[0-9]` (radix of 10)
2083
2094
  NUMERIC = 1
2084
2095
 
2085
- # [0-9A-F] (radix of 16)
2096
+ # `[0-9A-F]` (radix of 16)
2086
2097
  HEXADECIMAL = 2
2087
2098
 
2088
- # [0-9A-Z] (radix of 36)
2099
+ # `[0-9A-Z]` (radix of 36)
2089
2100
  UPPER_CASE_ALPHA_NUMERIC = 3
2090
2101
 
2091
- # [0-9A-Za-z] (radix of 62)
2102
+ # `[0-9A-Za-z]` (radix of 62)
2092
2103
  ALPHA_NUMERIC = 4
2093
2104
  end
2094
2105
  end
@@ -2158,15 +2169,14 @@ module Google
2158
2169
  # to learn more.
2159
2170
  # @!attribute [rw] upper_bound_days
2160
2171
  # @return [::Integer]
2161
- # Required. Range of shift in days. Actual shift will be selected at random
2162
- # within this range (inclusive ends). Negative means shift to earlier in
2163
- # time. Must not be more than 365250 days (1000 years) each direction.
2172
+ # Required. Range of shift in days. Actual shift will be selected at random within this
2173
+ # range (inclusive ends). Negative means shift to earlier in time. Must not
2174
+ # be more than 365250 days (1000 years) each direction.
2164
2175
  #
2165
2176
  # For example, 3 means shift date to at most 3 days into the future.
2166
2177
  # @!attribute [rw] lower_bound_days
2167
2178
  # @return [::Integer]
2168
- # Required. For example, -5 means shift date to at most 5 days back in the
2169
- # past.
2179
+ # Required. For example, -5 means shift date to at most 5 days back in the past.
2170
2180
  # @!attribute [rw] context
2171
2181
  # @return [::Google::Cloud::Dlp::V2::FieldId]
2172
2182
  # Points to the field that contains the context, for example, an entity id.
@@ -2621,7 +2631,7 @@ module Google
2621
2631
  # Publish a message into given Pub/Sub topic when DlpJob has completed. The
2622
2632
  # message contains a single field, `DlpJobName`, which is equal to the
2623
2633
  # finished job's
2624
- # [`DlpJob.name`](/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
2634
+ # [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
2625
2635
  # Compatible with: Inspect, Risk
2626
2636
  # @!attribute [rw] topic
2627
2637
  # @return [::String]
@@ -2684,8 +2694,11 @@ module Google
2684
2694
  # Request message for CreateInspectTemplate.
2685
2695
  # @!attribute [rw] parent
2686
2696
  # @return [::String]
2687
- # Required. The parent resource name, for example projects/my-project-id or
2688
- # organizations/my-org-id or projects/my-project-id/locations/\\{location-id}.
2697
+ # Required. Parent resource name.
2698
+ # - Format:projects/[PROJECT-ID]
2699
+ # - Format:organizations/[ORGANIZATION-ID]
2700
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2701
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
2689
2702
  # @!attribute [rw] inspect_template
2690
2703
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
2691
2704
  # Required. The InspectTemplate to create.
@@ -2706,8 +2719,8 @@ module Google
2706
2719
  # Request message for UpdateInspectTemplate.
2707
2720
  # @!attribute [rw] name
2708
2721
  # @return [::String]
2709
- # Required. Resource name of organization and inspectTemplate to be updated,
2710
- # for example `organizations/433245324/inspectTemplates/432452342` or
2722
+ # Required. Resource name of organization and inspectTemplate to be updated, for
2723
+ # example `organizations/433245324/inspectTemplates/432452342` or
2711
2724
  # projects/project-id/inspectTemplates/432452342.
2712
2725
  # @!attribute [rw] inspect_template
2713
2726
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
@@ -2723,8 +2736,8 @@ module Google
2723
2736
  # Request message for GetInspectTemplate.
2724
2737
  # @!attribute [rw] name
2725
2738
  # @return [::String]
2726
- # Required. Resource name of the organization and inspectTemplate to be read,
2727
- # for example `organizations/433245324/inspectTemplates/432452342` or
2739
+ # Required. Resource name of the organization and inspectTemplate to be read, for
2740
+ # example `organizations/433245324/inspectTemplates/432452342` or
2728
2741
  # projects/project-id/inspectTemplates/432452342.
2729
2742
  class GetInspectTemplateRequest
2730
2743
  include ::Google::Protobuf::MessageExts
@@ -2734,8 +2747,11 @@ module Google
2734
2747
  # Request message for ListInspectTemplates.
2735
2748
  # @!attribute [rw] parent
2736
2749
  # @return [::String]
2737
- # Required. The parent resource name, for example projects/my-project-id or
2738
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
2750
+ # Required. Parent resource name.
2751
+ # - Format:projects/[PROJECT-ID]
2752
+ # - Format:organizations/[ORGANIZATION-ID]
2753
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2754
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
2739
2755
  # @!attribute [rw] page_token
2740
2756
  # @return [::String]
2741
2757
  # Page token to continue retrieval. Comes from previous call
@@ -2783,9 +2799,9 @@ module Google
2783
2799
  # Request message for DeleteInspectTemplate.
2784
2800
  # @!attribute [rw] name
2785
2801
  # @return [::String]
2786
- # Required. Resource name of the organization and inspectTemplate to be
2787
- # deleted, for example `organizations/433245324/inspectTemplates/432452342`
2788
- # or projects/project-id/inspectTemplates/432452342.
2802
+ # Required. Resource name of the organization and inspectTemplate to be deleted, for
2803
+ # example `organizations/433245324/inspectTemplates/432452342` or
2804
+ # projects/project-id/inspectTemplates/432452342.
2789
2805
  class DeleteInspectTemplateRequest
2790
2806
  include ::Google::Protobuf::MessageExts
2791
2807
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2794,8 +2810,9 @@ module Google
2794
2810
  # Request message for CreateJobTrigger.
2795
2811
  # @!attribute [rw] parent
2796
2812
  # @return [::String]
2797
- # Required. The parent resource name, for example projects/my-project-id
2798
- # or projects/my-project-id/locations/\\{location_id}.
2813
+ # Required. Parent resource name.
2814
+ # - Format:projects/[PROJECT-ID]
2815
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2799
2816
  # @!attribute [rw] job_trigger
2800
2817
  # @return [::Google::Cloud::Dlp::V2::JobTrigger]
2801
2818
  # Required. The JobTrigger to create.
@@ -2854,8 +2871,9 @@ module Google
2854
2871
  # Storage.
2855
2872
  # @!attribute [rw] parent
2856
2873
  # @return [::String]
2857
- # Required. The parent resource name, for example projects/my-project-id
2858
- # or projects/my-project-id/locations/\\{location_id}.
2874
+ # Required. Parent resource name.
2875
+ # - Format:projects/[PROJECT-ID]
2876
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2859
2877
  # @!attribute [rw] inspect_job
2860
2878
  # @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
2861
2879
  # Set to control what and how to inspect.
@@ -2879,8 +2897,9 @@ module Google
2879
2897
  # Request message for ListJobTriggers.
2880
2898
  # @!attribute [rw] parent
2881
2899
  # @return [::String]
2882
- # Required. The parent resource name, for example `projects/my-project-id`
2883
- # or projects/my-project-id/locations/\\{location_id}.
2900
+ # Required. Parent resource name.
2901
+ # - Format:projects/[PROJECT-ID]
2902
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
2884
2903
  # @!attribute [rw] page_token
2885
2904
  # @return [::String]
2886
2905
  # Page token to continue retrieval. Comes from previous call
@@ -3060,8 +3079,9 @@ module Google
3060
3079
  # The request message for listing DLP jobs.
3061
3080
  # @!attribute [rw] parent
3062
3081
  # @return [::String]
3063
- # Required. The parent resource name, for example projects/my-project-id
3064
- # or projects/my-project-id/locations/\\{location_id}.
3082
+ # Required. Parent resource name.
3083
+ # - Format:projects/[PROJECT-ID]
3084
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
3065
3085
  # @!attribute [rw] filter
3066
3086
  # @return [::String]
3067
3087
  # Allows filtering.
@@ -3166,8 +3186,11 @@ module Google
3166
3186
  # Request message for CreateDeidentifyTemplate.
3167
3187
  # @!attribute [rw] parent
3168
3188
  # @return [::String]
3169
- # Required. The parent resource name, for example projects/my-project-id or
3170
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3189
+ # Required. Parent resource name.
3190
+ # - Format:projects/[PROJECT-ID]
3191
+ # - Format:organizations/[ORGANIZATION-ID]
3192
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
3193
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
3171
3194
  # @!attribute [rw] deidentify_template
3172
3195
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
3173
3196
  # Required. The DeidentifyTemplate to create.
@@ -3188,9 +3211,8 @@ module Google
3188
3211
  # Request message for UpdateDeidentifyTemplate.
3189
3212
  # @!attribute [rw] name
3190
3213
  # @return [::String]
3191
- # Required. Resource name of organization and deidentify template to be
3192
- # updated, for example
3193
- # `organizations/433245324/deidentifyTemplates/432452342` or
3214
+ # Required. Resource name of organization and deidentify template to be updated, for
3215
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
3194
3216
  # projects/project-id/deidentifyTemplates/432452342.
3195
3217
  # @!attribute [rw] deidentify_template
3196
3218
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
@@ -3206,9 +3228,9 @@ module Google
3206
3228
  # Request message for GetDeidentifyTemplate.
3207
3229
  # @!attribute [rw] name
3208
3230
  # @return [::String]
3209
- # Required. Resource name of the organization and deidentify template to be
3210
- # read, for example `organizations/433245324/deidentifyTemplates/432452342`
3211
- # or projects/project-id/deidentifyTemplates/432452342.
3231
+ # Required. Resource name of the organization and deidentify template to be read, for
3232
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
3233
+ # projects/project-id/deidentifyTemplates/432452342.
3212
3234
  class GetDeidentifyTemplateRequest
3213
3235
  include ::Google::Protobuf::MessageExts
3214
3236
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3217,8 +3239,11 @@ module Google
3217
3239
  # Request message for ListDeidentifyTemplates.
3218
3240
  # @!attribute [rw] parent
3219
3241
  # @return [::String]
3220
- # Required. The parent resource name, for example projects/my-project-id or
3221
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3242
+ # Required. Parent resource name.
3243
+ # - Format:projects/[PROJECT-ID]
3244
+ # - Format:organizations/[ORGANIZATION-ID]
3245
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
3246
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
3222
3247
  # @!attribute [rw] page_token
3223
3248
  # @return [::String]
3224
3249
  # Page token to continue retrieval. Comes from previous call
@@ -3267,9 +3292,8 @@ module Google
3267
3292
  # Request message for DeleteDeidentifyTemplate.
3268
3293
  # @!attribute [rw] name
3269
3294
  # @return [::String]
3270
- # Required. Resource name of the organization and deidentify template to be
3271
- # deleted, for example
3272
- # `organizations/433245324/deidentifyTemplates/432452342` or
3295
+ # Required. Resource name of the organization and deidentify template to be deleted,
3296
+ # for example `organizations/433245324/deidentifyTemplates/432452342` or
3273
3297
  # projects/project-id/deidentifyTemplates/432452342.
3274
3298
  class DeleteDeidentifyTemplateRequest
3275
3299
  include ::Google::Protobuf::MessageExts
@@ -3396,8 +3420,11 @@ module Google
3396
3420
  # Request message for CreateStoredInfoType.
3397
3421
  # @!attribute [rw] parent
3398
3422
  # @return [::String]
3399
- # Required. The parent resource name, for example projects/my-project-id or
3400
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}
3423
+ # Required. Parent resource name.
3424
+ # - Format:projects/[PROJECT-ID]
3425
+ # - Format:organizations/[ORGANIZATION-ID]
3426
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
3427
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
3401
3428
  # @!attribute [rw] config
3402
3429
  # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3403
3430
  # Required. Configuration of the storedInfoType to create.
@@ -3437,8 +3464,8 @@ module Google
3437
3464
  # Request message for GetStoredInfoType.
3438
3465
  # @!attribute [rw] name
3439
3466
  # @return [::String]
3440
- # Required. Resource name of the organization and storedInfoType to be read,
3441
- # for example `organizations/433245324/storedInfoTypes/432452342` or
3467
+ # Required. Resource name of the organization and storedInfoType to be read, for
3468
+ # example `organizations/433245324/storedInfoTypes/432452342` or
3442
3469
  # projects/project-id/storedInfoTypes/432452342.
3443
3470
  class GetStoredInfoTypeRequest
3444
3471
  include ::Google::Protobuf::MessageExts
@@ -3448,8 +3475,11 @@ module Google
3448
3475
  # Request message for ListStoredInfoTypes.
3449
3476
  # @!attribute [rw] parent
3450
3477
  # @return [::String]
3451
- # Required. The parent resource name, for example projects/my-project-id or
3452
- # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3478
+ # Required. Parent resource name.
3479
+ # - Format:projects/[PROJECT-ID]
3480
+ # - Format:organizations/[ORGANIZATION-ID]
3481
+ # - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
3482
+ # - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
3453
3483
  # @!attribute [rw] page_token
3454
3484
  # @return [::String]
3455
3485
  # Page token to continue retrieval. Comes from previous call
@@ -3498,8 +3528,8 @@ module Google
3498
3528
  # Request message for DeleteStoredInfoType.
3499
3529
  # @!attribute [rw] name
3500
3530
  # @return [::String]
3501
- # Required. Resource name of the organization and storedInfoType to be
3502
- # deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
3531
+ # Required. Resource name of the organization and storedInfoType to be deleted, for
3532
+ # example `organizations/433245324/storedInfoTypes/432452342` or
3503
3533
  # projects/project-id/storedInfoTypes/432452342.
3504
3534
  class DeleteStoredInfoTypeRequest
3505
3535
  include ::Google::Protobuf::MessageExts
@@ -3509,8 +3539,8 @@ module Google
3509
3539
  # Request to search for potentially sensitive info in a custom location.
3510
3540
  # @!attribute [rw] name
3511
3541
  # @return [::String]
3512
- # Required. Resource name of the trigger to execute a hybrid inspect on, for
3513
- # example `projects/dlp-test-project/jobTriggers/53234423`.
3542
+ # Required. Resource name of the trigger to execute a hybrid inspect on, for example
3543
+ # `projects/dlp-test-project/jobTriggers/53234423`.
3514
3544
  # @!attribute [rw] hybrid_item
3515
3545
  # @return [::Google::Cloud::Dlp::V2::HybridContentItem]
3516
3546
  # The item to inspect.
@@ -3522,8 +3552,8 @@ module Google
3522
3552
  # Request to search for potentially sensitive info in a custom location.
3523
3553
  # @!attribute [rw] name
3524
3554
  # @return [::String]
3525
- # Required. Resource name of the job to execute a hybrid inspect on, for
3526
- # example `projects/dlp-test-project/dlpJob/53234423`.
3555
+ # Required. Resource name of the job to execute a hybrid inspect on, for example
3556
+ # `projects/dlp-test-project/dlpJob/53234423`.
3527
3557
  # @!attribute [rw] hybrid_item
3528
3558
  # @return [::Google::Cloud::Dlp::V2::HybridContentItem]
3529
3559
  # The item to inspect.
@@ -3678,7 +3708,7 @@ module Google
3678
3708
  # Unused
3679
3709
  METADATATYPE_UNSPECIFIED = 0
3680
3710
 
3681
- # General file metadata provided by GCS.
3711
+ # General file metadata provided by Cloud Storage.
3682
3712
  STORAGE_METADATA = 2
3683
3713
  end
3684
3714
 
@@ -154,7 +154,7 @@ module Google
154
154
 
155
155
  # Message for detecting output from deidentification transformations
156
156
  # such as
157
- # [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
157
+ # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
158
158
  # These types of transformations are
159
159
  # those that perform pseudonymization, thereby producing a "surrogate" as
160
160
  # output. This should be used in conjunction with a field on the
@@ -767,12 +767,17 @@ module Google
767
767
  VERY_LIKELY = 5
768
768
  end
769
769
 
770
- # Definitions of file type groups to scan.
770
+ # Definitions of file type groups to scan. New types will be added to this
771
+ # list.
771
772
  module FileType
772
773
  # Includes all files.
773
774
  FILE_TYPE_UNSPECIFIED = 0
774
775
 
775
- # Includes all file extensions not covered by text file types.
776
+ # Includes all file extensions not covered by another entry. Binary
777
+ # scanning attempts to convert the content of the file to utf_8 to scan
778
+ # the file.
779
+ # If you wish to avoid this fall back, specify one or more of the other
780
+ # FileType's in your storage scan.
776
781
  BINARY_FILE = 1
777
782
 
778
783
  # Included file extensions:
@@ -789,10 +794,12 @@ module Google
789
794
  # Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
790
795
  IMAGE = 3
791
796
 
797
+ # Word files >30 MB will be scanned as binary files.
792
798
  # Included file extensions:
793
799
  # docx, dotx, docm, dotm
794
800
  WORD = 5
795
801
 
802
+ # PDF files >30 MB will be scanned as binary files.
796
803
  # Included file extensions:
797
804
  # pdf
798
805
  PDF = 6
@@ -800,6 +807,14 @@ module Google
800
807
  # Included file extensions:
801
808
  # avro
802
809
  AVRO = 7
810
+
811
+ # Included file extensions:
812
+ # csv
813
+ CSV = 8
814
+
815
+ # Included file extensions:
816
+ # tsv
817
+ TSV = 9
803
818
  end
804
819
  end
805
820
  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.2.0
4
+ version: 0.4.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: 2020-05-14 00:00:00.000000000 Z
11
+ date: 2020-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +162,6 @@ files:
134
162
  - LICENSE.md
135
163
  - README.md
136
164
  - lib/google-cloud-dlp-v2.rb
137
- - lib/google/cloud/common_resources_pb.rb
138
165
  - lib/google/cloud/dlp/v2.rb
139
166
  - lib/google/cloud/dlp/v2/dlp_service.rb
140
167
  - lib/google/cloud/dlp/v2/dlp_service/client.rb
@@ -177,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
204
  - !ruby/object:Gem::Version
178
205
  version: '0'
179
206
  requirements: []
180
- rubygems_version: 3.0.6
207
+ rubygems_version: 3.1.3
181
208
  signing_key:
182
209
  specification_version: 4
183
210
  summary: API Client library for the Cloud Data Loss Prevention (DLP) V2 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end