Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SqlDatabaseSystemSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datacatalog_v1/classes.rb,
lib/google/apis/datacatalog_v1/representations.rb,
lib/google/apis/datacatalog_v1/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.



2863
2864
2865
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2863

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

Instance Attribute Details

#database_versionString

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

Returns:

  • (String)


2848
2849
2850
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2848

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)


2855
2856
2857
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2855

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)


2861
2862
2863
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2861

def sql_engine
  @sql_engine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2868
2869
2870
2871
2872
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2868

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