class Apcera::VirtualNetworkEndpointInterface
Attributes
hardware_addr[RW]
ipv4_addr[RW]
uuid[RW]
Public Class Methods
attribute_map()
click to toggle source
attribute mapping from ruby-style variable name to JSON key
# File lib/apcera/models/virtual_network_endpoint_interface.rb, line 6 def self.attribute_map { # Unique identifier assigned to the network interface. :'hardware_addr' => :'hardware_addr', # Virtual IP address assigned to the instance. :'ipv4_addr' => :'ipv4_addr', # The UUID of the network endpoint. :'uuid' => :'uuid' } end
new(attributes = {})
click to toggle source
# File lib/apcera/models/virtual_network_endpoint_interface.rb, line 31 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'hardware_addr'] self.hardware_addr = attributes[:'hardware_addr'] end if attributes[:'ipv4_addr'] self.ipv4_addr = attributes[:'ipv4_addr'] end if attributes[:'uuid'] self.uuid = attributes[:'uuid'] end end
swagger_types()
click to toggle source
attribute type
# File lib/apcera/models/virtual_network_endpoint_interface.rb, line 22 def self.swagger_types { :'hardware_addr' => :'String', :'ipv4_addr' => :'String', :'uuid' => :'String' } end