Class: Google::Apis::DataprocV1::QueryList

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb

Overview

A list of queries to run on a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ QueryList

Returns a new instance of QueryList



1100
1101
1102
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1100

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#queriesArray<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

Returns:

  • (Array<String>)


1098
1099
1100
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1098

def queries
  @queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1105
1106
1107
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1105

def update!(**args)
  @queries = args[:queries] if args.key?(:queries)
end