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

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

Overview

Database instance clone context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloneContext

Returns a new instance of CloneContext.



585
586
587
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 585

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

Instance Attribute Details

#allocated_ip_rangeString

The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1- 63 characters long and match the regular expression a-z?. Reserved for future use. Corresponds to the JSON property allocatedIpRange

Returns:

  • (String)


544
545
546
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 544

def allocated_ip_range
  @allocated_ip_range
end

#bin_log_coordinatesGoogle::Apis::SqladminV1beta4::BinLogCoordinates

Binary log coordinates. Corresponds to the JSON property binLogCoordinates



549
550
551
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 549

def bin_log_coordinates
  @bin_log_coordinates
end

#database_namesArray<String>

(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty. Corresponds to the JSON property databaseNames

Returns:

  • (Array<String>)


555
556
557
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 555

def database_names
  @database_names
end

#destination_instance_nameString

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

Returns:

  • (String)


560
561
562
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 560

def destination_instance_name
  @destination_instance_name
end

#kindString

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

Returns:

  • (String)


565
566
567
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 565

def kind
  @kind
end

#pitr_timestamp_msFixnum

Reserved for future use. Corresponds to the JSON property pitrTimestampMs

Returns:

  • (Fixnum)


570
571
572
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 570

def pitr_timestamp_ms
  @pitr_timestamp_ms
end

#point_in_timeString

Timestamp, if specified, identifies the time to which the source instance is cloned. Corresponds to the JSON property pointInTime

Returns:

  • (String)


576
577
578
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 576

def point_in_time
  @point_in_time
end

#preferred_zoneString

Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance. Corresponds to the JSON property preferredZone

Returns:

  • (String)


583
584
585
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 583

def preferred_zone
  @preferred_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



590
591
592
593
594
595
596
597
598
599
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 590

def update!(**args)
  @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
  @bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates)
  @database_names = args[:database_names] if args.key?(:database_names)
  @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)
  @preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone)
end