Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec

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

Overview

Specification that applies to database view.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec

Returns a new instance of GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec.



801
802
803
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 801

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

Instance Attribute Details

#base_tableString

Name of a singular table this view reflects one to one. Corresponds to the JSON property baseTable

Returns:

  • (String)


789
790
791
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 789

def base_table
  @base_table
end

#sql_queryString

SQL query used to generate this view. Corresponds to the JSON property sqlQuery

Returns:

  • (String)


794
795
796
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 794

def sql_query
  @sql_query
end

#view_typeString

Type of this view. Corresponds to the JSON property viewType

Returns:

  • (String)


799
800
801
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 799

def view_type
  @view_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



806
807
808
809
810
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 806

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