Class: Google::Apis::AlloydbV1alpha::MigrationSource

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

Overview

Subset of the source instance configuration that is available when reading the cluster resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MigrationSource

Returns a new instance of MigrationSource.



1692
1693
1694
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1692

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

Instance Attribute Details

#host_portString

Output only. The host and port of the on-premises instance in host:port format Corresponds to the JSON property hostPort

Returns:

  • (String)


1679
1680
1681
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1679

def host_port
  @host_port
end

#reference_idString

Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster. Corresponds to the JSON property referenceId

Returns:

  • (String)


1685
1686
1687
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1685

def reference_id
  @reference_id
end

#source_typeString

Output only. Type of migration source. Corresponds to the JSON property sourceType

Returns:

  • (String)


1690
1691
1692
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1690

def source_type
  @source_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1697
1698
1699
1700
1701
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1697

def update!(**args)
  @host_port = args[:host_port] if args.key?(:host_port)
  @reference_id = args[:reference_id] if args.key?(:reference_id)
  @source_type = args[:source_type] if args.key?(:source_type)
end