Class: Google::Apis::BigqueryV2::Argument
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::Argument
- 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
-
#argument_kind ⇒ String
Optional.
-
#data_type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as 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.
122 123 124 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 122 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 'lib/google/apis/bigquery_v2/classes.rb', line 98 def argument_kind @argument_kind end |
#data_type ⇒ Google::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 |
#mode ⇒ String
Optional. Specifies whether the argument is input or output. Can be set for
procedures only.
Corresponds to the JSON property mode
114 115 116 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 114 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
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 |