Class: Google::Apis::DatastreamV1::CdcStrategy
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::CdcStrategy
- 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
-
#most_recent_start_position ⇒ Google::Apis::DatastreamV1::MostRecentStartPosition
CDC strategy to start replicating from the most recent position in the source.
-
#next_available_start_position ⇒ Google::Apis::DatastreamV1::NextAvailableStartPosition
CDC strategy to resume replication from the next available position in the source.
-
#specific_start_position ⇒ Google::Apis::DatastreamV1::SpecificStartPosition
CDC strategy to start replicating from a specific position in the source.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CdcStrategy
constructor
A new instance of CdcStrategy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CdcStrategy
Returns a new instance of CdcStrategy.
207 208 209 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#most_recent_start_position ⇒ Google::Apis::DatastreamV1::MostRecentStartPosition
CDC strategy to start replicating from the most recent position in the source.
Corresponds to the JSON property mostRecentStartPosition
194 195 196 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 194 def most_recent_start_position @most_recent_start_position end |
#next_available_start_position ⇒ Google::Apis::DatastreamV1::NextAvailableStartPosition
CDC strategy to resume replication from the next available position in the
source.
Corresponds to the JSON property nextAvailableStartPosition
200 201 202 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 200 def next_available_start_position @next_available_start_position end |
#specific_start_position ⇒ Google::Apis::DatastreamV1::SpecificStartPosition
CDC strategy to start replicating from a specific position in the source.
Corresponds to the JSON property specificStartPosition
205 206 207 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 205 def specific_start_position @specific_start_position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
212 213 214 215 216 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 212 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 |