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.



1827
1828
1829
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1827

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)


1819
1820
1821
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1819

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)


1824
1825
1826
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1824

def use_int64_timestamp
  @use_int64_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1832
1833
1834
1835
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1832

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