google-cloud-dlp-v2 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +1755 -208
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +148 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +1632 -176
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +1368 -543
- data/lib/google/cloud/dlp/v2/dlp_service/rest.rb +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service.rb +1 -1
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +40 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +127 -50
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +891 -65
- data/proto_docs/google/privacy/dlp/v2/storage.rb +46 -18
- metadata +4 -4
@@ -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/
|
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
|
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/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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>
|
@@ -1049,6 +1053,10 @@ module Google
|
|
1049
1053
|
# @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeStats>]
|
1050
1054
|
# Statistics of how many instances of each info type were found during
|
1051
1055
|
# inspect job.
|
1056
|
+
# @!attribute [rw] num_rows_processed
|
1057
|
+
# @return [::Integer]
|
1058
|
+
# Number of rows scanned post sampling and time filtering (Applicable for
|
1059
|
+
# row based stores such as BigQuery).
|
1052
1060
|
# @!attribute [rw] hybrid_stats
|
1053
1061
|
# @return [::Google::Cloud::Dlp::V2::HybridInspectStatistics]
|
1054
1062
|
# Statistics related to the processing of hybrid inspect.
|
@@ -1261,6 +1269,9 @@ module Google
|
|
1261
1269
|
# The infoType is typically used in Japan.
|
1262
1270
|
JAPAN = 20
|
1263
1271
|
|
1272
|
+
# The infoType is typically used in Kazakhstan.
|
1273
|
+
KAZAKHSTAN = 47
|
1274
|
+
|
1264
1275
|
# The infoType is typically used in Korea.
|
1265
1276
|
KOREA = 21
|
1266
1277
|
|
@@ -1288,6 +1299,9 @@ module Google
|
|
1288
1299
|
# The infoType is typically used in Portugal.
|
1289
1300
|
PORTUGAL = 28
|
1290
1301
|
|
1302
|
+
# The infoType is typically used in Russia.
|
1303
|
+
RUSSIA = 44
|
1304
|
+
|
1291
1305
|
# The infoType is typically used in Singapore.
|
1292
1306
|
SINGAPORE = 29
|
1293
1307
|
|
@@ -1312,6 +1326,9 @@ module Google
|
|
1312
1326
|
# The infoType is typically used in Turkey.
|
1313
1327
|
TURKEY = 35
|
1314
1328
|
|
1329
|
+
# The infoType is typically used in Ukraine.
|
1330
|
+
UKRAINE = 45
|
1331
|
+
|
1315
1332
|
# The infoType is typically used in the United Kingdom.
|
1316
1333
|
UNITED_KINGDOM = 36
|
1317
1334
|
|
@@ -1321,6 +1338,9 @@ module Google
|
|
1321
1338
|
# The infoType is typically used in Uruguay.
|
1322
1339
|
URUGUAY = 38
|
1323
1340
|
|
1341
|
+
# The infoType is typically used in Uzbekistan.
|
1342
|
+
UZBEKISTAN = 46
|
1343
|
+
|
1324
1344
|
# The infoType is typically used in Venezuela.
|
1325
1345
|
VENEZUELA = 39
|
1326
1346
|
|
@@ -1424,7 +1444,8 @@ module Google
|
|
1424
1444
|
end
|
1425
1445
|
|
1426
1446
|
# Configuration for a risk analysis job. See
|
1427
|
-
# https://cloud.google.com/
|
1447
|
+
# https://cloud.google.com/sensitive-data-protection/docs/concepts-risk-analysis
|
1448
|
+
# to learn more.
|
1428
1449
|
# @!attribute [rw] privacy_metric
|
1429
1450
|
# @return [::Google::Cloud::Dlp::V2::PrivacyMetric]
|
1430
1451
|
# Privacy metric to compute.
|
@@ -2119,6 +2140,7 @@ module Google
|
|
2119
2140
|
# A type of transformation that is applied over images.
|
2120
2141
|
# @!attribute [rw] transforms
|
2121
2142
|
# @return [::Array<::Google::Cloud::Dlp::V2::ImageTransformations::ImageTransformation>]
|
2143
|
+
# List of transforms to make.
|
2122
2144
|
class ImageTransformations
|
2123
2145
|
include ::Google::Protobuf::MessageExts
|
2124
2146
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2284,7 +2306,8 @@ module Google
|
|
2284
2306
|
# Outputs a base64 encoded representation of the hashed output
|
2285
2307
|
# (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
|
2286
2308
|
# Currently, only string and integer values can be hashed.
|
2287
|
-
# See https://cloud.google.com/
|
2309
|
+
# See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization
|
2310
|
+
# to learn more.
|
2288
2311
|
# @!attribute [rw] crypto_key
|
2289
2312
|
# @return [::Google::Cloud::Dlp::V2::CryptoKey]
|
2290
2313
|
# The key used by the hash function.
|
@@ -2373,8 +2396,8 @@ module Google
|
|
2373
2396
|
# @!attribute [rw] word_list
|
2374
2397
|
# @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
|
2375
2398
|
# A list of words to select from for random replacement. The
|
2376
|
-
# [limits](https://cloud.google.com/
|
2377
|
-
# the size limits of dictionaries.
|
2399
|
+
# [limits](https://cloud.google.com/sensitive-data-protection/limits) page
|
2400
|
+
# contains details about the size limits of dictionaries.
|
2378
2401
|
class ReplaceDictionaryConfig
|
2379
2402
|
include ::Google::Protobuf::MessageExts
|
2380
2403
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2493,7 +2516,9 @@ module Google
|
|
2493
2516
|
# being transformed, we will first attempt converting the type of the data to
|
2494
2517
|
# be transformed to match the type of the bound before comparing.
|
2495
2518
|
#
|
2496
|
-
# See
|
2519
|
+
# See
|
2520
|
+
# https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to
|
2521
|
+
# learn more.
|
2497
2522
|
# @!attribute [rw] lower_bound
|
2498
2523
|
# @return [::Google::Cloud::Dlp::V2::Value]
|
2499
2524
|
# Required. Lower bound value of buckets. All values less than `lower_bound`
|
@@ -2523,7 +2548,9 @@ module Google
|
|
2523
2548
|
# If the bound `Value` type differs from the type of data being transformed, we
|
2524
2549
|
# will first attempt converting the type of the data to be transformed to match
|
2525
2550
|
# the type of the bound before comparing.
|
2526
|
-
# See
|
2551
|
+
# See
|
2552
|
+
# https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to
|
2553
|
+
# learn more.
|
2527
2554
|
# @!attribute [rw] buckets
|
2528
2555
|
# @return [::Array<::Google::Cloud::Dlp::V2::BucketingConfig::Bucket>]
|
2529
2556
|
# Set of buckets. Ranges must be non-overlapping.
|
@@ -2555,8 +2582,9 @@ module Google
|
|
2555
2582
|
# encoded as ASCII. For a given crypto key and context, the same identifier
|
2556
2583
|
# will be replaced with the same surrogate. Identifiers must be at least two
|
2557
2584
|
# characters long. In the case that the identifier is the empty string, it will
|
2558
|
-
# be skipped. See
|
2559
|
-
#
|
2585
|
+
# be skipped. See
|
2586
|
+
# https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to
|
2587
|
+
# learn more.
|
2560
2588
|
#
|
2561
2589
|
# Note: We recommend using CryptoDeterministicConfig for all use cases which
|
2562
2590
|
# do not require preserving the input alphabet space and size, plus warrant
|
@@ -2618,7 +2646,7 @@ module Google
|
|
2618
2646
|
#
|
2619
2647
|
# This annotation identifies the surrogate when inspecting content using the
|
2620
2648
|
# custom infoType
|
2621
|
-
# [`SurrogateType`](https://cloud.google.com/
|
2649
|
+
# [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype).
|
2622
2650
|
# This facilitates reversal of the surrogate when it occurs in free text.
|
2623
2651
|
#
|
2624
2652
|
# In order for inspection to work properly, the name of this infoType must
|
@@ -2708,7 +2736,7 @@ module Google
|
|
2708
2736
|
# dlp.kms.encrypt
|
2709
2737
|
#
|
2710
2738
|
# For more information, see [Creating a wrapped key]
|
2711
|
-
# (https://cloud.google.com/
|
2739
|
+
# (https://cloud.google.com/sensitive-data-protection/docs/create-wrapped-key).
|
2712
2740
|
#
|
2713
2741
|
# Note: When you use Cloud KMS for cryptographic operations,
|
2714
2742
|
# [charges apply](https://cloud.google.com/kms/pricing).
|
@@ -2724,7 +2752,8 @@ module Google
|
|
2724
2752
|
end
|
2725
2753
|
|
2726
2754
|
# Shifts dates by random number of days, with option to be consistent for the
|
2727
|
-
# same context. See
|
2755
|
+
# same context. See
|
2756
|
+
# https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting
|
2728
2757
|
# to learn more.
|
2729
2758
|
# @!attribute [rw] upper_bound_days
|
2730
2759
|
# @return [::Integer]
|
@@ -3068,6 +3097,7 @@ module Google
|
|
3068
3097
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3069
3098
|
end
|
3070
3099
|
|
3100
|
+
# The field in a record to transform.
|
3071
3101
|
# @!attribute [rw] field_id
|
3072
3102
|
# @return [::Google::Cloud::Dlp::V2::FieldId]
|
3073
3103
|
# For record transformations, provide a field.
|
@@ -3082,6 +3112,7 @@ module Google
|
|
3082
3112
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3083
3113
|
end
|
3084
3114
|
|
3115
|
+
# The outcome of a transformation.
|
3085
3116
|
# @!attribute [rw] result_status_type
|
3086
3117
|
# @return [::Google::Cloud::Dlp::V2::TransformationResultStatusType]
|
3087
3118
|
# Transformation result status type, this will be either SUCCESS, or it will
|
@@ -3133,8 +3164,9 @@ module Google
|
|
3133
3164
|
|
3134
3165
|
# The inspectTemplate contains a configuration (set of types of sensitive data
|
3135
3166
|
# to be detected) to be used anywhere you otherwise would normally specify
|
3136
|
-
# InspectConfig. See
|
3137
|
-
# to
|
3167
|
+
# InspectConfig. See
|
3168
|
+
# https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to
|
3169
|
+
# learn more.
|
3138
3170
|
# @!attribute [r] name
|
3139
3171
|
# @return [::String]
|
3140
3172
|
# Output only. The template name.
|
@@ -3163,7 +3195,9 @@ module Google
|
|
3163
3195
|
end
|
3164
3196
|
|
3165
3197
|
# DeidentifyTemplates contains instructions on how to de-identify content.
|
3166
|
-
# See
|
3198
|
+
# See
|
3199
|
+
# https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to
|
3200
|
+
# learn more.
|
3167
3201
|
# @!attribute [r] name
|
3168
3202
|
# @return [::String]
|
3169
3203
|
# Output only. The template name.
|
@@ -3205,8 +3239,10 @@ module Google
|
|
3205
3239
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3206
3240
|
end
|
3207
3241
|
|
3208
|
-
# Contains a configuration to make
|
3209
|
-
# See
|
3242
|
+
# Contains a configuration to make api calls on a repeating basis.
|
3243
|
+
# See
|
3244
|
+
# https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers
|
3245
|
+
# to learn more.
|
3210
3246
|
# @!attribute [rw] name
|
3211
3247
|
# @return [::String]
|
3212
3248
|
# Unique resource name for the triggeredJob, assigned by the service when the
|
@@ -3280,7 +3316,8 @@ module Google
|
|
3280
3316
|
end
|
3281
3317
|
|
3282
3318
|
# A task to execute on the completion of a job.
|
3283
|
-
# See https://cloud.google.com/
|
3319
|
+
# See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions
|
3320
|
+
# to learn more.
|
3284
3321
|
# @!attribute [rw] save_findings
|
3285
3322
|
# @return [::Google::Cloud::Dlp::V2::Action::SaveFindings]
|
3286
3323
|
# Save resulting findings in a provided location.
|
@@ -3323,7 +3360,7 @@ module Google
|
|
3323
3360
|
# Publish a message into a given Pub/Sub topic when DlpJob has completed. The
|
3324
3361
|
# message contains a single field, `DlpJobName`, which is equal to the
|
3325
3362
|
# finished job's
|
3326
|
-
# [`DlpJob.name`](https://cloud.google.com/
|
3363
|
+
# [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
|
3327
3364
|
# Compatible with: Inspect, Risk
|
3328
3365
|
# @!attribute [rw] topic
|
3329
3366
|
# @return [::String]
|
@@ -3478,7 +3515,7 @@ module Google
|
|
3478
3515
|
#
|
3479
3516
|
# The format of this value varies depending on the scope of the request
|
3480
3517
|
# (project or organization) and whether you have [specified a processing
|
3481
|
-
# location](https://cloud.google.com/
|
3518
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3482
3519
|
#
|
3483
3520
|
# + Projects scope, location specified:<br/>
|
3484
3521
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3546,7 +3583,7 @@ module Google
|
|
3546
3583
|
#
|
3547
3584
|
# The format of this value varies depending on the scope of the request
|
3548
3585
|
# (project or organization) and whether you have [specified a processing
|
3549
|
-
# location](https://cloud.google.com/
|
3586
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3550
3587
|
#
|
3551
3588
|
# + Projects scope, location specified:<br/>
|
3552
3589
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3624,7 +3661,7 @@ module Google
|
|
3624
3661
|
#
|
3625
3662
|
# The format of this value varies depending on whether you have [specified a
|
3626
3663
|
# processing
|
3627
|
-
# location](https://cloud.google.com/
|
3664
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3628
3665
|
#
|
3629
3666
|
# + Projects scope, location specified:<br/>
|
3630
3667
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3814,7 +3851,7 @@ module Google
|
|
3814
3851
|
#
|
3815
3852
|
# The format of this value varies depending on whether you have [specified a
|
3816
3853
|
# processing
|
3817
|
-
# location](https://cloud.google.com/
|
3854
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3818
3855
|
#
|
3819
3856
|
# + Projects scope, location specified:<br/>
|
3820
3857
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3854,7 +3891,7 @@ module Google
|
|
3854
3891
|
#
|
3855
3892
|
# The format of this value varies depending on whether you have [specified a
|
3856
3893
|
# processing
|
3857
|
-
# location](https://cloud.google.com/
|
3894
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3858
3895
|
#
|
3859
3896
|
# + Projects scope, location specified:<br/>
|
3860
3897
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3987,8 +4024,14 @@ module Google
|
|
3987
4024
|
# @!attribute [rw] profile_table
|
3988
4025
|
# @return [::Google::Cloud::Dlp::V2::BigQueryTable]
|
3989
4026
|
# Store all table and column profiles in an existing table or a new table
|
3990
|
-
# in an existing dataset. Each re-generation will result in
|
3991
|
-
# BigQuery.
|
4027
|
+
# in an existing dataset. Each re-generation will result in new rows in
|
4028
|
+
# BigQuery. Data is inserted using [streaming
|
4029
|
+
# insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
|
4030
|
+
# and so data may be in the buffer for a period of time after the profile
|
4031
|
+
# has finished. The Pub/Sub notification is sent before the streaming
|
4032
|
+
# buffer is guaranteed to be written, so data may not be instantly
|
4033
|
+
# visible to queries by the time your topic receives the Pub/Sub
|
4034
|
+
# notification.
|
3992
4035
|
class Export
|
3993
4036
|
include ::Google::Protobuf::MessageExts
|
3994
4037
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -4026,7 +4069,7 @@ module Google
|
|
4026
4069
|
# The full table data profile.
|
4027
4070
|
TABLE_PROFILE = 1
|
4028
4071
|
|
4029
|
-
# The
|
4072
|
+
# The name of the profiled resource.
|
4030
4073
|
RESOURCE_NAME = 2
|
4031
4074
|
end
|
4032
4075
|
end
|
@@ -4040,12 +4083,12 @@ module Google
|
|
4040
4083
|
NEW_PROFILE = 1
|
4041
4084
|
|
4042
4085
|
# Changed one of the following profile metrics:
|
4043
|
-
# *
|
4044
|
-
# *
|
4045
|
-
# *
|
4046
|
-
# *
|
4047
|
-
# *
|
4048
|
-
# *
|
4086
|
+
# * Data risk score
|
4087
|
+
# * Sensitivity score
|
4088
|
+
# * Resource visibility
|
4089
|
+
# * Encryption type
|
4090
|
+
# * Predicted infoTypes
|
4091
|
+
# * Other infoTypes
|
4049
4092
|
CHANGED_PROFILE = 2
|
4050
4093
|
|
4051
4094
|
# Table data risk score or sensitivity score increased.
|
@@ -4062,7 +4105,7 @@ module Google
|
|
4062
4105
|
#
|
4063
4106
|
# The generated data profiles are retained according to the
|
4064
4107
|
# [data retention policy]
|
4065
|
-
# (https://cloud.google.com/
|
4108
|
+
# (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).
|
4066
4109
|
# @!attribute [rw] location
|
4067
4110
|
# @return [::Google::Cloud::Dlp::V2::DataProfileLocation]
|
4068
4111
|
# The data to scan.
|
@@ -4088,7 +4131,7 @@ module Google
|
|
4088
4131
|
# scanned.
|
4089
4132
|
#
|
4090
4133
|
# For more information, see
|
4091
|
-
# https://cloud.google.com/
|
4134
|
+
# https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
|
4092
4135
|
# @!attribute [rw] data_profile_actions
|
4093
4136
|
# @return [::Array<::Google::Cloud::Dlp::V2::DataProfileAction>]
|
4094
4137
|
# Actions to execute at the completion of the job.
|
@@ -4161,7 +4204,7 @@ module Google
|
|
4161
4204
|
#
|
4162
4205
|
# The generated data profiles are retained according to the
|
4163
4206
|
# [data retention policy]
|
4164
|
-
# (https://cloud.google.com/
|
4207
|
+
# (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).
|
4165
4208
|
# @!attribute [rw] name
|
4166
4209
|
# @return [::String]
|
4167
4210
|
# Unique resource name for the DiscoveryConfig, assigned by the service when
|
@@ -4190,7 +4233,7 @@ module Google
|
|
4190
4233
|
# scanned.
|
4191
4234
|
#
|
4192
4235
|
# For more information, see
|
4193
|
-
# https://cloud.google.com/
|
4236
|
+
# https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
|
4194
4237
|
# @!attribute [rw] actions
|
4195
4238
|
# @return [::Array<::Google::Cloud::Dlp::V2::DataProfileAction>]
|
4196
4239
|
# Actions to execute at the completion of scanning.
|
@@ -4252,6 +4295,10 @@ module Google
|
|
4252
4295
|
# @return [::Google::Cloud::Dlp::V2::BigQueryDiscoveryTarget]
|
4253
4296
|
# BigQuery target for Discovery. The first target to match a table will be
|
4254
4297
|
# the one applied.
|
4298
|
+
# @!attribute [rw] cloud_sql_target
|
4299
|
+
# @return [::Google::Cloud::Dlp::V2::CloudSqlDiscoveryTarget]
|
4300
|
+
# Cloud SQL target for Discovery. The first target to match a table will be
|
4301
|
+
# the one applied.
|
4255
4302
|
class DiscoveryTarget
|
4256
4303
|
include ::Google::Protobuf::MessageExts
|
4257
4304
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -4399,6 +4446,203 @@ module Google
|
|
4399
4446
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4400
4447
|
end
|
4401
4448
|
|
4449
|
+
# Target used to match against for discovery with Cloud SQL tables.
|
4450
|
+
# @!attribute [rw] filter
|
4451
|
+
# @return [::Google::Cloud::Dlp::V2::DiscoveryCloudSqlFilter]
|
4452
|
+
# Required. The tables the discovery cadence applies to. The first target
|
4453
|
+
# with a matching filter will be the one to apply to a table.
|
4454
|
+
# @!attribute [rw] conditions
|
4455
|
+
# @return [::Google::Cloud::Dlp::V2::DiscoveryCloudSqlConditions]
|
4456
|
+
# In addition to matching the filter, these conditions must be true
|
4457
|
+
# before a profile is generated.
|
4458
|
+
# @!attribute [rw] generation_cadence
|
4459
|
+
# @return [::Google::Cloud::Dlp::V2::DiscoveryCloudSqlGenerationCadence]
|
4460
|
+
# How often and when to update profiles. New tables that match both the
|
4461
|
+
# filter and conditions are scanned as quickly as possible depending on
|
4462
|
+
# system capacity.
|
4463
|
+
# @!attribute [rw] disabled
|
4464
|
+
# @return [::Google::Cloud::Dlp::V2::Disabled]
|
4465
|
+
# Disable profiling for database resources that match this filter.
|
4466
|
+
class CloudSqlDiscoveryTarget
|
4467
|
+
include ::Google::Protobuf::MessageExts
|
4468
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4469
|
+
end
|
4470
|
+
|
4471
|
+
# Determines what tables will have profiles generated within an organization
|
4472
|
+
# or project. Includes the ability to filter by regular expression patterns
|
4473
|
+
# on project ID, location, instance, database, and database resource name.
|
4474
|
+
# @!attribute [rw] collection
|
4475
|
+
# @return [::Google::Cloud::Dlp::V2::DatabaseResourceCollection]
|
4476
|
+
# A specific set of database resources for this filter to apply to.
|
4477
|
+
# @!attribute [rw] others
|
4478
|
+
# @return [::Google::Cloud::Dlp::V2::AllOtherDatabaseResources]
|
4479
|
+
# Catch-all. This should always be the last target in the list because
|
4480
|
+
# anything above it will apply first. Should only appear once in a
|
4481
|
+
# configuration. If none is specified, a default one will be added
|
4482
|
+
# automatically.
|
4483
|
+
# @!attribute [rw] database_resource_reference
|
4484
|
+
# @return [::Google::Cloud::Dlp::V2::DatabaseResourceReference]
|
4485
|
+
# The database resource to scan. Targets including this can only include
|
4486
|
+
# one target (the target with this database resource reference).
|
4487
|
+
class DiscoveryCloudSqlFilter
|
4488
|
+
include ::Google::Protobuf::MessageExts
|
4489
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4490
|
+
end
|
4491
|
+
|
4492
|
+
# Match database resources using regex filters. Examples of database
|
4493
|
+
# resources are tables, views, and stored procedures.
|
4494
|
+
# @!attribute [rw] include_regexes
|
4495
|
+
# @return [::Google::Cloud::Dlp::V2::DatabaseResourceRegexes]
|
4496
|
+
# A collection of regular expressions to match a database resource against.
|
4497
|
+
class DatabaseResourceCollection
|
4498
|
+
include ::Google::Protobuf::MessageExts
|
4499
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4500
|
+
end
|
4501
|
+
|
4502
|
+
# A collection of regular expressions to determine what database resources to
|
4503
|
+
# match against.
|
4504
|
+
# @!attribute [rw] patterns
|
4505
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::DatabaseResourceRegex>]
|
4506
|
+
# A group of regular expression patterns to match against one or more
|
4507
|
+
# database resources.
|
4508
|
+
# Maximum of 100 entries. The sum of all regular expression's length can't
|
4509
|
+
# exceed 10 KiB.
|
4510
|
+
class DatabaseResourceRegexes
|
4511
|
+
include ::Google::Protobuf::MessageExts
|
4512
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4513
|
+
end
|
4514
|
+
|
4515
|
+
# A pattern to match against one or more database resources. At least one
|
4516
|
+
# pattern must be specified. Regular expressions use RE2
|
4517
|
+
# [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
|
4518
|
+
# under the google/re2 repository on GitHub.
|
4519
|
+
# @!attribute [rw] project_id_regex
|
4520
|
+
# @return [::String]
|
4521
|
+
# For organizations, if unset, will match all projects. Has no effect
|
4522
|
+
# for Data Profile configurations created within a project.
|
4523
|
+
# @!attribute [rw] instance_regex
|
4524
|
+
# @return [::String]
|
4525
|
+
# Regex to test the instance name against. If empty, all instances match.
|
4526
|
+
# @!attribute [rw] database_regex
|
4527
|
+
# @return [::String]
|
4528
|
+
# Regex to test the database name against. If empty, all databases match.
|
4529
|
+
# @!attribute [rw] database_resource_name_regex
|
4530
|
+
# @return [::String]
|
4531
|
+
# Regex to test the database resource's name against. An example of a
|
4532
|
+
# database resource name is a table's name. Other database resource names
|
4533
|
+
# like view names could be included in the future. If empty, all database
|
4534
|
+
# resources match.
|
4535
|
+
class DatabaseResourceRegex
|
4536
|
+
include ::Google::Protobuf::MessageExts
|
4537
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4538
|
+
end
|
4539
|
+
|
4540
|
+
# Match database resources not covered by any other filter.
|
4541
|
+
class AllOtherDatabaseResources
|
4542
|
+
include ::Google::Protobuf::MessageExts
|
4543
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4544
|
+
end
|
4545
|
+
|
4546
|
+
# Identifies a single database resource, like a table within a database.
|
4547
|
+
# @!attribute [rw] project_id
|
4548
|
+
# @return [::String]
|
4549
|
+
# Required. If within a project-level config, then this must match the
|
4550
|
+
# config's project id.
|
4551
|
+
# @!attribute [rw] instance
|
4552
|
+
# @return [::String]
|
4553
|
+
# Required. The instance where this resource is located. For example: Cloud
|
4554
|
+
# SQL's instance id.
|
4555
|
+
class DatabaseResourceReference
|
4556
|
+
include ::Google::Protobuf::MessageExts
|
4557
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4558
|
+
end
|
4559
|
+
|
4560
|
+
# Requirements that must be true before a table is profiled for the
|
4561
|
+
# first time.
|
4562
|
+
# @!attribute [rw] database_engines
|
4563
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::DiscoveryCloudSqlConditions::DatabaseEngine>]
|
4564
|
+
# Optional. Database engines that should be profiled.
|
4565
|
+
# Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
|
4566
|
+
# @!attribute [rw] types
|
4567
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::DiscoveryCloudSqlConditions::DatabaseResourceType>]
|
4568
|
+
# Data profiles will only be generated for the database resource types
|
4569
|
+
# specified in this field.
|
4570
|
+
# If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
|
4571
|
+
class DiscoveryCloudSqlConditions
|
4572
|
+
include ::Google::Protobuf::MessageExts
|
4573
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4574
|
+
|
4575
|
+
# The database engines that should be profiled.
|
4576
|
+
module DatabaseEngine
|
4577
|
+
# Unused.
|
4578
|
+
DATABASE_ENGINE_UNSPECIFIED = 0
|
4579
|
+
|
4580
|
+
# Include all supported database engines.
|
4581
|
+
ALL_SUPPORTED_DATABASE_ENGINES = 1
|
4582
|
+
|
4583
|
+
# MySql database.
|
4584
|
+
MYSQL = 2
|
4585
|
+
|
4586
|
+
# PostGres database.
|
4587
|
+
POSTGRES = 3
|
4588
|
+
end
|
4589
|
+
|
4590
|
+
# Cloud SQL database resource types. New values can be added at a later time.
|
4591
|
+
module DatabaseResourceType
|
4592
|
+
# Unused.
|
4593
|
+
DATABASE_RESOURCE_TYPE_UNSPECIFIED = 0
|
4594
|
+
|
4595
|
+
# Includes database resource types that become supported at a later time.
|
4596
|
+
DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES = 1
|
4597
|
+
|
4598
|
+
# Tables.
|
4599
|
+
DATABASE_RESOURCE_TYPE_TABLE = 2
|
4600
|
+
end
|
4601
|
+
end
|
4602
|
+
|
4603
|
+
# How often existing tables should have their profiles refreshed.
|
4604
|
+
# New tables are scanned as quickly as possible depending on system
|
4605
|
+
# capacity.
|
4606
|
+
# @!attribute [rw] schema_modified_cadence
|
4607
|
+
# @return [::Google::Cloud::Dlp::V2::DiscoveryCloudSqlGenerationCadence::SchemaModifiedCadence]
|
4608
|
+
# When to reprofile if the schema has changed.
|
4609
|
+
# @!attribute [rw] refresh_frequency
|
4610
|
+
# @return [::Google::Cloud::Dlp::V2::DataProfileUpdateFrequency]
|
4611
|
+
# Data changes (non-schema changes) in Cloud SQL tables can't trigger
|
4612
|
+
# reprofiling. If you set this field, profiles are refreshed at this
|
4613
|
+
# frequency regardless of whether the underlying tables have changes.
|
4614
|
+
# Defaults to never.
|
4615
|
+
class DiscoveryCloudSqlGenerationCadence
|
4616
|
+
include ::Google::Protobuf::MessageExts
|
4617
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4618
|
+
|
4619
|
+
# How frequency to modify the profile when the table's schema is modified.
|
4620
|
+
# @!attribute [rw] types
|
4621
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::DiscoveryCloudSqlGenerationCadence::SchemaModifiedCadence::CloudSqlSchemaModification>]
|
4622
|
+
# The types of schema modifications to consider.
|
4623
|
+
# Defaults to NEW_COLUMNS.
|
4624
|
+
# @!attribute [rw] frequency
|
4625
|
+
# @return [::Google::Cloud::Dlp::V2::DataProfileUpdateFrequency]
|
4626
|
+
# Frequency to regenerate data profiles when the schema is modified.
|
4627
|
+
# Defaults to monthly.
|
4628
|
+
class SchemaModifiedCadence
|
4629
|
+
include ::Google::Protobuf::MessageExts
|
4630
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4631
|
+
|
4632
|
+
# The type of modification that causes a profile update.
|
4633
|
+
module CloudSqlSchemaModification
|
4634
|
+
# Unused.
|
4635
|
+
SQL_SCHEMA_MODIFICATION_UNSPECIFIED = 0
|
4636
|
+
|
4637
|
+
# New columns has appeared.
|
4638
|
+
NEW_COLUMNS = 1
|
4639
|
+
|
4640
|
+
# Columns have been removed from the table.
|
4641
|
+
REMOVED_COLUMNS = 2
|
4642
|
+
end
|
4643
|
+
end
|
4644
|
+
end
|
4645
|
+
|
4402
4646
|
# The location to begin a discovery scan. Denotes an organization ID or folder
|
4403
4647
|
# ID within an organization.
|
4404
4648
|
# @!attribute [rw] organization_id
|
@@ -4499,7 +4743,7 @@ module Google
|
|
4499
4743
|
#
|
4500
4744
|
# The format of this value varies depending on whether you have [specified a
|
4501
4745
|
# processing
|
4502
|
-
# location](https://cloud.google.com/
|
4746
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
4503
4747
|
#
|
4504
4748
|
# + Projects scope, location specified:<br/>
|
4505
4749
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -4597,7 +4841,7 @@ module Google
|
|
4597
4841
|
# The request message for finishing a DLP hybrid job.
|
4598
4842
|
# @!attribute [rw] name
|
4599
4843
|
# @return [::String]
|
4600
|
-
# Required. The name of the DlpJob resource to be
|
4844
|
+
# Required. The name of the DlpJob resource to be finished.
|
4601
4845
|
class FinishDlpJobRequest
|
4602
4846
|
include ::Google::Protobuf::MessageExts
|
4603
4847
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -4619,7 +4863,7 @@ module Google
|
|
4619
4863
|
#
|
4620
4864
|
# The format of this value varies depending on the scope of the request
|
4621
4865
|
# (project or organization) and whether you have [specified a processing
|
4622
|
-
# location](https://cloud.google.com/
|
4866
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
4623
4867
|
#
|
4624
4868
|
# + Projects scope, location specified:<br/>
|
4625
4869
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -4688,7 +4932,7 @@ module Google
|
|
4688
4932
|
#
|
4689
4933
|
# The format of this value varies depending on the scope of the request
|
4690
4934
|
# (project or organization) and whether you have [specified a processing
|
4691
|
-
# location](https://cloud.google.com/
|
4935
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
4692
4936
|
#
|
4693
4937
|
# + Projects scope, location specified:<br/>
|
4694
4938
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -4763,8 +5007,8 @@ module Google
|
|
4763
5007
|
|
4764
5008
|
# Configuration for a custom dictionary created from a data source of any size
|
4765
5009
|
# up to the maximum size defined in the
|
4766
|
-
# [limits](https://cloud.google.com/
|
4767
|
-
# dictionary creation are stored in the specified Cloud Storage
|
5010
|
+
# [limits](https://cloud.google.com/sensitive-data-protection/limits) page. The
|
5011
|
+
# artifacts of dictionary creation are stored in the specified Cloud Storage
|
4768
5012
|
# location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
|
4769
5013
|
# that satisfy the size requirements.
|
4770
5014
|
# @!attribute [rw] output_path
|
@@ -4795,7 +5039,7 @@ module Google
|
|
4795
5039
|
|
4796
5040
|
# Configuration for stored infoTypes. All fields and subfield are provided
|
4797
5041
|
# by the user. For more information, see
|
4798
|
-
# https://cloud.google.com/
|
5042
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes.
|
4799
5043
|
# @!attribute [rw] display_name
|
4800
5044
|
# @return [::String]
|
4801
5045
|
# Display name of the StoredInfoType (max 256 characters).
|
@@ -4885,7 +5129,7 @@ module Google
|
|
4885
5129
|
#
|
4886
5130
|
# The format of this value varies depending on the scope of the request
|
4887
5131
|
# (project or organization) and whether you have [specified a processing
|
4888
|
-
# location](https://cloud.google.com/
|
5132
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
4889
5133
|
#
|
4890
5134
|
# + Projects scope, location specified:<br/>
|
4891
5135
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -4955,7 +5199,7 @@ module Google
|
|
4955
5199
|
#
|
4956
5200
|
# The format of this value varies depending on the scope of the request
|
4957
5201
|
# (project or organization) and whether you have [specified a processing
|
4958
|
-
# location](https://cloud.google.com/
|
5202
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
4959
5203
|
#
|
4960
5204
|
# + Projects scope, location specified:<br/>
|
4961
5205
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -5122,6 +5366,240 @@ module Google
|
|
5122
5366
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5123
5367
|
end
|
5124
5368
|
|
5369
|
+
# Request to list the profiles generated for a given organization or project.
|
5370
|
+
# @!attribute [rw] parent
|
5371
|
+
# @return [::String]
|
5372
|
+
# Required. organizations/\\{org_id}/locations/\\{loc_id}
|
5373
|
+
# @!attribute [rw] page_token
|
5374
|
+
# @return [::String]
|
5375
|
+
# Page token to continue retrieval.
|
5376
|
+
# @!attribute [rw] page_size
|
5377
|
+
# @return [::Integer]
|
5378
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
5379
|
+
# returns a page of max size 100.
|
5380
|
+
# @!attribute [rw] order_by
|
5381
|
+
# @return [::String]
|
5382
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
5383
|
+
# postfix. This list is case insensitive. The default sorting order is
|
5384
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
5385
|
+
# field at a time is allowed.
|
5386
|
+
#
|
5387
|
+
# Examples:
|
5388
|
+
# * `project_id`
|
5389
|
+
# * `sensitivity_level desc`
|
5390
|
+
#
|
5391
|
+
# Supported fields are:
|
5392
|
+
#
|
5393
|
+
# - `project_id`: Google Cloud project ID
|
5394
|
+
# - `sensitivity_level`: How sensitive the data in a project is, at most.
|
5395
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
5396
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
5397
|
+
# seconds.
|
5398
|
+
# @!attribute [rw] filter
|
5399
|
+
# @return [::String]
|
5400
|
+
# Allows filtering.
|
5401
|
+
#
|
5402
|
+
# Supported syntax:
|
5403
|
+
#
|
5404
|
+
# * Filter expressions are made up of one or more restrictions.
|
5405
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
5406
|
+
# sequence of restrictions implicitly uses `AND`.
|
5407
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
5408
|
+
# * Supported fields/values:
|
5409
|
+
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
5410
|
+
# - `data_risk_level` - HIGH|MODERATE|LOW
|
5411
|
+
# - `status_code` - an RPC status code as defined in
|
5412
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
5413
|
+
# * The operator must be `=` or `!=`.
|
5414
|
+
#
|
5415
|
+
# Examples:
|
5416
|
+
#
|
5417
|
+
# * `project_id = 12345 AND status_code = 1`
|
5418
|
+
# * `project_id = 12345 AND sensitivity_level = HIGH`
|
5419
|
+
#
|
5420
|
+
# The length of this field should be no more than 500 characters.
|
5421
|
+
class ListProjectDataProfilesRequest
|
5422
|
+
include ::Google::Protobuf::MessageExts
|
5423
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5424
|
+
end
|
5425
|
+
|
5426
|
+
# List of profiles generated for a given organization or project.
|
5427
|
+
# @!attribute [rw] project_data_profiles
|
5428
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
|
5429
|
+
# List of data profiles.
|
5430
|
+
# @!attribute [rw] next_page_token
|
5431
|
+
# @return [::String]
|
5432
|
+
# The next page token.
|
5433
|
+
class ListProjectDataProfilesResponse
|
5434
|
+
include ::Google::Protobuf::MessageExts
|
5435
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5436
|
+
end
|
5437
|
+
|
5438
|
+
# Request to list the profiles generated for a given organization or project.
|
5439
|
+
# @!attribute [rw] parent
|
5440
|
+
# @return [::String]
|
5441
|
+
# Required. Resource name of the organization or project, for
|
5442
|
+
# example `organizations/433245324/locations/europe` or
|
5443
|
+
# `projects/project-id/locations/asia`.
|
5444
|
+
# @!attribute [rw] page_token
|
5445
|
+
# @return [::String]
|
5446
|
+
# Page token to continue retrieval.
|
5447
|
+
# @!attribute [rw] page_size
|
5448
|
+
# @return [::Integer]
|
5449
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
5450
|
+
# returns a page of max size 100.
|
5451
|
+
# @!attribute [rw] order_by
|
5452
|
+
# @return [::String]
|
5453
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
5454
|
+
# postfix. This list is case insensitive. The default sorting order is
|
5455
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
5456
|
+
# field at a time is allowed.
|
5457
|
+
#
|
5458
|
+
# Examples:
|
5459
|
+
# * `project_id asc`
|
5460
|
+
# * `table_id`
|
5461
|
+
# * `sensitivity_level desc`
|
5462
|
+
#
|
5463
|
+
# Supported fields are:
|
5464
|
+
#
|
5465
|
+
# - `project_id`: The Google Cloud project ID.
|
5466
|
+
# - `dataset_id`: The ID of a BigQuery dataset.
|
5467
|
+
# - `table_id`: The ID of a BigQuery table.
|
5468
|
+
# - `sensitivity_level`: How sensitive the data in a table is, at most.
|
5469
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
5470
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
5471
|
+
# seconds.
|
5472
|
+
# - `last_modified`: The last time the resource was modified.
|
5473
|
+
# - `resource_visibility`: Visibility restriction for this resource.
|
5474
|
+
# - `row_count`: Number of rows in this resource.
|
5475
|
+
# @!attribute [rw] filter
|
5476
|
+
# @return [::String]
|
5477
|
+
# Allows filtering.
|
5478
|
+
#
|
5479
|
+
# Supported syntax:
|
5480
|
+
#
|
5481
|
+
# * Filter expressions are made up of one or more restrictions.
|
5482
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
5483
|
+
# sequence of restrictions implicitly uses `AND`.
|
5484
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
5485
|
+
# * Supported fields/values:
|
5486
|
+
# - `project_id` - The Google Cloud project ID.
|
5487
|
+
# - `dataset_id` - The BigQuery dataset ID.
|
5488
|
+
# - `table_id` - The ID of the BigQuery table.
|
5489
|
+
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
5490
|
+
# - `data_risk_level` - HIGH|MODERATE|LOW
|
5491
|
+
# - `resource_visibility`: PUBLIC|RESTRICTED
|
5492
|
+
# - `status_code` - an RPC status code as defined in
|
5493
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
5494
|
+
# * The operator must be `=` or `!=`.
|
5495
|
+
#
|
5496
|
+
# Examples:
|
5497
|
+
#
|
5498
|
+
# * `project_id = 12345 AND status_code = 1`
|
5499
|
+
# * `project_id = 12345 AND sensitivity_level = HIGH`
|
5500
|
+
# * `project_id = 12345 AND resource_visibility = PUBLIC`
|
5501
|
+
#
|
5502
|
+
# The length of this field should be no more than 500 characters.
|
5503
|
+
class ListTableDataProfilesRequest
|
5504
|
+
include ::Google::Protobuf::MessageExts
|
5505
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5506
|
+
end
|
5507
|
+
|
5508
|
+
# List of profiles generated for a given organization or project.
|
5509
|
+
# @!attribute [rw] table_data_profiles
|
5510
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::TableDataProfile>]
|
5511
|
+
# List of data profiles.
|
5512
|
+
# @!attribute [rw] next_page_token
|
5513
|
+
# @return [::String]
|
5514
|
+
# The next page token.
|
5515
|
+
class ListTableDataProfilesResponse
|
5516
|
+
include ::Google::Protobuf::MessageExts
|
5517
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5518
|
+
end
|
5519
|
+
|
5520
|
+
# Request to list the profiles generated for a given organization or project.
|
5521
|
+
# @!attribute [rw] parent
|
5522
|
+
# @return [::String]
|
5523
|
+
# Required. Resource name of the organization or project, for
|
5524
|
+
# example `organizations/433245324/locations/europe` or
|
5525
|
+
# `projects/project-id/locations/asia`.
|
5526
|
+
# @!attribute [rw] page_token
|
5527
|
+
# @return [::String]
|
5528
|
+
# Page token to continue retrieval.
|
5529
|
+
# @!attribute [rw] page_size
|
5530
|
+
# @return [::Integer]
|
5531
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
5532
|
+
# returns a page of max size 100.
|
5533
|
+
# @!attribute [rw] order_by
|
5534
|
+
# @return [::String]
|
5535
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
5536
|
+
# postfix. This list is case insensitive. The default sorting order is
|
5537
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
5538
|
+
# field at a time is allowed.
|
5539
|
+
#
|
5540
|
+
# Examples:
|
5541
|
+
# * `project_id asc`
|
5542
|
+
# * `table_id`
|
5543
|
+
# * `sensitivity_level desc`
|
5544
|
+
#
|
5545
|
+
# Supported fields are:
|
5546
|
+
#
|
5547
|
+
# - `project_id`: The Google Cloud project ID.
|
5548
|
+
# - `dataset_id`: The ID of a BigQuery dataset.
|
5549
|
+
# - `table_id`: The ID of a BigQuery table.
|
5550
|
+
# - `sensitivity_level`: How sensitive the data in a column is, at most.
|
5551
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
5552
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
5553
|
+
# seconds.
|
5554
|
+
# @!attribute [rw] filter
|
5555
|
+
# @return [::String]
|
5556
|
+
# Allows filtering.
|
5557
|
+
#
|
5558
|
+
# Supported syntax:
|
5559
|
+
#
|
5560
|
+
# * Filter expressions are made up of one or more restrictions.
|
5561
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
5562
|
+
# sequence of restrictions implicitly uses `AND`.
|
5563
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
5564
|
+
# * Supported fields/values:
|
5565
|
+
# - `table_data_profile_name` - The name of the related table data
|
5566
|
+
# profile.
|
5567
|
+
# - `project_id` - The Google Cloud project ID. (REQUIRED)
|
5568
|
+
# - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
|
5569
|
+
# - `table_id` - The BigQuery table ID. (REQUIRED)
|
5570
|
+
# - `field_id` - The ID of the BigQuery field.
|
5571
|
+
# - `info_type` - The infotype detected in the resource.
|
5572
|
+
# - `sensitivity_level` - HIGH|MEDIUM|LOW
|
5573
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
5574
|
+
# - `status_code` - an RPC status code as defined in
|
5575
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
5576
|
+
# * The operator must be `=` for project_id, dataset_id, and table_id. Other
|
5577
|
+
# filters also support `!=`.
|
5578
|
+
#
|
5579
|
+
# Examples:
|
5580
|
+
#
|
5581
|
+
# * project_id = 12345 AND status_code = 1
|
5582
|
+
# * project_id = 12345 AND sensitivity_level = HIGH
|
5583
|
+
# * project_id = 12345 AND info_type = STREET_ADDRESS
|
5584
|
+
#
|
5585
|
+
# The length of this field should be no more than 500 characters.
|
5586
|
+
class ListColumnDataProfilesRequest
|
5587
|
+
include ::Google::Protobuf::MessageExts
|
5588
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5589
|
+
end
|
5590
|
+
|
5591
|
+
# List of profiles generated for a given organization or project.
|
5592
|
+
# @!attribute [rw] column_data_profiles
|
5593
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
|
5594
|
+
# List of data profiles.
|
5595
|
+
# @!attribute [rw] next_page_token
|
5596
|
+
# @return [::String]
|
5597
|
+
# The next page token.
|
5598
|
+
class ListColumnDataProfilesResponse
|
5599
|
+
include ::Google::Protobuf::MessageExts
|
5600
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5601
|
+
end
|
5602
|
+
|
5125
5603
|
# Score is a summary of all elements in the data profile.
|
5126
5604
|
# A higher number means more risk.
|
5127
5605
|
# @!attribute [rw] score
|
@@ -5153,14 +5631,53 @@ module Google
|
|
5153
5631
|
end
|
5154
5632
|
end
|
5155
5633
|
|
5634
|
+
# An aggregated profile for this project, based on the resources profiled
|
5635
|
+
# within it.
|
5636
|
+
# @!attribute [rw] name
|
5637
|
+
# @return [::String]
|
5638
|
+
# The resource name of the profile.
|
5639
|
+
# @!attribute [rw] project_id
|
5640
|
+
# @return [::String]
|
5641
|
+
# Project ID that was profiled.
|
5642
|
+
# @!attribute [rw] profile_last_generated
|
5643
|
+
# @return [::Google::Protobuf::Timestamp]
|
5644
|
+
# The last time the profile was generated.
|
5645
|
+
# @!attribute [rw] sensitivity_score
|
5646
|
+
# @return [::Google::Cloud::Dlp::V2::SensitivityScore]
|
5647
|
+
# The sensitivity score of this project.
|
5648
|
+
# @!attribute [rw] data_risk_level
|
5649
|
+
# @return [::Google::Cloud::Dlp::V2::DataRiskLevel]
|
5650
|
+
# The data risk level of this project.
|
5651
|
+
# @!attribute [rw] profile_status
|
5652
|
+
# @return [::Google::Cloud::Dlp::V2::ProfileStatus]
|
5653
|
+
# Success or error status of the last attempt to profile the project.
|
5654
|
+
class ProjectDataProfile
|
5655
|
+
include ::Google::Protobuf::MessageExts
|
5656
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5657
|
+
end
|
5658
|
+
|
5156
5659
|
# Snapshot of the configurations used to generate the profile.
|
5157
5660
|
# @!attribute [rw] inspect_config
|
5158
5661
|
# @return [::Google::Cloud::Dlp::V2::InspectConfig]
|
5159
5662
|
# A copy of the inspection config used to generate this profile. This
|
5160
5663
|
# is a copy of the inspect_template specified in `DataProfileJobConfig`.
|
5161
5664
|
# @!attribute [rw] data_profile_job
|
5665
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
5162
5666
|
# @return [::Google::Cloud::Dlp::V2::DataProfileJobConfig]
|
5667
|
+
# A copy of the configuration used to generate this profile. This is
|
5668
|
+
# deprecated, and the DiscoveryConfig field is preferred moving forward.
|
5669
|
+
# DataProfileJobConfig will still be written here for Discovery in BigQuery
|
5670
|
+
# for backwards compatibility, but will not be updated with new fields, while
|
5671
|
+
# DiscoveryConfig will.
|
5672
|
+
# @!attribute [rw] discovery_config
|
5673
|
+
# @return [::Google::Cloud::Dlp::V2::DiscoveryConfig]
|
5163
5674
|
# A copy of the configuration used to generate this profile.
|
5675
|
+
# @!attribute [rw] inspect_template_name
|
5676
|
+
# @return [::String]
|
5677
|
+
# Name of the inspection template used to generate this profile
|
5678
|
+
# @!attribute [rw] inspect_template_modified_time
|
5679
|
+
# @return [::Google::Protobuf::Timestamp]
|
5680
|
+
# Timestamp when the template was modified
|
5164
5681
|
class DataProfileConfigSnapshot
|
5165
5682
|
include ::Google::Protobuf::MessageExts
|
5166
5683
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -5170,26 +5687,29 @@ module Google
|
|
5170
5687
|
# @!attribute [rw] name
|
5171
5688
|
# @return [::String]
|
5172
5689
|
# The name of the profile.
|
5690
|
+
# @!attribute [rw] data_source_type
|
5691
|
+
# @return [::Google::Cloud::Dlp::V2::DataSourceType]
|
5692
|
+
# The resource type that was profiled.
|
5173
5693
|
# @!attribute [rw] project_data_profile
|
5174
5694
|
# @return [::String]
|
5175
5695
|
# The resource name to the project data profile for this table.
|
5176
5696
|
# @!attribute [rw] dataset_project_id
|
5177
5697
|
# @return [::String]
|
5178
|
-
# The Google Cloud project ID that owns the
|
5698
|
+
# The Google Cloud project ID that owns the resource.
|
5179
5699
|
# @!attribute [rw] dataset_location
|
5180
5700
|
# @return [::String]
|
5181
|
-
#
|
5701
|
+
# If supported, the location where the dataset's data is stored.
|
5182
5702
|
# See https://cloud.google.com/bigquery/docs/locations for supported
|
5183
5703
|
# locations.
|
5184
5704
|
# @!attribute [rw] dataset_id
|
5185
5705
|
# @return [::String]
|
5186
|
-
#
|
5706
|
+
# If the resource is BigQuery, the dataset ID.
|
5187
5707
|
# @!attribute [rw] table_id
|
5188
5708
|
# @return [::String]
|
5189
|
-
#
|
5709
|
+
# If the resource is BigQuery, the BigQuery table ID.
|
5190
5710
|
# @!attribute [rw] full_resource
|
5191
5711
|
# @return [::String]
|
5192
|
-
# The resource name of the
|
5712
|
+
# The resource name of the resource profiled.
|
5193
5713
|
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
5194
5714
|
# @!attribute [rw] profile_status
|
5195
5715
|
# @return [::Google::Cloud::Dlp::V2::ProfileStatus]
|
@@ -5276,6 +5796,7 @@ module Google
|
|
5276
5796
|
end
|
5277
5797
|
end
|
5278
5798
|
|
5799
|
+
# Success or errors for the profile generation.
|
5279
5800
|
# @!attribute [rw] status
|
5280
5801
|
# @return [::Google::Rpc::Status]
|
5281
5802
|
# Profiling status code and optional message. The `status.code` value is 0
|
@@ -5337,10 +5858,10 @@ module Google
|
|
5337
5858
|
# The resource name of the table data profile.
|
5338
5859
|
# @!attribute [rw] table_full_resource
|
5339
5860
|
# @return [::String]
|
5340
|
-
# The resource name of the
|
5861
|
+
# The resource name of the resource this column is within.
|
5341
5862
|
# @!attribute [rw] dataset_project_id
|
5342
5863
|
# @return [::String]
|
5343
|
-
# The Google Cloud project ID that owns the
|
5864
|
+
# The Google Cloud project ID that owns the profiled resource.
|
5344
5865
|
# @!attribute [rw] dataset_location
|
5345
5866
|
# @return [::String]
|
5346
5867
|
# The BigQuery location where the dataset's data is stored.
|
@@ -5453,6 +5974,18 @@ module Google
|
|
5453
5974
|
|
5454
5975
|
# Json type.
|
5455
5976
|
TYPE_JSON = 14
|
5977
|
+
|
5978
|
+
# Interval type.
|
5979
|
+
TYPE_INTERVAL = 15
|
5980
|
+
|
5981
|
+
# `Range<Date>` type.
|
5982
|
+
TYPE_RANGE_DATE = 16
|
5983
|
+
|
5984
|
+
# `Range<Datetime>` type.
|
5985
|
+
TYPE_RANGE_DATETIME = 17
|
5986
|
+
|
5987
|
+
# `Range<Timestamp>` type.
|
5988
|
+
TYPE_RANGE_TIMESTAMP = 18
|
5456
5989
|
end
|
5457
5990
|
|
5458
5991
|
# The possible policy states for a column.
|
@@ -5465,6 +5998,36 @@ module Google
|
|
5465
5998
|
end
|
5466
5999
|
end
|
5467
6000
|
|
6001
|
+
# Request to get a project data profile.
|
6002
|
+
# @!attribute [rw] name
|
6003
|
+
# @return [::String]
|
6004
|
+
# Required. Resource name, for example
|
6005
|
+
# `organizations/12345/locations/us/projectDataProfiles/53234423`.
|
6006
|
+
class GetProjectDataProfileRequest
|
6007
|
+
include ::Google::Protobuf::MessageExts
|
6008
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6009
|
+
end
|
6010
|
+
|
6011
|
+
# Request to get a table data profile.
|
6012
|
+
# @!attribute [rw] name
|
6013
|
+
# @return [::String]
|
6014
|
+
# Required. Resource name, for example
|
6015
|
+
# `organizations/12345/locations/us/tableDataProfiles/53234423`.
|
6016
|
+
class GetTableDataProfileRequest
|
6017
|
+
include ::Google::Protobuf::MessageExts
|
6018
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6019
|
+
end
|
6020
|
+
|
6021
|
+
# Request to get a column data profile.
|
6022
|
+
# @!attribute [rw] name
|
6023
|
+
# @return [::String]
|
6024
|
+
# Required. Resource name, for example
|
6025
|
+
# `organizations/12345/locations/us/columnDataProfiles/53234423`.
|
6026
|
+
class GetColumnDataProfileRequest
|
6027
|
+
include ::Google::Protobuf::MessageExts
|
6028
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6029
|
+
end
|
6030
|
+
|
5468
6031
|
# A condition for determining whether a Pub/Sub should be triggered.
|
5469
6032
|
# @!attribute [rw] expressions
|
5470
6033
|
# @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubExpressions]
|
@@ -5538,10 +6101,240 @@ module Google
|
|
5538
6101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5539
6102
|
end
|
5540
6103
|
|
6104
|
+
# Request message for CreateConnection.
|
6105
|
+
# @!attribute [rw] parent
|
6106
|
+
# @return [::String]
|
6107
|
+
# Required. Parent resource name in the format:
|
6108
|
+
# `projects/{project}/locations/{location}`.
|
6109
|
+
# @!attribute [rw] connection
|
6110
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
6111
|
+
# Required. The connection resource.
|
6112
|
+
class CreateConnectionRequest
|
6113
|
+
include ::Google::Protobuf::MessageExts
|
6114
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6115
|
+
end
|
6116
|
+
|
6117
|
+
# Request message for GetConnection.
|
6118
|
+
# @!attribute [rw] name
|
6119
|
+
# @return [::String]
|
6120
|
+
# Required. Resource name in the format:
|
6121
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
6122
|
+
class GetConnectionRequest
|
6123
|
+
include ::Google::Protobuf::MessageExts
|
6124
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6125
|
+
end
|
6126
|
+
|
6127
|
+
# Request message for ListConnections.
|
6128
|
+
# @!attribute [rw] parent
|
6129
|
+
# @return [::String]
|
6130
|
+
# Required. Parent name, for example:
|
6131
|
+
# `projects/project-id/locations/global`.
|
6132
|
+
# @!attribute [rw] page_size
|
6133
|
+
# @return [::Integer]
|
6134
|
+
# Optional. Number of results per page, max 1000.
|
6135
|
+
# @!attribute [rw] page_token
|
6136
|
+
# @return [::String]
|
6137
|
+
# Optional. Page token from a previous page to return the next set of
|
6138
|
+
# results. If set, all other request fields must match the original request.
|
6139
|
+
# @!attribute [rw] filter
|
6140
|
+
# @return [::String]
|
6141
|
+
# Optional. * Supported fields/values
|
6142
|
+
# - `state` - MISSING|AVAILABLE|ERROR
|
6143
|
+
class ListConnectionsRequest
|
6144
|
+
include ::Google::Protobuf::MessageExts
|
6145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6146
|
+
end
|
6147
|
+
|
6148
|
+
# Request message for SearchConnections.
|
6149
|
+
# @!attribute [rw] parent
|
6150
|
+
# @return [::String]
|
6151
|
+
# Required. Parent name, typically an organization, without location.
|
6152
|
+
# For example: `organizations/12345678`.
|
6153
|
+
# @!attribute [rw] page_size
|
6154
|
+
# @return [::Integer]
|
6155
|
+
# Optional. Number of results per page, max 1000.
|
6156
|
+
# @!attribute [rw] page_token
|
6157
|
+
# @return [::String]
|
6158
|
+
# Optional. Page token from a previous page to return the next set of
|
6159
|
+
# results. If set, all other request fields must match the original request.
|
6160
|
+
# @!attribute [rw] filter
|
6161
|
+
# @return [::String]
|
6162
|
+
# Optional. * Supported fields/values
|
6163
|
+
# - `state` - MISSING|AVAILABLE|ERROR
|
6164
|
+
class SearchConnectionsRequest
|
6165
|
+
include ::Google::Protobuf::MessageExts
|
6166
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6167
|
+
end
|
6168
|
+
|
6169
|
+
# Response message for ListConnections.
|
6170
|
+
# @!attribute [rw] connections
|
6171
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::Connection>]
|
6172
|
+
# List of connections.
|
6173
|
+
# @!attribute [rw] next_page_token
|
6174
|
+
# @return [::String]
|
6175
|
+
# Token to retrieve the next page of results. An empty value means there are
|
6176
|
+
# no more results.
|
6177
|
+
class ListConnectionsResponse
|
6178
|
+
include ::Google::Protobuf::MessageExts
|
6179
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6180
|
+
end
|
6181
|
+
|
6182
|
+
# Response message for SearchConnections.
|
6183
|
+
# @!attribute [rw] connections
|
6184
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::Connection>]
|
6185
|
+
# List of connections that match the search query. Note that only a subset
|
6186
|
+
# of the fields will be populated, and only "name" is guaranteed to be set.
|
6187
|
+
# For full details of a Connection, call GetConnection with the name.
|
6188
|
+
# @!attribute [rw] next_page_token
|
6189
|
+
# @return [::String]
|
6190
|
+
# Token to retrieve the next page of results. An empty value means there are
|
6191
|
+
# no more results.
|
6192
|
+
class SearchConnectionsResponse
|
6193
|
+
include ::Google::Protobuf::MessageExts
|
6194
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6195
|
+
end
|
6196
|
+
|
6197
|
+
# Request message for UpdateConnection.
|
6198
|
+
# @!attribute [rw] name
|
6199
|
+
# @return [::String]
|
6200
|
+
# Required. Resource name in the format:
|
6201
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
6202
|
+
# @!attribute [rw] connection
|
6203
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
6204
|
+
# Required. The connection with new values for the relevant fields.
|
6205
|
+
# @!attribute [rw] update_mask
|
6206
|
+
# @return [::Google::Protobuf::FieldMask]
|
6207
|
+
# Optional. Mask to control which fields get updated.
|
6208
|
+
class UpdateConnectionRequest
|
6209
|
+
include ::Google::Protobuf::MessageExts
|
6210
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6211
|
+
end
|
6212
|
+
|
6213
|
+
# Request message for DeleteConnection.
|
6214
|
+
# @!attribute [rw] name
|
6215
|
+
# @return [::String]
|
6216
|
+
# Required. Resource name of the Connection to be deleted, in the format:
|
6217
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
6218
|
+
class DeleteConnectionRequest
|
6219
|
+
include ::Google::Protobuf::MessageExts
|
6220
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6221
|
+
end
|
6222
|
+
|
6223
|
+
# A data connection to allow DLP to profile data in locations that require
|
6224
|
+
# additional configuration.
|
6225
|
+
# @!attribute [r] name
|
6226
|
+
# @return [::String]
|
6227
|
+
# Output only. Name of the connection:
|
6228
|
+
# `projects/{project}/locations/{location}/connections/{name}`.
|
6229
|
+
# @!attribute [rw] state
|
6230
|
+
# @return [::Google::Cloud::Dlp::V2::ConnectionState]
|
6231
|
+
# Required. The connection's state in its lifecycle.
|
6232
|
+
# @!attribute [r] errors
|
6233
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::Error>]
|
6234
|
+
# Output only. Set if status == ERROR, to provide additional details. Will
|
6235
|
+
# store the last 10 errors sorted with the most recent first.
|
6236
|
+
# @!attribute [rw] cloud_sql
|
6237
|
+
# @return [::Google::Cloud::Dlp::V2::CloudSqlProperties]
|
6238
|
+
# Connect to a Cloud SQL instance.
|
6239
|
+
class Connection
|
6240
|
+
include ::Google::Protobuf::MessageExts
|
6241
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6242
|
+
end
|
6243
|
+
|
6244
|
+
# A credential consisting of a username and password, where the password is
|
6245
|
+
# stored in a Secret Manager resource.
|
6246
|
+
# Note: Secret Manager [charges
|
6247
|
+
# apply](https://cloud.google.com/secret-manager/pricing).
|
6248
|
+
# @!attribute [rw] username
|
6249
|
+
# @return [::String]
|
6250
|
+
# Required. The username.
|
6251
|
+
# @!attribute [rw] password_secret_version_name
|
6252
|
+
# @return [::String]
|
6253
|
+
# Required. The name of the Secret Manager resource that stores the password,
|
6254
|
+
# in the form `projects/project-id/secrets/secret-name/versions/version`.
|
6255
|
+
class SecretManagerCredential
|
6256
|
+
include ::Google::Protobuf::MessageExts
|
6257
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6258
|
+
end
|
6259
|
+
|
6260
|
+
# Use IAM auth to connect. This requires the Cloud SQL IAM feature to be
|
6261
|
+
# enabled on the instance, which is not the default for Cloud SQL.
|
6262
|
+
# See https://cloud.google.com/sql/docs/postgres/authentication and
|
6263
|
+
# https://cloud.google.com/sql/docs/mysql/authentication.
|
6264
|
+
class CloudSqlIamCredential
|
6265
|
+
include ::Google::Protobuf::MessageExts
|
6266
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6267
|
+
end
|
6268
|
+
|
6269
|
+
# Cloud SQL connection properties.
|
6270
|
+
# @!attribute [rw] connection_name
|
6271
|
+
# @return [::String]
|
6272
|
+
# Optional. Immutable. The Cloud SQL instance for which the connection is
|
6273
|
+
# defined. Only one connection per instance is allowed. This can only be set
|
6274
|
+
# at creation time, and cannot be updated.
|
6275
|
+
#
|
6276
|
+
# It is an error to use a connection_name from different project or region
|
6277
|
+
# than the one that holds the connection.
|
6278
|
+
# For example, a Connection resource for Cloud SQL connection_name
|
6279
|
+
# `project-id:us-central1:sql-instance`
|
6280
|
+
# must be created under the parent
|
6281
|
+
# `projects/project-id/locations/us-central1`
|
6282
|
+
# @!attribute [rw] username_password
|
6283
|
+
# @return [::Google::Cloud::Dlp::V2::SecretManagerCredential]
|
6284
|
+
# A username and password stored in Secret Manager.
|
6285
|
+
# @!attribute [rw] cloud_sql_iam
|
6286
|
+
# @return [::Google::Cloud::Dlp::V2::CloudSqlIamCredential]
|
6287
|
+
# Built-in IAM authentication (must be configured in Cloud SQL).
|
6288
|
+
# @!attribute [rw] max_connections
|
6289
|
+
# @return [::Integer]
|
6290
|
+
# Required. DLP will limit its connections to max_connections.
|
6291
|
+
# Must be 2 or greater.
|
6292
|
+
# @!attribute [rw] database_engine
|
6293
|
+
# @return [::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine]
|
6294
|
+
# Required. The database engine used by the Cloud SQL instance that this
|
6295
|
+
# connection configures.
|
6296
|
+
class CloudSqlProperties
|
6297
|
+
include ::Google::Protobuf::MessageExts
|
6298
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6299
|
+
|
6300
|
+
# Database engine of a Cloud SQL instance.
|
6301
|
+
# New values may be added over time.
|
6302
|
+
module DatabaseEngine
|
6303
|
+
# An engine that is not currently supported by SDP.
|
6304
|
+
DATABASE_ENGINE_UNKNOWN = 0
|
6305
|
+
|
6306
|
+
# Cloud SQL for MySQL instance.
|
6307
|
+
DATABASE_ENGINE_MYSQL = 1
|
6308
|
+
|
6309
|
+
# Cloud SQL for Postgres instance.
|
6310
|
+
DATABASE_ENGINE_POSTGRES = 2
|
6311
|
+
end
|
6312
|
+
end
|
6313
|
+
|
6314
|
+
# Request message for DeleteTableProfile.
|
6315
|
+
# @!attribute [rw] name
|
6316
|
+
# @return [::String]
|
6317
|
+
# Required. Resource name of the table data profile.
|
6318
|
+
class DeleteTableDataProfileRequest
|
6319
|
+
include ::Google::Protobuf::MessageExts
|
6320
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6321
|
+
end
|
6322
|
+
|
6323
|
+
# Message used to identify the type of resource being profiled.
|
6324
|
+
# @!attribute [r] data_source
|
6325
|
+
# @return [::String]
|
6326
|
+
# Output only. An identifying string to the type of resource being profiled.
|
6327
|
+
# Current values: google/bigquery/table, google/project
|
6328
|
+
class DataSourceType
|
6329
|
+
include ::Google::Protobuf::MessageExts
|
6330
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
6331
|
+
end
|
6332
|
+
|
5541
6333
|
# Enum of possible outcomes of transformations. SUCCESS if transformation and
|
5542
6334
|
# storing of transformation was successful, otherwise, reason for not
|
5543
6335
|
# transforming.
|
5544
6336
|
module TransformationResultStatusType
|
6337
|
+
# Unused.
|
5545
6338
|
STATE_TYPE_UNSPECIFIED = 0
|
5546
6339
|
|
5547
6340
|
# This will be set when a finding could not be transformed (i.e. outside user
|
@@ -5564,12 +6357,16 @@ module Google
|
|
5564
6357
|
|
5565
6358
|
# Describes functionality of a given container in its original format.
|
5566
6359
|
module TransformationContainerType
|
6360
|
+
# Unused.
|
5567
6361
|
TRANSFORM_UNKNOWN_CONTAINER = 0
|
5568
6362
|
|
6363
|
+
# Body of a file.
|
5569
6364
|
TRANSFORM_BODY = 1
|
5570
6365
|
|
6366
|
+
# Metadata for a file.
|
5571
6367
|
TRANSFORM_METADATA = 2
|
5572
6368
|
|
6369
|
+
# A table.
|
5573
6370
|
TRANSFORM_TABLE = 3
|
5574
6371
|
end
|
5575
6372
|
|
@@ -5818,8 +6615,8 @@ module Google
|
|
5818
6615
|
INVALID = 4
|
5819
6616
|
end
|
5820
6617
|
|
5821
|
-
# How broadly
|
5822
|
-
# A higher number means more restricted.
|
6618
|
+
# How broadly the data in the resource has been shared. New items may be added
|
6619
|
+
# over time. A higher number means more restricted.
|
5823
6620
|
module ResourceVisibility
|
5824
6621
|
# Unused.
|
5825
6622
|
RESOURCE_VISIBILITY_UNSPECIFIED = 0
|
@@ -5827,6 +6624,11 @@ module Google
|
|
5827
6624
|
# Visible to any user.
|
5828
6625
|
RESOURCE_VISIBILITY_PUBLIC = 10
|
5829
6626
|
|
6627
|
+
# May contain public items.
|
6628
|
+
# For example, if a GCS bucket has uniform bucket level access disabled, some
|
6629
|
+
# objects inside it may be public.
|
6630
|
+
RESOURCE_VISIBILITY_INCONCLUSIVE = 15
|
6631
|
+
|
5830
6632
|
# Visible only to specific users.
|
5831
6633
|
RESOURCE_VISIBILITY_RESTRICTED = 20
|
5832
6634
|
end
|
@@ -5855,6 +6657,7 @@ module Google
|
|
5855
6657
|
# Some null entries.
|
5856
6658
|
NULL_PERCENTAGE_LOW = 2
|
5857
6659
|
|
6660
|
+
# A few null entries.
|
5858
6661
|
NULL_PERCENTAGE_MEDIUM = 3
|
5859
6662
|
|
5860
6663
|
# A lot of null entries.
|
@@ -5879,6 +6682,29 @@ module Google
|
|
5879
6682
|
# High uniqueness, possibly a column of free text or unique identifiers.
|
5880
6683
|
UNIQUENESS_SCORE_HIGH = 3
|
5881
6684
|
end
|
6685
|
+
|
6686
|
+
# State of the connection.
|
6687
|
+
# New values may be added over time.
|
6688
|
+
module ConnectionState
|
6689
|
+
# Unused
|
6690
|
+
CONNECTION_STATE_UNSPECIFIED = 0
|
6691
|
+
|
6692
|
+
# DLP automatically created this connection during an initial scan, and it is
|
6693
|
+
# awaiting full configuration by a user.
|
6694
|
+
MISSING_CREDENTIALS = 1
|
6695
|
+
|
6696
|
+
# A configured connection that has not encountered any errors.
|
6697
|
+
AVAILABLE = 2
|
6698
|
+
|
6699
|
+
# A configured connection that encountered errors during its last use. It
|
6700
|
+
# will not be used again until it is set to AVAILABLE.
|
6701
|
+
#
|
6702
|
+
# If the resolution requires external action, then a request to set the
|
6703
|
+
# status to AVAILABLE will mark this connection for use. Otherwise, any
|
6704
|
+
# changes to the connection properties will automatically mark it as
|
6705
|
+
# AVAILABLE.
|
6706
|
+
ERROR = 3
|
6707
|
+
end
|
5882
6708
|
end
|
5883
6709
|
end
|
5884
6710
|
end
|