Class: Google::Apis::SqladminV1::BinLogCoordinates

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

Overview

Binary log coordinates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BinLogCoordinates

Returns a new instance of BinLogCoordinates.



532
533
534
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 532

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)


520
521
522
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 520

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)


525
526
527
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 525

def bin_log_position
  @bin_log_position
end

#kindString

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

Returns:

  • (String)


530
531
532
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 530

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



537
538
539
540
541
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 537

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