Sha256: e23ca5cd0d19e439aa9bc71ba73e5fda12c6bcda43b3484d7b4fa23d9483bb6c

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

module Fog
  module DNS
    class Bluebox
      class Real

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

        # Get list of all DNS zones hosted on Bluebox (for this account)
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * 'records'<~Array>
        #     * 'record'
        #       * 'name'<~String> - name of the zone
        #       * 'serial'<~Integer> - Serial # for the zone
        #       * 'ttl'<~Integer> - TTL for the zone record in seconds
        #       * 'retry'<~Integer> - Retry interval for the zone record in seconds
        #       * 'expires'<~Integer> - Expiration interval for the zone record in seconds
        #       * 'record-count'<~Integer> - # of records in this zone
        #       * 'id'<~String> - Id for the zone record
        #       * 'refresh'<~Integer> - default refresh interval for this zone, in seconds
        #       * 'minimum'<~Integer> - minimum value for intervals for this zone, in seconds
        def get_zones
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::DNS::Bluebox::GetZones.new,
            :path     => '/api/domains.xml'
          )
        end

      end

      class Mock

        def get_zones
          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_zones.rb