Sha256: 96f3adcd3609da0c4680e5272cb26f78067ebd9796c327c0604fddbd906ead06

Contents?: true

Size: 615 Bytes

Versions: 7

Compression:

Stored size: 615 Bytes

Contents

module Fog
  module Bluebox
    class DNS
      class Real

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

      end

      class Mock

        def delete_zone(zone_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_zone.rb
fog-0.8.1 lib/fog/dns/requests/bluebox/delete_zone.rb
fog-0.8.0 lib/fog/dns/requests/bluebox/delete_zone.rb
fog-0.7.2 lib/fog/dns/requests/bluebox/delete_zone.rb
fog-0.7.1 lib/fog/dns/requests/bluebox/delete_zone.rb
fog-0.7.0 lib/fog/dns/requests/bluebox/delete_zone.rb
fog-0.6.0 lib/fog/dns/requests/bluebox/delete_zone.rb