Class: Google::Apis::BigqueryV2::JobConfigurationExtract
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::JobConfigurationExtract
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
-
#compression ⇒ String
[Optional] The compression type to use for exported files.
-
#destination_format ⇒ String
[Optional] The exported file format.
-
#destination_uri ⇒ String
[Pick one] DEPRECATED: Use destinationUris instead, passing only one URI as necessary.
-
#destination_uris ⇒ Array<String>
[Pick one] A list of fully-qualified Google Cloud Storage URIs where the extracted table should be written.
-
#field_delimiter ⇒ String
[Optional] Delimiter to use between fields in the exported data.
-
#print_header ⇒ Boolean
(also: #print_header?)
[Optional] Whether to print out a header row in the results.
-
#source_table ⇒ Google::Apis::BigqueryV2::TableReference
[Required] A reference to the table being exported.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobConfigurationExtract
constructor
A new instance of JobConfigurationExtract.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ JobConfigurationExtract
Returns a new instance of JobConfigurationExtract
1328 1329 1330 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1328 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compression ⇒ String
[Optional] The compression type to use for exported files. Possible values
include GZIP, DEFLATE, SNAPPY, and NONE. The default value is NONE. DEFLATE
and SNAPPY are only supported for Avro.
Corresponds to the JSON property compression
1290 1291 1292 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1290 def compression @compression end |
#destination_format ⇒ String
[Optional] The exported file format. Possible values include CSV,
NEWLINE_DELIMITED_JSON and AVRO. The default value is CSV. Tables with nested
or repeated fields cannot be exported as CSV.
Corresponds to the JSON property destinationFormat
1297 1298 1299 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1297 def destination_format @destination_format end |
#destination_uri ⇒ String
[Pick one] DEPRECATED: Use destinationUris instead, passing only one URI as
necessary. The fully-qualified Google Cloud Storage URI where the extracted
table should be written.
Corresponds to the JSON property destinationUri
1304 1305 1306 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1304 def destination_uri @destination_uri end |
#destination_uris ⇒ Array<String>
[Pick one] A list of fully-qualified Google Cloud Storage URIs where the
extracted table should be written.
Corresponds to the JSON property destinationUris
1310 1311 1312 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1310 def destination_uris @destination_uris end |
#field_delimiter ⇒ String
[Optional] Delimiter to use between fields in the exported data. Default is ','
Corresponds to the JSON property fieldDelimiter
1315 1316 1317 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1315 def field_delimiter @field_delimiter end |
#print_header ⇒ Boolean Also known as: print_header?
[Optional] Whether to print out a header row in the results. Default is true.
Corresponds to the JSON property printHeader
1320 1321 1322 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1320 def print_header @print_header end |
#source_table ⇒ Google::Apis::BigqueryV2::TableReference
[Required] A reference to the table being exported.
Corresponds to the JSON property sourceTable
1326 1327 1328 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1326 def source_table @source_table end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1333 1334 1335 1336 1337 1338 1339 1340 1341 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1333 def update!(**args) @compression = args[:compression] if args.key?(:compression) @destination_format = args[:destination_format] if args.key?(:destination_format) @destination_uri = args[:destination_uri] if args.key?(:destination_uri) @destination_uris = args[:destination_uris] if args.key?(:destination_uris) @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter) @print_header = args[:print_header] if args.key?(:print_header) @source_table = args[:source_table] if args.key?(:source_table) end |