Class: Google::Apis::BigqueryV2::QueryParameter
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::QueryParameter
- 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
-
#name ⇒ String
[Optional] If unset, this is a positional parameter.
-
#parameter_type ⇒ Google::Apis::BigqueryV2::QueryParameterType
[Required] The type of this parameter.
-
#parameter_value ⇒ Google::Apis::BigqueryV2::QueryParameterValue
[Required] The value of this parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryParameter
constructor
A new instance of QueryParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QueryParameter
Returns a new instance of QueryParameter
2782 2783 2784 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2782 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
2770 2771 2772 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2770 def name @name end |
#parameter_type ⇒ Google::Apis::BigqueryV2::QueryParameterType
[Required] The type of this parameter.
Corresponds to the JSON property parameterType
2775 2776 2777 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2775 def parameter_type @parameter_type end |
#parameter_value ⇒ Google::Apis::BigqueryV2::QueryParameterValue
[Required] The value of this parameter.
Corresponds to the JSON property parameterValue
2780 2781 2782 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2780 def parameter_value @parameter_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2787 2788 2789 2790 2791 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2787 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 |