Sha256: 37a9061b0fa63b6ef6971a3de010b71e48f4a5cd8e1540cf08fc9c0b9f6d7bc8

Contents?: true

Size: 1.19 KB

Versions: 47

Compression:

Stored size: 1.19 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 = @logger_messages['network']['express_route_circuit_authentication']['message']['delete']
                .gsub('NAME', authorization_name).gsub('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

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
far-gem-0.5.6 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
far-gem-0.5.5 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
far-gem-0.5.4 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
far-gem-0.5.3 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
far-gem-0.5.2 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
far-gem-0.5.1 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/network/delete_express_route_circuit_authorization.rb