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.



1821
1822
1823
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1821

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)


1813
1814
1815
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1813

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)


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

def use_int64_timestamp
  @use_int64_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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