Class: Google::Apis::SqlV1beta4::CloneContext

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

Database instance clone context.

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) ⇒ CloneContext

Returns a new instance of CloneContext.



354
355
356
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 354

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

Instance Attribute Details

#bin_log_coordinatesGoogle::Apis::SqlV1beta4::BinLogCoordinates

Binary log coordinates. Corresponds to the JSON property binLogCoordinates



332
333
334
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 332

def bin_log_coordinates
  @bin_log_coordinates
end

#destination_instance_nameString

Name of the Cloud SQL instance to be created as a clone. Corresponds to the JSON property destinationInstanceName

Returns:

  • (String)


337
338
339
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 337

def destination_instance_name
  @destination_instance_name
end

#kindString

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

Returns:

  • (String)


342
343
344
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 342

def kind
  @kind
end

#pitr_timestamp_msFixnum

Reserved for future use. Corresponds to the JSON property pitrTimestampMs

Returns:

  • (Fixnum)


347
348
349
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 347

def pitr_timestamp_ms
  @pitr_timestamp_ms
end

#point_in_timeString

Reserved for future use. Corresponds to the JSON property pointInTime

Returns:

  • (String)


352
353
354
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 352

def point_in_time
  @point_in_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



359
360
361
362
363
364
365
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 359

def update!(**args)
  @bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates)
  @destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name)
  @kind = args[:kind] if args.key?(:kind)
  @pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms)
  @point_in_time = args[:point_in_time] if args.key?(:point_in_time)
end