lib/fog/azurerm/models/network/network_interface.rb in fog-azure-rm-temp-0.0.4 vs lib/fog/azurerm/models/network/network_interface.rb in fog-azure-rm-temp-0.0.5

- old
+ new

@@ -20,10 +20,11 @@ attribute :load_balancer_inbound_nat_rules_ids attribute :dns_servers attribute :applied_dns_servers attribute :internal_dns_name_label attribute :internal_fqd + attribute :tags def self.parse(nic) hash = {} hash['id'] = nic.id hash['name'] = nic.name @@ -31,10 +32,11 @@ 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['tags'] = nic.tags 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? @@ -60,10 +62,10 @@ requires :location requires :resource_group requires :subnet_id requires :ip_configuration_name requires :private_ip_allocation_method - nic = service.create_or_update_network_interface(resource_group, name, location, subnet_id, public_ip_address_id, network_security_group_id, ip_configuration_name, private_ip_allocation_method, private_ip_address, load_balancer_backend_address_pools_ids, load_balancer_inbound_nat_rules_ids) + nic = service.create_or_update_network_interface(resource_group, name, location, subnet_id, public_ip_address_id, network_security_group_id, ip_configuration_name, private_ip_allocation_method, private_ip_address, load_balancer_backend_address_pools_ids, load_balancer_inbound_nat_rules_ids, tags) merge_attributes(Fog::Network::AzureRM::NetworkInterface.parse(nic)) end def update(updated_attributes = {}) validate_update_attributes!(updated_attributes)