Class: Google::Apis::BigqueryV2::QueryParameterValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ QueryParameterValue

Returns a new instance of QueryParameterValue.



4639
4640
4641
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4639

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#array_valuesArray<Google::Apis::BigqueryV2::QueryParameterValue>

[Optional] The array values, if this is an array type. Corresponds to the JSON property arrayValues



4627
4628
4629
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4627

def array_values
  @array_values
end

#struct_valuesHash<String,Google::Apis::BigqueryV2::QueryParameterValue>

[Optional] The struct field values, in order of the struct type's declaration. Corresponds to the JSON property structValues



4632
4633
4634
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4632

def struct_values
  @struct_values
end

#valueString

[Optional] The value of this value, if a simple scalar type. Corresponds to the JSON property value

Returns:

  • (String)


4637
4638
4639
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4637

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4644
4645
4646
4647
4648
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4644

def update!(**args)
  @array_values = args[:array_values] if args.key?(:array_values)
  @struct_values = args[:struct_values] if args.key?(:struct_values)
  @value = args[:value] if args.key?(:value)
end