Class: Google::Apis::DatastreamV1::MysqlLogPosition

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

MySQL log position

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fileString

Required. The binary log file name. Corresponds to the JSON property logFile

Returns:

  • (String)


1160
1161
1162
# File 'lib/google/apis/datastream_v1/classes.rb', line 1160

def log_file
  @log_file
end

#log_positionFixnum

Optional. The position within the binary log file. Default is head of file. Corresponds to the JSON property logPosition

Returns:

  • (Fixnum)


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