Class: Google::Apis::BigqueryV2::DataFormatOptions

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

Options for data format adjustments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataFormatOptions

Returns a new instance of DataFormatOptions.



1750
1751
1752
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1750

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

Instance Attribute Details

#timestamp_output_formatString

Optional. The API output format for a timestamp. This offers more explicit control over the timestamp output format as compared to the existing use_int64_timestamp option. Corresponds to the JSON property timestampOutputFormat

Returns:

  • (String)


1742
1743
1744
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1742

def timestamp_output_format
  @timestamp_output_format
end

#use_int64_timestampBoolean Also known as: use_int64_timestamp?

Optional. Output timestamp as usec int64. Default is false. Corresponds to the JSON property useInt64Timestamp

Returns:

  • (Boolean)


1747
1748
1749
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1747

def use_int64_timestamp
  @use_int64_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1755
1756
1757
1758
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1755

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