Class: Google::Privacy::Dlp::V2::BucketingConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb

Overview

Generalization function that buckets values based on ranges. The ranges and replacement values are dynamically provided by the user for custom behavior, such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH This can be used on data of type: number, long, string, timestamp. If the bound +Value+ type differs from the type of data being transformed, we will first attempt converting the type of the data to be transformed to match the type of the bound before comparing.

Defined Under Namespace

Classes: Bucket

Instance Attribute Summary collapse

Instance Attribute Details

#bucketsArray<Google::Privacy::Dlp::V2::BucketingConfig::Bucket>

Returns Set of buckets. Ranges must be non-overlapping.

Returns:



1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1126

class BucketingConfig
  # Bucket is represented as a range, along with replacement values.
  # @!attribute [rw] min
  #   @return [Google::Privacy::Dlp::V2::Value]
  #     Lower bound of the range, inclusive. Type should be the same as max if
  #     used.
  # @!attribute [rw] max
  #   @return [Google::Privacy::Dlp::V2::Value]
  #     Upper bound of the range, exclusive; type must match min.
  # @!attribute [rw] replacement_value
  #   @return [Google::Privacy::Dlp::V2::Value]
  #     Replacement value for this bucket. If not provided
  #     the default behavior will be to hyphenate the min-max range.
  class Bucket; end
end