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.



2523
2524
2525
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2523

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)


2516
2517
2518
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2516

def description
  @description
end

#sqlString

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

Returns:

  • (String)


2521
2522
2523
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2521

def sql
  @sql
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2528
2529
2530
2531
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2528

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