google-apis-dlp_v2 0.48.0 → 0.49.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: 4e2de64f7586eac4c59f837c473e49754cb0ecc730802b00e72b4b41d365d1a6
4
- data.tar.gz: 5dc6af06724105b9481b2ceb859aad00dc2f6d877081dee6633f9b7e95a31816
3
+ metadata.gz: 8be88342cbbb2e4161f5afbcfaad27d41869376a2bddcedc90011b736276ed1a
4
+ data.tar.gz: 45eee0b6f95c049255e11b1ae08621999b3f4a2b815380507edb653edf1ceda9
5
5
  SHA512:
6
- metadata.gz: a67d0ba7e3e0e7c7f66d826c10b5da8619098dd1d5cbf053da32ce296fea55578e9156c433554b97f14660480512a564c11fa66f128c957ec72e1a3761823b0c
7
- data.tar.gz: 72974e3af389f4785b8e3c16bef91178f3bff971586fd52579ba140c3ce6ee06fe2febc5e619bd782af671156c0fab4313704a85b22dc6605ec0fd1571faf7c7
6
+ metadata.gz: ae8314bc7d5a6c0cd04319732a02b2ea36e7d44632656d03da5d2c416e812ce039475271a090ce5091f94c65ac5d14cda6804d13715682690f3227ed4847ca14
7
+ data.tar.gz: 952ee1fd0ad8f0120d33e0cc6d750276667980b084d2f97565c1b3abc84190121c4d778486cde3bc0771c61717af00db880a7afc66e445de1c6f451ed5c5e221
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dlp_v2
2
2
 
3
+ ### v0.49.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230903
6
+
3
7
  ### v0.48.0 (2023-08-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20230806
@@ -3764,6 +3764,35 @@ module Google
3764
3764
  end
3765
3765
  end
3766
3766
 
3767
+ # Configuration to control custom minimum likelihoods per infotype. Used when
3768
+ # certain infotypes need to return with higher or lower precision than the
3769
+ # baseline, i.e. when wanting PERSON_NAME to return all possible names without
3770
+ # lowering the precision of other infotypes.
3771
+ class GooglePrivacyDlpV2InfoTypeLikelihood
3772
+ include Google::Apis::Core::Hashable
3773
+
3774
+ # Type of information detected by the API.
3775
+ # Corresponds to the JSON property `infoType`
3776
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
3777
+ attr_accessor :info_type
3778
+
3779
+ # Only returns findings equal or above this threshold. This field is required or
3780
+ # else the configuration fails.
3781
+ # Corresponds to the JSON property `minLikelihood`
3782
+ # @return [String]
3783
+ attr_accessor :min_likelihood
3784
+
3785
+ def initialize(**args)
3786
+ update!(**args)
3787
+ end
3788
+
3789
+ # Update properties of this object
3790
+ def update!(**args)
3791
+ @info_type = args[:info_type] if args.key?(:info_type)
3792
+ @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood)
3793
+ end
3794
+ end
3795
+
3767
3796
  # Max findings configuration per infoType, per content item or long running
3768
3797
  # DlpJob.
3769
3798
  class GooglePrivacyDlpV2InfoTypeLimit
@@ -3947,6 +3976,13 @@ module Google
3947
3976
  # @return [String]
3948
3977
  attr_accessor :min_likelihood
3949
3978
 
3979
+ # Per infotype likelihoods. For each infotype, a user can specify a minimum
3980
+ # likelihood, and only return that infotype if it is above that threshold. If an
3981
+ # infotype is not included, it uses the InspectConfig min_likelihood.
3982
+ # Corresponds to the JSON property `minLikelihoodPerInfoType`
3983
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood>]
3984
+ attr_accessor :min_likelihood_per_info_type
3985
+
3950
3986
  # Set of rules to apply to the findings for this InspectConfig. Exclusion rules,
3951
3987
  # contained in the set are executed in the end, other rules are executed in the
3952
3988
  # order they are specified for each info type.
@@ -3967,6 +4003,7 @@ module Google
3967
4003
  @info_types = args[:info_types] if args.key?(:info_types)
3968
4004
  @limits = args[:limits] if args.key?(:limits)
3969
4005
  @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood)
4006
+ @min_likelihood_per_info_type = args[:min_likelihood_per_info_type] if args.key?(:min_likelihood_per_info_type)
3970
4007
  @rule_set = args[:rule_set] if args.key?(:rule_set)
3971
4008
  end
3972
4009
  end
@@ -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.48.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230806"
25
+ REVISION = "20230903"
26
26
  end
27
27
  end
28
28
  end
@@ -610,6 +610,12 @@ module Google
610
610
  include Google::Apis::Core::JsonObjectSupport
611
611
  end
612
612
 
613
+ class GooglePrivacyDlpV2InfoTypeLikelihood
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
613
619
  class GooglePrivacyDlpV2InfoTypeLimit
614
620
  class Representation < Google::Apis::Core::JsonRepresentation; end
615
621
 
@@ -2474,6 +2480,15 @@ module Google
2474
2480
  end
2475
2481
  end
2476
2482
 
2483
+ class GooglePrivacyDlpV2InfoTypeLikelihood
2484
+ # @private
2485
+ class Representation < Google::Apis::Core::JsonRepresentation
2486
+ property :info_type, as: 'infoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
2487
+
2488
+ property :min_likelihood, as: 'minLikelihood'
2489
+ end
2490
+ end
2491
+
2477
2492
  class GooglePrivacyDlpV2InfoTypeLimit
2478
2493
  # @private
2479
2494
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2532,6 +2547,8 @@ module Google
2532
2547
  property :limits, as: 'limits', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FindingLimits, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FindingLimits::Representation
2533
2548
 
2534
2549
  property :min_likelihood, as: 'minLikelihood'
2550
+ collection :min_likelihood_per_info_type, as: 'minLikelihoodPerInfoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood::Representation
2551
+
2535
2552
  collection :rule_set, as: 'ruleSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRuleSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRuleSet::Representation
2536
2553
 
2537
2554
  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.48.0
4
+ version: 0.49.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: 2023-08-20 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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.48.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.49.0
62
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: []
@@ -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.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Data Loss Prevention (DLP) V2