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

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

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.



122
123
124
# File 'lib/google/apis/bigquery_v2/classes.rb', line 122

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 'lib/google/apis/bigquery_v2/classes.rb', line 98

def argument_kind
  @argument_kind
end

#data_typeGoogle::Apis::BigqueryV2::StandardSqlDataType

The data type of a variable such as a function argument. Examples include: * INT64: "typeKind": "INT64" * ARRAY: "typeKind": "ARRAY", " arrayElementType":"typeKind": "STRING" * STRUCT>: "typeKind": "STRUCT", "structType": "fields": [ "name": "x", "type":"typeKind": "STRING", "name": "y", "type": "typeKind": "ARRAY", "arrayElementType": "typeKind": " DATE" ] Corresponds to the JSON property dataType



108
109
110
# File 'lib/google/apis/bigquery_v2/classes.rb', line 108

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)


114
115
116
# File 'lib/google/apis/bigquery_v2/classes.rb', line 114

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)


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

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



127
128
129
130
131
132
# File 'lib/google/apis/bigquery_v2/classes.rb', line 127

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