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

Overview

A parameter given to a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryParameter

Returns a new instance of QueryParameter.



7193
7194
7195
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7193

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)


7181
7182
7183
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7181

def name
  @name
end

#parameter_typeGoogle::Apis::BigqueryV2::QueryParameterType

The type of a query parameter. Corresponds to the JSON property parameterType



7186
7187
7188
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7186

def parameter_type
  @parameter_type
end

#parameter_valueGoogle::Apis::BigqueryV2::QueryParameterValue

The value of a query parameter. Corresponds to the JSON property parameterValue



7191
7192
7193
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7191

def parameter_value
  @parameter_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7198
7199
7200
7201
7202
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7198

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