Sha256: 11c43c3a37cf78f4dd8c77c3b35dac47e943bbc9db4741a58e5016f11eb2f12b

Contents?: true

Size: 1.66 KB

Versions: 7

Compression:

Stored size: 1.66 KB

Contents

module Fog
  module AWS
    class DNS
      class Real

        require 'fog/dns/parsers/aws/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

7 entries across 7 versions & 2 rubygems

Version Path
fog-0.5.1 lib/fog/dns/requests/aws/list_hosted_zones.rb
fog-0.5.0 lib/fog/dns/requests/aws/list_hosted_zones.rb
phpfog-fog-0.4.1.3 lib/fog/dns/requests/aws/list_hosted_zones.rb
phpfog-fog-0.4.1.2 lib/fog/dns/requests/aws/list_hosted_zones.rb
phpfog-fog-0.4.1.1 lib/fog/dns/requests/aws/list_hosted_zones.rb
phpfog-fog-0.4.1 lib/fog/dns/requests/aws/list_hosted_zones.rb
fog-0.4.1 lib/fog/dns/requests/aws/list_hosted_zones.rb