class Fog::Network::AzureRM::NetworkInterfaces

NetworkInterfaces collection class for Network Service

Public Instance Methods

all() click to toggle source
# File lib/fog/azurerm/models/network/network_interfaces.rb, line 9
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
check_network_interface_exists(resource_group_name, name) click to toggle source
# File lib/fog/azurerm/models/network/network_interfaces.rb, line 24
def check_network_interface_exists(resource_group_name, name)
  service.check_network_interface_exists(resource_group_name, name)
end
get(resource_group_name, name) click to toggle source
# File lib/fog/azurerm/models/network/network_interfaces.rb, line 18
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