Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FixedSizeBucketingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FixedSizeBucketingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/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 resulting value will be a hyphenated string of lower_bound-upper_bound. This can be used on data of type: double, long. 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.
Instance Attribute Summary collapse
-
#bucket_size ⇒ Float
Size of each bucket (except for minimum and maximum buckets).
-
#lower_bound ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value
Set of primitive values supported by the system.
-
#upper_bound ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value
Set of primitive values supported by the system.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1FixedSizeBucketingConfig
constructor
A new instance of GooglePrivacyDlpV2beta1FixedSizeBucketingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1FixedSizeBucketingConfig
Returns a new instance of GooglePrivacyDlpV2beta1FixedSizeBucketingConfig
1365 1366 1367 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1365 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
1353 1354 1355 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1353 def bucket_size @bucket_size end |
#lower_bound ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value
Set of primitive values supported by the system.
Corresponds to the JSON property lowerBound
1358 1359 1360 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1358 def lower_bound @lower_bound end |
#upper_bound ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value
Set of primitive values supported by the system.
Corresponds to the JSON property upperBound
1363 1364 1365 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1363 def upper_bound @upper_bound end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1370 1371 1372 1373 1374 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1370 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 |