Sha256: 334f9c996dace80aeddfb0258e547485a004e42dc0a792cf0eacddc15e282e5a

Contents?: true

Size: 1.19 KB

Versions: 39

Compression:

Stored size: 1.19 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

39 entries across 37 versions & 5 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/bluebox/requests/dns/get_records.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/bluebox/requests/dns/get_records.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/bluebox/requests/dns/get_records.rb
fog-1.42.1 lib/fog/bluebox/requests/dns/get_records.rb
fog-2.0.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.42.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.41.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.40.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.39.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.38.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.37.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.36.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.35.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-2.0.0.pre.0 lib/fog/bluebox/requests/dns/get_records.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/bluebox/requests/dns/get_records.rb
fog-1.34.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.33.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.32.0 lib/fog/bluebox/requests/dns/get_records.rb
fog-1.31.0 lib/fog/bluebox/requests/dns/get_records.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/bluebox/requests/dns/get_records.rb