Class: Fog::Network::AzureRM::NetworkInterfaces
- Inherits:
-
Collection
- Object
- Collection
- Fog::Network::AzureRM::NetworkInterfaces
- Defined in:
- lib/fog/azurerm/models/network/network_interfaces.rb
Overview
NetworkInterfaces collection class for Network Service
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/fog/azurerm/models/network/network_interfaces.rb', line 12 def all requires :resource_group network_interfaces = [] service.list_network_interfaces(resource_group).each do |nic| network_interfaces << Fog::Network::AzureRM::NetworkInterface.parse(nic) end load(network_interfaces) end |
#get(resource_group_name, name) ⇒ Object
21 22 23 24 25 |
# File 'lib/fog/azurerm/models/network/network_interfaces.rb', line 21 def get(resource_group_name, name) nic = service.get_network_interface(resource_group_name, name) network_interface_card = Fog::Network::AzureRM::NetworkInterface.new(service: service) network_interface_card.merge_attributes(Fog::Network::AzureRM::NetworkInterface.parse(nic)) end |