Class: Google::Apis::BigqueryV2::QueryParameterType
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::QueryParameterType
- 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
The type of a query parameter.
Defined Under Namespace
Classes: StructType
Instance Attribute Summary collapse
-
#array_type ⇒ Google::Apis::BigqueryV2::QueryParameterType
The type of a query parameter.
-
#range_element_type ⇒ Google::Apis::BigqueryV2::QueryParameterType
The type of a query parameter.
-
#struct_types ⇒ Array<Google::Apis::BigqueryV2::QueryParameterType::StructType>
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryParameterType
constructor
A new instance of QueryParameterType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryParameterType
Returns a new instance of QueryParameterType.
7388 7389 7390 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7388 def initialize(**args) update!(**args) end |
Instance Attribute Details
#array_type ⇒ Google::Apis::BigqueryV2::QueryParameterType
The type of a query parameter.
Corresponds to the JSON property arrayType
7370 7371 7372 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7370 def array_type @array_type end |
#range_element_type ⇒ Google::Apis::BigqueryV2::QueryParameterType
The type of a query parameter.
Corresponds to the JSON property rangeElementType
7375 7376 7377 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7375 def range_element_type @range_element_type end |
#struct_types ⇒ Array<Google::Apis::BigqueryV2::QueryParameterType::StructType>
Optional. The types of the fields of this struct, in order, if this is a
struct.
Corresponds to the JSON property structTypes
7381 7382 7383 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7381 def struct_types @struct_types end |
#type ⇒ String
Required. The top level type of this field.
Corresponds to the JSON property type
7386 7387 7388 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7386 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7393 7394 7395 7396 7397 7398 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7393 def update!(**args) @array_type = args[:array_type] if args.key?(:array_type) @range_element_type = args[:range_element_type] if args.key?(:range_element_type) @struct_types = args[:struct_types] if args.key?(:struct_types) @type = args[:type] if args.key?(:type) end |