Class: Google::Apis::SqladminV1beta4::CloneContext

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_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



276
277
278
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 276

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

Instance Attribute Details

#bin_log_coordinatesGoogle::Apis::SqladminV1beta4::BinLogCoordinates

Binary log coordinates. Corresponds to the JSON property binLogCoordinates



264
265
266
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 264

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)


269
270
271
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 269

def destination_instance_name
  @destination_instance_name
end

#kindString

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

Returns:

  • (String)


274
275
276
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 274

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



281
282
283
284
285
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 281

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)
end