class Google::Apis::BigqueryV2::ViewDefinition

Attributes

query[RW]
Required

A query that BigQuery executes when the view is referenced.

Corresponds to the JSON property `query` @return [String]

use_explicit_column_names[RW]

True if the column names are explicitly specified. For example by using the ' CREATE VIEW v(c1, c2) AS …' syntax. Can only be set using BigQuery's standard SQL: cloud.google.com/bigquery/sql-reference/ Corresponds to the JSON property `useExplicitColumnNames` @return [Boolean]

use_explicit_column_names?[RW]

True if the column names are explicitly specified. For example by using the ' CREATE VIEW v(c1, c2) AS …' syntax. Can only be set using BigQuery's standard SQL: cloud.google.com/bigquery/sql-reference/ Corresponds to the JSON property `useExplicitColumnNames` @return [Boolean]

use_legacy_sql[RW]

Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's standard SQL: cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value. Corresponds to the JSON property `useLegacySql` @return [Boolean]

use_legacy_sql?[RW]

Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's standard SQL: cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value. Corresponds to the JSON property `useLegacySql` @return [Boolean]

user_defined_function_resources[RW]

Describes user-defined function resources used in the query. Corresponds to the JSON property `userDefinedFunctionResources` @return [Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/bigquery_v2/classes.rb, line 7499
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 7504
def update!(**args)
  @query = args[:query] if args.key?(:query)
  @use_explicit_column_names = args[:use_explicit_column_names] if args.key?(:use_explicit_column_names)
  @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
  @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
end