Class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryOptions

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

Overview

Options defining BigQuery table and row identifiers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2BigQueryOptions

Returns a new instance of GooglePrivacyDlpV2BigQueryOptions



322
323
324
# File 'generated/google/apis/dlp_v2/classes.rb', line 322

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

Instance Attribute Details

#excluded_fieldsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>

References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. Corresponds to the JSON property excludedFields



283
284
285
# File 'generated/google/apis/dlp_v2/classes.rb', line 283

def excluded_fields
  @excluded_fields
end

#identifying_fieldsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>

References to fields uniquely identifying rows within the table. Nested fields in the format, like person.birthdate.year, are allowed. Corresponds to the JSON property identifyingFields



289
290
291
# File 'generated/google/apis/dlp_v2/classes.rb', line 289

def identifying_fields
  @identifying_fields
end

#rows_limitFixnum

Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig. Corresponds to the JSON property rowsLimit

Returns:

  • (Fixnum)


297
298
299
# File 'generated/google/apis/dlp_v2/classes.rb', line 297

def rows_limit
  @rows_limit
end

#rows_limit_percentFixnum

Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig. Corresponds to the JSON property rowsLimitPercent

Returns:

  • (Fixnum)


306
307
308
# File 'generated/google/apis/dlp_v2/classes.rb', line 306

def rows_limit_percent
  @rows_limit_percent
end

#sample_methodString

Corresponds to the JSON property sampleMethod

Returns:

  • (String)


311
312
313
# File 'generated/google/apis/dlp_v2/classes.rb', line 311

def sample_method
  @sample_method
end

#table_referenceGoogle::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable

Message defining the location of a BigQuery table. A table is uniquely identified by its project_id, dataset_id, and table_name. Within a query a table is often referenced with a string in the format of: <project_id>:<dataset_id>.<table_id> or <project_id>.<dataset_id>.<table_id>. Corresponds to the JSON property tableReference



320
321
322
# File 'generated/google/apis/dlp_v2/classes.rb', line 320

def table_reference
  @table_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



327
328
329
330
331
332
333
334
# File 'generated/google/apis/dlp_v2/classes.rb', line 327

def update!(**args)
  @excluded_fields = args[:excluded_fields] if args.key?(:excluded_fields)
  @identifying_fields = args[:identifying_fields] if args.key?(:identifying_fields)
  @rows_limit = args[:rows_limit] if args.key?(:rows_limit)
  @rows_limit_percent = args[:rows_limit_percent] if args.key?(:rows_limit_percent)
  @sample_method = args[:sample_method] if args.key?(:sample_method)
  @table_reference = args[:table_reference] if args.key?(:table_reference)
end