Class: Google::Apis::DlpV2::GooglePrivacyDlpV2KAnonymityHistogramBucket

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

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

Returns a new instance of GooglePrivacyDlpV2KAnonymityHistogramBucket



2557
2558
2559
# File 'generated/google/apis/dlp_v2/classes.rb', line 2557

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

Instance Attribute Details

#bucket_sizeFixnum

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

Returns:

  • (Fixnum)


2534
2535
2536
# File 'generated/google/apis/dlp_v2/classes.rb', line 2534

def bucket_size
  @bucket_size
end

#bucket_value_countFixnum

Total number of distinct equivalence classes in this bucket. Corresponds to the JSON property bucketValueCount

Returns:

  • (Fixnum)


2539
2540
2541
# File 'generated/google/apis/dlp_v2/classes.rb', line 2539

def bucket_value_count
  @bucket_value_count
end

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

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



2545
2546
2547
# File 'generated/google/apis/dlp_v2/classes.rb', line 2545

def bucket_values
  @bucket_values
end

#equivalence_class_size_lower_boundFixnum

Lower bound on the size of the equivalence classes in this bucket. Corresponds to the JSON property equivalenceClassSizeLowerBound

Returns:

  • (Fixnum)


2550
2551
2552
# File 'generated/google/apis/dlp_v2/classes.rb', line 2550

def equivalence_class_size_lower_bound
  @equivalence_class_size_lower_bound
end

#equivalence_class_size_upper_boundFixnum

Upper bound on the size of the equivalence classes in this bucket. Corresponds to the JSON property equivalenceClassSizeUpperBound

Returns:

  • (Fixnum)


2555
2556
2557
# File 'generated/google/apis/dlp_v2/classes.rb', line 2555

def equivalence_class_size_upper_bound
  @equivalence_class_size_upper_bound
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2562
2563
2564
2565
2566
2567
2568
# File 'generated/google/apis/dlp_v2/classes.rb', line 2562

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)
  @equivalence_class_size_lower_bound = args[:equivalence_class_size_lower_bound] if args.key?(:equivalence_class_size_lower_bound)
  @equivalence_class_size_upper_bound = args[:equivalence_class_size_upper_bound] if args.key?(:equivalence_class_size_upper_bound)
end