class Google::Apis::BigqueryV2::ViewDefinition
Attributes
- Required
-
A query that BigQuery executes when the view is referenced.
Corresponds to the JSON property `query` @return [String]
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]
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]
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]
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]
Describes user-defined function resources used in the query. Corresponds to the JSON property `userDefinedFunctionResources` @return [Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>]
Public Class Methods
# File lib/google/apis/bigquery_v2/classes.rb, line 7499 def initialize(**args) update!(**args) end
Public Instance Methods
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