Class: Google::Apis::MigrationcenterV1::DatabaseInstanceNetwork

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

Overview

Network details of a database instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseInstanceNetwork

Returns a new instance of DatabaseInstanceNetwork.



1738
1739
1740
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1738

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

Instance Attribute Details

#host_namesArray<String>

Optional. The instance's host names. Corresponds to the JSON property hostNames

Returns:

  • (Array<String>)


1726
1727
1728
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1726

def host_names
  @host_names
end

#ip_addressesArray<String>

Optional. The instance's IP addresses. Corresponds to the JSON property ipAddresses

Returns:

  • (Array<String>)


1731
1732
1733
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1731

def ip_addresses
  @ip_addresses
end

#primary_mac_addressString

Optional. The instance's primary MAC address. Corresponds to the JSON property primaryMacAddress

Returns:

  • (String)


1736
1737
1738
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1736

def primary_mac_address
  @primary_mac_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1743
1744
1745
1746
1747
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1743

def update!(**args)
  @host_names = args[:host_names] if args.key?(:host_names)
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
  @primary_mac_address = args[:primary_mac_address] if args.key?(:primary_mac_address)
end