Sha256: 4afc78298df0a30b6939688ac00e0910ff1dc60016aea08b7b6058296888b8a5

Contents?: true

Size: 996 Bytes

Versions: 4

Compression:

Stored size: 996 Bytes

Contents

module Fog
  module Slicehost
    class DNS
      class Real

        require 'fog/slicehost/parsers/dns/get_zones'

        # Get list of all DNS zones hosted on Slicehost (for this account)
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'zones'<~Array>
        #       * 'origin'<~String> - domain name to host (ie example.com)
        #       * 'id'<~Integer> - Id of the zone
        #       * 'ttl'<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
        #       * 'active'<~String> - whether zone is active in Slicehost DNS server - 'Y' or 'N'
        def get_zones
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Slicehost::DNS::GetZones.new,
            :path     => 'zones.xml'
          )
        end

      end

      class Mock

        def get_zones
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-0.4.0 lib/fog/slicehost/requests/dns/get_zones.rb
fog-0.3.34 lib/fog/slicehost/requests/dns/get_zones.rb
fog-0.3.33 lib/fog/slicehost/requests/dns/get_zones.rb
fog-0.3.32 lib/fog/slicehost/requests/dns/get_zones.rb