Sha256: 2806c51d2ad63b081cae8c8cf0bde22a959c6c8ffad6322dd24229139bb84b40

Contents?: true

Size: 875 Bytes

Versions: 106

Compression:

Stored size: 875 Bytes

Contents

module Fog
  module DNS
    class Dynect
      class Real

        # Delete a zone
        #
        # ==== Parameters
        # * zone<~String> - zone to host

        def delete_zone(zone)
          request(
            :expects  => 200,
            :method   => :delete,
            :path     => "Zone/#{zone}"
          )
        end
      end

      class Mock
        def delete_zone(zone)
          self.data[:zones].delete(zone)

          response = Excon::Response.new
          response.status = 200
          response.body = {
            "status" => "success",
            "data" => {},
            "job_id" => Fog::Dynect::Mock.job_id,
            "msgs" => [{
              "ERR_CD" => '',
              "INFO" => '',
              "LVL" => '',
              "SOURCE" => ''
            }]
          }
          response
        end
      end
    end
  end
end

Version data entries

106 entries across 106 versions & 19 rubygems

Version Path
fog-1.22.0 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.21.0 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.20.0 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.19.0 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/dynect/requests/dns/delete_zone.rb