Class: Google::Apis::DataprocV1beta2::QueryList

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

Overview

A list of queries to run on a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryList

Returns a new instance of QueryList.



2815
2816
2817
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2815

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

Instance Attribute Details

#queriesArray<String>

Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a 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>)


2813
2814
2815
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2813

def queries
  @queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2820
2821
2822
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2820

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