Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1SqlDatabaseSystemSpec

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 entries that are part SQL_DATABASE system ( user_specified_type)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1SqlDatabaseSystemSpec

Returns a new instance of GoogleCloudDatacatalogV1SqlDatabaseSystemSpec.



1871
1872
1873
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1871

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

Instance Attribute Details

#database_versionString

Version of the database engine. Corresponds to the JSON property databaseVersion

Returns:

  • (String)


1856
1857
1858
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1856

def database_version
  @database_version
end

#instance_hostString

Host of the SQL database enum InstanceHost UNDEFINED = 0; SELF_HOSTED = 1; CLOUD_SQL = 2; AMAZON_RDS = 3; AZURE_SQL = 4; Host of the enclousing database instance. Corresponds to the JSON property instanceHost

Returns:

  • (String)


1863
1864
1865
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1863

def instance_host
  @instance_host
end

#sql_engineString

SQL Database Engine. enum SqlEngine UNDEFINED = 0; MY_SQL = 1; POSTGRE_SQL = 2; SQL_SERVER = 3; Engine of the enclosing database instance. Corresponds to the JSON property sqlEngine

Returns:

  • (String)


1869
1870
1871
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1869

def sql_engine
  @sql_engine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1876
1877
1878
1879
1880
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1876

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