Class: Google::Apis::BigqueryV2::JobConfigurationExtract

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JobConfigurationExtract


1134
1135
1136
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1134

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#compressionString

[Optional] The compression type to use for exported files. Possible values include GZIP and NONE. The default value is NONE. Corresponds to the JSON property compression


1096
1097
1098
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1096

def compression
  @compression
end

#destination_formatString

[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


1103
1104
1105
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1103

def destination_format
  @destination_format
end

#destination_uriString

[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


1110
1111
1112
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1110

def destination_uri
  @destination_uri
end

#destination_urisArray<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


1116
1117
1118
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1116

def destination_uris
  @destination_uris
end

#field_delimiterString

[Optional] Delimiter to use between fields in the exported data. Default is ',' Corresponds to the JSON property fieldDelimiter


1121
1122
1123
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1121

def field_delimiter
  @field_delimiter
end

[Optional] Whether to print out a header row in the results. Default is true. Corresponds to the JSON property printHeader


1126
1127
1128
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1126

def print_header
  @print_header
end

#source_tableGoogle::Apis::BigqueryV2::TableReference

[Required] A reference to the table being exported. Corresponds to the JSON property sourceTable


1132
1133
1134
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1132

def source_table
  @source_table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1139
1140
1141
1142
1143
1144
1145
1146
1147
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1139

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