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.



213
214
215
# File 'lib/google/apis/datastream_v1/classes.rb', line 213

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



200
201
202
# File 'lib/google/apis/datastream_v1/classes.rb', line 200

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



206
207
208
# File 'lib/google/apis/datastream_v1/classes.rb', line 206

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



211
212
213
# File 'lib/google/apis/datastream_v1/classes.rb', line 211

def specific_start_position
  @specific_start_position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



218
219
220
221
222
# File 'lib/google/apis/datastream_v1/classes.rb', line 218

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