Sha256: 3f4683fd7523569dfe371f5db977a8226f11eef17b203c5780ddab9c50824e25

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

module Fog
  module DNS
    class Bluebox
      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::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

7 entries across 7 versions & 3 rubygems

Version Path
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/dns/requests/bluebox/get_records.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/dns/requests/bluebox/get_records.rb
fog-0.11.0 lib/fog/dns/requests/bluebox/get_records.rb
fog-0.10.0 lib/fog/dns/requests/bluebox/get_records.rb
fog4encbs-0.9.0.1 lib/fog/dns/requests/bluebox/get_records.rb
fog4encbs-0.9.0 lib/fog/dns/requests/bluebox/get_records.rb
fog-0.9.0 lib/fog/dns/requests/bluebox/get_records.rb