google-cloud-dlp-v2 0.22.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/lib/google/cloud/dlp/v2/dlp_service/client.rb +789 -51
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +19 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +740 -51
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +429 -0
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +29 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +18 -3
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +495 -13
- data/proto_docs/google/privacy/dlp/v2/storage.rb +11 -0
- metadata +2 -2
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1053,6 +1053,10 @@ module Google
|
|
1053
1053
|
# @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeStats>]
|
1054
1054
|
# Statistics of how many instances of each info type were found during
|
1055
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).
|
1056
1060
|
# @!attribute [rw] hybrid_stats
|
1057
1061
|
# @return [::Google::Cloud::Dlp::V2::HybridInspectStatistics]
|
1058
1062
|
# Statistics related to the processing of hybrid inspect.
|
@@ -1265,6 +1269,9 @@ module Google
|
|
1265
1269
|
# The infoType is typically used in Japan.
|
1266
1270
|
JAPAN = 20
|
1267
1271
|
|
1272
|
+
# The infoType is typically used in Kazakhstan.
|
1273
|
+
KAZAKHSTAN = 47
|
1274
|
+
|
1268
1275
|
# The infoType is typically used in Korea.
|
1269
1276
|
KOREA = 21
|
1270
1277
|
|
@@ -1292,6 +1299,9 @@ module Google
|
|
1292
1299
|
# The infoType is typically used in Portugal.
|
1293
1300
|
PORTUGAL = 28
|
1294
1301
|
|
1302
|
+
# The infoType is typically used in Russia.
|
1303
|
+
RUSSIA = 44
|
1304
|
+
|
1295
1305
|
# The infoType is typically used in Singapore.
|
1296
1306
|
SINGAPORE = 29
|
1297
1307
|
|
@@ -1316,6 +1326,9 @@ module Google
|
|
1316
1326
|
# The infoType is typically used in Turkey.
|
1317
1327
|
TURKEY = 35
|
1318
1328
|
|
1329
|
+
# The infoType is typically used in Ukraine.
|
1330
|
+
UKRAINE = 45
|
1331
|
+
|
1319
1332
|
# The infoType is typically used in the United Kingdom.
|
1320
1333
|
UNITED_KINGDOM = 36
|
1321
1334
|
|
@@ -1325,6 +1338,9 @@ module Google
|
|
1325
1338
|
# The infoType is typically used in Uruguay.
|
1326
1339
|
URUGUAY = 38
|
1327
1340
|
|
1341
|
+
# The infoType is typically used in Uzbekistan.
|
1342
|
+
UZBEKISTAN = 46
|
1343
|
+
|
1328
1344
|
# The infoType is typically used in Venezuela.
|
1329
1345
|
VENEZUELA = 39
|
1330
1346
|
|
@@ -3223,7 +3239,7 @@ module Google
|
|
3223
3239
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3224
3240
|
end
|
3225
3241
|
|
3226
|
-
# Contains a configuration to make
|
3242
|
+
# Contains a configuration to make api calls on a repeating basis.
|
3227
3243
|
# See
|
3228
3244
|
# https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers
|
3229
3245
|
# to learn more.
|
@@ -4008,8 +4024,14 @@ module Google
|
|
4008
4024
|
# @!attribute [rw] profile_table
|
4009
4025
|
# @return [::Google::Cloud::Dlp::V2::BigQueryTable]
|
4010
4026
|
# Store all table and column profiles in an existing table or a new table
|
4011
|
-
# in an existing dataset. Each re-generation will result in
|
4012
|
-
# 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.
|
4013
4035
|
class Export
|
4014
4036
|
include ::Google::Protobuf::MessageExts
|
4015
4037
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -4047,7 +4069,7 @@ module Google
|
|
4047
4069
|
# The full table data profile.
|
4048
4070
|
TABLE_PROFILE = 1
|
4049
4071
|
|
4050
|
-
# The
|
4072
|
+
# The name of the profiled resource.
|
4051
4073
|
RESOURCE_NAME = 2
|
4052
4074
|
end
|
4053
4075
|
end
|
@@ -4061,12 +4083,12 @@ module Google
|
|
4061
4083
|
NEW_PROFILE = 1
|
4062
4084
|
|
4063
4085
|
# Changed one of the following profile metrics:
|
4064
|
-
# *
|
4065
|
-
# *
|
4066
|
-
# *
|
4067
|
-
# *
|
4068
|
-
# *
|
4069
|
-
# *
|
4086
|
+
# * Data risk score
|
4087
|
+
# * Sensitivity score
|
4088
|
+
# * Resource visibility
|
4089
|
+
# * Encryption type
|
4090
|
+
# * Predicted infoTypes
|
4091
|
+
# * Other infoTypes
|
4070
4092
|
CHANGED_PROFILE = 2
|
4071
4093
|
|
4072
4094
|
# Table data risk score or sensitivity score increased.
|
@@ -4273,6 +4295,10 @@ module Google
|
|
4273
4295
|
# @return [::Google::Cloud::Dlp::V2::BigQueryDiscoveryTarget]
|
4274
4296
|
# BigQuery target for Discovery. The first target to match a table will be
|
4275
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.
|
4276
4302
|
class DiscoveryTarget
|
4277
4303
|
include ::Google::Protobuf::MessageExts
|
4278
4304
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -4420,6 +4446,203 @@ module Google
|
|
4420
4446
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4421
4447
|
end
|
4422
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
|
+
|
4423
4646
|
# The location to begin a discovery scan. Denotes an organization ID or folder
|
4424
4647
|
# ID within an organization.
|
4425
4648
|
# @!attribute [rw] organization_id
|
@@ -5167,7 +5390,7 @@ module Google
|
|
5167
5390
|
#
|
5168
5391
|
# Supported fields are:
|
5169
5392
|
#
|
5170
|
-
# - `project_id`:
|
5393
|
+
# - `project_id`: Google Cloud project ID
|
5171
5394
|
# - `sensitivity_level`: How sensitive the data in a project is, at most.
|
5172
5395
|
# - `data_risk_level`: How much risk is associated with this data.
|
5173
5396
|
# - `profile_last_generated`: When the profile was last updated in epoch
|
@@ -5239,7 +5462,7 @@ module Google
|
|
5239
5462
|
#
|
5240
5463
|
# Supported fields are:
|
5241
5464
|
#
|
5242
|
-
# - `project_id`: The
|
5465
|
+
# - `project_id`: The Google Cloud project ID.
|
5243
5466
|
# - `dataset_id`: The ID of a BigQuery dataset.
|
5244
5467
|
# - `table_id`: The ID of a BigQuery table.
|
5245
5468
|
# - `sensitivity_level`: How sensitive the data in a table is, at most.
|
@@ -5260,7 +5483,7 @@ module Google
|
|
5260
5483
|
# sequence of restrictions implicitly uses `AND`.
|
5261
5484
|
# * A restriction has the form of `{field} {operator} {value}`.
|
5262
5485
|
# * Supported fields/values:
|
5263
|
-
# - `project_id` - The
|
5486
|
+
# - `project_id` - The Google Cloud project ID.
|
5264
5487
|
# - `dataset_id` - The BigQuery dataset ID.
|
5265
5488
|
# - `table_id` - The ID of the BigQuery table.
|
5266
5489
|
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
@@ -5751,6 +5974,18 @@ module Google
|
|
5751
5974
|
|
5752
5975
|
# Json type.
|
5753
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
|
5754
5989
|
end
|
5755
5990
|
|
5756
5991
|
# The possible policy states for a column.
|
@@ -5866,6 +6101,225 @@ module Google
|
|
5866
6101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
5867
6102
|
end
|
5868
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
|
+
|
5869
6323
|
# Message used to identify the type of resource being profiled.
|
5870
6324
|
# @!attribute [r] data_source
|
5871
6325
|
# @return [::String]
|
@@ -6170,6 +6624,11 @@ module Google
|
|
6170
6624
|
# Visible to any user.
|
6171
6625
|
RESOURCE_VISIBILITY_PUBLIC = 10
|
6172
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
|
+
|
6173
6632
|
# Visible only to specific users.
|
6174
6633
|
RESOURCE_VISIBILITY_RESTRICTED = 20
|
6175
6634
|
end
|
@@ -6223,6 +6682,29 @@ module Google
|
|
6223
6682
|
# High uniqueness, possibly a column of free text or unique identifiers.
|
6224
6683
|
UNIQUENESS_SCORE_HIGH = 3
|
6225
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
|
6226
6708
|
end
|
6227
6709
|
end
|
6228
6710
|
end
|
@@ -652,6 +652,17 @@ module Google
|
|
652
652
|
# since the last time the JobTrigger executed. This will be based on the
|
653
653
|
# time of the execution of the last run of the JobTrigger or the timespan
|
654
654
|
# end_time used in the last run of the JobTrigger.
|
655
|
+
#
|
656
|
+
# **For BigQuery**
|
657
|
+
#
|
658
|
+
# Inspect jobs triggered by automatic population will scan data that is at
|
659
|
+
# least three hours old when the job starts. This is because streaming
|
660
|
+
# buffer rows are not read during inspection and reading up to the current
|
661
|
+
# timestamp will result in skipped rows.
|
662
|
+
#
|
663
|
+
# See the [known
|
664
|
+
# issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data)
|
665
|
+
# related to this operation.
|
655
666
|
class TimespanConfig
|
656
667
|
include ::Google::Protobuf::MessageExts
|
657
668
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dlp-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|