Class: Google::Apis::BigqueryV2::QueryParameter
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::QueryParameter
- 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 parameter given to a query.
Instance Attribute Summary collapse
-
#name ⇒ String
Optional.
-
#parameter_type ⇒ Google::Apis::BigqueryV2::QueryParameterType
The type of a query parameter.
-
#parameter_value ⇒ Google::Apis::BigqueryV2::QueryParameterValue
The value of a query parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryParameter
constructor
A new instance of QueryParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryParameter
Returns a new instance of QueryParameter.
7371 7372 7373 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7371 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Optional. If unset, this is a positional parameter. Otherwise, should be
unique within a query.
Corresponds to the JSON property name
7359 7360 7361 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7359 def name @name end |
#parameter_type ⇒ Google::Apis::BigqueryV2::QueryParameterType
The type of a query parameter.
Corresponds to the JSON property parameterType
7364 7365 7366 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7364 def parameter_type @parameter_type end |
#parameter_value ⇒ Google::Apis::BigqueryV2::QueryParameterValue
The value of a query parameter.
Corresponds to the JSON property parameterValue
7369 7370 7371 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7369 def parameter_value @parameter_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7376 7377 7378 7379 7380 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7376 def update!(**args) @name = args[:name] if args.key?(:name) @parameter_type = args[:parameter_type] if args.key?(:parameter_type) @parameter_value = args[:parameter_value] if args.key?(:parameter_value) end |