Sha256: 99c9240ca385595d48dc6a92be4a4adc7326f28c82e4c4f897a8b45ed637af08

Contents?: true

Size: 691 Bytes

Versions: 7

Compression:

Stored size: 691 Bytes

Contents

module Fog
  module Bluebox
    class DNS
      class Real

        # Delete a record from the specified DNS zone
        # ==== Parameters
        # * record_id<~Integer> - Id of DNS record to delete
        #
        # ==== Returns
        # * response<~Excon::Response>: - HTTP status code will be result
        def delete_record(zone_id, record_id)
          request(
            :expects  => 200,
            :method   => 'DELETE',
            :path     => "/api/domains/#{zone_id}/records/#{record_id}.xml"
          )
        end

      end

      class Mock

        def delete_record(zone_id, record_id)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/dns/requests/bluebox/delete_record.rb
fog-0.8.1 lib/fog/dns/requests/bluebox/delete_record.rb
fog-0.8.0 lib/fog/dns/requests/bluebox/delete_record.rb
fog-0.7.2 lib/fog/dns/requests/bluebox/delete_record.rb
fog-0.7.1 lib/fog/dns/requests/bluebox/delete_record.rb
fog-0.7.0 lib/fog/dns/requests/bluebox/delete_record.rb
fog-0.6.0 lib/fog/dns/requests/bluebox/delete_record.rb