Sha256: 9c340a69cb0fb0cc9c875791ffa280cc8cbbf70d5bfd5ab8f3a42c44667a1eed
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
require 'fog/core/collection' require 'fog/azurerm/models/network/virtual_network_gateway' 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
3 entries across 3 versions & 1 rubygems