Class: Google::Apis::DlpV2::GooglePrivacyDlpV2KMapEstimationHistogramBucket

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2KMapEstimationHistogramBucket

Returns a new instance of GooglePrivacyDlpV2KMapEstimationHistogramBucket.



3864
3865
3866
# File 'generated/google/apis/dlp_v2/classes.rb', line 3864

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucket_sizeFixnum

Number of records within these anonymity bounds. Corresponds to the JSON property bucketSize

Returns:

  • (Fixnum)


3841
3842
3843
# File 'generated/google/apis/dlp_v2/classes.rb', line 3841

def bucket_size
  @bucket_size
end

#bucket_value_countFixnum

Total number of distinct quasi-identifier tuple values in this bucket. Corresponds to the JSON property bucketValueCount

Returns:

  • (Fixnum)


3846
3847
3848
# File 'generated/google/apis/dlp_v2/classes.rb', line 3846

def bucket_value_count
  @bucket_value_count
end

#bucket_valuesArray<Google::Apis::DlpV2::GooglePrivacyDlpV2KMapEstimationQuasiIdValues>

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



3852
3853
3854
# File 'generated/google/apis/dlp_v2/classes.rb', line 3852

def bucket_values
  @bucket_values
end

#max_anonymityFixnum

Always greater than or equal to min_anonymity. Corresponds to the JSON property maxAnonymity

Returns:

  • (Fixnum)


3857
3858
3859
# File 'generated/google/apis/dlp_v2/classes.rb', line 3857

def max_anonymity
  @max_anonymity
end

#min_anonymityFixnum

Always positive. Corresponds to the JSON property minAnonymity

Returns:

  • (Fixnum)


3862
3863
3864
# File 'generated/google/apis/dlp_v2/classes.rb', line 3862

def min_anonymity
  @min_anonymity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3869
3870
3871
3872
3873
3874
3875
# File 'generated/google/apis/dlp_v2/classes.rb', line 3869

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