Class: Google::Apis::DataprocV1beta2::QueryList
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::QueryList
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb
Overview
A list of queries to run on a cluster.
Instance Attribute Summary collapse
-
#queries ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryList
constructor
A new instance of QueryList.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QueryList
Returns a new instance of QueryList
1815 1816 1817 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1815 def initialize(**args) update!(**args) end |
Instance Attribute Details
#queries ⇒ Array<String>
Required. The queries to execute. You do not need to terminate a query with a
semicolon. Multiple queries can be specified in one string by separating each
with a semicolon. Here is an example of an Cloud Dataproc API snippet that
uses a QueryList to specify a HiveJob:
"hiveJob":
"queryList":
"queries": [
"query1",
"query2",
"query3;query4",
]
Corresponds to the JSON property queries
1813 1814 1815 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1813 def queries @queries end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1820 1821 1822 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1820 def update!(**args) @queries = args[:queries] if args.key?(:queries) end |