Class: Google::Apis::MigrationcenterV1::NetworkAddress

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

Details of network address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkAddress

Returns a new instance of NetworkAddress.



3121
3122
3123
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3121

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)


3099
3100
3101
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3099

def assignment
  @assignment
end

#bcastString

Broadcast address. Corresponds to the JSON property bcast

Returns:

  • (String)


3104
3105
3106
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3104

def bcast
  @bcast
end

#fqdnString

Fully qualified domain name. Corresponds to the JSON property fqdn

Returns:

  • (String)


3109
3110
3111
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3109

def fqdn
  @fqdn
end

#ip_addressString

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

Returns:

  • (String)


3114
3115
3116
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3114

def ip_address
  @ip_address
end

#subnet_maskString

Subnet mask. Corresponds to the JSON property subnetMask

Returns:

  • (String)


3119
3120
3121
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3119

def subnet_mask
  @subnet_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3126
3127
3128
3129
3130
3131
3132
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3126

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