Sha256: 43c4b94e32de6be62b6faeb1a00679bd380f6062430ba6674a30860fc748a64c

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

module Fog
  module Bluebox
    class DNS
      class Real

        require 'fog/dns/parsers/bluebox/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::Bluebox::DNS::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

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/dns/requests/bluebox/get_records.rb
fog-0.8.1 lib/fog/dns/requests/bluebox/get_records.rb
fog-0.8.0 lib/fog/dns/requests/bluebox/get_records.rb
fog-0.7.2 lib/fog/dns/requests/bluebox/get_records.rb
fog-0.7.1 lib/fog/dns/requests/bluebox/get_records.rb
fog-0.7.0 lib/fog/dns/requests/bluebox/get_records.rb
fog-0.6.0 lib/fog/dns/requests/bluebox/get_records.rb