Class: Google::Apis::DlpV2::GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket

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

Histogram bucket of value frequencies in the column.

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) ⇒ GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket

Returns a new instance of GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket



4851
4852
4853
# File 'generated/google/apis/dlp_v2/classes.rb', line 4851

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

Instance Attribute Details

#bucket_sizeFixnum

Total number of records in this bucket. Corresponds to the JSON property bucketSize

Returns:

  • (Fixnum)


4833
4834
4835
# File 'generated/google/apis/dlp_v2/classes.rb', line 4833

def bucket_size
  @bucket_size
end

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

Sample of value frequencies in this bucket. The total number of values returned per bucket is capped at 20. Corresponds to the JSON property bucketValues



4839
4840
4841
# File 'generated/google/apis/dlp_v2/classes.rb', line 4839

def bucket_values
  @bucket_values
end

#value_frequency_lower_boundFixnum

Lower bound on the value frequency of the values in this bucket. Corresponds to the JSON property valueFrequencyLowerBound

Returns:

  • (Fixnum)


4844
4845
4846
# File 'generated/google/apis/dlp_v2/classes.rb', line 4844

def value_frequency_lower_bound
  @value_frequency_lower_bound
end

#value_frequency_upper_boundFixnum

Upper bound on the value frequency of the values in this bucket. Corresponds to the JSON property valueFrequencyUpperBound

Returns:

  • (Fixnum)


4849
4850
4851
# File 'generated/google/apis/dlp_v2/classes.rb', line 4849

def value_frequency_upper_bound
  @value_frequency_upper_bound
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4856
4857
4858
4859
4860
4861
# File 'generated/google/apis/dlp_v2/classes.rb', line 4856

def update!(**args)
  @bucket_size = args[:bucket_size] if args.key?(:bucket_size)
  @bucket_values = args[:bucket_values] if args.key?(:bucket_values)
  @value_frequency_lower_bound = args[:value_frequency_lower_bound] if args.key?(:value_frequency_lower_bound)
  @value_frequency_upper_bound = args[:value_frequency_upper_bound] if args.key?(:value_frequency_upper_bound)
end