Class: Google::Apis::DatastreamV1::CdcStrategy

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

The strategy that the stream uses for CDC replication.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CdcStrategy

Returns a new instance of CdcStrategy.



279
280
281
# File 'lib/google/apis/datastream_v1/classes.rb', line 279

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

Instance Attribute Details

#most_recent_start_positionGoogle::Apis::DatastreamV1::MostRecentStartPosition

CDC strategy to start replicating from the most recent position in the source. Corresponds to the JSON property mostRecentStartPosition



266
267
268
# File 'lib/google/apis/datastream_v1/classes.rb', line 266

def most_recent_start_position
  @most_recent_start_position
end

#next_available_start_positionGoogle::Apis::DatastreamV1::NextAvailableStartPosition

CDC strategy to resume replication from the next available position in the source. Corresponds to the JSON property nextAvailableStartPosition



272
273
274
# File 'lib/google/apis/datastream_v1/classes.rb', line 272

def next_available_start_position
  @next_available_start_position
end

#specific_start_positionGoogle::Apis::DatastreamV1::SpecificStartPosition

CDC strategy to start replicating from a specific position in the source. Corresponds to the JSON property specificStartPosition



277
278
279
# File 'lib/google/apis/datastream_v1/classes.rb', line 277

def specific_start_position
  @specific_start_position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



284
285
286
287
288
# File 'lib/google/apis/datastream_v1/classes.rb', line 284

def update!(**args)
  @most_recent_start_position = args[:most_recent_start_position] if args.key?(:most_recent_start_position)
  @next_available_start_position = args[:next_available_start_position] if args.key?(:next_available_start_position)
  @specific_start_position = args[:specific_start_position] if args.key?(:specific_start_position)
end