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.2.5 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.2.4 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.2.3 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.2.2 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.2.1 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.2.0 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.1.2 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb