google-cloud-dlp-v2 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -111,7 +111,7 @@ module Google
111
111
  # @return [::Array<::Google::Cloud::Dlp::V2::InfoType>]
112
112
  # Restricts what info_types to look for. The values must correspond to
113
113
  # InfoType values returned by ListInfoTypes or listed at
114
- # https://cloud.google.com/dlp/docs/infotypes-reference.
114
+ # https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
115
115
  #
116
116
  # When no InfoTypes or CustomInfoTypes are specified in a request, the
117
117
  # system may automatically choose a default list of detectors to run, which
@@ -127,7 +127,8 @@ module Google
127
127
  #
128
128
  # In general, the highest likelihood setting yields the fewest findings in
129
129
  # results and the lowest chance of a false positive. For more information,
130
- # see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood).
130
+ # see [Match
131
+ # likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
131
132
  # @!attribute [rw] min_likelihood_per_info_type
132
133
  # @return [::Array<::Google::Cloud::Dlp::V2::InspectConfig::InfoTypeLikelihood>]
133
134
  # Minimum likelihood per infotype. For each infotype, a user can specify a
@@ -164,7 +165,8 @@ module Google
164
165
  # @!attribute [rw] custom_info_types
165
166
  # @return [::Array<::Google::Cloud::Dlp::V2::CustomInfoType>]
166
167
  # CustomInfoTypes provided by the user. See
167
- # https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
168
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
169
+ # to learn more.
168
170
  # @!attribute [rw] content_options
169
171
  # @return [::Array<::Google::Cloud::Dlp::V2::ContentOption>]
170
172
  # Deprecated and unused.
@@ -267,7 +269,7 @@ module Google
267
269
 
268
270
  # The type of data being sent for inspection. To learn more, see
269
271
  # [Supported file
270
- # types](https://cloud.google.com/dlp/docs/supported-file-types).
272
+ # types](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types).
271
273
  module BytesType
272
274
  # Unused
273
275
  BYTES_TYPE_UNSPECIFIED = 0
@@ -313,14 +315,15 @@ module Google
313
315
  end
314
316
  end
315
317
 
318
+ # Type of content to inspect.
316
319
  # @!attribute [rw] value
317
320
  # @return [::String]
318
321
  # String data to inspect or redact.
319
322
  # @!attribute [rw] table
320
323
  # @return [::Google::Cloud::Dlp::V2::Table]
321
324
  # Structured content for inspection. See
322
- # https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
323
- # learn more.
325
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
326
+ # to learn more.
324
327
  # @!attribute [rw] byte_item
325
328
  # @return [::Google::Cloud::Dlp::V2::ByteContentItem]
326
329
  # Content data to inspect or redact. Replaces `type` and `data`.
@@ -330,7 +333,7 @@ module Google
330
333
  end
331
334
 
332
335
  # Structured content to inspect. Up to 50,000 `Value`s per request allowed. See
333
- # https://cloud.google.com/dlp/docs/inspecting-structured-text#inspecting_a_table
336
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table
334
337
  # to learn more.
335
338
  # @!attribute [rw] headers
336
339
  # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
@@ -525,6 +528,7 @@ module Google
525
528
  # Storage metadata label to indicate which metadata entry contains findings.
526
529
  # @!attribute [rw] key
527
530
  # @return [::String]
531
+ # Label name.
528
532
  class StorageMetadataLabel
529
533
  include ::Google::Protobuf::MessageExts
530
534
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -664,7 +668,7 @@ module Google
664
668
  #
665
669
  # The format of this value varies depending on whether you have [specified a
666
670
  # processing
667
- # location](https://cloud.google.com/dlp/docs/specifying-location):
671
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
668
672
  #
669
673
  # + Projects scope, location specified:<br/>
670
674
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -756,7 +760,7 @@ module Google
756
760
  #
757
761
  # The format of this value varies depending on whether you have [specified a
758
762
  # processing
759
- # location](https://cloud.google.com/dlp/docs/specifying-location):
763
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
760
764
  #
761
765
  # + Projects scope, location specified:<br/>
762
766
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -829,7 +833,7 @@ module Google
829
833
  #
830
834
  # The format of this value varies depending on whether you have [specified a
831
835
  # processing
832
- # location](https://cloud.google.com/dlp/docs/specifying-location):
836
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
833
837
  #
834
838
  # + Projects scope, location specified:<br/>
835
839
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -902,7 +906,7 @@ module Google
902
906
  #
903
907
  # The format of this value varies depending on whether you have [specified a
904
908
  # processing
905
- # location](https://cloud.google.com/dlp/docs/specifying-location):
909
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
906
910
  #
907
911
  # + Projects scope, location specified:<br/>
908
912
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1424,7 +1428,8 @@ module Google
1424
1428
  end
1425
1429
 
1426
1430
  # Configuration for a risk analysis job. See
1427
- # https://cloud.google.com/dlp/docs/concepts-risk-analysis to learn more.
1431
+ # https://cloud.google.com/sensitive-data-protection/docs/concepts-risk-analysis
1432
+ # to learn more.
1428
1433
  # @!attribute [rw] privacy_metric
1429
1434
  # @return [::Google::Cloud::Dlp::V2::PrivacyMetric]
1430
1435
  # Privacy metric to compute.
@@ -2119,6 +2124,7 @@ module Google
2119
2124
  # A type of transformation that is applied over images.
2120
2125
  # @!attribute [rw] transforms
2121
2126
  # @return [::Array<::Google::Cloud::Dlp::V2::ImageTransformations::ImageTransformation>]
2127
+ # List of transforms to make.
2122
2128
  class ImageTransformations
2123
2129
  include ::Google::Protobuf::MessageExts
2124
2130
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2284,7 +2290,8 @@ module Google
2284
2290
  # Outputs a base64 encoded representation of the hashed output
2285
2291
  # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
2286
2292
  # Currently, only string and integer values can be hashed.
2287
- # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
2293
+ # See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization
2294
+ # to learn more.
2288
2295
  # @!attribute [rw] crypto_key
2289
2296
  # @return [::Google::Cloud::Dlp::V2::CryptoKey]
2290
2297
  # The key used by the hash function.
@@ -2373,8 +2380,8 @@ module Google
2373
2380
  # @!attribute [rw] word_list
2374
2381
  # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
2375
2382
  # A list of words to select from for random replacement. The
2376
- # [limits](https://cloud.google.com/dlp/limits) page contains details about
2377
- # the size limits of dictionaries.
2383
+ # [limits](https://cloud.google.com/sensitive-data-protection/limits) page
2384
+ # contains details about the size limits of dictionaries.
2378
2385
  class ReplaceDictionaryConfig
2379
2386
  include ::Google::Protobuf::MessageExts
2380
2387
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2493,7 +2500,9 @@ module Google
2493
2500
  # being transformed, we will first attempt converting the type of the data to
2494
2501
  # be transformed to match the type of the bound before comparing.
2495
2502
  #
2496
- # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
2503
+ # See
2504
+ # https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to
2505
+ # learn more.
2497
2506
  # @!attribute [rw] lower_bound
2498
2507
  # @return [::Google::Cloud::Dlp::V2::Value]
2499
2508
  # Required. Lower bound value of buckets. All values less than `lower_bound`
@@ -2523,7 +2532,9 @@ module Google
2523
2532
  # If the bound `Value` type differs from the type of data being transformed, we
2524
2533
  # will first attempt converting the type of the data to be transformed to match
2525
2534
  # the type of the bound before comparing.
2526
- # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
2535
+ # See
2536
+ # https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to
2537
+ # learn more.
2527
2538
  # @!attribute [rw] buckets
2528
2539
  # @return [::Array<::Google::Cloud::Dlp::V2::BucketingConfig::Bucket>]
2529
2540
  # Set of buckets. Ranges must be non-overlapping.
@@ -2555,8 +2566,9 @@ module Google
2555
2566
  # encoded as ASCII. For a given crypto key and context, the same identifier
2556
2567
  # will be replaced with the same surrogate. Identifiers must be at least two
2557
2568
  # characters long. In the case that the identifier is the empty string, it will
2558
- # be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn
2559
- # more.
2569
+ # be skipped. See
2570
+ # https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to
2571
+ # learn more.
2560
2572
  #
2561
2573
  # Note: We recommend using CryptoDeterministicConfig for all use cases which
2562
2574
  # do not require preserving the input alphabet space and size, plus warrant
@@ -2618,7 +2630,7 @@ module Google
2618
2630
  #
2619
2631
  # This annotation identifies the surrogate when inspecting content using the
2620
2632
  # custom infoType
2621
- # [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
2633
+ # [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype).
2622
2634
  # This facilitates reversal of the surrogate when it occurs in free text.
2623
2635
  #
2624
2636
  # In order for inspection to work properly, the name of this infoType must
@@ -2708,7 +2720,7 @@ module Google
2708
2720
  # dlp.kms.encrypt
2709
2721
  #
2710
2722
  # For more information, see [Creating a wrapped key]
2711
- # (https://cloud.google.com/dlp/docs/create-wrapped-key).
2723
+ # (https://cloud.google.com/sensitive-data-protection/docs/create-wrapped-key).
2712
2724
  #
2713
2725
  # Note: When you use Cloud KMS for cryptographic operations,
2714
2726
  # [charges apply](https://cloud.google.com/kms/pricing).
@@ -2724,7 +2736,8 @@ module Google
2724
2736
  end
2725
2737
 
2726
2738
  # Shifts dates by random number of days, with option to be consistent for the
2727
- # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
2739
+ # same context. See
2740
+ # https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting
2728
2741
  # to learn more.
2729
2742
  # @!attribute [rw] upper_bound_days
2730
2743
  # @return [::Integer]
@@ -3068,6 +3081,7 @@ module Google
3068
3081
  extend ::Google::Protobuf::MessageExts::ClassMethods
3069
3082
  end
3070
3083
 
3084
+ # The field in a record to transform.
3071
3085
  # @!attribute [rw] field_id
3072
3086
  # @return [::Google::Cloud::Dlp::V2::FieldId]
3073
3087
  # For record transformations, provide a field.
@@ -3082,6 +3096,7 @@ module Google
3082
3096
  extend ::Google::Protobuf::MessageExts::ClassMethods
3083
3097
  end
3084
3098
 
3099
+ # The outcome of a transformation.
3085
3100
  # @!attribute [rw] result_status_type
3086
3101
  # @return [::Google::Cloud::Dlp::V2::TransformationResultStatusType]
3087
3102
  # Transformation result status type, this will be either SUCCESS, or it will
@@ -3133,8 +3148,9 @@ module Google
3133
3148
 
3134
3149
  # The inspectTemplate contains a configuration (set of types of sensitive data
3135
3150
  # to be detected) to be used anywhere you otherwise would normally specify
3136
- # InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates
3137
- # to learn more.
3151
+ # InspectConfig. See
3152
+ # https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to
3153
+ # learn more.
3138
3154
  # @!attribute [r] name
3139
3155
  # @return [::String]
3140
3156
  # Output only. The template name.
@@ -3163,7 +3179,9 @@ module Google
3163
3179
  end
3164
3180
 
3165
3181
  # DeidentifyTemplates contains instructions on how to de-identify content.
3166
- # See https://cloud.google.com/dlp/docs/concepts-templates to learn more.
3182
+ # See
3183
+ # https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to
3184
+ # learn more.
3167
3185
  # @!attribute [r] name
3168
3186
  # @return [::String]
3169
3187
  # Output only. The template name.
@@ -3206,7 +3224,9 @@ module Google
3206
3224
  end
3207
3225
 
3208
3226
  # Contains a configuration to make dlp api calls on a repeating basis.
3209
- # See https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more.
3227
+ # See
3228
+ # https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers
3229
+ # to learn more.
3210
3230
  # @!attribute [rw] name
3211
3231
  # @return [::String]
3212
3232
  # Unique resource name for the triggeredJob, assigned by the service when the
@@ -3280,7 +3300,8 @@ module Google
3280
3300
  end
3281
3301
 
3282
3302
  # A task to execute on the completion of a job.
3283
- # See https://cloud.google.com/dlp/docs/concepts-actions to learn more.
3303
+ # See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions
3304
+ # to learn more.
3284
3305
  # @!attribute [rw] save_findings
3285
3306
  # @return [::Google::Cloud::Dlp::V2::Action::SaveFindings]
3286
3307
  # Save resulting findings in a provided location.
@@ -3323,7 +3344,7 @@ module Google
3323
3344
  # Publish a message into a given Pub/Sub topic when DlpJob has completed. The
3324
3345
  # message contains a single field, `DlpJobName`, which is equal to the
3325
3346
  # finished job's
3326
- # [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
3347
+ # [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
3327
3348
  # Compatible with: Inspect, Risk
3328
3349
  # @!attribute [rw] topic
3329
3350
  # @return [::String]
@@ -3478,7 +3499,7 @@ module Google
3478
3499
  #
3479
3500
  # The format of this value varies depending on the scope of the request
3480
3501
  # (project or organization) and whether you have [specified a processing
3481
- # location](https://cloud.google.com/dlp/docs/specifying-location):
3502
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3482
3503
  #
3483
3504
  # + Projects scope, location specified:<br/>
3484
3505
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3546,7 +3567,7 @@ module Google
3546
3567
  #
3547
3568
  # The format of this value varies depending on the scope of the request
3548
3569
  # (project or organization) and whether you have [specified a processing
3549
- # location](https://cloud.google.com/dlp/docs/specifying-location):
3570
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3550
3571
  #
3551
3572
  # + Projects scope, location specified:<br/>
3552
3573
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3624,7 +3645,7 @@ module Google
3624
3645
  #
3625
3646
  # The format of this value varies depending on whether you have [specified a
3626
3647
  # processing
3627
- # location](https://cloud.google.com/dlp/docs/specifying-location):
3648
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3628
3649
  #
3629
3650
  # + Projects scope, location specified:<br/>
3630
3651
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3814,7 +3835,7 @@ module Google
3814
3835
  #
3815
3836
  # The format of this value varies depending on whether you have [specified a
3816
3837
  # processing
3817
- # location](https://cloud.google.com/dlp/docs/specifying-location):
3838
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3818
3839
  #
3819
3840
  # + Projects scope, location specified:<br/>
3820
3841
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3854,7 +3875,7 @@ module Google
3854
3875
  #
3855
3876
  # The format of this value varies depending on whether you have [specified a
3856
3877
  # processing
3857
- # location](https://cloud.google.com/dlp/docs/specifying-location):
3878
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3858
3879
  #
3859
3880
  # + Projects scope, location specified:<br/>
3860
3881
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -4062,7 +4083,7 @@ module Google
4062
4083
  #
4063
4084
  # The generated data profiles are retained according to the
4064
4085
  # [data retention policy]
4065
- # (https://cloud.google.com/dlp/docs/data-profiles#retention).
4086
+ # (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).
4066
4087
  # @!attribute [rw] location
4067
4088
  # @return [::Google::Cloud::Dlp::V2::DataProfileLocation]
4068
4089
  # The data to scan.
@@ -4088,7 +4109,7 @@ module Google
4088
4109
  # scanned.
4089
4110
  #
4090
4111
  # For more information, see
4091
- # https://cloud.google.com/dlp/docs/data-profiles#data-residency.
4112
+ # https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
4092
4113
  # @!attribute [rw] data_profile_actions
4093
4114
  # @return [::Array<::Google::Cloud::Dlp::V2::DataProfileAction>]
4094
4115
  # Actions to execute at the completion of the job.
@@ -4161,7 +4182,7 @@ module Google
4161
4182
  #
4162
4183
  # The generated data profiles are retained according to the
4163
4184
  # [data retention policy]
4164
- # (https://cloud.google.com/dlp/docs/data-profiles#retention).
4185
+ # (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).
4165
4186
  # @!attribute [rw] name
4166
4187
  # @return [::String]
4167
4188
  # Unique resource name for the DiscoveryConfig, assigned by the service when
@@ -4190,7 +4211,7 @@ module Google
4190
4211
  # scanned.
4191
4212
  #
4192
4213
  # For more information, see
4193
- # https://cloud.google.com/dlp/docs/data-profiles#data-residency.
4214
+ # https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
4194
4215
  # @!attribute [rw] actions
4195
4216
  # @return [::Array<::Google::Cloud::Dlp::V2::DataProfileAction>]
4196
4217
  # Actions to execute at the completion of scanning.
@@ -4499,7 +4520,7 @@ module Google
4499
4520
  #
4500
4521
  # The format of this value varies depending on whether you have [specified a
4501
4522
  # processing
4502
- # location](https://cloud.google.com/dlp/docs/specifying-location):
4523
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
4503
4524
  #
4504
4525
  # + Projects scope, location specified:<br/>
4505
4526
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -4597,7 +4618,7 @@ module Google
4597
4618
  # The request message for finishing a DLP hybrid job.
4598
4619
  # @!attribute [rw] name
4599
4620
  # @return [::String]
4600
- # Required. The name of the DlpJob resource to be cancelled.
4621
+ # Required. The name of the DlpJob resource to be finished.
4601
4622
  class FinishDlpJobRequest
4602
4623
  include ::Google::Protobuf::MessageExts
4603
4624
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -4619,7 +4640,7 @@ module Google
4619
4640
  #
4620
4641
  # The format of this value varies depending on the scope of the request
4621
4642
  # (project or organization) and whether you have [specified a processing
4622
- # location](https://cloud.google.com/dlp/docs/specifying-location):
4643
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
4623
4644
  #
4624
4645
  # + Projects scope, location specified:<br/>
4625
4646
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -4688,7 +4709,7 @@ module Google
4688
4709
  #
4689
4710
  # The format of this value varies depending on the scope of the request
4690
4711
  # (project or organization) and whether you have [specified a processing
4691
- # location](https://cloud.google.com/dlp/docs/specifying-location):
4712
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
4692
4713
  #
4693
4714
  # + Projects scope, location specified:<br/>
4694
4715
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -4763,8 +4784,8 @@ module Google
4763
4784
 
4764
4785
  # Configuration for a custom dictionary created from a data source of any size
4765
4786
  # up to the maximum size defined in the
4766
- # [limits](https://cloud.google.com/dlp/limits) page. The artifacts of
4767
- # dictionary creation are stored in the specified Cloud Storage
4787
+ # [limits](https://cloud.google.com/sensitive-data-protection/limits) page. The
4788
+ # artifacts of dictionary creation are stored in the specified Cloud Storage
4768
4789
  # location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
4769
4790
  # that satisfy the size requirements.
4770
4791
  # @!attribute [rw] output_path
@@ -4795,7 +4816,7 @@ module Google
4795
4816
 
4796
4817
  # Configuration for stored infoTypes. All fields and subfield are provided
4797
4818
  # by the user. For more information, see
4798
- # https://cloud.google.com/dlp/docs/creating-custom-infotypes.
4819
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes.
4799
4820
  # @!attribute [rw] display_name
4800
4821
  # @return [::String]
4801
4822
  # Display name of the StoredInfoType (max 256 characters).
@@ -4885,7 +4906,7 @@ module Google
4885
4906
  #
4886
4907
  # The format of this value varies depending on the scope of the request
4887
4908
  # (project or organization) and whether you have [specified a processing
4888
- # location](https://cloud.google.com/dlp/docs/specifying-location):
4909
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
4889
4910
  #
4890
4911
  # + Projects scope, location specified:<br/>
4891
4912
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -4955,7 +4976,7 @@ module Google
4955
4976
  #
4956
4977
  # The format of this value varies depending on the scope of the request
4957
4978
  # (project or organization) and whether you have [specified a processing
4958
- # location](https://cloud.google.com/dlp/docs/specifying-location):
4979
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
4959
4980
  #
4960
4981
  # + Projects scope, location specified:<br/>
4961
4982
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -5122,6 +5143,240 @@ module Google
5122
5143
  extend ::Google::Protobuf::MessageExts::ClassMethods
5123
5144
  end
5124
5145
 
5146
+ # Request to list the profiles generated for a given organization or project.
5147
+ # @!attribute [rw] parent
5148
+ # @return [::String]
5149
+ # Required. organizations/\\{org_id}/locations/\\{loc_id}
5150
+ # @!attribute [rw] page_token
5151
+ # @return [::String]
5152
+ # Page token to continue retrieval.
5153
+ # @!attribute [rw] page_size
5154
+ # @return [::Integer]
5155
+ # Size of the page. This value can be limited by the server. If zero, server
5156
+ # returns a page of max size 100.
5157
+ # @!attribute [rw] order_by
5158
+ # @return [::String]
5159
+ # Comma separated list of fields to order by, followed by `asc` or `desc`
5160
+ # postfix. This list is case insensitive. The default sorting order is
5161
+ # ascending. Redundant space characters are insignificant. Only one order
5162
+ # field at a time is allowed.
5163
+ #
5164
+ # Examples:
5165
+ # * `project_id`
5166
+ # * `sensitivity_level desc`
5167
+ #
5168
+ # Supported fields are:
5169
+ #
5170
+ # - `project_id`: GCP project ID
5171
+ # - `sensitivity_level`: How sensitive the data in a project is, at most.
5172
+ # - `data_risk_level`: How much risk is associated with this data.
5173
+ # - `profile_last_generated`: When the profile was last updated in epoch
5174
+ # seconds.
5175
+ # @!attribute [rw] filter
5176
+ # @return [::String]
5177
+ # Allows filtering.
5178
+ #
5179
+ # Supported syntax:
5180
+ #
5181
+ # * Filter expressions are made up of one or more restrictions.
5182
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
5183
+ # sequence of restrictions implicitly uses `AND`.
5184
+ # * A restriction has the form of `{field} {operator} {value}`.
5185
+ # * Supported fields/values:
5186
+ # - `sensitivity_level` - HIGH|MODERATE|LOW
5187
+ # - `data_risk_level` - HIGH|MODERATE|LOW
5188
+ # - `status_code` - an RPC status code as defined in
5189
+ # https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
5190
+ # * The operator must be `=` or `!=`.
5191
+ #
5192
+ # Examples:
5193
+ #
5194
+ # * `project_id = 12345 AND status_code = 1`
5195
+ # * `project_id = 12345 AND sensitivity_level = HIGH`
5196
+ #
5197
+ # The length of this field should be no more than 500 characters.
5198
+ class ListProjectDataProfilesRequest
5199
+ include ::Google::Protobuf::MessageExts
5200
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5201
+ end
5202
+
5203
+ # List of profiles generated for a given organization or project.
5204
+ # @!attribute [rw] project_data_profiles
5205
+ # @return [::Array<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
5206
+ # List of data profiles.
5207
+ # @!attribute [rw] next_page_token
5208
+ # @return [::String]
5209
+ # The next page token.
5210
+ class ListProjectDataProfilesResponse
5211
+ include ::Google::Protobuf::MessageExts
5212
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5213
+ end
5214
+
5215
+ # Request to list the profiles generated for a given organization or project.
5216
+ # @!attribute [rw] parent
5217
+ # @return [::String]
5218
+ # Required. Resource name of the organization or project, for
5219
+ # example `organizations/433245324/locations/europe` or
5220
+ # `projects/project-id/locations/asia`.
5221
+ # @!attribute [rw] page_token
5222
+ # @return [::String]
5223
+ # Page token to continue retrieval.
5224
+ # @!attribute [rw] page_size
5225
+ # @return [::Integer]
5226
+ # Size of the page. This value can be limited by the server. If zero, server
5227
+ # returns a page of max size 100.
5228
+ # @!attribute [rw] order_by
5229
+ # @return [::String]
5230
+ # Comma separated list of fields to order by, followed by `asc` or `desc`
5231
+ # postfix. This list is case insensitive. The default sorting order is
5232
+ # ascending. Redundant space characters are insignificant. Only one order
5233
+ # field at a time is allowed.
5234
+ #
5235
+ # Examples:
5236
+ # * `project_id asc`
5237
+ # * `table_id`
5238
+ # * `sensitivity_level desc`
5239
+ #
5240
+ # Supported fields are:
5241
+ #
5242
+ # - `project_id`: The GCP project ID.
5243
+ # - `dataset_id`: The ID of a BigQuery dataset.
5244
+ # - `table_id`: The ID of a BigQuery table.
5245
+ # - `sensitivity_level`: How sensitive the data in a table is, at most.
5246
+ # - `data_risk_level`: How much risk is associated with this data.
5247
+ # - `profile_last_generated`: When the profile was last updated in epoch
5248
+ # seconds.
5249
+ # - `last_modified`: The last time the resource was modified.
5250
+ # - `resource_visibility`: Visibility restriction for this resource.
5251
+ # - `row_count`: Number of rows in this resource.
5252
+ # @!attribute [rw] filter
5253
+ # @return [::String]
5254
+ # Allows filtering.
5255
+ #
5256
+ # Supported syntax:
5257
+ #
5258
+ # * Filter expressions are made up of one or more restrictions.
5259
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
5260
+ # sequence of restrictions implicitly uses `AND`.
5261
+ # * A restriction has the form of `{field} {operator} {value}`.
5262
+ # * Supported fields/values:
5263
+ # - `project_id` - The GCP project ID.
5264
+ # - `dataset_id` - The BigQuery dataset ID.
5265
+ # - `table_id` - The ID of the BigQuery table.
5266
+ # - `sensitivity_level` - HIGH|MODERATE|LOW
5267
+ # - `data_risk_level` - HIGH|MODERATE|LOW
5268
+ # - `resource_visibility`: PUBLIC|RESTRICTED
5269
+ # - `status_code` - an RPC status code as defined in
5270
+ # https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
5271
+ # * The operator must be `=` or `!=`.
5272
+ #
5273
+ # Examples:
5274
+ #
5275
+ # * `project_id = 12345 AND status_code = 1`
5276
+ # * `project_id = 12345 AND sensitivity_level = HIGH`
5277
+ # * `project_id = 12345 AND resource_visibility = PUBLIC`
5278
+ #
5279
+ # The length of this field should be no more than 500 characters.
5280
+ class ListTableDataProfilesRequest
5281
+ include ::Google::Protobuf::MessageExts
5282
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5283
+ end
5284
+
5285
+ # List of profiles generated for a given organization or project.
5286
+ # @!attribute [rw] table_data_profiles
5287
+ # @return [::Array<::Google::Cloud::Dlp::V2::TableDataProfile>]
5288
+ # List of data profiles.
5289
+ # @!attribute [rw] next_page_token
5290
+ # @return [::String]
5291
+ # The next page token.
5292
+ class ListTableDataProfilesResponse
5293
+ include ::Google::Protobuf::MessageExts
5294
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5295
+ end
5296
+
5297
+ # Request to list the profiles generated for a given organization or project.
5298
+ # @!attribute [rw] parent
5299
+ # @return [::String]
5300
+ # Required. Resource name of the organization or project, for
5301
+ # example `organizations/433245324/locations/europe` or
5302
+ # `projects/project-id/locations/asia`.
5303
+ # @!attribute [rw] page_token
5304
+ # @return [::String]
5305
+ # Page token to continue retrieval.
5306
+ # @!attribute [rw] page_size
5307
+ # @return [::Integer]
5308
+ # Size of the page. This value can be limited by the server. If zero, server
5309
+ # returns a page of max size 100.
5310
+ # @!attribute [rw] order_by
5311
+ # @return [::String]
5312
+ # Comma separated list of fields to order by, followed by `asc` or `desc`
5313
+ # postfix. This list is case insensitive. The default sorting order is
5314
+ # ascending. Redundant space characters are insignificant. Only one order
5315
+ # field at a time is allowed.
5316
+ #
5317
+ # Examples:
5318
+ # * `project_id asc`
5319
+ # * `table_id`
5320
+ # * `sensitivity_level desc`
5321
+ #
5322
+ # Supported fields are:
5323
+ #
5324
+ # - `project_id`: The Google Cloud project ID.
5325
+ # - `dataset_id`: The ID of a BigQuery dataset.
5326
+ # - `table_id`: The ID of a BigQuery table.
5327
+ # - `sensitivity_level`: How sensitive the data in a column is, at most.
5328
+ # - `data_risk_level`: How much risk is associated with this data.
5329
+ # - `profile_last_generated`: When the profile was last updated in epoch
5330
+ # seconds.
5331
+ # @!attribute [rw] filter
5332
+ # @return [::String]
5333
+ # Allows filtering.
5334
+ #
5335
+ # Supported syntax:
5336
+ #
5337
+ # * Filter expressions are made up of one or more restrictions.
5338
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
5339
+ # sequence of restrictions implicitly uses `AND`.
5340
+ # * A restriction has the form of `{field} {operator} {value}`.
5341
+ # * Supported fields/values:
5342
+ # - `table_data_profile_name` - The name of the related table data
5343
+ # profile.
5344
+ # - `project_id` - The Google Cloud project ID. (REQUIRED)
5345
+ # - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
5346
+ # - `table_id` - The BigQuery table ID. (REQUIRED)
5347
+ # - `field_id` - The ID of the BigQuery field.
5348
+ # - `info_type` - The infotype detected in the resource.
5349
+ # - `sensitivity_level` - HIGH|MEDIUM|LOW
5350
+ # - `data_risk_level`: How much risk is associated with this data.
5351
+ # - `status_code` - an RPC status code as defined in
5352
+ # https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
5353
+ # * The operator must be `=` for project_id, dataset_id, and table_id. Other
5354
+ # filters also support `!=`.
5355
+ #
5356
+ # Examples:
5357
+ #
5358
+ # * project_id = 12345 AND status_code = 1
5359
+ # * project_id = 12345 AND sensitivity_level = HIGH
5360
+ # * project_id = 12345 AND info_type = STREET_ADDRESS
5361
+ #
5362
+ # The length of this field should be no more than 500 characters.
5363
+ class ListColumnDataProfilesRequest
5364
+ include ::Google::Protobuf::MessageExts
5365
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5366
+ end
5367
+
5368
+ # List of profiles generated for a given organization or project.
5369
+ # @!attribute [rw] column_data_profiles
5370
+ # @return [::Array<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
5371
+ # List of data profiles.
5372
+ # @!attribute [rw] next_page_token
5373
+ # @return [::String]
5374
+ # The next page token.
5375
+ class ListColumnDataProfilesResponse
5376
+ include ::Google::Protobuf::MessageExts
5377
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5378
+ end
5379
+
5125
5380
  # Score is a summary of all elements in the data profile.
5126
5381
  # A higher number means more risk.
5127
5382
  # @!attribute [rw] score
@@ -5153,14 +5408,53 @@ module Google
5153
5408
  end
5154
5409
  end
5155
5410
 
5411
+ # An aggregated profile for this project, based on the resources profiled
5412
+ # within it.
5413
+ # @!attribute [rw] name
5414
+ # @return [::String]
5415
+ # The resource name of the profile.
5416
+ # @!attribute [rw] project_id
5417
+ # @return [::String]
5418
+ # Project ID that was profiled.
5419
+ # @!attribute [rw] profile_last_generated
5420
+ # @return [::Google::Protobuf::Timestamp]
5421
+ # The last time the profile was generated.
5422
+ # @!attribute [rw] sensitivity_score
5423
+ # @return [::Google::Cloud::Dlp::V2::SensitivityScore]
5424
+ # The sensitivity score of this project.
5425
+ # @!attribute [rw] data_risk_level
5426
+ # @return [::Google::Cloud::Dlp::V2::DataRiskLevel]
5427
+ # The data risk level of this project.
5428
+ # @!attribute [rw] profile_status
5429
+ # @return [::Google::Cloud::Dlp::V2::ProfileStatus]
5430
+ # Success or error status of the last attempt to profile the project.
5431
+ class ProjectDataProfile
5432
+ include ::Google::Protobuf::MessageExts
5433
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5434
+ end
5435
+
5156
5436
  # Snapshot of the configurations used to generate the profile.
5157
5437
  # @!attribute [rw] inspect_config
5158
5438
  # @return [::Google::Cloud::Dlp::V2::InspectConfig]
5159
5439
  # A copy of the inspection config used to generate this profile. This
5160
5440
  # is a copy of the inspect_template specified in `DataProfileJobConfig`.
5161
5441
  # @!attribute [rw] data_profile_job
5442
+ # @deprecated This field is deprecated and may be removed in the next major version update.
5162
5443
  # @return [::Google::Cloud::Dlp::V2::DataProfileJobConfig]
5444
+ # A copy of the configuration used to generate this profile. This is
5445
+ # deprecated, and the DiscoveryConfig field is preferred moving forward.
5446
+ # DataProfileJobConfig will still be written here for Discovery in BigQuery
5447
+ # for backwards compatibility, but will not be updated with new fields, while
5448
+ # DiscoveryConfig will.
5449
+ # @!attribute [rw] discovery_config
5450
+ # @return [::Google::Cloud::Dlp::V2::DiscoveryConfig]
5163
5451
  # A copy of the configuration used to generate this profile.
5452
+ # @!attribute [rw] inspect_template_name
5453
+ # @return [::String]
5454
+ # Name of the inspection template used to generate this profile
5455
+ # @!attribute [rw] inspect_template_modified_time
5456
+ # @return [::Google::Protobuf::Timestamp]
5457
+ # Timestamp when the template was modified
5164
5458
  class DataProfileConfigSnapshot
5165
5459
  include ::Google::Protobuf::MessageExts
5166
5460
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -5170,26 +5464,29 @@ module Google
5170
5464
  # @!attribute [rw] name
5171
5465
  # @return [::String]
5172
5466
  # The name of the profile.
5467
+ # @!attribute [rw] data_source_type
5468
+ # @return [::Google::Cloud::Dlp::V2::DataSourceType]
5469
+ # The resource type that was profiled.
5173
5470
  # @!attribute [rw] project_data_profile
5174
5471
  # @return [::String]
5175
5472
  # The resource name to the project data profile for this table.
5176
5473
  # @!attribute [rw] dataset_project_id
5177
5474
  # @return [::String]
5178
- # The Google Cloud project ID that owns the BigQuery dataset.
5475
+ # The Google Cloud project ID that owns the resource.
5179
5476
  # @!attribute [rw] dataset_location
5180
5477
  # @return [::String]
5181
- # The BigQuery location where the dataset's data is stored.
5478
+ # If supported, the location where the dataset's data is stored.
5182
5479
  # See https://cloud.google.com/bigquery/docs/locations for supported
5183
5480
  # locations.
5184
5481
  # @!attribute [rw] dataset_id
5185
5482
  # @return [::String]
5186
- # The BigQuery dataset ID.
5483
+ # If the resource is BigQuery, the dataset ID.
5187
5484
  # @!attribute [rw] table_id
5188
5485
  # @return [::String]
5189
- # The BigQuery table ID.
5486
+ # If the resource is BigQuery, the BigQuery table ID.
5190
5487
  # @!attribute [rw] full_resource
5191
5488
  # @return [::String]
5192
- # The resource name of the table.
5489
+ # The resource name of the resource profiled.
5193
5490
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
5194
5491
  # @!attribute [rw] profile_status
5195
5492
  # @return [::Google::Cloud::Dlp::V2::ProfileStatus]
@@ -5276,6 +5573,7 @@ module Google
5276
5573
  end
5277
5574
  end
5278
5575
 
5576
+ # Success or errors for the profile generation.
5279
5577
  # @!attribute [rw] status
5280
5578
  # @return [::Google::Rpc::Status]
5281
5579
  # Profiling status code and optional message. The `status.code` value is 0
@@ -5337,10 +5635,10 @@ module Google
5337
5635
  # The resource name of the table data profile.
5338
5636
  # @!attribute [rw] table_full_resource
5339
5637
  # @return [::String]
5340
- # The resource name of the table this column is within.
5638
+ # The resource name of the resource this column is within.
5341
5639
  # @!attribute [rw] dataset_project_id
5342
5640
  # @return [::String]
5343
- # The Google Cloud project ID that owns the BigQuery dataset.
5641
+ # The Google Cloud project ID that owns the profiled resource.
5344
5642
  # @!attribute [rw] dataset_location
5345
5643
  # @return [::String]
5346
5644
  # The BigQuery location where the dataset's data is stored.
@@ -5465,6 +5763,36 @@ module Google
5465
5763
  end
5466
5764
  end
5467
5765
 
5766
+ # Request to get a project data profile.
5767
+ # @!attribute [rw] name
5768
+ # @return [::String]
5769
+ # Required. Resource name, for example
5770
+ # `organizations/12345/locations/us/projectDataProfiles/53234423`.
5771
+ class GetProjectDataProfileRequest
5772
+ include ::Google::Protobuf::MessageExts
5773
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5774
+ end
5775
+
5776
+ # Request to get a table data profile.
5777
+ # @!attribute [rw] name
5778
+ # @return [::String]
5779
+ # Required. Resource name, for example
5780
+ # `organizations/12345/locations/us/tableDataProfiles/53234423`.
5781
+ class GetTableDataProfileRequest
5782
+ include ::Google::Protobuf::MessageExts
5783
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5784
+ end
5785
+
5786
+ # Request to get a column data profile.
5787
+ # @!attribute [rw] name
5788
+ # @return [::String]
5789
+ # Required. Resource name, for example
5790
+ # `organizations/12345/locations/us/columnDataProfiles/53234423`.
5791
+ class GetColumnDataProfileRequest
5792
+ include ::Google::Protobuf::MessageExts
5793
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5794
+ end
5795
+
5468
5796
  # A condition for determining whether a Pub/Sub should be triggered.
5469
5797
  # @!attribute [rw] expressions
5470
5798
  # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubExpressions]
@@ -5538,10 +5866,21 @@ module Google
5538
5866
  extend ::Google::Protobuf::MessageExts::ClassMethods
5539
5867
  end
5540
5868
 
5869
+ # Message used to identify the type of resource being profiled.
5870
+ # @!attribute [r] data_source
5871
+ # @return [::String]
5872
+ # Output only. An identifying string to the type of resource being profiled.
5873
+ # Current values: google/bigquery/table, google/project
5874
+ class DataSourceType
5875
+ include ::Google::Protobuf::MessageExts
5876
+ extend ::Google::Protobuf::MessageExts::ClassMethods
5877
+ end
5878
+
5541
5879
  # Enum of possible outcomes of transformations. SUCCESS if transformation and
5542
5880
  # storing of transformation was successful, otherwise, reason for not
5543
5881
  # transforming.
5544
5882
  module TransformationResultStatusType
5883
+ # Unused.
5545
5884
  STATE_TYPE_UNSPECIFIED = 0
5546
5885
 
5547
5886
  # This will be set when a finding could not be transformed (i.e. outside user
@@ -5564,12 +5903,16 @@ module Google
5564
5903
 
5565
5904
  # Describes functionality of a given container in its original format.
5566
5905
  module TransformationContainerType
5906
+ # Unused.
5567
5907
  TRANSFORM_UNKNOWN_CONTAINER = 0
5568
5908
 
5909
+ # Body of a file.
5569
5910
  TRANSFORM_BODY = 1
5570
5911
 
5912
+ # Metadata for a file.
5571
5913
  TRANSFORM_METADATA = 2
5572
5914
 
5915
+ # A table.
5573
5916
  TRANSFORM_TABLE = 3
5574
5917
  end
5575
5918
 
@@ -5818,8 +6161,8 @@ module Google
5818
6161
  INVALID = 4
5819
6162
  end
5820
6163
 
5821
- # How broadly a resource has been shared. New items may be added over time.
5822
- # A higher number means more restricted.
6164
+ # How broadly the data in the resource has been shared. New items may be added
6165
+ # over time. A higher number means more restricted.
5823
6166
  module ResourceVisibility
5824
6167
  # Unused.
5825
6168
  RESOURCE_VISIBILITY_UNSPECIFIED = 0
@@ -5855,6 +6198,7 @@ module Google
5855
6198
  # Some null entries.
5856
6199
  NULL_PERCENTAGE_LOW = 2
5857
6200
 
6201
+ # A few null entries.
5858
6202
  NULL_PERCENTAGE_MEDIUM = 3
5859
6203
 
5860
6204
  # A lot of null entries.