Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
A KMapEstimationHistogramBucket message with the following values: min_anonymity: 3 max_anonymity: 5 frequency: 42 means that there are 42 records whose quasi-identifier values correspond to 3, 4 or 5 people in the overlying population. An important particular case is when min_anonymity = max_anonymity = 1: the frequency field then corresponds to the number of uniquely identifiable records.
Instance Attribute Summary collapse
-
#bucket_size ⇒ Fixnum
Number of records within these anonymity bounds.
-
#bucket_value_count ⇒ Fixnum
Total number of distinct quasi-identifier tuple values in this bucket.
-
#bucket_values ⇒ Array<Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues>
Sample of quasi-identifier tuple values in this bucket.
-
#max_anonymity ⇒ Fixnum
Always greater than or equal to min_anonymity.
-
#min_anonymity ⇒ Fixnum
Always positive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket
constructor
A new instance of GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket
Returns a new instance of GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket
4187 4188 4189 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4187 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket_size ⇒ Fixnum
Number of records within these anonymity bounds.
Corresponds to the JSON property bucketSize
4164 4165 4166 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4164 def bucket_size @bucket_size end |
#bucket_value_count ⇒ Fixnum
Total number of distinct quasi-identifier tuple values in this bucket.
Corresponds to the JSON property bucketValueCount
4169 4170 4171 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4169 def bucket_value_count @bucket_value_count end |
#bucket_values ⇒ Array<Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues>
Sample of quasi-identifier tuple values in this bucket. The total
number of classes returned per bucket is capped at 20.
Corresponds to the JSON property bucketValues
4175 4176 4177 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4175 def bucket_values @bucket_values end |
#max_anonymity ⇒ Fixnum
Always greater than or equal to min_anonymity.
Corresponds to the JSON property maxAnonymity
4180 4181 4182 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4180 def max_anonymity @max_anonymity end |
#min_anonymity ⇒ Fixnum
Always positive.
Corresponds to the JSON property minAnonymity
4185 4186 4187 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4185 def min_anonymity @min_anonymity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4192 4193 4194 4195 4196 4197 4198 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4192 def update!(**args) @bucket_size = args[:bucket_size] if args.key?(:bucket_size) @bucket_value_count = args[:bucket_value_count] if args.key?(:bucket_value_count) @bucket_values = args[:bucket_values] if args.key?(:bucket_values) @max_anonymity = args[:max_anonymity] if args.key?(:max_anonymity) @min_anonymity = args[:min_anonymity] if args.key?(:min_anonymity) end |