Class: Google::Apis::MetastoreV1::CloudSqlMigrationConfig

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

Overview

Configuration information for migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlMigrationConfig

Returns a new instance of CloudSqlMigrationConfig.



617
618
619
# File 'lib/google/apis/metastore_v1/classes.rb', line 617

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

Instance Attribute Details

#cdc_configGoogle::Apis::MetastoreV1::CdcConfig

Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore. Corresponds to the JSON property cdcConfig



609
610
611
# File 'lib/google/apis/metastore_v1/classes.rb', line 609

def cdc_config
  @cdc_config
end

#cloud_sql_connection_configGoogle::Apis::MetastoreV1::CloudSqlConnectionConfig

Configuration information to establish customer database connection before the cutover phase of migration Corresponds to the JSON property cloudSqlConnectionConfig



615
616
617
# File 'lib/google/apis/metastore_v1/classes.rb', line 615

def cloud_sql_connection_config
  @cloud_sql_connection_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



622
623
624
625
# File 'lib/google/apis/metastore_v1/classes.rb', line 622

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