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.
-
#timestamp_precision ⇒ Fixnum
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.
8453 8454 8455 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8453 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
8428 8429 8430 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8428 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
8433 8434 8435 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8433 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
8439 8440 8441 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8439 def struct_types @struct_types end |
#timestamp_precision ⇒ Fixnum
Optional. Precision (maximum number of total digits in base 10) for seconds of
TIMESTAMP type. Possible values include: * 6 (Default, for TIMESTAMP type with
microsecond precision) * 12 (For TIMESTAMP type with picosecond precision)
Corresponds to the JSON property timestampPrecision
8446 8447 8448 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8446 def @timestamp_precision end |
#type ⇒ String
Required. The top level type of this field.
Corresponds to the JSON property type
8451 8452 8453 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8451 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8458 8459 8460 8461 8462 8463 8464 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8458 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) @timestamp_precision = args[:timestamp_precision] if args.key?(:timestamp_precision) @type = args[:type] if args.key?(:type) end |