Class: Google::Apis::ConnectorsV2::Query
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV2::Query
- 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
-
#query ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Query
constructor
A new instance of Query.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#query ⇒ String
Required. Sql query to execute.
Corresponds to the JSON property query
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 |