Class: Google::Apis::BigqueryV2::QueryParameter

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) ⇒ QueryParameter

Returns a new instance of QueryParameter



3510
3511
3512
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3510

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

Instance Attribute Details

#nameString

[Optional] If unset, this is a positional parameter. Otherwise, should be unique within a query. Corresponds to the JSON property name

Returns:

  • (String)


3498
3499
3500
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3498

def name
  @name
end

#parameter_typeGoogle::Apis::BigqueryV2::QueryParameterType

[Required] The type of this parameter. Corresponds to the JSON property parameterType



3503
3504
3505
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3503

def parameter_type
  @parameter_type
end

#parameter_valueGoogle::Apis::BigqueryV2::QueryParameterValue

[Required] The value of this parameter. Corresponds to the JSON property parameterValue



3508
3509
3510
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3508

def parameter_value
  @parameter_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3515
3516
3517
3518
3519
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3515

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