Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FixedSizeBucketingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FixedSizeBucketingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
Buckets values based on fixed size ranges. The
Bucketing transformation can provide all of this functionality,
but requires more configuration. This message is provided as a convenience to
the user for simple bucketing strategies.
The transformed value will be a hyphenated string of
Instance Attribute Summary collapse
-
#bucket_size ⇒ Float
Size of each bucket (except for minimum and maximum buckets).
-
#lower_bound ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Value
Set of primitive values supported by the system.
-
#upper_bound ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Value
Set of primitive values supported by the system.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2FixedSizeBucketingConfig
constructor
A new instance of GooglePrivacyDlpV2beta2FixedSizeBucketingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2FixedSizeBucketingConfig
Returns a new instance of GooglePrivacyDlpV2beta2FixedSizeBucketingConfig
3335 3336 3337 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket_size ⇒ Float
Size of each bucket (except for minimum and maximum buckets). So if
lower_bound
= 10, upper_bound
= 89, and bucket_size
= 10, then the
following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required].
Corresponds to the JSON property bucketSize
3313 3314 3315 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3313 def bucket_size @bucket_size end |
#lower_bound ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Value
Set of primitive values supported by the system.
Note that for the purposes of inspection or transformation, the number
of bytes considered to comprise a 'Value' is based on its representation
as a UTF-8 encoded string. For example, if 'integer_value' is set to
123456789, the number of bytes would be counted as 9, even though an
int64 only holds up to 8 bytes of data.
Corresponds to the JSON property lowerBound
3323 3324 3325 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3323 def lower_bound @lower_bound end |
#upper_bound ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Value
Set of primitive values supported by the system.
Note that for the purposes of inspection or transformation, the number
of bytes considered to comprise a 'Value' is based on its representation
as a UTF-8 encoded string. For example, if 'integer_value' is set to
123456789, the number of bytes would be counted as 9, even though an
int64 only holds up to 8 bytes of data.
Corresponds to the JSON property upperBound
3333 3334 3335 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3333 def upper_bound @upper_bound end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3340 3341 3342 3343 3344 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3340 def update!(**args) @bucket_size = args[:bucket_size] if args.key?(:bucket_size) @lower_bound = args[:lower_bound] if args.key?(:lower_bound) @upper_bound = args[:upper_bound] if args.key?(:upper_bound) end |