lib/fog/azurerm/models/network/network_interfaces.rb in fog-azure-rm-0.4.9 vs lib/fog/azurerm/models/network/network_interfaces.rb in fog-azure-rm-0.5.0
- old
+ new
@@ -13,9 +13,15 @@
network_interfaces << Fog::Network::AzureRM::NetworkInterface.parse(nic)
end
load(network_interfaces)
end
+ def create_async(attributes = {})
+ network_interface = new(attributes)
+ promise = network_interface.save(true)
+ Fog::AzureRM::AsyncResponse.new(network_interface, promise)
+ end
+
def get(resource_group_name, name)
network_interface_card = service.get_network_interface(resource_group_name, name)
network_interface_card_fog = Fog::Network::AzureRM::NetworkInterface.new(service: service)
network_interface_card_fog.merge_attributes(Fog::Network::AzureRM::NetworkInterface.parse(network_interface_card))
end