class Google::Apis::BigqueryV2::JobConfigurationExtract

Attributes

compression[RW]
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. Not applicable when extracting models. Corresponds to the JSON property `compression` @return [String]

destination_format[RW]
Optional

The exported file format. Possible values include CSV,

NEWLINE_DELIMITED_JSON, PARQUET or AVRO for tables and ML_TF_SAVED_MODEL or ML_XGBOOST_BOOSTER for models. The default value for tables is CSV. Tables with nested or repeated fields cannot be exported as CSV. The default value for models is ML_TF_SAVED_MODEL. Corresponds to the JSON property `destinationFormat` @return [String]

destination_uri[RW]
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` @return [String]

destination_uris[RW]
Pick one

A list of fully-qualified Google Cloud Storage URIs where the

extracted table should be written. Corresponds to the JSON property `destinationUris` @return [Array<String>]

field_delimiter[RW]
Optional

Delimiter to use between fields in the exported data. Default is ','

. Not applicable when extracting models. Corresponds to the JSON property `fieldDelimiter` @return [String]

print_header[RW]
Optional

Whether to print out a header row in the results. Default is true.

Not applicable when extracting models. Corresponds to the JSON property `printHeader` @return [Boolean]

print_header?[RW]
Optional

Whether to print out a header row in the results. Default is true.

Not applicable when extracting models. Corresponds to the JSON property `printHeader` @return [Boolean]

source_model[RW]

A reference to the model being exported. Corresponds to the JSON property `sourceModel` @return [Google::Apis::BigqueryV2::ModelReference]

source_table[RW]

A reference to the table being exported. Corresponds to the JSON property `sourceTable` @return [Google::Apis::BigqueryV2::TableReference]

use_avro_logical_types[RW]
Optional

If destinationFormat is set to “AVRO”, this flag indicates whether

to enable extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical types (timestamp-micros), instead of only using their raw types (avro-long). Not applicable when extracting models. Corresponds to the JSON property `useAvroLogicalTypes` @return [Boolean]

use_avro_logical_types?[RW]
Optional

If destinationFormat is set to “AVRO”, this flag indicates whether

to enable extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical types (timestamp-micros), instead of only using their raw types (avro-long). Not applicable when extracting models. Corresponds to the JSON property `useAvroLogicalTypes` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/bigquery_v2/classes.rb, line 3107
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/bigquery_v2/classes.rb, line 3112
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_model = args[:source_model] if args.key?(:source_model)
  @source_table = args[:source_table] if args.key?(:source_table)
  @use_avro_logical_types = args[:use_avro_logical_types] if args.key?(:use_avro_logical_types)
end