Class: Google::Apis::BigqueryV2::AggregationThresholdPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb

Overview

Represents privacy policy associated with "aggregation threshold" method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AggregationThresholdPolicy

Returns a new instance of AggregationThresholdPolicy.



109
110
111
# File 'lib/google/apis/bigquery_v2/classes.rb', line 109

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

Instance Attribute Details

#privacy_unit_columnsArray<String>

Optional. The privacy unit column(s) associated with this policy. For now, only one column per data source object (table, view) is allowed as a privacy unit column. Representing as a repeated field in metadata for extensibility to multiple columns in future. Duplicates and Repeated struct fields are not allowed. For nested fields, use dot notation ("outer.inner") Corresponds to the JSON property privacyUnitColumns

Returns:

  • (Array<String>)


102
103
104
# File 'lib/google/apis/bigquery_v2/classes.rb', line 102

def privacy_unit_columns
  @privacy_unit_columns
end

#thresholdFixnum

Optional. The threshold for the "aggregation threshold" policy. Corresponds to the JSON property threshold

Returns:

  • (Fixnum)


107
108
109
# File 'lib/google/apis/bigquery_v2/classes.rb', line 107

def threshold
  @threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
# File 'lib/google/apis/bigquery_v2/classes.rb', line 114

def update!(**args)
  @privacy_unit_columns = args[:privacy_unit_columns] if args.key?(:privacy_unit_columns)
  @threshold = args[:threshold] if args.key?(:threshold)
end