google-cloud-dlp-v2 0.3.2 → 0.4.3

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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.3.2"
24
+ VERSION = "0.4.3"
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,21 @@ 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
+ # Parent resource name.
565
+ #
566
+ # The format of this value varies depending on whether you have [specified a
567
+ # processing location](/dlp/docs/specifying-location):
568
+ #
569
+ # + Projects scope, location specified:<br/>
570
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
571
+ # + Projects scope, no location specified (defaults to global):<br/>
572
+ # `projects/`<var>PROJECT_ID</var>
573
+ #
574
+ # The following example `parent` string specifies a parent project with the
575
+ # identifier `example-project`, and specifies the `europe-west3` location
576
+ # for processing data:
577
+ #
578
+ # parent=projects/example-project/locations/europe-west3
560
579
  # @!attribute [rw] location_id
561
580
  # @return [::String]
562
581
  # Deprecated. This field has no effect.
@@ -633,8 +652,21 @@ module Google
633
652
  # Request to de-identify a list of items.
634
653
  # @!attribute [rw] parent
635
654
  # @return [::String]
636
- # The parent resource name, for example projects/my-project-id
637
- # or projects/my-project-id/locations/\\{location_id}.
655
+ # Parent resource name.
656
+ #
657
+ # The format of this value varies depending on whether you have [specified a
658
+ # processing location](/dlp/docs/specifying-location):
659
+ #
660
+ # + Projects scope, location specified:<br/>
661
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
662
+ # + Projects scope, no location specified (defaults to global):<br/>
663
+ # `projects/`<var>PROJECT_ID</var>
664
+ #
665
+ # The following example `parent` string specifies a parent project with the
666
+ # identifier `example-project`, and specifies the `europe-west3` location
667
+ # for processing data:
668
+ #
669
+ # parent=projects/example-project/locations/europe-west3
638
670
  # @!attribute [rw] deidentify_config
639
671
  # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
640
672
  # Configuration for the de-identification of the content item.
@@ -685,7 +717,21 @@ module Google
685
717
  # Request to re-identify an item.
686
718
  # @!attribute [rw] parent
687
719
  # @return [::String]
688
- # Required. The parent resource name.
720
+ # Required. Parent resource name.
721
+ #
722
+ # The format of this value varies depending on whether you have [specified a
723
+ # processing location](/dlp/docs/specifying-location):
724
+ #
725
+ # + Projects scope, location specified:<br/>
726
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
727
+ # + Projects scope, no location specified (defaults to global):<br/>
728
+ # `projects/`<var>PROJECT_ID</var>
729
+ #
730
+ # The following example `parent` string specifies a parent project with the
731
+ # identifier `example-project`, and specifies the `europe-west3` location
732
+ # for processing data:
733
+ #
734
+ # parent=projects/example-project/locations/europe-west3
689
735
  # @!attribute [rw] reidentify_config
690
736
  # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
691
737
  # Configuration for the re-identification of the content item.
@@ -715,10 +761,11 @@ module Google
715
761
  # @return [::String]
716
762
  # Template to use. References an instance of `DeidentifyTemplate`.
717
763
  # Any configuration directly specified in `reidentify_config` or
718
- # `inspect_config` will override those set in the template. Singular fields
719
- # that are set in this request will replace their corresponding fields in the
720
- # template. Repeated fields are appended. Singular sub-messages and groups
721
- # are recursively merged.
764
+ # `inspect_config` will override those set in the template. The
765
+ # `DeidentifyTemplate` used must include only reversible transformations.
766
+ # Singular fields that are set in this request will replace their
767
+ # corresponding fields in the template. Repeated fields are appended.
768
+ # Singular sub-messages and groups are recursively merged.
722
769
  # @!attribute [rw] location_id
723
770
  # @return [::String]
724
771
  # Deprecated. This field has no effect.
@@ -742,8 +789,21 @@ module Google
742
789
  # Request to search for potentially sensitive info in a ContentItem.
743
790
  # @!attribute [rw] parent
744
791
  # @return [::String]
745
- # The parent resource name, for example projects/my-project-id
746
- # or projects/my-project-id/locations/\\{location_id}
792
+ # Parent resource name.
793
+ #
794
+ # The format of this value varies depending on whether you have [specified a
795
+ # processing location](/dlp/docs/specifying-location):
796
+ #
797
+ # + Projects scope, location specified:<br/>
798
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
799
+ # + Projects scope, no location specified (defaults to global):<br/>
800
+ # `projects/`<var>PROJECT_ID</var>
801
+ #
802
+ # The following example `parent` string specifies a parent project with the
803
+ # identifier `example-project`, and specifies the `europe-west3` location
804
+ # for processing data:
805
+ #
806
+ # parent=projects/example-project/locations/europe-west3
747
807
  # @!attribute [rw] inspect_config
748
808
  # @return [::Google::Cloud::Dlp::V2::InspectConfig]
749
809
  # Configuration for the inspector. What specified here will override
@@ -891,7 +951,7 @@ module Google
891
951
  end
892
952
  end
893
953
 
894
- # Statistics related to processing hybrid inspect requests.s
954
+ # Statistics related to processing hybrid inspect requests.
895
955
  # @!attribute [rw] processed_count
896
956
  # @return [::Integer]
897
957
  # The number of hybrid inspection requests processed within this job.
@@ -933,7 +993,11 @@ module Google
933
993
  # Request for the list of infoTypes.
934
994
  # @!attribute [rw] parent
935
995
  # @return [::String]
936
- # The parent resource name, for example locations/\\{location_id}
996
+ # The parent resource name.
997
+ #
998
+ # The format of this value is as follows:
999
+ #
1000
+ # locations/<var>LOCATION_ID</var>
937
1001
  # @!attribute [rw] language_code
938
1002
  # @return [::String]
939
1003
  # BCP-47 language code for localized infoType friendly
@@ -1017,8 +1081,8 @@ module Google
1017
1081
  # Required. Quasi-identifier columns.
1018
1082
  # @!attribute [rw] relative_frequency
1019
1083
  # @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.
1084
+ # Required. The relative frequency column must contain a floating-point number
1085
+ # between 0 and 1 (inclusive). Null values are assumed to be zero.
1022
1086
  class StatisticalTable
1023
1087
  include ::Google::Protobuf::MessageExts
1024
1088
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1133,8 +1197,8 @@ module Google
1133
1197
  # extrapolating from the distribution of values in the input dataset.
1134
1198
  # @!attribute [rw] quasi_ids
1135
1199
  # @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.
1200
+ # Required. Fields considered to be quasi-identifiers. No two columns can have the
1201
+ # same tag.
1138
1202
  # @!attribute [rw] region_code
1139
1203
  # @return [::String]
1140
1204
  # ISO 3166-1 alpha-2 region code to use in the statistical modeling.
@@ -1189,8 +1253,8 @@ module Google
1189
1253
  # Required. Quasi-identifier columns.
1190
1254
  # @!attribute [rw] relative_frequency
1191
1255
  # @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.
1256
+ # Required. The relative frequency column must contain a floating-point number
1257
+ # between 0 and 1 (inclusive). Null values are assumed to be zero.
1194
1258
  class AuxiliaryTable
1195
1259
  include ::Google::Protobuf::MessageExts
1196
1260
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1216,8 +1280,8 @@ module Google
1216
1280
  # knowing the attack dataset, so we use a statistical model instead.
1217
1281
  # @!attribute [rw] quasi_ids
1218
1282
  # @return [::Array<::Google::Cloud::Dlp::V2::QuasiId>]
1219
- # Required. Fields considered to be quasi-identifiers. No two fields can
1220
- # have the same tag.
1283
+ # Required. Fields considered to be quasi-identifiers. No two fields can have the
1284
+ # same tag.
1221
1285
  # @!attribute [rw] region_code
1222
1286
  # @return [::String]
1223
1287
  # ISO 3166-1 alpha-2 region code to use in the statistical modeling.
@@ -1935,18 +1999,18 @@ module Google
1935
1999
  # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
1936
2000
  # @!attribute [rw] lower_bound
1937
2001
  # @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”.
2002
+ # Required. Lower bound value of buckets. All values less than `lower_bound` are
2003
+ # grouped together into a single bucket; for example if `lower_bound` = 10,
2004
+ # then all values less than 10 are replaced with the value "-10".
1941
2005
  # @!attribute [rw] upper_bound
1942
2006
  # @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+”.
2007
+ # Required. Upper bound value of buckets. All values greater than upper_bound are
2008
+ # grouped together into a single bucket; for example if `upper_bound` = 89,
2009
+ # then all values greater than 89 are replaced with the value "89+".
1946
2010
  # @!attribute [rw] bucket_size
1947
2011
  # @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
2012
+ # Required. Size of each bucket (except for minimum and maximum buckets). So if
2013
+ # `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
1950
2014
  # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
1951
2015
  # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
1952
2016
  class FixedSizeBucketingConfig
@@ -1980,8 +2044,7 @@ module Google
1980
2044
  # Upper bound of the range, exclusive; type must match min.
1981
2045
  # @!attribute [rw] replacement_value
1982
2046
  # @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.
2047
+ # Required. Replacement value for this bucket.
1985
2048
  class Bucket
1986
2049
  include ::Google::Protobuf::MessageExts
1987
2050
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2038,6 +2101,9 @@ module Google
2038
2101
  # Number of characters must be in the range [2, 95].
2039
2102
  # This must be encoded as ASCII.
2040
2103
  # The order of characters does not matter.
2104
+ # The full list of allowed characters is:
2105
+ # <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
2106
+ # ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/</code>
2041
2107
  # @!attribute [rw] radix
2042
2108
  # @return [::Integer]
2043
2109
  # The native way to select the alphabet. Must be in the range [2, 95].
@@ -2158,15 +2224,14 @@ module Google
2158
2224
  # to learn more.
2159
2225
  # @!attribute [rw] upper_bound_days
2160
2226
  # @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.
2227
+ # Required. Range of shift in days. Actual shift will be selected at random within this
2228
+ # range (inclusive ends). Negative means shift to earlier in time. Must not
2229
+ # be more than 365250 days (1000 years) each direction.
2164
2230
  #
2165
2231
  # For example, 3 means shift date to at most 3 days into the future.
2166
2232
  # @!attribute [rw] lower_bound_days
2167
2233
  # @return [::Integer]
2168
- # Required. For example, -5 means shift date to at most 5 days back in the
2169
- # past.
2234
+ # Required. For example, -5 means shift date to at most 5 days back in the past.
2170
2235
  # @!attribute [rw] context
2171
2236
  # @return [::Google::Cloud::Dlp::V2::FieldId]
2172
2237
  # Points to the field that contains the context, for example, an entity id.
@@ -2684,8 +2749,26 @@ module Google
2684
2749
  # Request message for CreateInspectTemplate.
2685
2750
  # @!attribute [rw] parent
2686
2751
  # @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}.
2752
+ # Required. Parent resource name.
2753
+ #
2754
+ # The format of this value varies depending on the scope of the request
2755
+ # (project or organization) and whether you have [specified a processing
2756
+ # location](/dlp/docs/specifying-location):
2757
+ #
2758
+ # + Projects scope, location specified:<br/>
2759
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2760
+ # + Projects scope, no location specified (defaults to global):<br/>
2761
+ # `projects/`<var>PROJECT_ID</var>
2762
+ # + Organizations scope, location specified:<br/>
2763
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2764
+ # + Organizations scope, no location specified (defaults to global):<br/>
2765
+ # `organizations/`<var>ORG_ID</var>
2766
+ #
2767
+ # The following example `parent` string specifies a parent project with the
2768
+ # identifier `example-project`, and specifies the `europe-west3` location
2769
+ # for processing data:
2770
+ #
2771
+ # parent=projects/example-project/locations/europe-west3
2689
2772
  # @!attribute [rw] inspect_template
2690
2773
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
2691
2774
  # Required. The InspectTemplate to create.
@@ -2706,8 +2789,8 @@ module Google
2706
2789
  # Request message for UpdateInspectTemplate.
2707
2790
  # @!attribute [rw] name
2708
2791
  # @return [::String]
2709
- # Required. Resource name of organization and inspectTemplate to be updated,
2710
- # for example `organizations/433245324/inspectTemplates/432452342` or
2792
+ # Required. Resource name of organization and inspectTemplate to be updated, for
2793
+ # example `organizations/433245324/inspectTemplates/432452342` or
2711
2794
  # projects/project-id/inspectTemplates/432452342.
2712
2795
  # @!attribute [rw] inspect_template
2713
2796
  # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
@@ -2723,8 +2806,8 @@ module Google
2723
2806
  # Request message for GetInspectTemplate.
2724
2807
  # @!attribute [rw] name
2725
2808
  # @return [::String]
2726
- # Required. Resource name of the organization and inspectTemplate to be read,
2727
- # for example `organizations/433245324/inspectTemplates/432452342` or
2809
+ # Required. Resource name of the organization and inspectTemplate to be read, for
2810
+ # example `organizations/433245324/inspectTemplates/432452342` or
2728
2811
  # projects/project-id/inspectTemplates/432452342.
2729
2812
  class GetInspectTemplateRequest
2730
2813
  include ::Google::Protobuf::MessageExts
@@ -2734,8 +2817,26 @@ module Google
2734
2817
  # Request message for ListInspectTemplates.
2735
2818
  # @!attribute [rw] parent
2736
2819
  # @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}.
2820
+ # Required. Parent resource name.
2821
+ #
2822
+ # The format of this value varies depending on the scope of the request
2823
+ # (project or organization) and whether you have [specified a processing
2824
+ # location](/dlp/docs/specifying-location):
2825
+ #
2826
+ # + Projects scope, location specified:<br/>
2827
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2828
+ # + Projects scope, no location specified (defaults to global):<br/>
2829
+ # `projects/`<var>PROJECT_ID</var>
2830
+ # + Organizations scope, location specified:<br/>
2831
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2832
+ # + Organizations scope, no location specified (defaults to global):<br/>
2833
+ # `organizations/`<var>ORG_ID</var>
2834
+ #
2835
+ # The following example `parent` string specifies a parent project with the
2836
+ # identifier `example-project`, and specifies the `europe-west3` location
2837
+ # for processing data:
2838
+ #
2839
+ # parent=projects/example-project/locations/europe-west3
2739
2840
  # @!attribute [rw] page_token
2740
2841
  # @return [::String]
2741
2842
  # Page token to continue retrieval. Comes from previous call
@@ -2783,9 +2884,9 @@ module Google
2783
2884
  # Request message for DeleteInspectTemplate.
2784
2885
  # @!attribute [rw] name
2785
2886
  # @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.
2887
+ # Required. Resource name of the organization and inspectTemplate to be deleted, for
2888
+ # example `organizations/433245324/inspectTemplates/432452342` or
2889
+ # projects/project-id/inspectTemplates/432452342.
2789
2890
  class DeleteInspectTemplateRequest
2790
2891
  include ::Google::Protobuf::MessageExts
2791
2892
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2794,8 +2895,21 @@ module Google
2794
2895
  # Request message for CreateJobTrigger.
2795
2896
  # @!attribute [rw] parent
2796
2897
  # @return [::String]
2797
- # Required. The parent resource name, for example projects/my-project-id
2798
- # or projects/my-project-id/locations/\\{location_id}.
2898
+ # Required. Parent resource name.
2899
+ #
2900
+ # The format of this value varies depending on whether you have [specified a
2901
+ # processing location](/dlp/docs/specifying-location):
2902
+ #
2903
+ # + Projects scope, location specified:<br/>
2904
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2905
+ # + Projects scope, no location specified (defaults to global):<br/>
2906
+ # `projects/`<var>PROJECT_ID</var>
2907
+ #
2908
+ # The following example `parent` string specifies a parent project with the
2909
+ # identifier `example-project`, and specifies the `europe-west3` location
2910
+ # for processing data:
2911
+ #
2912
+ # parent=projects/example-project/locations/europe-west3
2799
2913
  # @!attribute [rw] job_trigger
2800
2914
  # @return [::Google::Cloud::Dlp::V2::JobTrigger]
2801
2915
  # Required. The JobTrigger to create.
@@ -2854,8 +2968,21 @@ module Google
2854
2968
  # Storage.
2855
2969
  # @!attribute [rw] parent
2856
2970
  # @return [::String]
2857
- # Required. The parent resource name, for example projects/my-project-id
2858
- # or projects/my-project-id/locations/\\{location_id}.
2971
+ # Required. Parent resource name.
2972
+ #
2973
+ # The format of this value varies depending on whether you have [specified a
2974
+ # processing location](/dlp/docs/specifying-location):
2975
+ #
2976
+ # + Projects scope, location specified:<br/>
2977
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2978
+ # + Projects scope, no location specified (defaults to global):<br/>
2979
+ # `projects/`<var>PROJECT_ID</var>
2980
+ #
2981
+ # The following example `parent` string specifies a parent project with the
2982
+ # identifier `example-project`, and specifies the `europe-west3` location
2983
+ # for processing data:
2984
+ #
2985
+ # parent=projects/example-project/locations/europe-west3
2859
2986
  # @!attribute [rw] inspect_job
2860
2987
  # @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
2861
2988
  # Set to control what and how to inspect.
@@ -2879,8 +3006,21 @@ module Google
2879
3006
  # Request message for ListJobTriggers.
2880
3007
  # @!attribute [rw] parent
2881
3008
  # @return [::String]
2882
- # Required. The parent resource name, for example `projects/my-project-id`
2883
- # or projects/my-project-id/locations/\\{location_id}.
3009
+ # Required. Parent resource name.
3010
+ #
3011
+ # The format of this value varies depending on whether you have [specified a
3012
+ # processing location](/dlp/docs/specifying-location):
3013
+ #
3014
+ # + Projects scope, location specified:<br/>
3015
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3016
+ # + Projects scope, no location specified (defaults to global):<br/>
3017
+ # `projects/`<var>PROJECT_ID</var>
3018
+ #
3019
+ # The following example `parent` string specifies a parent project with the
3020
+ # identifier `example-project`, and specifies the `europe-west3` location
3021
+ # for processing data:
3022
+ #
3023
+ # parent=projects/example-project/locations/europe-west3
2884
3024
  # @!attribute [rw] page_token
2885
3025
  # @return [::String]
2886
3026
  # Page token to continue retrieval. Comes from previous call
@@ -3060,8 +3200,21 @@ module Google
3060
3200
  # The request message for listing DLP jobs.
3061
3201
  # @!attribute [rw] parent
3062
3202
  # @return [::String]
3063
- # Required. The parent resource name, for example projects/my-project-id
3064
- # or projects/my-project-id/locations/\\{location_id}.
3203
+ # Required. Parent resource name.
3204
+ #
3205
+ # The format of this value varies depending on whether you have [specified a
3206
+ # processing location](/dlp/docs/specifying-location):
3207
+ #
3208
+ # + Projects scope, location specified:<br/>
3209
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3210
+ # + Projects scope, no location specified (defaults to global):<br/>
3211
+ # `projects/`<var>PROJECT_ID</var>
3212
+ #
3213
+ # The following example `parent` string specifies a parent project with the
3214
+ # identifier `example-project`, and specifies the `europe-west3` location
3215
+ # for processing data:
3216
+ #
3217
+ # parent=projects/example-project/locations/europe-west3
3065
3218
  # @!attribute [rw] filter
3066
3219
  # @return [::String]
3067
3220
  # Allows filtering.
@@ -3166,8 +3319,26 @@ module Google
3166
3319
  # Request message for CreateDeidentifyTemplate.
3167
3320
  # @!attribute [rw] parent
3168
3321
  # @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}.
3322
+ # Required. Parent resource name.
3323
+ #
3324
+ # The format of this value varies depending on the scope of the request
3325
+ # (project or organization) and whether you have [specified a processing
3326
+ # location](/dlp/docs/specifying-location):
3327
+ #
3328
+ # + Projects scope, location specified:<br/>
3329
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3330
+ # + Projects scope, no location specified (defaults to global):<br/>
3331
+ # `projects/`<var>PROJECT_ID</var>
3332
+ # + Organizations scope, location specified:<br/>
3333
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3334
+ # + Organizations scope, no location specified (defaults to global):<br/>
3335
+ # `organizations/`<var>ORG_ID</var>
3336
+ #
3337
+ # The following example `parent` string specifies a parent project with the
3338
+ # identifier `example-project`, and specifies the `europe-west3` location
3339
+ # for processing data:
3340
+ #
3341
+ # parent=projects/example-project/locations/europe-west3
3171
3342
  # @!attribute [rw] deidentify_template
3172
3343
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
3173
3344
  # Required. The DeidentifyTemplate to create.
@@ -3188,9 +3359,8 @@ module Google
3188
3359
  # Request message for UpdateDeidentifyTemplate.
3189
3360
  # @!attribute [rw] name
3190
3361
  # @return [::String]
3191
- # Required. Resource name of organization and deidentify template to be
3192
- # updated, for example
3193
- # `organizations/433245324/deidentifyTemplates/432452342` or
3362
+ # Required. Resource name of organization and deidentify template to be updated, for
3363
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
3194
3364
  # projects/project-id/deidentifyTemplates/432452342.
3195
3365
  # @!attribute [rw] deidentify_template
3196
3366
  # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
@@ -3206,9 +3376,9 @@ module Google
3206
3376
  # Request message for GetDeidentifyTemplate.
3207
3377
  # @!attribute [rw] name
3208
3378
  # @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.
3379
+ # Required. Resource name of the organization and deidentify template to be read, for
3380
+ # example `organizations/433245324/deidentifyTemplates/432452342` or
3381
+ # projects/project-id/deidentifyTemplates/432452342.
3212
3382
  class GetDeidentifyTemplateRequest
3213
3383
  include ::Google::Protobuf::MessageExts
3214
3384
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3217,8 +3387,26 @@ module Google
3217
3387
  # Request message for ListDeidentifyTemplates.
3218
3388
  # @!attribute [rw] parent
3219
3389
  # @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}.
3390
+ # Required. Parent resource name.
3391
+ #
3392
+ # The format of this value varies depending on the scope of the request
3393
+ # (project or organization) and whether you have [specified a processing
3394
+ # location](/dlp/docs/specifying-location):
3395
+ #
3396
+ # + Projects scope, location specified:<br/>
3397
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3398
+ # + Projects scope, no location specified (defaults to global):<br/>
3399
+ # `projects/`<var>PROJECT_ID</var>
3400
+ # + Organizations scope, location specified:<br/>
3401
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3402
+ # + Organizations scope, no location specified (defaults to global):<br/>
3403
+ # `organizations/`<var>ORG_ID</var>
3404
+ #
3405
+ # The following example `parent` string specifies a parent project with the
3406
+ # identifier `example-project`, and specifies the `europe-west3` location
3407
+ # for processing data:
3408
+ #
3409
+ # parent=projects/example-project/locations/europe-west3
3222
3410
  # @!attribute [rw] page_token
3223
3411
  # @return [::String]
3224
3412
  # Page token to continue retrieval. Comes from previous call
@@ -3267,9 +3455,8 @@ module Google
3267
3455
  # Request message for DeleteDeidentifyTemplate.
3268
3456
  # @!attribute [rw] name
3269
3457
  # @return [::String]
3270
- # Required. Resource name of the organization and deidentify template to be
3271
- # deleted, for example
3272
- # `organizations/433245324/deidentifyTemplates/432452342` or
3458
+ # Required. Resource name of the organization and deidentify template to be deleted,
3459
+ # for example `organizations/433245324/deidentifyTemplates/432452342` or
3273
3460
  # projects/project-id/deidentifyTemplates/432452342.
3274
3461
  class DeleteDeidentifyTemplateRequest
3275
3462
  include ::Google::Protobuf::MessageExts
@@ -3396,8 +3583,26 @@ module Google
3396
3583
  # Request message for CreateStoredInfoType.
3397
3584
  # @!attribute [rw] parent
3398
3585
  # @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}
3586
+ # Required. Parent resource name.
3587
+ #
3588
+ # The format of this value varies depending on the scope of the request
3589
+ # (project or organization) and whether you have [specified a processing
3590
+ # location](/dlp/docs/specifying-location):
3591
+ #
3592
+ # + Projects scope, location specified:<br/>
3593
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3594
+ # + Projects scope, no location specified (defaults to global):<br/>
3595
+ # `projects/`<var>PROJECT_ID</var>
3596
+ # + Organizations scope, location specified:<br/>
3597
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3598
+ # + Organizations scope, no location specified (defaults to global):<br/>
3599
+ # `organizations/`<var>ORG_ID</var>
3600
+ #
3601
+ # The following example `parent` string specifies a parent project with the
3602
+ # identifier `example-project`, and specifies the `europe-west3` location
3603
+ # for processing data:
3604
+ #
3605
+ # parent=projects/example-project/locations/europe-west3
3401
3606
  # @!attribute [rw] config
3402
3607
  # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3403
3608
  # Required. Configuration of the storedInfoType to create.
@@ -3437,8 +3642,8 @@ module Google
3437
3642
  # Request message for GetStoredInfoType.
3438
3643
  # @!attribute [rw] name
3439
3644
  # @return [::String]
3440
- # Required. Resource name of the organization and storedInfoType to be read,
3441
- # for example `organizations/433245324/storedInfoTypes/432452342` or
3645
+ # Required. Resource name of the organization and storedInfoType to be read, for
3646
+ # example `organizations/433245324/storedInfoTypes/432452342` or
3442
3647
  # projects/project-id/storedInfoTypes/432452342.
3443
3648
  class GetStoredInfoTypeRequest
3444
3649
  include ::Google::Protobuf::MessageExts
@@ -3448,8 +3653,26 @@ module Google
3448
3653
  # Request message for ListStoredInfoTypes.
3449
3654
  # @!attribute [rw] parent
3450
3655
  # @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}.
3656
+ # Required. Parent resource name.
3657
+ #
3658
+ # The format of this value varies depending on the scope of the request
3659
+ # (project or organization) and whether you have [specified a processing
3660
+ # location](/dlp/docs/specifying-location):
3661
+ #
3662
+ # + Projects scope, location specified:<br/>
3663
+ # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3664
+ # + Projects scope, no location specified (defaults to global):<br/>
3665
+ # `projects/`<var>PROJECT_ID</var>
3666
+ # + Organizations scope, location specified:<br/>
3667
+ # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3668
+ # + Organizations scope, no location specified (defaults to global):<br/>
3669
+ # `organizations/`<var>ORG_ID</var>
3670
+ #
3671
+ # The following example `parent` string specifies a parent project with the
3672
+ # identifier `example-project`, and specifies the `europe-west3` location
3673
+ # for processing data:
3674
+ #
3675
+ # parent=projects/example-project/locations/europe-west3
3453
3676
  # @!attribute [rw] page_token
3454
3677
  # @return [::String]
3455
3678
  # Page token to continue retrieval. Comes from previous call
@@ -3498,8 +3721,8 @@ module Google
3498
3721
  # Request message for DeleteStoredInfoType.
3499
3722
  # @!attribute [rw] name
3500
3723
  # @return [::String]
3501
- # Required. Resource name of the organization and storedInfoType to be
3502
- # deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
3724
+ # Required. Resource name of the organization and storedInfoType to be deleted, for
3725
+ # example `organizations/433245324/storedInfoTypes/432452342` or
3503
3726
  # projects/project-id/storedInfoTypes/432452342.
3504
3727
  class DeleteStoredInfoTypeRequest
3505
3728
  include ::Google::Protobuf::MessageExts
@@ -3509,8 +3732,8 @@ module Google
3509
3732
  # Request to search for potentially sensitive info in a custom location.
3510
3733
  # @!attribute [rw] name
3511
3734
  # @return [::String]
3512
- # Required. Resource name of the trigger to execute a hybrid inspect on, for
3513
- # example `projects/dlp-test-project/jobTriggers/53234423`.
3735
+ # Required. Resource name of the trigger to execute a hybrid inspect on, for example
3736
+ # `projects/dlp-test-project/jobTriggers/53234423`.
3514
3737
  # @!attribute [rw] hybrid_item
3515
3738
  # @return [::Google::Cloud::Dlp::V2::HybridContentItem]
3516
3739
  # The item to inspect.
@@ -3522,8 +3745,8 @@ module Google
3522
3745
  # Request to search for potentially sensitive info in a custom location.
3523
3746
  # @!attribute [rw] name
3524
3747
  # @return [::String]
3525
- # Required. Resource name of the job to execute a hybrid inspect on, for
3526
- # example `projects/dlp-test-project/dlpJob/53234423`.
3748
+ # Required. Resource name of the job to execute a hybrid inspect on, for example
3749
+ # `projects/dlp-test-project/dlpJob/53234423`.
3527
3750
  # @!attribute [rw] hybrid_item
3528
3751
  # @return [::Google::Cloud::Dlp::V2::HybridContentItem]
3529
3752
  # The item to inspect.
@@ -3678,7 +3901,7 @@ module Google
3678
3901
  # Unused
3679
3902
  METADATATYPE_UNSPECIFIED = 0
3680
3903
 
3681
- # General file metadata provided by GCS.
3904
+ # General file metadata provided by Cloud Storage.
3682
3905
  STORAGE_METADATA = 2
3683
3906
  end
3684
3907