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

Constructor Details

#initialize(**args) ⇒ Argument

Returns a new instance of Argument.



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

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

Instance Attribute Details

#argument_kindString

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

Returns:

  • (String)


98
99
100
# File 'generated/google/apis/bigquery_v2/classes.rb', line 98

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`



106
107
108
# File 'generated/google/apis/bigquery_v2/classes.rb', line 106

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)


112
113
114
# File 'generated/google/apis/bigquery_v2/classes.rb', line 112

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)


118
119
120
# File 'generated/google/apis/bigquery_v2/classes.rb', line 118

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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