Class: Fluent::BigQueryOutput::FieldSchema
- Inherits:
-
Object
- Object
- Fluent::BigQueryOutput::FieldSchema
- Defined in:
- lib/fluent/plugin/out_bigquery.rb
Overview
def client_oauth # not implemented raise NotImplementedError, "OAuth needs browser authentication..."
client = Google::APIClient.new(
:application_name => 'Example Ruby application',
:application_version => '1.0.0'
)
bigquery = client.discovered_api('bigquery', 'v2')
flow = Google::APIClient::InstalledAppFlow.new(
:client_id => @client_id
:client_secret => @client_secret
:scope => ['https://www.googleapis.com/auth/bigquery']
)
client.authorization = flow.authorize # browser authentication !
client
end
Direct Known Subclasses
BooleanFieldSchema, FloatFieldSchema, IntegerFieldSchema, RecordSchema, StringFieldSchema
Instance Method Summary collapse
Instance Method Details
#format(value) ⇒ Object
308 309 310 |
# File 'lib/fluent/plugin/out_bigquery.rb', line 308 def format(value) raise NotImplementedError, "Must implement in a subclass" end |