Sha256: 713107e368edea817d5825129c255b53d1850b5a28ef8b7ca57e2a542df8e4a7

Contents?: true

Size: 868 Bytes

Versions: 3

Compression:

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

3 entries across 3 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.1 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/requests/application_gateway/start_application_gateway.rb