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.



181
182
183
# File 'lib/google/apis/connectors_v2/classes.rb', line 181

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



179
180
181
# File 'lib/google/apis/connectors_v2/classes.rb', line 179

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



186
187
188
# File 'lib/google/apis/connectors_v2/classes.rb', line 186

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