Class: Google::Apis::MigrationcenterV1alpha1::DatabaseInstanceNetwork

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



2842
2843
2844
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2842

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


2830
2831
2832
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2830

def host_names
  @host_names
end

#ip_addressesArray<String>

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

Returns:

  • (Array<String>)


2835
2836
2837
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2835

def ip_addresses
  @ip_addresses
end

#primary_mac_addressString

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

Returns:

  • (String)


2840
2841
2842
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2840

def primary_mac_address
  @primary_mac_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2847
2848
2849
2850
2851
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2847

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