Sha256: 9c70a541eed6b30232a7ba7ca2b5dd84a3a49121a813384dd2e53f8290fd0b23

Contents?: true

Size: 838 Bytes

Versions: 47

Compression:

Stored size: 838 Bytes

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      class Real
        def stop_application_gateway(resource_group, name)
          msg = "Stopping Application Gateway #{name} in Resource Group #{resource_group}"
          Fog::Logger.debug msg

          begin
            @network_client.application_gateways.stop(resource_group, name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Successfully stopped Application Gateway #{name} in Resource Group #{resource_group}"
          true
        end
      end

      class Mock
        def stop_application_gateway(*)
          Fog::Logger.debug 'Successfully stopped Application Gateway {name} in Resource Group {resource_group}'
          true
        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/stop_application_gateway.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
far-gem-0.5.6 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
far-gem-0.5.5 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
far-gem-0.5.4 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
far-gem-0.5.3 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
far-gem-0.5.2 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
far-gem-0.5.1 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/application_gateway/stop_application_gateway.rb