google-apis-dlp_v2 0.61.0 → 0.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/dlp_v2/classes.rb +537 -9
- data/lib/google/apis/dlp_v2/gem_version.rb +2 -2
- data/lib/google/apis/dlp_v2/representations.rb +275 -0
- data/lib/google/apis/dlp_v2/service.rb +314 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eed30afe76b70f67f90808760cdfc94bd9dabc4f0e76559d6bed9fa34e456a0
|
4
|
+
data.tar.gz: e014393dd6f500ace9076afd10602ca3df6175f50a90e7619be7105a8fff16c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a1ddf1947a842a0cb8fcdf63bfeb984b07a7d4b6f8194173ba8f6a88f460c0411cec5ebcbcf6fa75d20d76b6984f3e65440274dd83a379ec1763c5aa3ff4476
|
7
|
+
data.tar.gz: '028f609598b289082905933e27ac14b44d0b81dbcaae3c0aace77bf856ff03b4c11d000d14e1248193882d7298dc2c9c64692019ad907ca5d97cbd64e0fcdcd0'
|
data/CHANGELOG.md
CHANGED
@@ -175,6 +175,19 @@ module Google
|
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
|
+
# Match database resources not covered by any other filter.
|
179
|
+
class GooglePrivacyDlpV2AllOtherDatabaseResources
|
180
|
+
include Google::Apis::Core::Hashable
|
181
|
+
|
182
|
+
def initialize(**args)
|
183
|
+
update!(**args)
|
184
|
+
end
|
185
|
+
|
186
|
+
# Update properties of this object
|
187
|
+
def update!(**args)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
178
191
|
# Apply to all text.
|
179
192
|
class GooglePrivacyDlpV2AllText
|
180
193
|
include Google::Apis::Core::Hashable
|
@@ -917,6 +930,118 @@ module Google
|
|
917
930
|
end
|
918
931
|
end
|
919
932
|
|
933
|
+
# Target used to match against for discovery with Cloud SQL tables.
|
934
|
+
class GooglePrivacyDlpV2CloudSqlDiscoveryTarget
|
935
|
+
include Google::Apis::Core::Hashable
|
936
|
+
|
937
|
+
# Requirements that must be true before a table is profiled for the first time.
|
938
|
+
# Corresponds to the JSON property `conditions`
|
939
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryCloudSqlConditions]
|
940
|
+
attr_accessor :conditions
|
941
|
+
|
942
|
+
# Do not profile the tables.
|
943
|
+
# Corresponds to the JSON property `disabled`
|
944
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Disabled]
|
945
|
+
attr_accessor :disabled
|
946
|
+
|
947
|
+
# Determines what tables will have profiles generated within an organization or
|
948
|
+
# project. Includes the ability to filter by regular expression patterns on
|
949
|
+
# project ID, location, instance, database, and database resource name.
|
950
|
+
# Corresponds to the JSON property `filter`
|
951
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryCloudSqlFilter]
|
952
|
+
attr_accessor :filter
|
953
|
+
|
954
|
+
# How often existing tables should have their profiles refreshed. New tables are
|
955
|
+
# scanned as quickly as possible depending on system capacity.
|
956
|
+
# Corresponds to the JSON property `generationCadence`
|
957
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence]
|
958
|
+
attr_accessor :generation_cadence
|
959
|
+
|
960
|
+
def initialize(**args)
|
961
|
+
update!(**args)
|
962
|
+
end
|
963
|
+
|
964
|
+
# Update properties of this object
|
965
|
+
def update!(**args)
|
966
|
+
@conditions = args[:conditions] if args.key?(:conditions)
|
967
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
968
|
+
@filter = args[:filter] if args.key?(:filter)
|
969
|
+
@generation_cadence = args[:generation_cadence] if args.key?(:generation_cadence)
|
970
|
+
end
|
971
|
+
end
|
972
|
+
|
973
|
+
# Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled
|
974
|
+
# on the instance, which is not the default for Cloud SQL. See https://cloud.
|
975
|
+
# google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/
|
976
|
+
# docs/mysql/authentication.
|
977
|
+
class GooglePrivacyDlpV2CloudSqlIamCredential
|
978
|
+
include Google::Apis::Core::Hashable
|
979
|
+
|
980
|
+
def initialize(**args)
|
981
|
+
update!(**args)
|
982
|
+
end
|
983
|
+
|
984
|
+
# Update properties of this object
|
985
|
+
def update!(**args)
|
986
|
+
end
|
987
|
+
end
|
988
|
+
|
989
|
+
# Cloud SQL connection properties.
|
990
|
+
class GooglePrivacyDlpV2CloudSqlProperties
|
991
|
+
include Google::Apis::Core::Hashable
|
992
|
+
|
993
|
+
# Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled
|
994
|
+
# on the instance, which is not the default for Cloud SQL. See https://cloud.
|
995
|
+
# google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/
|
996
|
+
# docs/mysql/authentication.
|
997
|
+
# Corresponds to the JSON property `cloudSqlIam`
|
998
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CloudSqlIamCredential]
|
999
|
+
attr_accessor :cloud_sql_iam
|
1000
|
+
|
1001
|
+
# Optional. Immutable. The Cloud SQL instance for which the connection is
|
1002
|
+
# defined. Only one connection per instance is allowed. This can only be set at
|
1003
|
+
# creation time, and cannot be updated. It is an error to use a connection_name
|
1004
|
+
# from different project or region than the one that holds the connection. For
|
1005
|
+
# example, a Connection resource for Cloud SQL connection_name "project-id:us-
|
1006
|
+
# central1:sql-instance" must be created under the parent "projects/project-id/
|
1007
|
+
# locations/us-central1"
|
1008
|
+
# Corresponds to the JSON property `connectionName`
|
1009
|
+
# @return [String]
|
1010
|
+
attr_accessor :connection_name
|
1011
|
+
|
1012
|
+
# Required. The database engine used by the Cloud SQL instance that this
|
1013
|
+
# connection configures.
|
1014
|
+
# Corresponds to the JSON property `databaseEngine`
|
1015
|
+
# @return [String]
|
1016
|
+
attr_accessor :database_engine
|
1017
|
+
|
1018
|
+
# Required. DLP will limit its connections to max_connections. Must be 2 or
|
1019
|
+
# greater.
|
1020
|
+
# Corresponds to the JSON property `maxConnections`
|
1021
|
+
# @return [Fixnum]
|
1022
|
+
attr_accessor :max_connections
|
1023
|
+
|
1024
|
+
# A credential consisting of a username and password, where the password is
|
1025
|
+
# stored in a Secret Manager resource. Note: Secret Manager [charges apply](
|
1026
|
+
# https://cloud.google.com/secret-manager/pricing).
|
1027
|
+
# Corresponds to the JSON property `usernamePassword`
|
1028
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SecretManagerCredential]
|
1029
|
+
attr_accessor :username_password
|
1030
|
+
|
1031
|
+
def initialize(**args)
|
1032
|
+
update!(**args)
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
# Update properties of this object
|
1036
|
+
def update!(**args)
|
1037
|
+
@cloud_sql_iam = args[:cloud_sql_iam] if args.key?(:cloud_sql_iam)
|
1038
|
+
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
1039
|
+
@database_engine = args[:database_engine] if args.key?(:database_engine)
|
1040
|
+
@max_connections = args[:max_connections] if args.key?(:max_connections)
|
1041
|
+
@username_password = args[:username_password] if args.key?(:username_password)
|
1042
|
+
end
|
1043
|
+
end
|
1044
|
+
|
920
1045
|
# Message representing a set of files in Cloud Storage.
|
921
1046
|
class GooglePrivacyDlpV2CloudStorageFileSet
|
922
1047
|
include Google::Apis::Core::Hashable
|
@@ -1318,6 +1443,46 @@ module Google
|
|
1318
1443
|
end
|
1319
1444
|
end
|
1320
1445
|
|
1446
|
+
# A data connection to allow DLP to profile data in locations that require
|
1447
|
+
# additional configuration.
|
1448
|
+
class GooglePrivacyDlpV2Connection
|
1449
|
+
include Google::Apis::Core::Hashable
|
1450
|
+
|
1451
|
+
# Cloud SQL connection properties.
|
1452
|
+
# Corresponds to the JSON property `cloudSql`
|
1453
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CloudSqlProperties]
|
1454
|
+
attr_accessor :cloud_sql
|
1455
|
+
|
1456
|
+
# Output only. Set if status == ERROR, to provide additional details. Will store
|
1457
|
+
# the last 10 errors sorted with the most recent first.
|
1458
|
+
# Corresponds to the JSON property `errors`
|
1459
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Error>]
|
1460
|
+
attr_accessor :errors
|
1461
|
+
|
1462
|
+
# Output only. Name of the connection: projects/`project`/locations/`location`/
|
1463
|
+
# connections/`name`.
|
1464
|
+
# Corresponds to the JSON property `name`
|
1465
|
+
# @return [String]
|
1466
|
+
attr_accessor :name
|
1467
|
+
|
1468
|
+
# Required. The connection's state in its lifecycle.
|
1469
|
+
# Corresponds to the JSON property `state`
|
1470
|
+
# @return [String]
|
1471
|
+
attr_accessor :state
|
1472
|
+
|
1473
|
+
def initialize(**args)
|
1474
|
+
update!(**args)
|
1475
|
+
end
|
1476
|
+
|
1477
|
+
# Update properties of this object
|
1478
|
+
def update!(**args)
|
1479
|
+
@cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql)
|
1480
|
+
@errors = args[:errors] if args.key?(:errors)
|
1481
|
+
@name = args[:name] if args.key?(:name)
|
1482
|
+
@state = args[:state] if args.key?(:state)
|
1483
|
+
end
|
1484
|
+
end
|
1485
|
+
|
1321
1486
|
# Represents a container that may contain DLP findings. Examples of a container
|
1322
1487
|
# include a file, table, or database record.
|
1323
1488
|
class GooglePrivacyDlpV2Container
|
@@ -1481,6 +1646,26 @@ module Google
|
|
1481
1646
|
end
|
1482
1647
|
end
|
1483
1648
|
|
1649
|
+
# Request message for CreateConnection.
|
1650
|
+
class GooglePrivacyDlpV2CreateConnectionRequest
|
1651
|
+
include Google::Apis::Core::Hashable
|
1652
|
+
|
1653
|
+
# A data connection to allow DLP to profile data in locations that require
|
1654
|
+
# additional configuration.
|
1655
|
+
# Corresponds to the JSON property `connection`
|
1656
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Connection]
|
1657
|
+
attr_accessor :connection
|
1658
|
+
|
1659
|
+
def initialize(**args)
|
1660
|
+
update!(**args)
|
1661
|
+
end
|
1662
|
+
|
1663
|
+
# Update properties of this object
|
1664
|
+
def update!(**args)
|
1665
|
+
@connection = args[:connection] if args.key?(:connection)
|
1666
|
+
end
|
1667
|
+
end
|
1668
|
+
|
1484
1669
|
# Request message for CreateDeidentifyTemplate.
|
1485
1670
|
class GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
|
1486
1671
|
include Google::Apis::Core::Hashable
|
@@ -1631,9 +1816,9 @@ module Google
|
|
1631
1816
|
class GooglePrivacyDlpV2CreateJobTriggerRequest
|
1632
1817
|
include Google::Apis::Core::Hashable
|
1633
1818
|
|
1634
|
-
# Contains a configuration to make
|
1635
|
-
#
|
1636
|
-
#
|
1819
|
+
# Contains a configuration to make api calls on a repeating basis. See https://
|
1820
|
+
# cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn
|
1821
|
+
# more.
|
1637
1822
|
# Corresponds to the JSON property `jobTrigger`
|
1638
1823
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
1639
1824
|
attr_accessor :job_trigger
|
@@ -2239,6 +2424,119 @@ module Google
|
|
2239
2424
|
end
|
2240
2425
|
end
|
2241
2426
|
|
2427
|
+
# Match database resources using regex filters. Examples of database resources
|
2428
|
+
# are tables, views, and stored procedures.
|
2429
|
+
class GooglePrivacyDlpV2DatabaseResourceCollection
|
2430
|
+
include Google::Apis::Core::Hashable
|
2431
|
+
|
2432
|
+
# A collection of regular expressions to determine what database resources to
|
2433
|
+
# match against.
|
2434
|
+
# Corresponds to the JSON property `includeRegexes`
|
2435
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DatabaseResourceRegexes]
|
2436
|
+
attr_accessor :include_regexes
|
2437
|
+
|
2438
|
+
def initialize(**args)
|
2439
|
+
update!(**args)
|
2440
|
+
end
|
2441
|
+
|
2442
|
+
# Update properties of this object
|
2443
|
+
def update!(**args)
|
2444
|
+
@include_regexes = args[:include_regexes] if args.key?(:include_regexes)
|
2445
|
+
end
|
2446
|
+
end
|
2447
|
+
|
2448
|
+
# Identifies a single database resource, like a table within a database.
|
2449
|
+
class GooglePrivacyDlpV2DatabaseResourceReference
|
2450
|
+
include Google::Apis::Core::Hashable
|
2451
|
+
|
2452
|
+
# Required. The instance where this resource is located. For example: Cloud SQL'
|
2453
|
+
# s instance id.
|
2454
|
+
# Corresponds to the JSON property `instance`
|
2455
|
+
# @return [String]
|
2456
|
+
attr_accessor :instance
|
2457
|
+
|
2458
|
+
# Required. If within a project-level config, then this must match the config's
|
2459
|
+
# project id.
|
2460
|
+
# Corresponds to the JSON property `projectId`
|
2461
|
+
# @return [String]
|
2462
|
+
attr_accessor :project_id
|
2463
|
+
|
2464
|
+
def initialize(**args)
|
2465
|
+
update!(**args)
|
2466
|
+
end
|
2467
|
+
|
2468
|
+
# Update properties of this object
|
2469
|
+
def update!(**args)
|
2470
|
+
@instance = args[:instance] if args.key?(:instance)
|
2471
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
2472
|
+
end
|
2473
|
+
end
|
2474
|
+
|
2475
|
+
# A pattern to match against one or more database resources. At least one
|
2476
|
+
# pattern must be specified. Regular expressions use RE2 [syntax](https://github.
|
2477
|
+
# com/google/re2/wiki/Syntax); a guide can be found under the google/re2
|
2478
|
+
# repository on GitHub.
|
2479
|
+
class GooglePrivacyDlpV2DatabaseResourceRegex
|
2480
|
+
include Google::Apis::Core::Hashable
|
2481
|
+
|
2482
|
+
# Regex to test the database name against. If empty, all databases match.
|
2483
|
+
# Corresponds to the JSON property `databaseRegex`
|
2484
|
+
# @return [String]
|
2485
|
+
attr_accessor :database_regex
|
2486
|
+
|
2487
|
+
# Regex to test the database resource's name against. An example of a database
|
2488
|
+
# resource name is a table's name. Other database resource names like view names
|
2489
|
+
# could be included in the future. If empty, all database resources match.
|
2490
|
+
# Corresponds to the JSON property `databaseResourceNameRegex`
|
2491
|
+
# @return [String]
|
2492
|
+
attr_accessor :database_resource_name_regex
|
2493
|
+
|
2494
|
+
# Regex to test the instance name against. If empty, all instances match.
|
2495
|
+
# Corresponds to the JSON property `instanceRegex`
|
2496
|
+
# @return [String]
|
2497
|
+
attr_accessor :instance_regex
|
2498
|
+
|
2499
|
+
# For organizations, if unset, will match all projects. Has no effect for Data
|
2500
|
+
# Profile configurations created within a project.
|
2501
|
+
# Corresponds to the JSON property `projectIdRegex`
|
2502
|
+
# @return [String]
|
2503
|
+
attr_accessor :project_id_regex
|
2504
|
+
|
2505
|
+
def initialize(**args)
|
2506
|
+
update!(**args)
|
2507
|
+
end
|
2508
|
+
|
2509
|
+
# Update properties of this object
|
2510
|
+
def update!(**args)
|
2511
|
+
@database_regex = args[:database_regex] if args.key?(:database_regex)
|
2512
|
+
@database_resource_name_regex = args[:database_resource_name_regex] if args.key?(:database_resource_name_regex)
|
2513
|
+
@instance_regex = args[:instance_regex] if args.key?(:instance_regex)
|
2514
|
+
@project_id_regex = args[:project_id_regex] if args.key?(:project_id_regex)
|
2515
|
+
end
|
2516
|
+
end
|
2517
|
+
|
2518
|
+
# A collection of regular expressions to determine what database resources to
|
2519
|
+
# match against.
|
2520
|
+
class GooglePrivacyDlpV2DatabaseResourceRegexes
|
2521
|
+
include Google::Apis::Core::Hashable
|
2522
|
+
|
2523
|
+
# A group of regular expression patterns to match against one or more database
|
2524
|
+
# resources. Maximum of 100 entries. The sum of all regular expression's length
|
2525
|
+
# can't exceed 10 KiB.
|
2526
|
+
# Corresponds to the JSON property `patterns`
|
2527
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2DatabaseResourceRegex>]
|
2528
|
+
attr_accessor :patterns
|
2529
|
+
|
2530
|
+
def initialize(**args)
|
2531
|
+
update!(**args)
|
2532
|
+
end
|
2533
|
+
|
2534
|
+
# Update properties of this object
|
2535
|
+
def update!(**args)
|
2536
|
+
@patterns = args[:patterns] if args.key?(:patterns)
|
2537
|
+
end
|
2538
|
+
end
|
2539
|
+
|
2242
2540
|
# Record key for a finding in Cloud Datastore.
|
2243
2541
|
class GooglePrivacyDlpV2DatastoreKey
|
2244
2542
|
include Google::Apis::Core::Hashable
|
@@ -2964,6 +3262,96 @@ module Google
|
|
2964
3262
|
end
|
2965
3263
|
end
|
2966
3264
|
|
3265
|
+
# Requirements that must be true before a table is profiled for the first time.
|
3266
|
+
class GooglePrivacyDlpV2DiscoveryCloudSqlConditions
|
3267
|
+
include Google::Apis::Core::Hashable
|
3268
|
+
|
3269
|
+
# Optional. Database engines that should be profiled. Optional. Defaults to
|
3270
|
+
# ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
|
3271
|
+
# Corresponds to the JSON property `databaseEngines`
|
3272
|
+
# @return [Array<String>]
|
3273
|
+
attr_accessor :database_engines
|
3274
|
+
|
3275
|
+
# Data profiles will only be generated for the database resource types specified
|
3276
|
+
# in this field. If not specified, defaults to [
|
3277
|
+
# DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
|
3278
|
+
# Corresponds to the JSON property `types`
|
3279
|
+
# @return [Array<String>]
|
3280
|
+
attr_accessor :types
|
3281
|
+
|
3282
|
+
def initialize(**args)
|
3283
|
+
update!(**args)
|
3284
|
+
end
|
3285
|
+
|
3286
|
+
# Update properties of this object
|
3287
|
+
def update!(**args)
|
3288
|
+
@database_engines = args[:database_engines] if args.key?(:database_engines)
|
3289
|
+
@types = args[:types] if args.key?(:types)
|
3290
|
+
end
|
3291
|
+
end
|
3292
|
+
|
3293
|
+
# Determines what tables will have profiles generated within an organization or
|
3294
|
+
# project. Includes the ability to filter by regular expression patterns on
|
3295
|
+
# project ID, location, instance, database, and database resource name.
|
3296
|
+
class GooglePrivacyDlpV2DiscoveryCloudSqlFilter
|
3297
|
+
include Google::Apis::Core::Hashable
|
3298
|
+
|
3299
|
+
# Match database resources using regex filters. Examples of database resources
|
3300
|
+
# are tables, views, and stored procedures.
|
3301
|
+
# Corresponds to the JSON property `collection`
|
3302
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DatabaseResourceCollection]
|
3303
|
+
attr_accessor :collection
|
3304
|
+
|
3305
|
+
# Identifies a single database resource, like a table within a database.
|
3306
|
+
# Corresponds to the JSON property `databaseResourceReference`
|
3307
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DatabaseResourceReference]
|
3308
|
+
attr_accessor :database_resource_reference
|
3309
|
+
|
3310
|
+
# Match database resources not covered by any other filter.
|
3311
|
+
# Corresponds to the JSON property `others`
|
3312
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2AllOtherDatabaseResources]
|
3313
|
+
attr_accessor :others
|
3314
|
+
|
3315
|
+
def initialize(**args)
|
3316
|
+
update!(**args)
|
3317
|
+
end
|
3318
|
+
|
3319
|
+
# Update properties of this object
|
3320
|
+
def update!(**args)
|
3321
|
+
@collection = args[:collection] if args.key?(:collection)
|
3322
|
+
@database_resource_reference = args[:database_resource_reference] if args.key?(:database_resource_reference)
|
3323
|
+
@others = args[:others] if args.key?(:others)
|
3324
|
+
end
|
3325
|
+
end
|
3326
|
+
|
3327
|
+
# How often existing tables should have their profiles refreshed. New tables are
|
3328
|
+
# scanned as quickly as possible depending on system capacity.
|
3329
|
+
class GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence
|
3330
|
+
include Google::Apis::Core::Hashable
|
3331
|
+
|
3332
|
+
# Data changes (non-schema changes) in Cloud SQL tables can't trigger
|
3333
|
+
# reprofiling. If you set this field, profiles are refreshed at this frequency
|
3334
|
+
# regardless of whether the underlying tables have changes. Defaults to never.
|
3335
|
+
# Corresponds to the JSON property `refreshFrequency`
|
3336
|
+
# @return [String]
|
3337
|
+
attr_accessor :refresh_frequency
|
3338
|
+
|
3339
|
+
# How frequency to modify the profile when the table's schema is modified.
|
3340
|
+
# Corresponds to the JSON property `schemaModifiedCadence`
|
3341
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SchemaModifiedCadence]
|
3342
|
+
attr_accessor :schema_modified_cadence
|
3343
|
+
|
3344
|
+
def initialize(**args)
|
3345
|
+
update!(**args)
|
3346
|
+
end
|
3347
|
+
|
3348
|
+
# Update properties of this object
|
3349
|
+
def update!(**args)
|
3350
|
+
@refresh_frequency = args[:refresh_frequency] if args.key?(:refresh_frequency)
|
3351
|
+
@schema_modified_cadence = args[:schema_modified_cadence] if args.key?(:schema_modified_cadence)
|
3352
|
+
end
|
3353
|
+
end
|
3354
|
+
|
2967
3355
|
# Configuration for discovery to scan resources for profile generation. Only one
|
2968
3356
|
# discovery configuration may exist per organization, folder, or project. The
|
2969
3357
|
# generated data profiles are retained according to the [data retention policy] (
|
@@ -3177,6 +3565,11 @@ module Google
|
|
3177
3565
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryDiscoveryTarget]
|
3178
3566
|
attr_accessor :big_query_target
|
3179
3567
|
|
3568
|
+
# Target used to match against for discovery with Cloud SQL tables.
|
3569
|
+
# Corresponds to the JSON property `cloudSqlTarget`
|
3570
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CloudSqlDiscoveryTarget]
|
3571
|
+
attr_accessor :cloud_sql_target
|
3572
|
+
|
3180
3573
|
def initialize(**args)
|
3181
3574
|
update!(**args)
|
3182
3575
|
end
|
@@ -3184,6 +3577,7 @@ module Google
|
|
3184
3577
|
# Update properties of this object
|
3185
3578
|
def update!(**args)
|
3186
3579
|
@big_query_target = args[:big_query_target] if args.key?(:big_query_target)
|
3580
|
+
@cloud_sql_target = args[:cloud_sql_target] if args.key?(:cloud_sql_target)
|
3187
3581
|
end
|
3188
3582
|
end
|
3189
3583
|
|
@@ -4843,9 +5237,9 @@ module Google
|
|
4843
5237
|
end
|
4844
5238
|
end
|
4845
5239
|
|
4846
|
-
# Contains a configuration to make
|
4847
|
-
#
|
4848
|
-
#
|
5240
|
+
# Contains a configuration to make api calls on a repeating basis. See https://
|
5241
|
+
# cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn
|
5242
|
+
# more.
|
4849
5243
|
class GooglePrivacyDlpV2JobTrigger
|
4850
5244
|
include Google::Apis::Core::Hashable
|
4851
5245
|
|
@@ -5531,6 +5925,32 @@ module Google
|
|
5531
5925
|
end
|
5532
5926
|
end
|
5533
5927
|
|
5928
|
+
# Response message for ListConnections.
|
5929
|
+
class GooglePrivacyDlpV2ListConnectionsResponse
|
5930
|
+
include Google::Apis::Core::Hashable
|
5931
|
+
|
5932
|
+
# List of connections.
|
5933
|
+
# Corresponds to the JSON property `connections`
|
5934
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Connection>]
|
5935
|
+
attr_accessor :connections
|
5936
|
+
|
5937
|
+
# Token to retrieve the next page of results. An empty value means there are no
|
5938
|
+
# more results.
|
5939
|
+
# Corresponds to the JSON property `nextPageToken`
|
5940
|
+
# @return [String]
|
5941
|
+
attr_accessor :next_page_token
|
5942
|
+
|
5943
|
+
def initialize(**args)
|
5944
|
+
update!(**args)
|
5945
|
+
end
|
5946
|
+
|
5947
|
+
# Update properties of this object
|
5948
|
+
def update!(**args)
|
5949
|
+
@connections = args[:connections] if args.key?(:connections)
|
5950
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
5951
|
+
end
|
5952
|
+
end
|
5953
|
+
|
5534
5954
|
# Response message for ListDeidentifyTemplates.
|
5535
5955
|
class GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
5536
5956
|
include Google::Apis::Core::Hashable
|
@@ -7338,6 +7758,88 @@ module Google
|
|
7338
7758
|
end
|
7339
7759
|
end
|
7340
7760
|
|
7761
|
+
# How frequency to modify the profile when the table's schema is modified.
|
7762
|
+
class GooglePrivacyDlpV2SchemaModifiedCadence
|
7763
|
+
include Google::Apis::Core::Hashable
|
7764
|
+
|
7765
|
+
# Frequency to regenerate data profiles when the schema is modified. Defaults to
|
7766
|
+
# monthly.
|
7767
|
+
# Corresponds to the JSON property `frequency`
|
7768
|
+
# @return [String]
|
7769
|
+
attr_accessor :frequency
|
7770
|
+
|
7771
|
+
# The types of schema modifications to consider. Defaults to NEW_COLUMNS.
|
7772
|
+
# Corresponds to the JSON property `types`
|
7773
|
+
# @return [Array<String>]
|
7774
|
+
attr_accessor :types
|
7775
|
+
|
7776
|
+
def initialize(**args)
|
7777
|
+
update!(**args)
|
7778
|
+
end
|
7779
|
+
|
7780
|
+
# Update properties of this object
|
7781
|
+
def update!(**args)
|
7782
|
+
@frequency = args[:frequency] if args.key?(:frequency)
|
7783
|
+
@types = args[:types] if args.key?(:types)
|
7784
|
+
end
|
7785
|
+
end
|
7786
|
+
|
7787
|
+
# Response message for SearchConnections.
|
7788
|
+
class GooglePrivacyDlpV2SearchConnectionsResponse
|
7789
|
+
include Google::Apis::Core::Hashable
|
7790
|
+
|
7791
|
+
# List of connections that match the search query. Note that only a subset of
|
7792
|
+
# the fields will be populated, and only "name" is guaranteed to be set. For
|
7793
|
+
# full details of a Connection, call GetConnection with the name.
|
7794
|
+
# Corresponds to the JSON property `connections`
|
7795
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2Connection>]
|
7796
|
+
attr_accessor :connections
|
7797
|
+
|
7798
|
+
# Token to retrieve the next page of results. An empty value means there are no
|
7799
|
+
# more results.
|
7800
|
+
# Corresponds to the JSON property `nextPageToken`
|
7801
|
+
# @return [String]
|
7802
|
+
attr_accessor :next_page_token
|
7803
|
+
|
7804
|
+
def initialize(**args)
|
7805
|
+
update!(**args)
|
7806
|
+
end
|
7807
|
+
|
7808
|
+
# Update properties of this object
|
7809
|
+
def update!(**args)
|
7810
|
+
@connections = args[:connections] if args.key?(:connections)
|
7811
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
7812
|
+
end
|
7813
|
+
end
|
7814
|
+
|
7815
|
+
# A credential consisting of a username and password, where the password is
|
7816
|
+
# stored in a Secret Manager resource. Note: Secret Manager [charges apply](
|
7817
|
+
# https://cloud.google.com/secret-manager/pricing).
|
7818
|
+
class GooglePrivacyDlpV2SecretManagerCredential
|
7819
|
+
include Google::Apis::Core::Hashable
|
7820
|
+
|
7821
|
+
# Required. The name of the Secret Manager resource that stores the password, in
|
7822
|
+
# the form "projects/project-id/secrets/secret-name/versions/version".
|
7823
|
+
# Corresponds to the JSON property `passwordSecretVersionName`
|
7824
|
+
# @return [String]
|
7825
|
+
attr_accessor :password_secret_version_name
|
7826
|
+
|
7827
|
+
# Required. The username.
|
7828
|
+
# Corresponds to the JSON property `username`
|
7829
|
+
# @return [String]
|
7830
|
+
attr_accessor :username
|
7831
|
+
|
7832
|
+
def initialize(**args)
|
7833
|
+
update!(**args)
|
7834
|
+
end
|
7835
|
+
|
7836
|
+
# Update properties of this object
|
7837
|
+
def update!(**args)
|
7838
|
+
@password_secret_version_name = args[:password_secret_version_name] if args.key?(:password_secret_version_name)
|
7839
|
+
@username = args[:username] if args.key?(:username)
|
7840
|
+
end
|
7841
|
+
end
|
7842
|
+
|
7341
7843
|
# Apply transformation to the selected info_types.
|
7342
7844
|
class GooglePrivacyDlpV2SelectedInfoTypes
|
7343
7845
|
include Google::Apis::Core::Hashable
|
@@ -8545,6 +9047,32 @@ module Google
|
|
8545
9047
|
end
|
8546
9048
|
end
|
8547
9049
|
|
9050
|
+
# Request message for UpdateConnection.
|
9051
|
+
class GooglePrivacyDlpV2UpdateConnectionRequest
|
9052
|
+
include Google::Apis::Core::Hashable
|
9053
|
+
|
9054
|
+
# A data connection to allow DLP to profile data in locations that require
|
9055
|
+
# additional configuration.
|
9056
|
+
# Corresponds to the JSON property `connection`
|
9057
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Connection]
|
9058
|
+
attr_accessor :connection
|
9059
|
+
|
9060
|
+
# Optional. Mask to control which fields get updated.
|
9061
|
+
# Corresponds to the JSON property `updateMask`
|
9062
|
+
# @return [String]
|
9063
|
+
attr_accessor :update_mask
|
9064
|
+
|
9065
|
+
def initialize(**args)
|
9066
|
+
update!(**args)
|
9067
|
+
end
|
9068
|
+
|
9069
|
+
# Update properties of this object
|
9070
|
+
def update!(**args)
|
9071
|
+
@connection = args[:connection] if args.key?(:connection)
|
9072
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
9073
|
+
end
|
9074
|
+
end
|
9075
|
+
|
8548
9076
|
# Request message for UpdateDeidentifyTemplate.
|
8549
9077
|
class GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
|
8550
9078
|
include Google::Apis::Core::Hashable
|
@@ -8633,9 +9161,9 @@ module Google
|
|
8633
9161
|
class GooglePrivacyDlpV2UpdateJobTriggerRequest
|
8634
9162
|
include Google::Apis::Core::Hashable
|
8635
9163
|
|
8636
|
-
# Contains a configuration to make
|
8637
|
-
#
|
8638
|
-
#
|
9164
|
+
# Contains a configuration to make api calls on a repeating basis. See https://
|
9165
|
+
# cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn
|
9166
|
+
# more.
|
8639
9167
|
# Corresponds to the JSON property `jobTrigger`
|
8640
9168
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
8641
9169
|
attr_accessor :job_trigger
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DlpV2
|
18
18
|
# Version of the google-apis-dlp_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.62.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240331"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|