lib/fog/azurerm/models/network/network_interface.rb in fog-azure-rm-temp-0.0.1 vs lib/fog/azurerm/models/network/network_interface.rb in fog-azure-rm-temp-0.0.2
- old
+ new
@@ -20,11 +20,10 @@
attribute :load_balancer_inbound_nat_rules_ids
attribute :dns_servers
attribute :applied_dns_servers
attribute :internal_dns_name_label
attribute :internal_fqd
- attribute :type
def self.parse(nic)
hash = {}
hash['id'] = nic.id
hash['name'] = nic.name
@@ -32,10 +31,9 @@
hash['resource_group'] = get_resource_from_resource_id(nic.id, RESOURCE_GROUP_NAME)
hash['virtual_machine_id'] = nic.virtual_machine.id unless nic.virtual_machine.nil?
hash['mac_address'] = nic.mac_address unless nic.mac_address.nil?
hash['network_security_group_id'] = nil
hash['network_security_group_id'] = nic.network_security_group.id unless nic.network_security_group.nil?
- hash['type'] = nic.type
ip_configuration = nic.ip_configurations[0] unless nic.ip_configurations.nil?
unless ip_configuration.nil?
hash['ip_configuration_name'] = ip_configuration.name
hash['ip_configuration_id'] = ip_configuration.id
hash['subnet_id'] = ip_configuration.subnet.id unless ip_configuration.subnet.nil?