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.
1101 1102 1103 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1101 def initialize(**args) update!(**args) end |
Instance Attribute Details
#log_file ⇒ String
Required. The binary log file name.
Corresponds to the JSON property logFile
1094 1095 1096 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1094 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
1099 1100 1101 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1099 def log_position @log_position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1106 1107 1108 1109 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1106 def update!(**args) @log_file = args[:log_file] if args.key?(:log_file) @log_position = args[:log_position] if args.key?(:log_position) end |