Class: Google::Apis::ConnectorsV2::ExecuteSqlQueryRequest

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

An execute sql query request containing the query and the connection to execute it on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecuteSqlQueryRequest

Returns a new instance of ExecuteSqlQueryRequest.



322
323
324
# File 'lib/google/apis/connectors_v2/classes.rb', line 322

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

Instance Attribute Details

#queryGoogle::Apis::ConnectorsV2::Query

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



320
321
322
# File 'lib/google/apis/connectors_v2/classes.rb', line 320

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



327
328
329
# File 'lib/google/apis/connectors_v2/classes.rb', line 327

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