google-apis-dlp_v2 0.10.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98f484e42d66678561df737d43478fb54f120644cf465c90d0f2af1295ac66cc
4
- data.tar.gz: 51731aec8428f15e9661f623a0dc48026a2bca666c1a7ab08dcc80dfae4c6b9a
3
+ metadata.gz: b440e13296a33d8bb7efb6ab7998e916a64bb2b4506d266658ad569e7bf4aab6
4
+ data.tar.gz: 2ef8c98b76aed1878f9ebd37ce71e660e7ef925c2a10e6842551ca2556aed7ed
5
5
  SHA512:
6
- metadata.gz: 6c224b54564bd530f612dae6667b4d36f7031139b8591a2c35bf19c382de2d9079b6757a0f9823b1d3014cd8e0a5054677b1174561ac512b475922e84f535589
7
- data.tar.gz: 70c1243eed3dab4047edc1f5158ab88088ffaf34590aaa929836333fe378f38239fdabf47a5e10e6c05b77f93a5bdf855e8eaecb00e6c903b8e4d1f797629ee1
6
+ metadata.gz: 89beb9f98f69409e1fa9d2dfbc58ec5390ad5c6638218cb94f3ea76f54516c30381edc900cd9c89fb66e1933036d4b2539181279b7b900009c1d17be3cf4d960
7
+ data.tar.gz: 825522def4c4f42a8894d82de6dc2d357a867aa0d71ab49c4a6399367d378219f1bb0c5aa79e73efe7403bdc97df65f52aa1373a005f873c1d2984ef7e3b2dce
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-dlp_v2
2
2
 
3
+ ### v0.14.0 (2021-11-16)
4
+
5
+ * Regenerated from discovery document revision 20211112
6
+
7
+ ### v0.13.0 (2021-10-26)
8
+
9
+ * Regenerated from discovery document revision 20211022
10
+
11
+ ### v0.12.0 (2021-09-01)
12
+
13
+ * Regenerated from discovery document revision 20210806
14
+
15
+ ### v0.11.0 (2021-07-28)
16
+
17
+ * Regenerated from discovery document revision 20210723
18
+
3
19
  ### v0.10.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
data/OVERVIEW.md CHANGED
@@ -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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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 Cloud Data Catalog. Labels summarizing the
45
- # results of the DlpJob will be applied to the entry for the resource scanned in
46
- # Cloud Data Catalog. Any labels previously written by another DlpJob will be
47
- # deleted. InfoType naming patterns are strictly enforced when using this
48
- # feature. Note that the findings will be persisted in Cloud Data Catalog
49
- # storage and are governed by Data Catalog service-specific policy, see https://
50
- # cloud.google.com/terms/service-terms Only a single instance of this action can
51
- # be specified and only allowed if all resources being scanned are BigQuery
52
- # tables. Compatible with: Inspect
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
@@ -1295,9 +1295,9 @@ module Google
1295
1295
  attr_accessor :context
1296
1296
 
1297
1297
  # This is a data encryption key (DEK) (as opposed to a key encryption key (KEK)
1298
- # stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an
1299
- # appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1300
- # unwrap the data crypto key.
1298
+ # stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to
1299
+ # wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to
1300
+ # ensure an attacker cannot unwrap the DEK.
1301
1301
  # Corresponds to the JSON property `cryptoKey`
1302
1302
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoKey]
1303
1303
  attr_accessor :crypto_key
@@ -1329,9 +1329,9 @@ module Google
1329
1329
  include Google::Apis::Core::Hashable
1330
1330
 
1331
1331
  # This is a data encryption key (DEK) (as opposed to a key encryption key (KEK)
1332
- # stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an
1333
- # appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1334
- # unwrap the data crypto key.
1332
+ # stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to
1333
+ # wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to
1334
+ # ensure an attacker cannot unwrap the DEK.
1335
1335
  # Corresponds to the JSON property `cryptoKey`
1336
1336
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoKey]
1337
1337
  attr_accessor :crypto_key
@@ -1347,9 +1347,9 @@ module Google
1347
1347
  end
1348
1348
 
1349
1349
  # This is a data encryption key (DEK) (as opposed to a key encryption key (KEK)
1350
- # stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an
1351
- # appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1352
- # unwrap the data crypto key.
1350
+ # stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to
1351
+ # wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to
1352
+ # ensure an attacker cannot unwrap the DEK.
1353
1353
  class GooglePrivacyDlpV2CryptoKey
1354
1354
  include Google::Apis::Core::Hashable
1355
1355
 
@@ -1357,7 +1357,9 @@ module Google
1357
1357
  # must be a 128-, 192-, or 256-bit key. Authorization requires the following IAM
1358
1358
  # permissions when sending a request to perform a crypto transformation using a
1359
1359
  # KMS-wrapped crypto key: dlp.kms.encrypt For more information, see [Creating a
1360
- # wrapped key] (https://cloud.google.com/dlp/docs/create-wrapped-key).
1360
+ # wrapped key] (https://cloud.google.com/dlp/docs/create-wrapped-key). Note:
1361
+ # When you use Cloud KMS for cryptographic operations, [charges apply](https://
1362
+ # cloud.google.com/kms/pricing).
1361
1363
  # Corresponds to the JSON property `kmsWrapped`
1362
1364
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2KmsWrappedCryptoKey]
1363
1365
  attr_accessor :kms_wrapped
@@ -1411,9 +1413,9 @@ module Google
1411
1413
  attr_accessor :context
1412
1414
 
1413
1415
  # This is a data encryption key (DEK) (as opposed to a key encryption key (KEK)
1414
- # stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an
1415
- # appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1416
- # unwrap the data crypto key.
1416
+ # stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to
1417
+ # wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to
1418
+ # ensure an attacker cannot unwrap the DEK.
1417
1419
  # Corresponds to the JSON property `cryptoKey`
1418
1420
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoKey]
1419
1421
  attr_accessor :crypto_key
@@ -1604,9 +1606,9 @@ module Google
1604
1606
  attr_accessor :context
1605
1607
 
1606
1608
  # This is a data encryption key (DEK) (as opposed to a key encryption key (KEK)
1607
- # stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an
1608
- # appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
1609
- # unwrap the data crypto key.
1609
+ # stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to
1610
+ # wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to
1611
+ # ensure an attacker cannot unwrap the DEK.
1610
1612
  # Corresponds to the JSON property `cryptoKey`
1611
1613
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoKey]
1612
1614
  attr_accessor :crypto_key
@@ -2944,6 +2946,11 @@ module Google
2944
2946
  # @return [String]
2945
2947
  attr_accessor :name
2946
2948
 
2949
+ # Optional version name for this InfoType.
2950
+ # Corresponds to the JSON property `version`
2951
+ # @return [String]
2952
+ attr_accessor :version
2953
+
2947
2954
  def initialize(**args)
2948
2955
  update!(**args)
2949
2956
  end
@@ -2951,6 +2958,7 @@ module Google
2951
2958
  # Update properties of this object
2952
2959
  def update!(**args)
2953
2960
  @name = args[:name] if args.key?(:name)
2961
+ @version = args[:version] if args.key?(:version)
2954
2962
  end
2955
2963
  end
2956
2964
 
@@ -3850,7 +3858,9 @@ module Google
3850
3858
  # must be a 128-, 192-, or 256-bit key. Authorization requires the following IAM
3851
3859
  # permissions when sending a request to perform a crypto transformation using a
3852
3860
  # KMS-wrapped crypto key: dlp.kms.encrypt For more information, see [Creating a
3853
- # wrapped key] (https://cloud.google.com/dlp/docs/create-wrapped-key).
3861
+ # wrapped key] (https://cloud.google.com/dlp/docs/create-wrapped-key). Note:
3862
+ # When you use Cloud KMS for cryptographic operations, [charges apply](https://
3863
+ # cloud.google.com/kms/pricing).
3854
3864
  class GooglePrivacyDlpV2KmsWrappedCryptoKey
3855
3865
  include Google::Apis::Core::Hashable
3856
3866
 
@@ -4579,6 +4589,11 @@ module Google
4579
4589
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceValueConfig]
4580
4590
  attr_accessor :replace_config
4581
4591
 
4592
+ # Replace each input value with a value randomly selected from the dictionary.
4593
+ # Corresponds to the JSON property `replaceDictionaryConfig`
4594
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceDictionaryConfig]
4595
+ attr_accessor :replace_dictionary_config
4596
+
4582
4597
  # Replace each matching finding with the name of the info_type.
4583
4598
  # Corresponds to the JSON property `replaceWithInfoTypeConfig`
4584
4599
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceWithInfoTypeConfig]
@@ -4605,6 +4620,7 @@ module Google
4605
4620
  @fixed_size_bucketing_config = args[:fixed_size_bucketing_config] if args.key?(:fixed_size_bucketing_config)
4606
4621
  @redact_config = args[:redact_config] if args.key?(:redact_config)
4607
4622
  @replace_config = args[:replace_config] if args.key?(:replace_config)
4623
+ @replace_dictionary_config = args[:replace_dictionary_config] if args.key?(:replace_dictionary_config)
4608
4624
  @replace_with_info_type_config = args[:replace_with_info_type_config] if args.key?(:replace_with_info_type_config)
4609
4625
  @time_part_config = args[:time_part_config] if args.key?(:time_part_config)
4610
4626
  end
@@ -4694,15 +4710,15 @@ module Google
4694
4710
  end
4695
4711
  end
4696
4712
 
4697
- # Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the
4698
- # results of the DlpJob will be applied to the entry for the resource scanned in
4699
- # Cloud Data Catalog. Any labels previously written by another DlpJob will be
4700
- # deleted. InfoType naming patterns are strictly enforced when using this
4701
- # feature. Note that the findings will be persisted in Cloud Data Catalog
4702
- # storage and are governed by Data Catalog service-specific policy, see https://
4703
- # cloud.google.com/terms/service-terms Only a single instance of this action can
4704
- # be specified and only allowed if all resources being scanned are BigQuery
4705
- # tables. Compatible with: Inspect
4713
+ # Publish findings of a DlpJob to Data Catalog. Labels summarizing the results
4714
+ # of the DlpJob will be applied to the entry for the resource scanned in Data
4715
+ # Catalog. Any labels previously written by another DlpJob will be deleted.
4716
+ # InfoType naming patterns are strictly enforced when using this feature. Note
4717
+ # that the findings will be persisted in Data Catalog storage and are governed
4718
+ # by Data Catalog service-specific policy, see https://cloud.google.com/terms/
4719
+ # service-terms Only a single instance of this action can be specified and only
4720
+ # allowed if all resources being scanned are BigQuery tables. Compatible with:
4721
+ # Inspect
4706
4722
  class GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog
4707
4723
  include Google::Apis::Core::Hashable
4708
4724
 
@@ -5251,6 +5267,25 @@ module Google
5251
5267
  end
5252
5268
  end
5253
5269
 
5270
+ # Replace each input value with a value randomly selected from the dictionary.
5271
+ class GooglePrivacyDlpV2ReplaceDictionaryConfig
5272
+ include Google::Apis::Core::Hashable
5273
+
5274
+ # Message defining a list of words or phrases to search for in the data.
5275
+ # Corresponds to the JSON property `wordList`
5276
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2WordList]
5277
+ attr_accessor :word_list
5278
+
5279
+ def initialize(**args)
5280
+ update!(**args)
5281
+ end
5282
+
5283
+ # Update properties of this object
5284
+ def update!(**args)
5285
+ @word_list = args[:word_list] if args.key?(:word_list)
5286
+ end
5287
+ end
5288
+
5254
5289
  # Replace each input value with a given `Value`.
5255
5290
  class GooglePrivacyDlpV2ReplaceValueConfig
5256
5291
  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.10.0"
19
+ GEM_VERSION = "0.14.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 = "20210604"
25
+ REVISION = "20211112"
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
 
@@ -2001,6 +2007,7 @@ module Google
2001
2007
  # @private
2002
2008
  class Representation < Google::Apis::Core::JsonRepresentation
2003
2009
  property :name, as: 'name'
2010
+ property :version, as: 'version'
2004
2011
  end
2005
2012
  end
2006
2013
 
@@ -2506,6 +2513,8 @@ module Google
2506
2513
 
2507
2514
  property :replace_config, as: 'replaceConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceValueConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceValueConfig::Representation
2508
2515
 
2516
+ property :replace_dictionary_config, as: 'replaceDictionaryConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceDictionaryConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceDictionaryConfig::Representation
2517
+
2509
2518
  property :replace_with_info_type_config, as: 'replaceWithInfoTypeConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceWithInfoTypeConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ReplaceWithInfoTypeConfig::Representation
2510
2519
 
2511
2520
  property :time_part_config, as: 'timePartConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TimePartConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TimePartConfig::Representation
@@ -2723,6 +2732,14 @@ module Google
2723
2732
  end
2724
2733
  end
2725
2734
 
2735
+ class GooglePrivacyDlpV2ReplaceDictionaryConfig
2736
+ # @private
2737
+ class Representation < Google::Apis::Core::JsonRepresentation
2738
+ property :word_list, as: 'wordList', class: Google::Apis::DlpV2::GooglePrivacyDlpV2WordList, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2WordList::Representation
2739
+
2740
+ end
2741
+ end
2742
+
2726
2743
  class GooglePrivacyDlpV2ReplaceValueConfig
2727
2744
  # @private
2728
2745
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -31,7 +31,7 @@ module Google
31
31
  # This is NOT the gem version.
32
32
  VERSION = 'V2'
33
33
 
34
- # See, edit, configure, and delete your Google Cloud Platform data
34
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
35
35
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
36
36
  end
37
37
  end
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.10.0
4
+ version: 0.14.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: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-12-06 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/master/generated/google-apis-dlp_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.10.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dlp_v2
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.14.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: