Class: Google::Privacy::Dlp::V2::BigQueryOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb

Overview

Options defining BigQuery table and row identifiers.

Defined Under Namespace

Modules: SampleMethod

Instance Attribute Summary collapse

Instance Attribute Details

#identifying_fieldsArray<Google::Privacy::Dlp::V2::FieldId>

Returns References to fields uniquely identifying rows within the table. Nested fields in the format, like +person.birthdate.year+, are allowed.

Returns:

  • (Array<Google::Privacy::Dlp::V2::FieldId>)

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



306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306

class BigQueryOptions
  # How to sample rows if not all rows are scanned. Meaningful only when used
  # in conjunction with rows_limit. If not specified, scanning would start
  # from the top.
  module SampleMethod
    SAMPLE_METHOD_UNSPECIFIED = 0

    # Scan from the top (default).
    TOP = 1

    # Randomly pick the row to start scanning. The scanned rows are contiguous.
    RANDOM_START = 2
  end
end

#rows_limitInteger

Returns 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.

Returns:

  • (Integer)

    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.



306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306

class BigQueryOptions
  # How to sample rows if not all rows are scanned. Meaningful only when used
  # in conjunction with rows_limit. If not specified, scanning would start
  # from the top.
  module SampleMethod
    SAMPLE_METHOD_UNSPECIFIED = 0

    # Scan from the top (default).
    TOP = 1

    # Randomly pick the row to start scanning. The scanned rows are contiguous.
    RANDOM_START = 2
  end
end

#rows_limit_percentInteger

Returns 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.

Returns:

  • (Integer)

    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.



306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306

class BigQueryOptions
  # How to sample rows if not all rows are scanned. Meaningful only when used
  # in conjunction with rows_limit. If not specified, scanning would start
  # from the top.
  module SampleMethod
    SAMPLE_METHOD_UNSPECIFIED = 0

    # Scan from the top (default).
    TOP = 1

    # Randomly pick the row to start scanning. The scanned rows are contiguous.
    RANDOM_START = 2
  end
end

#sample_methodGoogle::Privacy::Dlp::V2::BigQueryOptions::SampleMethod



306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306

class BigQueryOptions
  # How to sample rows if not all rows are scanned. Meaningful only when used
  # in conjunction with rows_limit. If not specified, scanning would start
  # from the top.
  module SampleMethod
    SAMPLE_METHOD_UNSPECIFIED = 0

    # Scan from the top (default).
    TOP = 1

    # Randomly pick the row to start scanning. The scanned rows are contiguous.
    RANDOM_START = 2
  end
end

#table_referenceGoogle::Privacy::Dlp::V2::BigQueryTable

Returns Complete BigQuery table reference.

Returns:



306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 306

class BigQueryOptions
  # How to sample rows if not all rows are scanned. Meaningful only when used
  # in conjunction with rows_limit. If not specified, scanning would start
  # from the top.
  module SampleMethod
    SAMPLE_METHOD_UNSPECIFIED = 0

    # Scan from the top (default).
    TOP = 1

    # Randomly pick the row to start scanning. The scanned rows are contiguous.
    RANDOM_START = 2
  end
end