Sha256: df39e353b9c7036ecb56088cb18eb3712c53dea71df2340b5eb286fc9bf89096

Contents?: true

Size: 901 Bytes

Versions: 6

Compression:

Stored size: 901 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

6 entries across 6 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.1 lib/fog/azurerm/requests/application_gateway/list_application_gateways.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/requests/application_gateway/list_application_gateways.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/requests/application_gateway/list_application_gateways.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/requests/application_gateway/list_application_gateways.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/requests/application_gateway/list_application_gateways.rb
fog-azure-rm-0.0.5 lib/fog/azurerm/requests/application_gateway/list_application_gateways.rb