Sha256: 303466e8e121480c8dd4aef6ebf3eb5692ab93ee9526a223041c50318946c8b2

Contents?: true

Size: 1.2 KB

Versions: 103

Compression:

Stored size: 1.2 KB

Contents

module Fog
  module DNS
    class Bluebox
      class Real

        require 'fog/bluebox/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(zone_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::DNS::Bluebox::GetRecords.new,
            :path     => "/api/domains/#{zone_id}/records.xml"
          )
        end

      end

      class Mock

        def get_records
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

103 entries across 103 versions & 17 rubygems

Version Path
fog-1.22.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.21.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.20.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.19.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/bluebox/requests/dns/get_records.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/bluebox/requests/dns/get_records.rb