Class: Google::Apis::BigqueryV2::ForeignViewDefinition

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

A view can be represented in multiple ways. Each representation has its own dialect. This message stores the metadata required for these representations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ForeignViewDefinition

Returns a new instance of ForeignViewDefinition.



3397
3398
3399
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3397

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

Instance Attribute Details

#dialectString

Optional. Represents the dialect of the query. Corresponds to the JSON property dialect

Returns:

  • (String)


3390
3391
3392
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3390

def dialect
  @dialect
end

#queryString

Required. The query that defines the view. Corresponds to the JSON property query

Returns:

  • (String)


3395
3396
3397
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3395

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3402
3403
3404
3405
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3402

def update!(**args)
  @dialect = args[:dialect] if args.key?(:dialect)
  @query = args[:query] if args.key?(:query)
end