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.



2789
2790
2791
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2789

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)


2767
2768
2769
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2767

def assignment
  @assignment
end

#bcastString

Broadcast address. Corresponds to the JSON property bcast

Returns:

  • (String)


2772
2773
2774
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2772

def bcast
  @bcast
end

#fqdnString

Fully qualified domain name. Corresponds to the JSON property fqdn

Returns:

  • (String)


2777
2778
2779
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2777

def fqdn
  @fqdn
end

#ip_addressString

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

Returns:

  • (String)


2782
2783
2784
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2782

def ip_address
  @ip_address
end

#subnet_maskString

Subnet mask. Corresponds to the JSON property subnetMask

Returns:

  • (String)


2787
2788
2789
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2787

def subnet_mask
  @subnet_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2794
2795
2796
2797
2798
2799
2800
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2794

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