Sha256: 7bf73e53fbebadbb7d462a9b2da3e2a95bbed4261848208022221dfc7aab953e

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

module Fog
  module DNS
    class Bluebox
      class Real

        require 'rackspace-fog/bluebox/parsers/dns/get_zone'

        # Get details of a DNS zone
        #
        # ==== Parameters
        # * zone_id<~Integer> - Id of zone to lookup
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * hash<~Hash>:
        #     * 'name'<~String> - The name of the zone
        #     * 'serial'<~Integer> - Serial number of the zone
        #     * 'ttl'<~Integer> - TimeToLive (ttl) for the domain, in seconds
        #     * 'retry'<~Integer> - Retry interval for the domain, in seconds
        #     * 'record-count'<~Integer> - Number of records in the zone
        #     * 'id'<~String> - Id for the zone
        #     * 'refresh'<~Integer> - Refresh interval for the zone
        #     * 'minimum'<~Integer> - Minimum refresh interval for the zone
        def get_zone(zone_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::DNS::Bluebox::GetZone.new,
            :path     => "/api/domains/#{zone_id}.xml"
          )
        end

      end

      class Mock

        def get_zone(zone_id)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/bluebox/requests/dns/get_zone.rb