Class: Google::Cloud::Dlp::V2::BucketingConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/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. See https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to learn more.

Defined Under Namespace

Classes: Bucket

Instance Attribute Summary collapse

Instance Attribute Details

#buckets::Array<::Google::Cloud::Dlp::V2::BucketingConfig::Bucket>

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

Returns:



2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2580

class BucketingConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Bucket is represented as a range, along with replacement values.
  # @!attribute [rw] min
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Lower bound of the range, inclusive. Type should be the same as max if
  #     used.
  # @!attribute [rw] max
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Upper bound of the range, exclusive; type must match min.
  # @!attribute [rw] replacement_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Required. Replacement value for this bucket.
  class Bucket
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end