Class: Fog::Network::AzureRM::LocalNetworkGateways

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/azurerm/models/network/local_network_gateways.rb

Overview

LocalNetworkGateways collection class for Network Service

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
12
13
# File 'lib/fog/azurerm/models/network/local_network_gateways.rb', line 9

def all
  requires :resource_group
  local_network_gateways = service.list_local_network_gateways(resource_group).map { |gateway| Fog::Network::AzureRM::LocalNetworkGateway.parse(gateway) }
  load(local_network_gateways)
end

#check_local_net_gateway_exists(resource_group_name, name) ⇒ Object



21
22
23
# File 'lib/fog/azurerm/models/network/local_network_gateways.rb', line 21

def check_local_net_gateway_exists(resource_group_name, name)
  service.check_local_net_gateway_exists(resource_group_name, name)
end

#get(resource_group_name, name) ⇒ Object



15
16
17
18
19
# File 'lib/fog/azurerm/models/network/local_network_gateways.rb', line 15

def get(resource_group_name, name)
  local_network_gateway = service.get_local_network_gateway(resource_group_name, name)
  local_network_gateway_fog = Fog::Network::AzureRM::LocalNetworkGateway.new(service: service)
  local_network_gateway_fog.merge_attributes(Fog::Network::AzureRM::LocalNetworkGateway.parse(local_network_gateway))
end