Sha256: eab65e045cc4253fe60510b7f59905f79613c0467056a2277f4e9293bf1c97ce

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Express Route Circuit Authorization Request
      class Real
        def delete_express_route_circuit_authorization(resource_group_name, circuit_name, authorization_name)
          msg = "Deleting Express Route Circuit Authorization #{authorization_name} from Resource Group #{resource_group_name}."
          Fog::Logger.debug msg
          begin
            @network_client.express_route_circuit_authorizations.delete(resource_group_name, circuit_name, authorization_name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Express Route Circuit Authorization #{authorization_name} Deleted Successfully."
          true
        end
      end

      # Mock class for Express Route Circuit Authorization Request
      class Mock
        def delete_express_route_circuit_authorization(*)
          Fog::Logger.debug 'Express Route Circuit Authorization {authorization_name} from Resource group {resource_group_name} deleted successfully.'
          true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.8 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb