Sha256: 7ff5fc9ea910f9f3b07b7eeb0d8452671c188d4f13d356584313d5ab134e4a8f
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'fog/core/collection' require 'fog/azurerm/models/network/local_network_gateway' module Fog module Network class AzureRM # LocalNetworkGateways collection class for Network Service class LocalNetworkGateways < Fog::Collection model Fog::Network::AzureRM::LocalNetworkGateway attribute :resource_group def all requires :resource_group local_network_gateways = [] service.list_local_network_gateways(resource_group).each do |gateway| local_network_gateways << LocalNetworkGateway.parse(gateway) end load(local_network_gateways) end def get(resource_group_name, name) local_network_gateway = service.get_local_network_gateway(resource_group_name, name) local_network_gateway_obj = LocalNetworkGateway.new(service: service) local_network_gateway_obj.merge_attributes(LocalNetworkGateway.parse(local_network_gateway)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.8 | lib/fog/azurerm/models/network/local_network_gateways.rb |
fog-azure-rm-0.0.6 | lib/fog/azurerm/models/network/local_network_gateways.rb |