google-cloud-dlp-v2 0.1.1 → 0.3.3

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: ddcfcf784fcb91a1693d39b58b4b619d477eeb0f5ff595f1bf97f4ca99735f42
4
- data.tar.gz: 648fe19421175927a7e2f9f187aa52d792e2eda38e93afb3b1a61d0be2f8b7e8
3
+ metadata.gz: d2925eaa182f4b6592deee2241c10cfd50509a1d0804f3d66c5175125cfd6e18
4
+ data.tar.gz: 23d13d4c73b7ffd42af97fe06a26de8265f90e9cc5673ff89530128c95eecaae
5
5
  SHA512:
6
- metadata.gz: 53bab60ec5d7ec1d8120000e82ebe1599adcb3941ef4018c39ca9e7ef0d732a07e458910d9fcf84487933e6bbeb1b2f4219cc6743aa63896aab076ff3a70bc05
7
- data.tar.gz: f681180d9ed9753a5c2cdf86baeeb7a31ac4ae836efb265af7932de7a3d87c3bef39c257d7183ad6747262dcb7b20c701098e4ae15f059e55853929c4eb62b6b
6
+ metadata.gz: 4890af84f89cdf5f8ccf424cf96ad61c85a9edb35991360481efd8359c2b4357e2fe2447cfb37cfdcedd5852d966960eb1ceb2bd78914f8e825821335ab50397
7
+ data.tar.gz: 543bfc5523ede369d03ce7d856b9be20edd0eda883efb6328bd3428e9350a063db29a15efbd895979bb8b500be33c4f46200328e5dccd90a089388cc95c9d5d1
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.
@@ -344,7 +344,8 @@ module Google
344
344
  if credentials.is_a?(String) || credentials.is_a?(Hash)
345
345
  credentials = Credentials.new credentials, scope: @config.scope
346
346
  end
347
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
347
+ @quota_project_id = @config.quota_project
348
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
348
349
 
349
350
  @dlp_service_stub = ::Gapic::ServiceStub.new(
350
351
  ::Google::Cloud::Dlp::V2::DlpService::Stub,
@@ -384,7 +385,8 @@ module Google
384
385
  # the default parameter values, pass an empty Hash as a request object (see above).
385
386
  #
386
387
  # @param parent [::String]
387
- # The parent resource name, for example projects/my-project-id.
388
+ # The parent resource name, for example projects/my-project-id
389
+ # or projects/my-project-id/locations/\\{location_id}
388
390
  # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
389
391
  # Configuration for the inspector. What specified here will override
390
392
  # the template referenced by the inspect_template_name argument.
@@ -397,8 +399,7 @@ module Google
397
399
  # template. Repeated fields are appended. Singular sub-messages and groups
398
400
  # are recursively merged.
399
401
  # @param location_id [::String]
400
- # The geographic location to process content inspection. Reserved for future
401
- # extensions.
402
+ # Deprecated. This field has no effect.
402
403
  #
403
404
  # @yield [response, operation] Access the result along with the RPC operation
404
405
  # @yieldparam response [::Google::Cloud::Dlp::V2::InspectContentResponse]
@@ -471,10 +472,10 @@ module Google
471
472
  # the default parameter values, pass an empty Hash as a request object (see above).
472
473
  #
473
474
  # @param parent [::String]
474
- # The parent resource name, for example projects/my-project-id.
475
+ # The parent resource name, for example projects/my-project-id
476
+ # or projects/my-project-id/locations/\\{location_id}.
475
477
  # @param location_id [::String]
476
- # The geographic location to process the request. Reserved for future
477
- # extensions.
478
+ # Deprecated. This field has no effect.
478
479
  # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
479
480
  # Configuration for the inspector.
480
481
  # @param image_redaction_configs [::Array<::Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig, ::Hash>]
@@ -556,7 +557,8 @@ module Google
556
557
  # the default parameter values, pass an empty Hash as a request object (see above).
557
558
  #
558
559
  # @param parent [::String]
559
- # The parent resource name, for example projects/my-project-id.
560
+ # The parent resource name, for example projects/my-project-id
561
+ # or projects/my-project-id/locations/\\{location_id}.
560
562
  # @param deidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
561
563
  # Configuration for the de-identification of the content item.
562
564
  # Items specified here will override the template referenced by the
@@ -580,8 +582,7 @@ module Google
580
582
  # template. Repeated fields are appended. Singular sub-messages and groups
581
583
  # are recursively merged.
582
584
  # @param location_id [::String]
583
- # The geographic location to process de-identification. Reserved for future
584
- # extensions.
585
+ # Deprecated. This field has no effect.
585
586
  #
586
587
  # @yield [response, operation] Access the result along with the RPC operation
587
588
  # @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyContentResponse]
@@ -680,8 +681,7 @@ module Google
680
681
  # template. Repeated fields are appended. Singular sub-messages and groups
681
682
  # are recursively merged.
682
683
  # @param location_id [::String]
683
- # The geographic location to process content reidentification. Reserved for
684
- # future extensions.
684
+ # Deprecated. This field has no effect.
685
685
  #
686
686
  # @yield [response, operation] Access the result along with the RPC operation
687
687
  # @yieldparam response [::Google::Cloud::Dlp::V2::ReidentifyContentResponse]
@@ -743,11 +743,13 @@ module Google
743
743
  # @param options [::Gapic::CallOptions, ::Hash]
744
744
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
745
745
  #
746
- # @overload list_info_types(language_code: nil, filter: nil, location_id: nil)
746
+ # @overload list_info_types(parent: nil, language_code: nil, filter: nil, location_id: nil)
747
747
  # Pass arguments to `list_info_types` via keyword arguments. Note that at
748
748
  # least one keyword argument is required. To specify no parameters, or to keep all
749
749
  # the default parameter values, pass an empty Hash as a request object (see above).
750
750
  #
751
+ # @param parent [::String]
752
+ # The parent resource name, for example locations/\\{location_id}
751
753
  # @param language_code [::String]
752
754
  # BCP-47 language code for localized infoType friendly
753
755
  # names. If omitted, or if localized strings are not available,
@@ -756,8 +758,7 @@ module Google
756
758
  # filter to only return infoTypes supported by certain parts of the
757
759
  # API. Defaults to supported_by=INSPECT.
758
760
  # @param location_id [::String]
759
- # The geographic location to list info types. Reserved for future
760
- # extensions.
761
+ # Deprecated. This field has no effect.
761
762
  #
762
763
  # @yield [response, operation] Access the result along with the RPC operation
763
764
  # @yieldparam response [::Google::Cloud::Dlp::V2::ListInfoTypesResponse]
@@ -820,7 +821,7 @@ module Google
820
821
  #
821
822
  # @param parent [::String]
822
823
  # Required. The parent resource name, for example projects/my-project-id or
823
- # organizations/my-org-id.
824
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location-id}.
824
825
  # @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
825
826
  # Required. The InspectTemplate to create.
826
827
  # @param template_id [::String]
@@ -829,8 +830,7 @@ module Google
829
830
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
830
831
  # characters. Can be empty to allow the system to generate one.
831
832
  # @param location_id [::String]
832
- # The geographic location to store the inspection template. Reserved for
833
- # future extensions.
833
+ # Deprecated. This field has no effect.
834
834
  #
835
835
  # @yield [response, operation] Access the result along with the RPC operation
836
836
  # @yieldparam response [::Google::Cloud::Dlp::V2::InspectTemplate]
@@ -1040,7 +1040,7 @@ module Google
1040
1040
  #
1041
1041
  # @param parent [::String]
1042
1042
  # Required. The parent resource name, for example projects/my-project-id or
1043
- # organizations/my-org-id.
1043
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1044
1044
  # @param page_token [::String]
1045
1045
  # Page token to continue retrieval. Comes from previous call
1046
1046
  # to `ListInspectTemplates`.
@@ -1062,8 +1062,7 @@ module Google
1062
1062
  # - `name`: corresponds to template's name.
1063
1063
  # - `display_name`: corresponds to template's display name.
1064
1064
  # @param location_id [::String]
1065
- # The geographic location where inspection templates will be retrieved from.
1066
- # Use `-` for all locations. Reserved for future extensions.
1065
+ # Deprecated. This field has no effect.
1067
1066
  #
1068
1067
  # @yield [response, operation] Access the result along with the RPC operation
1069
1068
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::InspectTemplate>]
@@ -1203,7 +1202,7 @@ module Google
1203
1202
  #
1204
1203
  # @param parent [::String]
1205
1204
  # Required. The parent resource name, for example projects/my-project-id or
1206
- # organizations/my-org-id.
1205
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1207
1206
  # @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
1208
1207
  # Required. The DeidentifyTemplate to create.
1209
1208
  # @param template_id [::String]
@@ -1212,8 +1211,7 @@ module Google
1212
1211
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
1213
1212
  # characters. Can be empty to allow the system to generate one.
1214
1213
  # @param location_id [::String]
1215
- # The geographic location to store the deidentification template. Reserved
1216
- # for future extensions.
1214
+ # Deprecated. This field has no effect.
1217
1215
  #
1218
1216
  # @yield [response, operation] Access the result along with the RPC operation
1219
1217
  # @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
@@ -1427,7 +1425,7 @@ module Google
1427
1425
  #
1428
1426
  # @param parent [::String]
1429
1427
  # Required. The parent resource name, for example projects/my-project-id or
1430
- # organizations/my-org-id.
1428
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1431
1429
  # @param page_token [::String]
1432
1430
  # Page token to continue retrieval. Comes from previous call
1433
1431
  # to `ListDeidentifyTemplates`.
@@ -1449,8 +1447,7 @@ module Google
1449
1447
  # - `name`: corresponds to template's name.
1450
1448
  # - `display_name`: corresponds to template's display name.
1451
1449
  # @param location_id [::String]
1452
- # The geographic location where deidentifications templates will be retrieved
1453
- # from. Use `-` for all locations. Reserved for future extensions.
1450
+ # Deprecated. This field has no effect.
1454
1451
  #
1455
1452
  # @yield [response, operation] Access the result along with the RPC operation
1456
1453
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DeidentifyTemplate>]
@@ -1590,7 +1587,8 @@ module Google
1590
1587
  # the default parameter values, pass an empty Hash as a request object (see above).
1591
1588
  #
1592
1589
  # @param parent [::String]
1593
- # Required. The parent resource name, for example projects/my-project-id.
1590
+ # Required. The parent resource name, for example projects/my-project-id
1591
+ # or projects/my-project-id/locations/\\{location_id}.
1594
1592
  # @param job_trigger [::Google::Cloud::Dlp::V2::JobTrigger, ::Hash]
1595
1593
  # Required. The JobTrigger to create.
1596
1594
  # @param trigger_id [::String]
@@ -1599,8 +1597,7 @@ module Google
1599
1597
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
1600
1598
  # characters. Can be empty to allow the system to generate one.
1601
1599
  # @param location_id [::String]
1602
- # The geographic location to store the job trigger. Reserved for
1603
- # future extensions.
1600
+ # Deprecated. This field has no effect.
1604
1601
  #
1605
1602
  # @yield [response, operation] Access the result along with the RPC operation
1606
1603
  # @yieldparam response [::Google::Cloud::Dlp::V2::JobTrigger]
@@ -1881,7 +1878,8 @@ module Google
1881
1878
  # the default parameter values, pass an empty Hash as a request object (see above).
1882
1879
  #
1883
1880
  # @param parent [::String]
1884
- # Required. The parent resource name, for example `projects/my-project-id`.
1881
+ # Required. The parent resource name, for example `projects/my-project-id`
1882
+ # or projects/my-project-id/locations/\\{location_id}.
1885
1883
  # @param page_token [::String]
1886
1884
  # Page token to continue retrieval. Comes from previous call
1887
1885
  # to ListJobTriggers. `order_by` field must not
@@ -1930,8 +1928,7 @@ module Google
1930
1928
  #
1931
1929
  # The length of this field should be no more than 500 characters.
1932
1930
  # @param location_id [::String]
1933
- # The geographic location where job triggers will be retrieved from.
1934
- # Use `-` for all locations. Reserved for future extensions.
1931
+ # Deprecated. This field has no effect.
1935
1932
  #
1936
1933
  # @yield [response, operation] Access the result along with the RPC operation
1937
1934
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::JobTrigger>]
@@ -2140,7 +2137,8 @@ module Google
2140
2137
  # the default parameter values, pass an empty Hash as a request object (see above).
2141
2138
  #
2142
2139
  # @param parent [::String]
2143
- # Required. The parent resource name, for example projects/my-project-id.
2140
+ # Required. The parent resource name, for example projects/my-project-id
2141
+ # or projects/my-project-id/locations/\\{location_id}.
2144
2142
  # @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
2145
2143
  # Set to control what and how to inspect.
2146
2144
  # @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
@@ -2151,8 +2149,7 @@ module Google
2151
2149
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2152
2150
  # characters. Can be empty to allow the system to generate one.
2153
2151
  # @param location_id [::String]
2154
- # The geographic location to store and process the job. Reserved for
2155
- # future extensions.
2152
+ # Deprecated. This field has no effect.
2156
2153
  #
2157
2154
  # @yield [response, operation] Access the result along with the RPC operation
2158
2155
  # @yieldparam response [::Google::Cloud::Dlp::V2::DlpJob]
@@ -2220,7 +2217,8 @@ module Google
2220
2217
  # the default parameter values, pass an empty Hash as a request object (see above).
2221
2218
  #
2222
2219
  # @param parent [::String]
2223
- # Required. The parent resource name, for example projects/my-project-id.
2220
+ # Required. The parent resource name, for example projects/my-project-id
2221
+ # or projects/my-project-id/locations/\\{location_id}.
2224
2222
  # @param filter [::String]
2225
2223
  # Allows filtering.
2226
2224
  #
@@ -2271,8 +2269,7 @@ module Google
2271
2269
  # - `name`: corresponds to job's name.
2272
2270
  # - `state`: corresponds to `state`
2273
2271
  # @param location_id [::String]
2274
- # The geographic location where jobs will be retrieved from.
2275
- # Use `-` for all locations. Reserved for future extensions.
2272
+ # Deprecated. This field has no effect.
2276
2273
  #
2277
2274
  # @yield [response, operation] Access the result along with the RPC operation
2278
2275
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DlpJob>]
@@ -2550,7 +2547,7 @@ module Google
2550
2547
  #
2551
2548
  # @param parent [::String]
2552
2549
  # Required. The parent resource name, for example projects/my-project-id or
2553
- # organizations/my-org-id.
2550
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}
2554
2551
  # @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
2555
2552
  # Required. Configuration of the storedInfoType to create.
2556
2553
  # @param stored_info_type_id [::String]
@@ -2559,8 +2556,7 @@ module Google
2559
2556
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2560
2557
  # characters. Can be empty to allow the system to generate one.
2561
2558
  # @param location_id [::String]
2562
- # The geographic location to store the stored infoType. Reserved for
2563
- # future extensions.
2559
+ # Deprecated. This field has no effect.
2564
2560
  #
2565
2561
  # @yield [response, operation] Access the result along with the RPC operation
2566
2562
  # @yieldparam response [::Google::Cloud::Dlp::V2::StoredInfoType]
@@ -2629,8 +2625,8 @@ module Google
2629
2625
  # the default parameter values, pass an empty Hash as a request object (see above).
2630
2626
  #
2631
2627
  # @param name [::String]
2632
- # Required. Resource name of organization and storedInfoType to be updated,
2633
- # for example `organizations/433245324/storedInfoTypes/432452342` or
2628
+ # Required. Resource name of organization and storedInfoType to be updated, for
2629
+ # example `organizations/433245324/storedInfoTypes/432452342` or
2634
2630
  # projects/project-id/storedInfoTypes/432452342.
2635
2631
  # @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
2636
2632
  # Updated configuration for the storedInfoType. If not provided, a new
@@ -2776,7 +2772,7 @@ module Google
2776
2772
  #
2777
2773
  # @param parent [::String]
2778
2774
  # Required. The parent resource name, for example projects/my-project-id or
2779
- # organizations/my-org-id.
2775
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
2780
2776
  # @param page_token [::String]
2781
2777
  # Page token to continue retrieval. Comes from previous call
2782
2778
  # to `ListStoredInfoTypes`.
@@ -2799,8 +2795,7 @@ module Google
2799
2795
  # - `name`: corresponds to resource name.
2800
2796
  # - `display_name`: corresponds to info type's display name.
2801
2797
  # @param location_id [::String]
2802
- # The geographic location where stored infoTypes will be retrieved from.
2803
- # Use `-` for all locations. Reserved for future extensions.
2798
+ # Deprecated. This field has no effect.
2804
2799
  #
2805
2800
  # @yield [response, operation] Access the result along with the RPC operation
2806
2801
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::StoredInfoType>]
@@ -3138,24 +3133,28 @@ module Google
3138
3133
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3139
3134
  # trigger a retry.
3140
3135
  # @return [::Hash]
3136
+ # @!attribute [rw] quota_project
3137
+ # A separate project against which to charge quota.
3138
+ # @return [::String]
3141
3139
  #
3142
3140
  class Configuration
3143
3141
  extend ::Gapic::Config
3144
3142
 
3145
- config_attr :endpoint, "dlp.googleapis.com", String
3146
- config_attr :credentials, nil do |value|
3143
+ config_attr :endpoint, "dlp.googleapis.com", ::String
3144
+ config_attr :credentials, nil do |value|
3147
3145
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3148
3146
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
3149
3147
  allowed.any? { |klass| klass === value }
3150
3148
  end
3151
- config_attr :scope, nil, ::String, ::Array, nil
3152
- config_attr :lib_name, nil, ::String, nil
3153
- config_attr :lib_version, nil, ::String, nil
3154
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3155
- config_attr :interceptors, nil, ::Array, nil
3156
- config_attr :timeout, nil, ::Numeric, nil
3157
- config_attr :metadata, nil, ::Hash, nil
3158
- config_attr :retry_policy, nil, ::Hash, Proc, nil
3149
+ config_attr :scope, nil, ::String, ::Array, nil
3150
+ config_attr :lib_name, nil, ::String, nil
3151
+ config_attr :lib_version, nil, ::String, nil
3152
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3153
+ config_attr :interceptors, nil, ::Array, nil
3154
+ config_attr :timeout, nil, ::Numeric, nil
3155
+ config_attr :metadata, nil, ::Hash, nil
3156
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3157
+ config_attr :quota_project, nil, ::String, nil
3159
3158
 
3160
3159
  # @private
3161
3160
  def initialize parent_config = nil
@@ -3171,7 +3170,7 @@ module Google
3171
3170
  def rpcs
3172
3171
  @rpcs ||= begin
3173
3172
  parent_rpcs = nil
3174
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
3173
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
3175
3174
  Rpcs.new parent_rpcs
3176
3175
  end
3177
3176
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.1.1"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
@@ -70,6 +70,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
70
70
  value :IMAGE_PNG, 3
71
71
  value :IMAGE_SVG, 4
72
72
  value :TEXT_UTF8, 5
73
+ value :WORD_DOCUMENT, 7
74
+ value :PDF, 8
73
75
  value :AVRO, 11
74
76
  end
75
77
  add_message "google.privacy.dlp.v2.ContentItem" do
@@ -118,8 +120,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
118
120
  optional :record_location, :message, 2, "google.privacy.dlp.v2.RecordLocation"
119
121
  optional :image_location, :message, 3, "google.privacy.dlp.v2.ImageLocation"
120
122
  optional :document_location, :message, 5, "google.privacy.dlp.v2.DocumentLocation"
123
+ optional :metadata_location, :message, 8, "google.privacy.dlp.v2.MetadataLocation"
121
124
  end
122
125
  end
126
+ add_message "google.privacy.dlp.v2.MetadataLocation" do
127
+ optional :type, :enum, 1, "google.privacy.dlp.v2.MetadataType"
128
+ oneof :label do
129
+ optional :storage_label, :message, 3, "google.privacy.dlp.v2.StorageMetadataLabel"
130
+ end
131
+ end
132
+ add_message "google.privacy.dlp.v2.StorageMetadataLabel" do
133
+ optional :key, :string, 1
134
+ end
123
135
  add_message "google.privacy.dlp.v2.DocumentLocation" do
124
136
  optional :file_offset, :int64, 1
125
137
  end
@@ -258,6 +270,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
258
270
  optional :description, :string, 4
259
271
  end
260
272
  add_message "google.privacy.dlp.v2.ListInfoTypesRequest" do
273
+ optional :parent, :string, 4
261
274
  optional :language_code, :string, 1
262
275
  optional :filter, :string, 2
263
276
  optional :location_id, :string, 3
@@ -987,6 +1000,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
987
1000
  value :CONTENT_TEXT, 1
988
1001
  value :CONTENT_IMAGE, 2
989
1002
  end
1003
+ add_enum "google.privacy.dlp.v2.MetadataType" do
1004
+ value :METADATATYPE_UNSPECIFIED, 0
1005
+ value :STORAGE_METADATA, 2
1006
+ end
990
1007
  add_enum "google.privacy.dlp.v2.InfoTypeSupportedBy" do
991
1008
  value :ENUM_TYPE_UNSPECIFIED, 0
992
1009
  value :INSPECT, 1
@@ -1027,6 +1044,8 @@ module Google
1027
1044
  Finding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Finding").msgclass
1028
1045
  Location = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Location").msgclass
1029
1046
  ContentLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentLocation").msgclass
1047
+ MetadataLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MetadataLocation").msgclass
1048
+ StorageMetadataLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageMetadataLabel").msgclass
1030
1049
  DocumentLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DocumentLocation").msgclass
1031
1050
  RecordLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RecordLocation").msgclass
1032
1051
  TableLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableLocation").msgclass
@@ -1192,6 +1211,7 @@ module Google
1192
1211
  RelationalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RelationalOperator").enummodule
1193
1212
  MatchingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MatchingType").enummodule
1194
1213
  ContentOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentOption").enummodule
1214
+ MetadataType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MetadataType").enummodule
1195
1215
  InfoTypeSupportedBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSupportedBy").enummodule
1196
1216
  DlpJobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJobType").enummodule
1197
1217
  StoredInfoTypeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoTypeState").enummodule
@@ -194,6 +194,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
194
194
  value :BINARY_FILE, 1
195
195
  value :TEXT_FILE, 2
196
196
  value :IMAGE, 3
197
+ value :WORD, 5
198
+ value :PDF, 6
197
199
  value :AVRO, 7
198
200
  end
199
201
  end
@@ -178,7 +178,7 @@ module Google
178
178
  include ::Google::Protobuf::MessageExts
179
179
  extend ::Google::Protobuf::MessageExts::ClassMethods
180
180
 
181
- # The type of data being sent to in data.
181
+ # The type of data being sent for inspection.
182
182
  module BytesType
183
183
  # Unused
184
184
  BYTES_TYPE_UNSPECIFIED = 0
@@ -201,6 +201,12 @@ module Google
201
201
  # plain text
202
202
  TEXT_UTF8 = 5
203
203
 
204
+ # docx, docm, dotx, dotm
205
+ WORD_DOCUMENT = 7
206
+
207
+ # pdf
208
+ PDF = 8
209
+
204
210
  # avro
205
211
  AVRO = 11
206
212
  end
@@ -300,13 +306,9 @@ module Google
300
306
  # @!attribute [rw] trigger_name
301
307
  # @return [::String]
302
308
  # Job trigger name, if applicable, for this finding.
303
- # (-- api-linter: core::0122::name-suffix=disabled
304
- # aip.dev/not-precedent: AIP-122 discourages _name suffixes for
305
- # resource names, but this has existed as part of the bigquery schema
306
- # before this rule existed. --)
307
309
  # @!attribute [rw] labels
308
310
  # @return [::Google::Protobuf::Map{::String => ::String}]
309
- # The labels associated with this `InspectFinding`.
311
+ # The labels associated with this `Finding`.
310
312
  #
311
313
  # Label keys must be between 1 and 63 characters long and must conform
312
314
  # to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
@@ -325,10 +327,6 @@ module Google
325
327
  # @!attribute [rw] job_name
326
328
  # @return [::String]
327
329
  # The job that stored the finding.
328
- # (-- api-linter: core::0122::name-suffix=disabled
329
- # aip.dev/not-precedent: AIP-122 discourages _name suffixes for
330
- # resource names, but this has existed as part of the bigquery schema
331
- # before this rule existed. --)
332
330
  class Finding
333
331
  include ::Google::Protobuf::MessageExts
334
332
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -391,6 +389,9 @@ module Google
391
389
  # @!attribute [rw] document_location
392
390
  # @return [::Google::Cloud::Dlp::V2::DocumentLocation]
393
391
  # Location data for document files.
392
+ # @!attribute [rw] metadata_location
393
+ # @return [::Google::Cloud::Dlp::V2::MetadataLocation]
394
+ # Location within the metadata for inspected content.
394
395
  # @!attribute [rw] container_timestamp
395
396
  # @return [::Google::Protobuf::Timestamp]
396
397
  # Findings container modification timestamp, if applicable.
@@ -406,6 +407,26 @@ module Google
406
407
  extend ::Google::Protobuf::MessageExts::ClassMethods
407
408
  end
408
409
 
410
+ # Metadata Location
411
+ # @!attribute [rw] type
412
+ # @return [::Google::Cloud::Dlp::V2::MetadataType]
413
+ # Type of metadata containing the finding.
414
+ # @!attribute [rw] storage_label
415
+ # @return [::Google::Cloud::Dlp::V2::StorageMetadataLabel]
416
+ # Storage metadata.
417
+ class MetadataLocation
418
+ include ::Google::Protobuf::MessageExts
419
+ extend ::Google::Protobuf::MessageExts::ClassMethods
420
+ end
421
+
422
+ # Storage metadata label to indicate which metadata entry contains findings.
423
+ # @!attribute [rw] key
424
+ # @return [::String]
425
+ class StorageMetadataLabel
426
+ include ::Google::Protobuf::MessageExts
427
+ extend ::Google::Protobuf::MessageExts::ClassMethods
428
+ end
429
+
409
430
  # Location of a finding within a document.
410
431
  # @!attribute [rw] file_offset
411
432
  # @return [::Integer]
@@ -434,7 +455,12 @@ module Google
434
455
  # Location of a finding within a table.
435
456
  # @!attribute [rw] row_index
436
457
  # @return [::Integer]
437
- # The zero-based index of the row where the finding is located.
458
+ # The zero-based index of the row where the finding is located. Only
459
+ # populated for resources that have a natural ordering, not BigQuery. In
460
+ # BigQuery, to identify the row a finding came from, populate
461
+ # BigQueryOptions.identifying_fields with your primary key column names and
462
+ # when you store the findings the value of those columns will be stored
463
+ # inside of Finding.
438
464
  class TableLocation
439
465
  include ::Google::Protobuf::MessageExts
440
466
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -529,11 +555,11 @@ module Google
529
555
  # by covering it with a colored rectangle.
530
556
  # @!attribute [rw] parent
531
557
  # @return [::String]
532
- # The parent resource name, for example projects/my-project-id.
558
+ # The parent resource name, for example projects/my-project-id
559
+ # or projects/my-project-id/locations/\\{location_id}.
533
560
  # @!attribute [rw] location_id
534
561
  # @return [::String]
535
- # The geographic location to process the request. Reserved for future
536
- # extensions.
562
+ # Deprecated. This field has no effect.
537
563
  # @!attribute [rw] inspect_config
538
564
  # @return [::Google::Cloud::Dlp::V2::InspectConfig]
539
565
  # Configuration for the inspector.
@@ -607,7 +633,8 @@ module Google
607
633
  # Request to de-identify a list of items.
608
634
  # @!attribute [rw] parent
609
635
  # @return [::String]
610
- # The parent resource name, for example projects/my-project-id.
636
+ # The parent resource name, for example projects/my-project-id
637
+ # or projects/my-project-id/locations/\\{location_id}.
611
638
  # @!attribute [rw] deidentify_config
612
639
  # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
613
640
  # Configuration for the de-identification of the content item.
@@ -637,8 +664,7 @@ module Google
637
664
  # are recursively merged.
638
665
  # @!attribute [rw] location_id
639
666
  # @return [::String]
640
- # The geographic location to process de-identification. Reserved for future
641
- # extensions.
667
+ # Deprecated. This field has no effect.
642
668
  class DeidentifyContentRequest
643
669
  include ::Google::Protobuf::MessageExts
644
670
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -695,8 +721,7 @@ module Google
695
721
  # are recursively merged.
696
722
  # @!attribute [rw] location_id
697
723
  # @return [::String]
698
- # The geographic location to process content reidentification. Reserved for
699
- # future extensions.
724
+ # Deprecated. This field has no effect.
700
725
  class ReidentifyContentRequest
701
726
  include ::Google::Protobuf::MessageExts
702
727
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -717,7 +742,8 @@ module Google
717
742
  # Request to search for potentially sensitive info in a ContentItem.
718
743
  # @!attribute [rw] parent
719
744
  # @return [::String]
720
- # The parent resource name, for example projects/my-project-id.
745
+ # The parent resource name, for example projects/my-project-id
746
+ # or projects/my-project-id/locations/\\{location_id}
721
747
  # @!attribute [rw] inspect_config
722
748
  # @return [::Google::Cloud::Dlp::V2::InspectConfig]
723
749
  # Configuration for the inspector. What specified here will override
@@ -734,8 +760,7 @@ module Google
734
760
  # are recursively merged.
735
761
  # @!attribute [rw] location_id
736
762
  # @return [::String]
737
- # The geographic location to process content inspection. Reserved for future
738
- # extensions.
763
+ # Deprecated. This field has no effect.
739
764
  class InspectContentRequest
740
765
  include ::Google::Protobuf::MessageExts
741
766
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -906,6 +931,9 @@ module Google
906
931
  end
907
932
 
908
933
  # Request for the list of infoTypes.
934
+ # @!attribute [rw] parent
935
+ # @return [::String]
936
+ # The parent resource name, for example locations/\\{location_id}
909
937
  # @!attribute [rw] language_code
910
938
  # @return [::String]
911
939
  # BCP-47 language code for localized infoType friendly
@@ -917,8 +945,7 @@ module Google
917
945
  # API. Defaults to supported_by=INSPECT.
918
946
  # @!attribute [rw] location_id
919
947
  # @return [::String]
920
- # The geographic location to list info types. Reserved for future
921
- # extensions.
948
+ # Deprecated. This field has no effect.
922
949
  class ListInfoTypesRequest
923
950
  include ::Google::Protobuf::MessageExts
924
951
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2028,7 +2055,7 @@ module Google
2028
2055
  #
2029
2056
  # This annotation identifies the surrogate when inspecting content using the
2030
2057
  # custom infoType
2031
- # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
2058
+ # [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
2032
2059
  # This facilitates reversal of the surrogate when it occurs in free text.
2033
2060
  #
2034
2061
  # In order for inspection to work properly, the name of this infoType must
@@ -2052,16 +2079,16 @@ module Google
2052
2079
  # Unused.
2053
2080
  FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0
2054
2081
 
2055
- # [0-9] (radix of 10)
2082
+ # `[0-9]` (radix of 10)
2056
2083
  NUMERIC = 1
2057
2084
 
2058
- # [0-9A-F] (radix of 16)
2085
+ # `[0-9A-F]` (radix of 16)
2059
2086
  HEXADECIMAL = 2
2060
2087
 
2061
- # [0-9A-Z] (radix of 36)
2088
+ # `[0-9A-Z]` (radix of 36)
2062
2089
  UPPER_CASE_ALPHA_NUMERIC = 3
2063
2090
 
2064
- # [0-9A-Za-z] (radix of 62)
2091
+ # `[0-9A-Za-z]` (radix of 62)
2065
2092
  ALPHA_NUMERIC = 4
2066
2093
  end
2067
2094
  end
@@ -2500,8 +2527,8 @@ module Google
2500
2527
  # a single Schedule trigger and must have at least one object.
2501
2528
  # @!attribute [r] errors
2502
2529
  # @return [::Array<::Google::Cloud::Dlp::V2::Error>]
2503
- # Output only. A stream of errors encountered when the trigger was activated.
2504
- # Repeated errors may result in the JobTrigger automatically being paused.
2530
+ # Output only. A stream of errors encountered when the trigger was activated. Repeated
2531
+ # errors may result in the JobTrigger automatically being paused.
2505
2532
  # Will return the last 100 errors. Whenever the JobTrigger is modified
2506
2533
  # this list will be cleared.
2507
2534
  # @!attribute [r] create_time
@@ -2594,7 +2621,7 @@ module Google
2594
2621
  # Publish a message into given Pub/Sub topic when DlpJob has completed. The
2595
2622
  # message contains a single field, `DlpJobName`, which is equal to the
2596
2623
  # finished job's
2597
- # [`DlpJob.name`](/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
2624
+ # [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
2598
2625
  # Compatible with: Inspect, Risk
2599
2626
  # @!attribute [rw] topic
2600
2627
  # @return [::String]
@@ -2658,7 +2685,7 @@ module Google
2658
2685
  # @!attribute [rw] parent
2659
2686
  # @return [::String]
2660
2687
  # Required. The parent resource name, for example projects/my-project-id or
2661
- # organizations/my-org-id.
2688
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location-id}.
2662
2689
  # @!attribute [rw] inspect_template
2663
2690
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
2664
2691
  # Required. The InspectTemplate to create.
@@ -2670,8 +2697,7 @@ module Google
2670
2697
  # characters. Can be empty to allow the system to generate one.
2671
2698
  # @!attribute [rw] location_id
2672
2699
  # @return [::String]
2673
- # The geographic location to store the inspection template. Reserved for
2674
- # future extensions.
2700
+ # Deprecated. This field has no effect.
2675
2701
  class CreateInspectTemplateRequest
2676
2702
  include ::Google::Protobuf::MessageExts
2677
2703
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2709,7 +2735,7 @@ module Google
2709
2735
  # @!attribute [rw] parent
2710
2736
  # @return [::String]
2711
2737
  # Required. The parent resource name, for example projects/my-project-id or
2712
- # organizations/my-org-id.
2738
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
2713
2739
  # @!attribute [rw] page_token
2714
2740
  # @return [::String]
2715
2741
  # Page token to continue retrieval. Comes from previous call
@@ -2735,8 +2761,7 @@ module Google
2735
2761
  # - `display_name`: corresponds to template's display name.
2736
2762
  # @!attribute [rw] location_id
2737
2763
  # @return [::String]
2738
- # The geographic location where inspection templates will be retrieved from.
2739
- # Use `-` for all locations. Reserved for future extensions.
2764
+ # Deprecated. This field has no effect.
2740
2765
  class ListInspectTemplatesRequest
2741
2766
  include ::Google::Protobuf::MessageExts
2742
2767
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2769,7 +2794,8 @@ module Google
2769
2794
  # Request message for CreateJobTrigger.
2770
2795
  # @!attribute [rw] parent
2771
2796
  # @return [::String]
2772
- # Required. The parent resource name, for example projects/my-project-id.
2797
+ # Required. The parent resource name, for example projects/my-project-id
2798
+ # or projects/my-project-id/locations/\\{location_id}.
2773
2799
  # @!attribute [rw] job_trigger
2774
2800
  # @return [::Google::Cloud::Dlp::V2::JobTrigger]
2775
2801
  # Required. The JobTrigger to create.
@@ -2781,8 +2807,7 @@ module Google
2781
2807
  # characters. Can be empty to allow the system to generate one.
2782
2808
  # @!attribute [rw] location_id
2783
2809
  # @return [::String]
2784
- # The geographic location to store the job trigger. Reserved for
2785
- # future extensions.
2810
+ # Deprecated. This field has no effect.
2786
2811
  class CreateJobTriggerRequest
2787
2812
  include ::Google::Protobuf::MessageExts
2788
2813
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2829,7 +2854,8 @@ module Google
2829
2854
  # Storage.
2830
2855
  # @!attribute [rw] parent
2831
2856
  # @return [::String]
2832
- # Required. The parent resource name, for example projects/my-project-id.
2857
+ # Required. The parent resource name, for example projects/my-project-id
2858
+ # or projects/my-project-id/locations/\\{location_id}.
2833
2859
  # @!attribute [rw] inspect_job
2834
2860
  # @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
2835
2861
  # Set to control what and how to inspect.
@@ -2844,8 +2870,7 @@ module Google
2844
2870
  # characters. Can be empty to allow the system to generate one.
2845
2871
  # @!attribute [rw] location_id
2846
2872
  # @return [::String]
2847
- # The geographic location to store and process the job. Reserved for
2848
- # future extensions.
2873
+ # Deprecated. This field has no effect.
2849
2874
  class CreateDlpJobRequest
2850
2875
  include ::Google::Protobuf::MessageExts
2851
2876
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2854,7 +2879,8 @@ module Google
2854
2879
  # Request message for ListJobTriggers.
2855
2880
  # @!attribute [rw] parent
2856
2881
  # @return [::String]
2857
- # Required. The parent resource name, for example `projects/my-project-id`.
2882
+ # Required. The parent resource name, for example `projects/my-project-id`
2883
+ # or projects/my-project-id/locations/\\{location_id}.
2858
2884
  # @!attribute [rw] page_token
2859
2885
  # @return [::String]
2860
2886
  # Page token to continue retrieval. Comes from previous call
@@ -2908,8 +2934,7 @@ module Google
2908
2934
  # The length of this field should be no more than 500 characters.
2909
2935
  # @!attribute [rw] location_id
2910
2936
  # @return [::String]
2911
- # The geographic location where job triggers will be retrieved from.
2912
- # Use `-` for all locations. Reserved for future extensions.
2937
+ # Deprecated. This field has no effect.
2913
2938
  class ListJobTriggersRequest
2914
2939
  include ::Google::Protobuf::MessageExts
2915
2940
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3035,7 +3060,8 @@ module Google
3035
3060
  # The request message for listing DLP jobs.
3036
3061
  # @!attribute [rw] parent
3037
3062
  # @return [::String]
3038
- # Required. The parent resource name, for example projects/my-project-id.
3063
+ # Required. The parent resource name, for example projects/my-project-id
3064
+ # or projects/my-project-id/locations/\\{location_id}.
3039
3065
  # @!attribute [rw] filter
3040
3066
  # @return [::String]
3041
3067
  # Allows filtering.
@@ -3092,8 +3118,7 @@ module Google
3092
3118
  # - `state`: corresponds to `state`
3093
3119
  # @!attribute [rw] location_id
3094
3120
  # @return [::String]
3095
- # The geographic location where jobs will be retrieved from.
3096
- # Use `-` for all locations. Reserved for future extensions.
3121
+ # Deprecated. This field has no effect.
3097
3122
  class ListDlpJobsRequest
3098
3123
  include ::Google::Protobuf::MessageExts
3099
3124
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3142,7 +3167,7 @@ module Google
3142
3167
  # @!attribute [rw] parent
3143
3168
  # @return [::String]
3144
3169
  # Required. The parent resource name, for example projects/my-project-id or
3145
- # organizations/my-org-id.
3170
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3146
3171
  # @!attribute [rw] deidentify_template
3147
3172
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
3148
3173
  # Required. The DeidentifyTemplate to create.
@@ -3154,8 +3179,7 @@ module Google
3154
3179
  # characters. Can be empty to allow the system to generate one.
3155
3180
  # @!attribute [rw] location_id
3156
3181
  # @return [::String]
3157
- # The geographic location to store the deidentification template. Reserved
3158
- # for future extensions.
3182
+ # Deprecated. This field has no effect.
3159
3183
  class CreateDeidentifyTemplateRequest
3160
3184
  include ::Google::Protobuf::MessageExts
3161
3185
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3194,7 +3218,7 @@ module Google
3194
3218
  # @!attribute [rw] parent
3195
3219
  # @return [::String]
3196
3220
  # Required. The parent resource name, for example projects/my-project-id or
3197
- # organizations/my-org-id.
3221
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3198
3222
  # @!attribute [rw] page_token
3199
3223
  # @return [::String]
3200
3224
  # Page token to continue retrieval. Comes from previous call
@@ -3220,8 +3244,7 @@ module Google
3220
3244
  # - `display_name`: corresponds to template's display name.
3221
3245
  # @!attribute [rw] location_id
3222
3246
  # @return [::String]
3223
- # The geographic location where deidentifications templates will be retrieved
3224
- # from. Use `-` for all locations. Reserved for future extensions.
3247
+ # Deprecated. This field has no effect.
3225
3248
  class ListDeidentifyTemplatesRequest
3226
3249
  include ::Google::Protobuf::MessageExts
3227
3250
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3374,7 +3397,7 @@ module Google
3374
3397
  # @!attribute [rw] parent
3375
3398
  # @return [::String]
3376
3399
  # Required. The parent resource name, for example projects/my-project-id or
3377
- # organizations/my-org-id.
3400
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}
3378
3401
  # @!attribute [rw] config
3379
3402
  # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3380
3403
  # Required. Configuration of the storedInfoType to create.
@@ -3386,8 +3409,7 @@ module Google
3386
3409
  # characters. Can be empty to allow the system to generate one.
3387
3410
  # @!attribute [rw] location_id
3388
3411
  # @return [::String]
3389
- # The geographic location to store the stored infoType. Reserved for
3390
- # future extensions.
3412
+ # Deprecated. This field has no effect.
3391
3413
  class CreateStoredInfoTypeRequest
3392
3414
  include ::Google::Protobuf::MessageExts
3393
3415
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3396,8 +3418,8 @@ module Google
3396
3418
  # Request message for UpdateStoredInfoType.
3397
3419
  # @!attribute [rw] name
3398
3420
  # @return [::String]
3399
- # Required. Resource name of organization and storedInfoType to be updated,
3400
- # for example `organizations/433245324/storedInfoTypes/432452342` or
3421
+ # Required. Resource name of organization and storedInfoType to be updated, for
3422
+ # example `organizations/433245324/storedInfoTypes/432452342` or
3401
3423
  # projects/project-id/storedInfoTypes/432452342.
3402
3424
  # @!attribute [rw] config
3403
3425
  # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
@@ -3427,7 +3449,7 @@ module Google
3427
3449
  # @!attribute [rw] parent
3428
3450
  # @return [::String]
3429
3451
  # Required. The parent resource name, for example projects/my-project-id or
3430
- # organizations/my-org-id.
3452
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3431
3453
  # @!attribute [rw] page_token
3432
3454
  # @return [::String]
3433
3455
  # Page token to continue retrieval. Comes from previous call
@@ -3454,8 +3476,7 @@ module Google
3454
3476
  # - `display_name`: corresponds to info type's display name.
3455
3477
  # @!attribute [rw] location_id
3456
3478
  # @return [::String]
3457
- # The geographic location where stored infoTypes will be retrieved from.
3458
- # Use `-` for all locations. Reserved for future extensions.
3479
+ # Deprecated. This field has no effect.
3459
3480
  class ListStoredInfoTypesRequest
3460
3481
  include ::Google::Protobuf::MessageExts
3461
3482
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3652,6 +3673,15 @@ module Google
3652
3673
  CONTENT_IMAGE = 2
3653
3674
  end
3654
3675
 
3676
+ # Type of metadata containing the finding.
3677
+ module MetadataType
3678
+ # Unused
3679
+ METADATATYPE_UNSPECIFIED = 0
3680
+
3681
+ # General file metadata provided by GCS.
3682
+ STORAGE_METADATA = 2
3683
+ end
3684
+
3655
3685
  # Parts of the APIs which use certain infoTypes.
3656
3686
  module InfoTypeSupportedBy
3657
3687
  # Unused.
@@ -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
@@ -373,6 +373,9 @@ module Google
373
373
  # If empty, all files are scanned and available data format processors
374
374
  # are applied. In addition, the binary content of the selected files
375
375
  # is always scanned as well.
376
+ # Images are scanned only as binary if the specified region
377
+ # does not support image inspection and no file_types were specified.
378
+ # Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
376
379
  # @!attribute [rw] sample_method
377
380
  # @return [::Google::Cloud::Dlp::V2::CloudStorageOptions::SampleMethod]
378
381
  # @!attribute [rw] files_limit_percent
@@ -783,8 +786,17 @@ module Google
783
786
  # Included file extensions:
784
787
  # bmp, gif, jpg, jpeg, jpe, png.
785
788
  # bytes_limit_per_file has no effect on image files.
789
+ # Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
786
790
  IMAGE = 3
787
791
 
792
+ # Included file extensions:
793
+ # docx, dotx, docm, dotm
794
+ WORD = 5
795
+
796
+ # Included file extensions:
797
+ # pdf
798
+ PDF = 6
799
+
788
800
  # Included file extensions:
789
801
  # avro
790
802
  AVRO = 7
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.1.1
4
+ version: 0.3.3
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-05 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -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