Class: Google::Apis::BigqueryV2::DataFormatOptions
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::DataFormatOptions
- 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
-
#timestamp_output_format ⇒ String
Optional.
-
#use_int64_timestamp ⇒ Boolean
(also: #use_int64_timestamp?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataFormatOptions
constructor
A new instance of DataFormatOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_format ⇒ String
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
1742 1743 1744 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1742 def @timestamp_output_format end |
#use_int64_timestamp ⇒ Boolean Also known as: use_int64_timestamp?
Optional. Output timestamp as usec int64. Default is false.
Corresponds to the JSON property useInt64Timestamp
1747 1748 1749 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1747 def @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 |