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.



264
265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 264

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. 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. Cannot be used in conjunction with TimespanConfig.



264
265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 264

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



264
265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 264

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:



264
265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 264

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