Class: Google::Apis::AlloydbV1beta::MigrationSource
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::MigrationSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
Subset of the source instance configuration that is available when reading the cluster resource.
Instance Attribute Summary collapse
-
#host_port ⇒ String
Output only.
-
#reference_id ⇒ String
Output only.
-
#source_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MigrationSource
constructor
A new instance of MigrationSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MigrationSource
Returns a new instance of MigrationSource.
1658 1659 1660 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1658 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host_port ⇒ String
Output only. The host and port of the on-premises instance in host:port format
Corresponds to the JSON property hostPort
1645 1646 1647 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1645 def host_port @host_port end |
#reference_id ⇒ String
Output only. Place holder for the external source identifier(e.g DMS job name)
that created the cluster.
Corresponds to the JSON property referenceId
1651 1652 1653 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1651 def reference_id @reference_id end |
#source_type ⇒ String
Output only. Type of migration source.
Corresponds to the JSON property sourceType
1656 1657 1658 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1656 def source_type @source_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1663 1664 1665 1666 1667 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1663 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 |