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.



1101
1102
1103
# File 'lib/google/apis/datastream_v1/classes.rb', line 1101

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)


1094
1095
1096
# File 'lib/google/apis/datastream_v1/classes.rb', line 1094

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)


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