Sha256: 88af8c973a78cb4a84ac329f7b44c2bc3357f87c5ffcfd1e3be3443b864fbd58

Contents?: true

Size: 1.13 KB

Versions: 46

Compression:

Stored size: 1.13 KB

Contents

module Fog
  module Network
    class AzureRM
      # VirtualNetworkGatewayConnections collection class for Network Service
      class VirtualNetworkGatewayConnections < Fog::Collection
        model Fog::Network::AzureRM::VirtualNetworkGatewayConnection
        attribute :resource_group

        def all
          requires :resource_group
          gateway_connections = service.list_virtual_network_gateway_connections(resource_group).map { |connection| Fog::Network::AzureRM::VirtualNetworkGatewayConnection.parse(connection) }
          load(gateway_connections)
        end

        def get(resource_group_name, name)
          connection = service.get_virtual_network_gateway_connection(resource_group_name, name)
          gateway_connection = Fog::Network::AzureRM::VirtualNetworkGatewayConnection.new(service: service)
          gateway_connection.merge_attributes(Fog::Network::AzureRM::VirtualNetworkGatewayConnection.parse(connection))
        end

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

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
far-gem-0.5.6 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
far-gem-0.5.5 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
far-gem-0.5.4 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
far-gem-0.5.3 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
far-gem-0.5.2 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
far-gem-0.5.1 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb