Sha256: d3928917df1ca3737a721518b7c21a9c6284447ec5e19b53c231d2e5d4708fed

Contents?: true

Size: 714 Bytes

Versions: 5

Compression:

Stored size: 714 Bytes

Contents

# frozen_string_literal: true

module Fog
  module DNS
    class PowerDNS
      class Real
        # Delete the zone from the server
        # Reference the zone to delete with server id and zone id

        # ==== Parameters
        # * server<~String> - server id
        # * zone<~String> - zone id
        #
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #   * status<~Integer> - 204 when successful
        #

        def delete_zone(server, zone)
          request(
            expects: 204,
            method: 'DELETE',
            path: "/api/#{@api_version}/servers/#{server}/zones/#{zone}"
          )
        end
      end
    end
  end
end

Version data entries

5 entries across 3 versions & 2 rubygems

Version Path
fog-powerdns-0.2.1 lib/fog/dns/powerdns/requests/delete_zone.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/delete_zone.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/delete_zone.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/requests/delete_zone.rb
fog-powerdns-0.2.0 lib/fog/dns/powerdns/requests/delete_zone.rb