google-apis-dlp_v2 0.12.0 → 0.16.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 +16 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/dlp_v2/classes.rb +55 -18
- data/lib/google/apis/dlp_v2/gem_version.rb +2 -2
- data/lib/google/apis/dlp_v2/representations.rb +19 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 292dee348e75b1a7a5fdb6bacc9a9a345f0df1fcd4d1ab52b8e7ad32b074219f
|
4
|
+
data.tar.gz: 63640010feb8fd6dac5a42bf6dbe992ae49f4f001135d2b54d01ee28dd37f1d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7663b68ea9c2d4bd9d2a4ff151134358375c84053f9118f1f7c52427e5ef7fc6c2cba4ec4f898a58348e49203835e7911139713ba293977d463e1d0a30022652
|
7
|
+
data.tar.gz: b787f71983d060182cc87185398c5c9237f7dd5babdf0fce634cc26b428ed345223ec1f4e839c38a73bb00fdb806c6479722cadf0ff1256afdc1c556cdff7e64
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-dlp_v2
|
2
2
|
|
3
|
+
### v0.16.0 (2021-12-14)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.15.0 (2021-12-08)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211204
|
10
|
+
|
11
|
+
### v0.14.0 (2021-11-16)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211112
|
14
|
+
|
15
|
+
### v0.13.0 (2021-10-26)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211022
|
18
|
+
|
3
19
|
### v0.12.0 (2021-09-01)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210806
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/dlp_v2"
|
|
51
51
|
client = Google::Apis::DlpV2::DLPService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Dlp service in particular.)
|
67
67
|
|
@@ -41,15 +41,15 @@ module Google
|
|
41
41
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub]
|
42
42
|
attr_accessor :pub_sub
|
43
43
|
|
44
|
-
# Publish findings of a DlpJob to
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
44
|
+
# Publish findings of a DlpJob to Data Catalog. Labels summarizing the results
|
45
|
+
# of the DlpJob will be applied to the entry for the resource scanned in Data
|
46
|
+
# Catalog. Any labels previously written by another DlpJob will be deleted.
|
47
|
+
# InfoType naming patterns are strictly enforced when using this feature. Note
|
48
|
+
# that the findings will be persisted in Data Catalog storage and are governed
|
49
|
+
# by Data Catalog service-specific policy, see https://cloud.google.com/terms/
|
50
|
+
# service-terms Only a single instance of this action can be specified and only
|
51
|
+
# allowed if all resources being scanned are BigQuery tables. Compatible with:
|
52
|
+
# Inspect
|
53
53
|
# Corresponds to the JSON property `publishFindingsToCloudDataCatalog`
|
54
54
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog]
|
55
55
|
attr_accessor :publish_findings_to_cloud_data_catalog
|
@@ -293,6 +293,11 @@ module Google
|
|
293
293
|
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>]
|
294
294
|
attr_accessor :identifying_fields
|
295
295
|
|
296
|
+
# Limit scanning only to these fields.
|
297
|
+
# Corresponds to the JSON property `includedFields`
|
298
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>]
|
299
|
+
attr_accessor :included_fields
|
300
|
+
|
296
301
|
# Max number of rows to scan. If the table has more rows than this value, the
|
297
302
|
# rest of the rows are omitted. If not set, or if set to 0, all rows will be
|
298
303
|
# scanned. Only one of rows_limit and rows_limit_percent can be specified.
|
@@ -330,6 +335,7 @@ module Google
|
|
330
335
|
def update!(**args)
|
331
336
|
@excluded_fields = args[:excluded_fields] if args.key?(:excluded_fields)
|
332
337
|
@identifying_fields = args[:identifying_fields] if args.key?(:identifying_fields)
|
338
|
+
@included_fields = args[:included_fields] if args.key?(:included_fields)
|
333
339
|
@rows_limit = args[:rows_limit] if args.key?(:rows_limit)
|
334
340
|
@rows_limit_percent = args[:rows_limit_percent] if args.key?(:rows_limit_percent)
|
335
341
|
@sample_method = args[:sample_method] if args.key?(:sample_method)
|
@@ -2946,6 +2952,11 @@ module Google
|
|
2946
2952
|
# @return [String]
|
2947
2953
|
attr_accessor :name
|
2948
2954
|
|
2955
|
+
# Optional version name for this InfoType.
|
2956
|
+
# Corresponds to the JSON property `version`
|
2957
|
+
# @return [String]
|
2958
|
+
attr_accessor :version
|
2959
|
+
|
2949
2960
|
def initialize(**args)
|
2950
2961
|
update!(**args)
|
2951
2962
|
end
|
@@ -2953,6 +2964,7 @@ module Google
|
|
2953
2964
|
# Update properties of this object
|
2954
2965
|
def update!(**args)
|
2955
2966
|
@name = args[:name] if args.key?(:name)
|
2967
|
+
@version = args[:version] if args.key?(:version)
|
2956
2968
|
end
|
2957
2969
|
end
|
2958
2970
|
|
@@ -4583,6 +4595,11 @@ module Google
|
|
4583
4595
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceValueConfig]
|
4584
4596
|
attr_accessor :replace_config
|
4585
4597
|
|
4598
|
+
# Replace each input value with a value randomly selected from the dictionary.
|
4599
|
+
# Corresponds to the JSON property `replaceDictionaryConfig`
|
4600
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceDictionaryConfig]
|
4601
|
+
attr_accessor :replace_dictionary_config
|
4602
|
+
|
4586
4603
|
# Replace each matching finding with the name of the info_type.
|
4587
4604
|
# Corresponds to the JSON property `replaceWithInfoTypeConfig`
|
4588
4605
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceWithInfoTypeConfig]
|
@@ -4609,6 +4626,7 @@ module Google
|
|
4609
4626
|
@fixed_size_bucketing_config = args[:fixed_size_bucketing_config] if args.key?(:fixed_size_bucketing_config)
|
4610
4627
|
@redact_config = args[:redact_config] if args.key?(:redact_config)
|
4611
4628
|
@replace_config = args[:replace_config] if args.key?(:replace_config)
|
4629
|
+
@replace_dictionary_config = args[:replace_dictionary_config] if args.key?(:replace_dictionary_config)
|
4612
4630
|
@replace_with_info_type_config = args[:replace_with_info_type_config] if args.key?(:replace_with_info_type_config)
|
4613
4631
|
@time_part_config = args[:time_part_config] if args.key?(:time_part_config)
|
4614
4632
|
end
|
@@ -4698,15 +4716,15 @@ module Google
|
|
4698
4716
|
end
|
4699
4717
|
end
|
4700
4718
|
|
4701
|
-
# Publish findings of a DlpJob to
|
4702
|
-
#
|
4703
|
-
#
|
4704
|
-
#
|
4705
|
-
#
|
4706
|
-
#
|
4707
|
-
#
|
4708
|
-
#
|
4709
|
-
#
|
4719
|
+
# Publish findings of a DlpJob to Data Catalog. Labels summarizing the results
|
4720
|
+
# of the DlpJob will be applied to the entry for the resource scanned in Data
|
4721
|
+
# Catalog. Any labels previously written by another DlpJob will be deleted.
|
4722
|
+
# InfoType naming patterns are strictly enforced when using this feature. Note
|
4723
|
+
# that the findings will be persisted in Data Catalog storage and are governed
|
4724
|
+
# by Data Catalog service-specific policy, see https://cloud.google.com/terms/
|
4725
|
+
# service-terms Only a single instance of this action can be specified and only
|
4726
|
+
# allowed if all resources being scanned are BigQuery tables. Compatible with:
|
4727
|
+
# Inspect
|
4710
4728
|
class GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog
|
4711
4729
|
include Google::Apis::Core::Hashable
|
4712
4730
|
|
@@ -5255,6 +5273,25 @@ module Google
|
|
5255
5273
|
end
|
5256
5274
|
end
|
5257
5275
|
|
5276
|
+
# Replace each input value with a value randomly selected from the dictionary.
|
5277
|
+
class GooglePrivacyDlpV2ReplaceDictionaryConfig
|
5278
|
+
include Google::Apis::Core::Hashable
|
5279
|
+
|
5280
|
+
# Message defining a list of words or phrases to search for in the data.
|
5281
|
+
# Corresponds to the JSON property `wordList`
|
5282
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2WordList]
|
5283
|
+
attr_accessor :word_list
|
5284
|
+
|
5285
|
+
def initialize(**args)
|
5286
|
+
update!(**args)
|
5287
|
+
end
|
5288
|
+
|
5289
|
+
# Update properties of this object
|
5290
|
+
def update!(**args)
|
5291
|
+
@word_list = args[:word_list] if args.key?(:word_list)
|
5292
|
+
end
|
5293
|
+
end
|
5294
|
+
|
5258
5295
|
# Replace each input value with a given `Value`.
|
5259
5296
|
class GooglePrivacyDlpV2ReplaceValueConfig
|
5260
5297
|
include Google::Apis::Core::Hashable
|
@@ -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.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211204"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -916,6 +916,12 @@ module Google
|
|
916
916
|
include Google::Apis::Core::JsonObjectSupport
|
917
917
|
end
|
918
918
|
|
919
|
+
class GooglePrivacyDlpV2ReplaceDictionaryConfig
|
920
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
921
|
+
|
922
|
+
include Google::Apis::Core::JsonObjectSupport
|
923
|
+
end
|
924
|
+
|
919
925
|
class GooglePrivacyDlpV2ReplaceValueConfig
|
920
926
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
921
927
|
|
@@ -1266,6 +1272,8 @@ module Google
|
|
1266
1272
|
|
1267
1273
|
collection :identifying_fields, as: 'identifyingFields', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation
|
1268
1274
|
|
1275
|
+
collection :included_fields, as: 'includedFields', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation
|
1276
|
+
|
1269
1277
|
property :rows_limit, :numeric_string => true, as: 'rowsLimit'
|
1270
1278
|
property :rows_limit_percent, as: 'rowsLimitPercent'
|
1271
1279
|
property :sample_method, as: 'sampleMethod'
|
@@ -2001,6 +2009,7 @@ module Google
|
|
2001
2009
|
# @private
|
2002
2010
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2003
2011
|
property :name, as: 'name'
|
2012
|
+
property :version, as: 'version'
|
2004
2013
|
end
|
2005
2014
|
end
|
2006
2015
|
|
@@ -2506,6 +2515,8 @@ module Google
|
|
2506
2515
|
|
2507
2516
|
property :replace_config, as: 'replaceConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceValueConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceValueConfig::Representation
|
2508
2517
|
|
2518
|
+
property :replace_dictionary_config, as: 'replaceDictionaryConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceDictionaryConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceDictionaryConfig::Representation
|
2519
|
+
|
2509
2520
|
property :replace_with_info_type_config, as: 'replaceWithInfoTypeConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceWithInfoTypeConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceWithInfoTypeConfig::Representation
|
2510
2521
|
|
2511
2522
|
property :time_part_config, as: 'timePartConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TimePartConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TimePartConfig::Representation
|
@@ -2723,6 +2734,14 @@ module Google
|
|
2723
2734
|
end
|
2724
2735
|
end
|
2725
2736
|
|
2737
|
+
class GooglePrivacyDlpV2ReplaceDictionaryConfig
|
2738
|
+
# @private
|
2739
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2740
|
+
property :word_list, as: 'wordList', class: Google::Apis::DlpV2::GooglePrivacyDlpV2WordList, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2WordList::Representation
|
2741
|
+
|
2742
|
+
end
|
2743
|
+
end
|
2744
|
+
|
2726
2745
|
class GooglePrivacyDlpV2ReplaceValueConfig
|
2727
2746
|
# @private
|
2728
2747
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dlp_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.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:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.16.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Data Loss Prevention (DLP) API V2
|