Class: Google::Apis::DatastreamV1::MysqlLogPosition
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::MysqlLogPosition
- 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
MySQL log position
Instance Attribute Summary collapse
-
#log_file ⇒ String
Required.
-
#log_position ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MysqlLogPosition
constructor
A new instance of MysqlLogPosition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MysqlLogPosition
Returns a new instance of MysqlLogPosition.
1167 1168 1169 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#log_file ⇒ String
Required. The binary log file name.
Corresponds to the JSON property logFile
1160 1161 1162 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1160 def log_file @log_file end |
#log_position ⇒ Fixnum
Optional. The position within the binary log file. Default is head of file.
Corresponds to the JSON property logPosition
1165 1166 1167 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1165 def log_position @log_position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1172 1173 1174 1175 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1172 def update!(**args) @log_file = args[:log_file] if args.key?(:log_file) @log_position = args[:log_position] if args.key?(:log_position) end |