Class: Google::Apis::BigqueryV2::Argument

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

Overview

Input/output argument of a function or a stored procedure.

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

Returns a new instance of Argument.



129
130
131
# File 'generated/google/apis/bigquery_v2/classes.rb', line 129

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

Instance Attribute Details

#argument_kindString

Optional. Defaults to FIXED_TYPE. Corresponds to the JSON property argumentKind

Returns:

  • (String)


101
102
103
# File 'generated/google/apis/bigquery_v2/classes.rb', line 101

def argument_kind
  @argument_kind
end

#data_typeGoogle::Apis::BigqueryV2::StandardSqlDataType

The type of a variable, e.g., a function argument. Examples: INT64: type_kind="INT64" ARRAY: type_kind="ARRAY", array_element_type="STRING" STRUCT>: type_kind="STRUCT", struct_type=fields=[ name="x", type=type_kind="STRING", `name="y", type=`type_kind="ARRAY", array_element_type="DATE" ]` Corresponds to the JSON propertydataType`



115
116
117
# File 'generated/google/apis/bigquery_v2/classes.rb', line 115

def data_type
  @data_type
end

#modeString

Optional. Specifies whether the argument is input or output. Can be set for procedures only. Corresponds to the JSON property mode

Returns:

  • (String)


121
122
123
# File 'generated/google/apis/bigquery_v2/classes.rb', line 121

def mode
  @mode
end

#nameString

Optional. The name of this argument. Can be absent for function return argument. Corresponds to the JSON property name

Returns:

  • (String)


127
128
129
# File 'generated/google/apis/bigquery_v2/classes.rb', line 127

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



134
135
136
137
138
139
# File 'generated/google/apis/bigquery_v2/classes.rb', line 134

def update!(**args)
  @argument_kind = args[:argument_kind] if args.key?(:argument_kind)
  @data_type = args[:data_type] if args.key?(:data_type)
  @mode = args[:mode] if args.key?(:mode)
  @name = args[:name] if args.key?(:name)
end