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
mystro-common-0.3.0 lib/fog/ext/dynect/requests/dns/delete_zone.rb
mystro-common-0.2.0 lib/fog/ext/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.15.0 lib/fog/dynect/requests/dns/delete_zone.rb
gapinc-fog-1.14.0 lib/fog/dynect/requests/dns/delete_zone.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.14.0 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.13.0 lib/fog/dynect/requests/dns/delete_zone.rb
gapinc-fog-1.12.1.2 lib/fog/dynect/requests/dns/delete_zone.rb
gapinc-fog-1.12.1.1 lib/fog/dynect/requests/dns/delete_zone.rb
gapinc-fog-1.12.1a lib/fog/dynect/requests/dns/delete_zone.rb
gapinc-fog-1.12.1 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.12.1 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.12.0 lib/fog/dynect/requests/dns/delete_zone.rb
hpfog-0.0.20 lib/fog/dynect/requests/dns/delete_zone.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/dynect/requests/dns/delete_zone.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/dynect/requests/dns/delete_zone.rb
fog-nirvanix-1.8.2 lib/fog/dynect/requests/dns/delete_zone.rb
fog-1.11.1 lib/fog/dynect/requests/dns/delete_zone.rb