Sha256: d2c63c4100e3384272ea71ce592ecb7c9d97d3e0c3f8d16ed71a521d13f9cc03

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

module Fog
  module AWS
    class DNS
      class Real

        require 'fog/aws/parsers/dns/list_hosted_zones'

        # Describe all or specified instances
        #
        # ==== Parameters
        # * options<~Hash>
        #   * marker<~String> - Indicates where to begin in your list of hosted zones. 
        #   * max_items<~Integer> - The maximum number of hosted zones to be included in the response body
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'HostedZones'<~Array>:
        #       * 'HostedZone'<~Hash>:
        #         * 'Id'<~String> - 
        #         * 'Name'<~String> - 
        #         * 'CallerReference'<~String>
        #         * 'Comment'<~String> - 
        #     * 'Marker'<~String> - 
        #     * 'MaxItems'<~Integer> - 
        #     * 'IsTruncated'<~String> - 
        #     * 'NextMarket'<~String>
        #   * status<~Integer> - 200 when successful
        def list_hosted_zones(options = {})

          parameters = {}
          options.each { |option, value|
            case option
            when :marker
              parameters[option] = value
            when :max_items
              parameters[:maxitems] = value
            end
          }
          
          request({
            :query      => parameters,
            :parser     => Fog::Parsers::AWS::DNS::ListHostedZones.new,
            :expects    => 200,
            :method     => 'GET',
            :path       => "hostedzone"
          })

        end

      end


      class Mock

        def list_hosted_zones(options = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-0.4.0 lib/fog/aws/requests/dns/list_hosted_zones.rb
fog-0.3.34 lib/fog/aws/requests/dns/list_hosted_zones.rb
fog-0.3.33 lib/fog/aws/requests/dns/list_hosted_zones.rb
fog-0.3.32 lib/fog/aws/requests/dns/list_hosted_zones.rb