Class: Google::Apis::MigrationcenterV1alpha1::NetworkAddress

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

Details of network address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkAddress

Returns a new instance of NetworkAddress.



4462
4463
4464
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4462

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

Instance Attribute Details

#assignmentString

Whether DHCP is used to assign addresses. Corresponds to the JSON property assignment

Returns:

  • (String)


4440
4441
4442
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4440

def assignment
  @assignment
end

#bcastString

Broadcast address. Corresponds to the JSON property bcast

Returns:

  • (String)


4445
4446
4447
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4445

def bcast
  @bcast
end

#fqdnString

Fully qualified domain name. Corresponds to the JSON property fqdn

Returns:

  • (String)


4450
4451
4452
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4450

def fqdn
  @fqdn
end

#ip_addressString

Assigned or configured IP Address. Corresponds to the JSON property ipAddress

Returns:

  • (String)


4455
4456
4457
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4455

def ip_address
  @ip_address
end

#subnet_maskString

Subnet mask. Corresponds to the JSON property subnetMask

Returns:

  • (String)


4460
4461
4462
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4460

def subnet_mask
  @subnet_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4467
4468
4469
4470
4471
4472
4473
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4467

def update!(**args)
  @assignment = args[:assignment] if args.key?(:assignment)
  @bcast = args[:bcast] if args.key?(:bcast)
  @fqdn = args[:fqdn] if args.key?(:fqdn)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @subnet_mask = args[:subnet_mask] if args.key?(:subnet_mask)
end