Class: Google::Apis::DatastreamV1::SpecificStartPosition

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

Overview

CDC strategy to start replicating from a specific position in the source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpecificStartPosition

Returns a new instance of SpecificStartPosition.



2392
2393
2394
# File 'lib/google/apis/datastream_v1/classes.rb', line 2392

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

Instance Attribute Details

#mysql_log_positionGoogle::Apis::DatastreamV1::MysqlLogPosition

MySQL log position Corresponds to the JSON property mysqlLogPosition



2385
2386
2387
# File 'lib/google/apis/datastream_v1/classes.rb', line 2385

def mysql_log_position
  @mysql_log_position
end

#oracle_scn_positionGoogle::Apis::DatastreamV1::OracleScnPosition

Oracle SCN position Corresponds to the JSON property oracleScnPosition



2390
2391
2392
# File 'lib/google/apis/datastream_v1/classes.rb', line 2390

def oracle_scn_position
  @oracle_scn_position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2397
2398
2399
2400
# File 'lib/google/apis/datastream_v1/classes.rb', line 2397

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