Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataDocumentationResultQuery

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

Overview

A sample SQL query in data documentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataDocumentationResultQuery

Returns a new instance of GoogleCloudDataplexV1DataDocumentationResultQuery.



2463
2464
2465
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2463

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

Instance Attribute Details

#descriptionString

Output only. The description for the query. Corresponds to the JSON property description

Returns:

  • (String)


2456
2457
2458
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2456

def description
  @description
end

#sqlString

Output only. The SQL query string which can be executed. Corresponds to the JSON property sql

Returns:

  • (String)


2461
2462
2463
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2461

def sql
  @sql
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2468
2469
2470
2471
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2468

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