Class: Google::Apis::BigqueryV2::ViewDefinition
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::ViewDefinition
- 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
-
#query ⇒ String
[Required] A query that BigQuery executes when the view is referenced.
-
#use_legacy_sql ⇒ Boolean
(also: #use_legacy_sql?)
[Experimental] Specifies whether to use BigQuery's legacy SQL for this view.
-
#user_defined_function_resources ⇒ Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>
[Experimental] Describes user-defined function resources used in the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ViewDefinition
constructor
A new instance of ViewDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ViewDefinition
Returns a new instance of ViewDefinition.
3015 3016 3017 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3015 def initialize(**args) update!(**args) end |
Instance Attribute Details
#query ⇒ String
[Required] A query that BigQuery executes when the view is referenced.
Corresponds to the JSON property query
2999 3000 3001 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2999 def query @query end |
#use_legacy_sql ⇒ Boolean Also known as: use_legacy_sql?
[Experimental] 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: https://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
3007 3008 3009 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3007 def use_legacy_sql @use_legacy_sql end |
#user_defined_function_resources ⇒ Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>
[Experimental] Describes user-defined function resources used in the query.
Corresponds to the JSON property userDefinedFunctionResources
3013 3014 3015 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3013 def user_defined_function_resources @user_defined_function_resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3020 3021 3022 3023 3024 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3020 def update!(**args) @query = args[:query] if args.key?(:query) @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 |