Class: Google::Apis::DatastreamV1::SpecificStartPosition
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::SpecificStartPosition
- 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
-
#mongodb_change_stream_position ⇒ Google::Apis::DatastreamV1::MongodbChangeStreamPosition
MongoDB change stream position Corresponds to the JSON property
mongodbChangeStreamPosition. -
#mysql_gtid_position ⇒ Google::Apis::DatastreamV1::MysqlGtidPosition
MySQL GTID position Corresponds to the JSON property
mysqlGtidPosition. -
#mysql_log_position ⇒ Google::Apis::DatastreamV1::MysqlLogPosition
MySQL log position Corresponds to the JSON property
mysqlLogPosition. -
#oracle_scn_position ⇒ Google::Apis::DatastreamV1::OracleScnPosition
Oracle SCN position Corresponds to the JSON property
oracleScnPosition. -
#sql_server_lsn_position ⇒ Google::Apis::DatastreamV1::SqlServerLsnPosition
SQL Server LSN position Corresponds to the JSON property
sqlServerLsnPosition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpecificStartPosition
constructor
A new instance of SpecificStartPosition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpecificStartPosition
Returns a new instance of SpecificStartPosition.
3769 3770 3771 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3769 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mongodb_change_stream_position ⇒ Google::Apis::DatastreamV1::MongodbChangeStreamPosition
MongoDB change stream position
Corresponds to the JSON property mongodbChangeStreamPosition
3747 3748 3749 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3747 def mongodb_change_stream_position @mongodb_change_stream_position end |
#mysql_gtid_position ⇒ Google::Apis::DatastreamV1::MysqlGtidPosition
MySQL GTID position
Corresponds to the JSON property mysqlGtidPosition
3752 3753 3754 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3752 def mysql_gtid_position @mysql_gtid_position end |
#mysql_log_position ⇒ Google::Apis::DatastreamV1::MysqlLogPosition
MySQL log position
Corresponds to the JSON property mysqlLogPosition
3757 3758 3759 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3757 def mysql_log_position @mysql_log_position end |
#oracle_scn_position ⇒ Google::Apis::DatastreamV1::OracleScnPosition
Oracle SCN position
Corresponds to the JSON property oracleScnPosition
3762 3763 3764 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3762 def oracle_scn_position @oracle_scn_position end |
#sql_server_lsn_position ⇒ Google::Apis::DatastreamV1::SqlServerLsnPosition
SQL Server LSN position
Corresponds to the JSON property sqlServerLsnPosition
3767 3768 3769 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3767 def sql_server_lsn_position @sql_server_lsn_position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3774 3775 3776 3777 3778 3779 3780 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3774 def update!(**args) @mongodb_change_stream_position = args[:mongodb_change_stream_position] if args.key?(:mongodb_change_stream_position) @mysql_gtid_position = args[:mysql_gtid_position] if args.key?(:mysql_gtid_position) @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) @sql_server_lsn_position = args[:sql_server_lsn_position] if args.key?(:sql_server_lsn_position) end |