Class: Google::Apis::SqlV1beta4::BinLogCoordinates

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sql_v1beta4/classes.rb,
generated/google/apis/sql_v1beta4/representations.rb,
generated/google/apis/sql_v1beta4/representations.rb

Overview

Binary log coordinates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BinLogCoordinates

Returns a new instance of BinLogCoordinates.



313
314
315
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 313

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bin_log_file_nameString

Name of the binary log file for a Cloud SQL instance. Corresponds to the JSON property binLogFileName

Returns:

  • (String)


301
302
303
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 301

def bin_log_file_name
  @bin_log_file_name
end

#bin_log_positionFixnum

Position (offset) within the binary log file. Corresponds to the JSON property binLogPosition

Returns:

  • (Fixnum)


306
307
308
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 306

def bin_log_position
  @bin_log_position
end

#kindString

This is always sql#binLogCoordinates. Corresponds to the JSON property kind

Returns:

  • (String)


311
312
313
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 311

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



318
319
320
321
322
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 318

def update!(**args)
  @bin_log_file_name = args[:bin_log_file_name] if args.key?(:bin_log_file_name)
  @bin_log_position = args[:bin_log_position] if args.key?(:bin_log_position)
  @kind = args[:kind] if args.key?(:kind)
end