Sha256: 4df0f80b9361ca8d1f0838c04f78668cbc560bc49cae254a4d27e15913c0f3c9

Contents?: true

Size: 841 Bytes

Versions: 47

Compression:

Stored size: 841 Bytes

Contents

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

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

      class Mock
        def start_application_gateway(*)
          Fog::Logger.debug 'Successfully started 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.4.1 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb