Class: Google::Apis::ConnectorsV2::Query

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

Overview

A wrapper around the SQL query statement. This is needed so that the JSON representation of ExecuteSqlQueryRequest has the following format: "query":" select *".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Query

Returns a new instance of Query.



427
428
429
# File 'lib/google/apis/connectors_v2/classes.rb', line 427

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

Instance Attribute Details

#queryString

Required. Sql query to execute. Corresponds to the JSON property query

Returns:

  • (String)


425
426
427
# File 'lib/google/apis/connectors_v2/classes.rb', line 425

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



432
433
434
# File 'lib/google/apis/connectors_v2/classes.rb', line 432

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