Sha256: 4df4306244016c7d04261ab921692d0bb7cb8486714fce879842544fe98f68d3
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require 'fog/core/collection' require 'fog/azurerm/models/network/network_interface' module Fog module Network class AzureRM # VirtualNetworkGateways collection class for Network Service class VirtualNetworkGateways < Fog::Collection model Fog::Network::AzureRM::VirtualNetworkGateway attribute :resource_group def all requires :resource_group network_gateways = [] service.list_virtual_network_gateways(resource_group).each do |gateway| network_gateways << Fog::Network::AzureRM::VirtualNetworkGateway.parse(gateway) end load(network_gateways) end def get(resource_group_name, name) network_gateway = service.get_virtual_network_gateway(resource_group_name, name) virtual_network_gateway = Fog::Network::AzureRM::VirtualNetworkGateway.new(service: service) virtual_network_gateway.merge_attributes(Fog::Network::AzureRM::VirtualNetworkGateway.parse(network_gateway)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.5 | lib/fog/azurerm/models/network/virtual_network_gateways.rb |