Sha256: 8eb8d71ad243ffd78caa726a3f0eda508e8a51db3c6e969e948e4c78f761b6d8

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

module Fog
  module Slicehost
    class DNS
      class Real

        require 'fog/slicehost/parsers/dns/get_records'

        # Get all the DNS records across all the DNS zones for this account 
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * 'addresses'<~Array> - Ip addresses for the slice
        #     * 'backup-id'<~Integer> - Id of backup slice was booted from
        #     * 'flavor_id'<~Integer> - Id of flavor slice was booted from
        #     * 'id'<~Integer> - Id of the slice
        #     * 'image-id'<~Integer> - Id of image slice was booted from
        #     * 'name'<~String> - Name of the slice
        #     * 'progress'<~Integer> - Progress of current action, in percentage
        #     * 'status'<~String> - Current status of the slice
        def get_records
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Slicehost::DNS::GetRecords.new,
            :path     => "records.xml"
          )
        end

      end

      class Mock

        def get_records
          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_records.rb
fog-0.3.34 lib/fog/slicehost/requests/dns/get_records.rb
fog-0.3.33 lib/fog/slicehost/requests/dns/get_records.rb
fog-0.3.32 lib/fog/slicehost/requests/dns/get_records.rb