Class: Google::Apis::BigqueryV2::Argument
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::Argument
- 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
-
#argument_kind ⇒ String
Optional.
-
#data_type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The type of a variable, e.g., a function argument.
-
#mode ⇒ String
Optional.
-
#name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Argument
constructor
A new instance of Argument.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_kind ⇒ String
Optional. Defaults to FIXED_TYPE.
Corresponds to the JSON property argumentKind
98 99 100 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 98 def argument_kind @argument_kind end |
#data_type ⇒ Google::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 property
dataType`
106 107 108 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 106 def data_type @data_type end |
#mode ⇒ String
Optional. Specifies whether the argument is input or output. Can be set for
procedures only.
Corresponds to the JSON property mode
112 113 114 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 112 def mode @mode end |
#name ⇒ String
Optional. The name of this argument. Can be absent for function return
argument.
Corresponds to the JSON property name
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 |