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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryParameter

Returns a new instance of QueryParameter.



4812
4813
4814
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4812

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)


4800
4801
4802
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4800

def name
  @name
end

#parameter_typeGoogle::Apis::BigqueryV2::QueryParameterType

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



4805
4806
4807
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4805

def parameter_type
  @parameter_type
end

#parameter_valueGoogle::Apis::BigqueryV2::QueryParameterValue

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



4810
4811
4812
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4810

def parameter_value
  @parameter_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4817
4818
4819
4820
4821
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4817

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