Sha256: a3585ae30c46a9831d22cea52e163d519bd0e9ef2df40227fe17dd3994bf45f4

Contents?: true

Size: 1003 Bytes

Versions: 29

Compression:

Stored size: 1003 Bytes

Contents

module Fog
  module HP
    class DNS
      class Real
        # List all DNS domains
      # ==== Returns
      # * response<~Excon::Response>:
      #   * body<~Hash>:
      #     * 'domains'<~Array>:
      #       * 'id'<~String> - UUID of the domain
      #       * 'name'<~String> - Name of the domain
      #       * 'ttl'<~Integer> - TTL for the domain
      #       * 'email'<~String> - Email for the domain
      #       * 'serial'<~Integer> - Serial number for the domain
      #       * 'created_at'<~String> - created date time stamp
        def list_domains
          request(
              :expects => 200,
              :method  => 'GET',
              :path    => 'domains'
          )
        end
      end

      class Mock
        def list_domains
          response        = Excon::Response.new
          domains = self.data[:domains].values
          response.status = 200
          response.body = { 'domains' => domains }
          response
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
fog-1.37.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.36.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.35.0 lib/fog/hp/requests/dns/list_domains.rb
fog-2.0.0.pre.0 lib/fog/hp/requests/dns/list_domains.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/hp/requests/dns/list_domains.rb
fog-1.34.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.33.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.32.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.31.0 lib/fog/hp/requests/dns/list_domains.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/hp/requests/dns/list_domains.rb
fog-1.30.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.29.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.28.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.27.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.26.0 lib/fog/hp/requests/dns/list_domains.rb
fog-1.25.0 lib/fog/hp/requests/dns/list_domains.rb
nsidc-fog-1.24.1 lib/fog/hp/requests/dns/list_domains.rb
fog-1.24.0 lib/fog/hp/requests/dns/list_domains.rb
ns-fog-1.22.11 lib/fog/hp/requests/dns/list_domains.rb
ns-fog-1.22.10 lib/fog/hp/requests/dns/list_domains.rb