class Google::Apis::BigqueryV2::Argument

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

Attributes

argument_kind[RW]

Optional. Defaults to FIXED_TYPE. Corresponds to the JSON property `argumentKind` @return [String]

data_type[RW]

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 property `dataType` @return [Google::Apis::BigqueryV2::StandardSqlDataType]

mode[RW]

Optional. Specifies whether the argument is input or output. Can be set for procedures only. Corresponds to the JSON property `mode` @return [String]

name[RW]

Optional. The name of this argument. Can be absent for function return argument. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/bigquery_v2/classes.rb, line 120
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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