google-cloud-dlp-v2 0.13.1 → 0.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edf42ed3fc85e5e4f4867c64fd1b47036e43f688217762844f47d131cad1460a
4
- data.tar.gz: 8527a8e75b3742702b6b8ab50b74ab1178a01d0d38abb7683988abefa59673ad
3
+ metadata.gz: a19842449c06d4fdf42454eefe3fbdd8b2cb75e0d45df60629a045cc40677726
4
+ data.tar.gz: b2519d54763609820b764ccce239217d371462161a8dd53b11916c2349cc2589
5
5
  SHA512:
6
- metadata.gz: cde1388b7b9a3581ce2ca4d530f72dec380309dd67947be574c4f3ba5f3300b01c105a68b6c01269a8dce2942374e1e4da3ed6e68e19c44e86ee2c2bed8cb3f8
7
- data.tar.gz: a90ea2f6aeb3a789a2c64e619a9d901b1844176a259c3577bca006dc9fc3c7a21bc946314d5ea367f3df519cd448c99ab4309546ad8a6258455abd968784ef53
6
+ metadata.gz: d43d5a2678924715b9ddbd40b28f1e3cd626905f4fcfefbd5d6907900818a13560a92da77a897e494ee5a6370146a7cb9b6c7e650dd31f1fce00f86748284033
7
+ data.tar.gz: 84b9641c4dfa18d77b6ba2bd526ac4af48f9f142995a1220742d2f37583bf155d3e742db405dbceb27bf60160186b28fb1ea3c835099ee0b8e1111d9d0c2f9fd
@@ -571,6 +571,13 @@ module Google
571
571
  # inspect_template_name argument.
572
572
  # @param item [::Google::Cloud::Dlp::V2::ContentItem, ::Hash]
573
573
  # The item to de-identify. Will be treated as text.
574
+ #
575
+ # This value must be of type
576
+ # {::Google::Cloud::Dlp::V2::Table Table} if your
577
+ # {::Google::Cloud::Dlp::V2::DeidentifyContentRequest#deidentify_config deidentify_config}
578
+ # is a
579
+ # {::Google::Cloud::Dlp::V2::RecordTransformations RecordTransformations}
580
+ # object.
574
581
  # @param inspect_template_name [::String]
575
582
  # Template to use. Any configuration directly specified in
576
583
  # inspect_config will override those set in the template. Singular fields
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.13.1"
24
+ VERSION = "0.14.0"
25
25
  end
26
26
  end
27
27
  end
@@ -22,12 +22,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  add_message "google.privacy.dlp.v2.ExcludeInfoTypes" do
23
23
  repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType"
24
24
  end
25
+ add_message "google.privacy.dlp.v2.ExcludeByHotword" do
26
+ optional :hotword_regex, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Regex"
27
+ optional :proximity, :message, 2, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity"
28
+ end
25
29
  add_message "google.privacy.dlp.v2.ExclusionRule" do
26
30
  optional :matching_type, :enum, 4, "google.privacy.dlp.v2.MatchingType"
27
31
  oneof :type do
28
32
  optional :dictionary, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary"
29
33
  optional :regex, :message, 2, "google.privacy.dlp.v2.CustomInfoType.Regex"
30
34
  optional :exclude_info_types, :message, 3, "google.privacy.dlp.v2.ExcludeInfoTypes"
35
+ optional :exclude_by_hotword, :message, 5, "google.privacy.dlp.v2.ExcludeByHotword"
31
36
  end
32
37
  end
33
38
  add_message "google.privacy.dlp.v2.InspectionRule" do
@@ -326,6 +331,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
326
331
  value :URUGUAY, 38
327
332
  value :VENEZUELA, 39
328
333
  value :INTERNAL, 40
334
+ value :NEW_ZEALAND, 41
329
335
  end
330
336
  add_enum "google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory" do
331
337
  value :INDUSTRY_UNSPECIFIED, 0
@@ -1349,6 +1355,7 @@ module Google
1349
1355
  module Dlp
1350
1356
  module V2
1351
1357
  ExcludeInfoTypes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ExcludeInfoTypes").msgclass
1358
+ ExcludeByHotword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ExcludeByHotword").msgclass
1352
1359
  ExclusionRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ExclusionRule").msgclass
1353
1360
  InspectionRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectionRule").msgclass
1354
1361
  InspectionRuleSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectionRuleSet").msgclass
@@ -37,6 +37,23 @@ module Google
37
37
  extend ::Google::Protobuf::MessageExts::ClassMethods
38
38
  end
39
39
 
40
+ # The rule to exclude findings based on a hotword. For record inspection of
41
+ # tables, column names are considered hotwords. An example of this is to
42
+ # exclude a finding if a BigQuery column matches a specific pattern.
43
+ # @!attribute [rw] hotword_regex
44
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Regex]
45
+ # Regular expression pattern defining what qualifies as a hotword.
46
+ # @!attribute [rw] proximity
47
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::Proximity]
48
+ # Range of characters within which the entire hotword must reside.
49
+ # The total length of the window cannot exceed 1000 characters.
50
+ # The windowBefore property in proximity should be set to 1 if the hotword
51
+ # needs to be included in a column header.
52
+ class ExcludeByHotword
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+ end
56
+
40
57
  # The rule that specifies conditions when findings of infoTypes specified in
41
58
  # `InspectionRuleSet` are removed from results.
42
59
  # @!attribute [rw] dictionary
@@ -48,6 +65,10 @@ module Google
48
65
  # @!attribute [rw] exclude_info_types
49
66
  # @return [::Google::Cloud::Dlp::V2::ExcludeInfoTypes]
50
67
  # Set of infoTypes for which findings would affect this rule.
68
+ # @!attribute [rw] exclude_by_hotword
69
+ # @return [::Google::Cloud::Dlp::V2::ExcludeByHotword]
70
+ # Drop if the hotword rule is contained in the proximate context. For
71
+ # tabular data, the context includes the column name.
51
72
  # @!attribute [rw] matching_type
52
73
  # @return [::Google::Cloud::Dlp::V2::MatchingType]
53
74
  # How the rule is applied, see MatchingType documentation for details.
@@ -241,7 +262,6 @@ module Google
241
262
  end
242
263
  end
243
264
 
244
- # Container structure for the content to inspect.
245
265
  # @!attribute [rw] value
246
266
  # @return [::String]
247
267
  # String data to inspect or redact.
@@ -710,6 +730,13 @@ module Google
710
730
  # @!attribute [rw] item
711
731
  # @return [::Google::Cloud::Dlp::V2::ContentItem]
712
732
  # The item to de-identify. Will be treated as text.
733
+ #
734
+ # This value must be of type
735
+ # {::Google::Cloud::Dlp::V2::Table Table} if your
736
+ # {::Google::Cloud::Dlp::V2::DeidentifyContentRequest#deidentify_config deidentify_config}
737
+ # is a
738
+ # {::Google::Cloud::Dlp::V2::RecordTransformations RecordTransformations}
739
+ # object.
713
740
  # @!attribute [rw] inspect_template_name
714
741
  # @return [::String]
715
742
  # Template to use. Any configuration directly specified in
@@ -1167,6 +1194,9 @@ module Google
1167
1194
 
1168
1195
  # The infoType is typically used in Google internally.
1169
1196
  INTERNAL = 40
1197
+
1198
+ # The infoType is typically used in New Zealand.
1199
+ NEW_ZEALAND = 41
1170
1200
  end
1171
1201
 
1172
1202
  # Enum of the current industries in the category.
@@ -3137,8 +3167,9 @@ module Google
3137
3167
  # Create a de-identified copy of the input data.
3138
3168
  # @!attribute [rw] job_notification_emails
3139
3169
  # @return [::Google::Cloud::Dlp::V2::Action::JobNotificationEmails]
3140
- # Enable email notification for project owners and editors on job's
3141
- # completion/failure.
3170
+ # Sends an email when the job completes. The email goes to IAM project
3171
+ # owners and technical [Essential
3172
+ # Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
3142
3173
  # @!attribute [rw] publish_to_stackdriver
3143
3174
  # @return [::Google::Cloud::Dlp::V2::Action::PublishToStackdriver]
3144
3175
  # Enable Stackdriver metric dlp.googleapis.com/finding_count.
@@ -4643,6 +4674,7 @@ module Google
4643
4674
  # @!attribute [rw] row_count
4644
4675
  # @return [::Integer]
4645
4676
  # Number of rows in the table when the profile was generated.
4677
+ # This will not be populated for BigLake tables.
4646
4678
  # @!attribute [rw] encryption_status
4647
4679
  # @return [::Google::Cloud::Dlp::V2::EncryptionStatus]
4648
4680
  # How the table is encrypted.
@@ -28,7 +28,7 @@ module Google
28
28
  # creating a CustomInfoType, or one of the names listed
29
29
  # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
30
30
  # a built-in type. When sending Cloud DLP results to Data Catalog, infoType
31
- # names should conform to the pattern `[A-Za-z0-9$-_]{1,64}`.
31
+ # names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
32
32
  # @!attribute [rw] version
33
33
  # @return [::String]
34
34
  # Optional version name for this InfoType.
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.13.1
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: 2022-10-03 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common