Sha256: d05d7fa2d1bf34c1aa926454bc29b917da050d9beae11ea2c04ab88420a1bb61

Contents?: true

Size: 872 Bytes

Versions: 47

Compression:

Stored size: 872 Bytes

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      # Real class for Application Gateway Request
      class Real
        def list_application_gateways(resource_group)
          msg = "Getting list of Application-Gateway from Resource Group #{resource_group}."
          Fog::Logger.debug msg
          begin
            gateways = @network_client.application_gateways.list_as_lazy(resource_group)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          gateways.value
        end
      end

      # Mock class for Network Request
      class Mock
        def list_application_gateways(_resource_group)
          ag = Azure::ARM::Network::Models::ApplicationGateway.new
          ag.name = 'fogtestgateway'
          ag.location = 'East US'
          [ag]
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

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