Sha256: 5d7d8a89c2d6d0359412301d29c8616aa1473d5f7383023069016d790f53ead1
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
require 'fog/core/collection' require 'fog/azurerm/models/network/virtual_network_gateway_connection' module Fog module Network class AzureRM # VirtualNetworkGatewayConnections collection class for Network Service class VirtualNetworkGatewayConnections < Fog::Collection model VirtualNetworkGatewayConnection attribute :resource_group def all requires :resource_group gateway_connections = [] service.list_virtual_network_gateway_connections(resource_group).each do |connection| gateway_connections << VirtualNetworkGatewayConnection.parse(connection) end load(gateway_connections) end def get(resource_group_name, name) connection = service.get_virtual_network_gateway_connection(resource_group_name, name) gateway_connection = VirtualNetworkGatewayConnection.new(service: service) gateway_connection.merge_attributes(VirtualNetworkGatewayConnection.parse(connection)) 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/virtual_network_gateway_connections.rb |
fog-azure-rm-0.0.6 | lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb |