Sha256: 1ac2d61db26b090c6f161cf204ddf0fbd9acc977ad0bbebe610b574cb37b03bb

Contents?: true

Size: 1018 Bytes

Versions: 27

Compression:

Stored size: 1018 Bytes

Contents

module Fog
  module Rackspace
    class CDN
      class Real

        # List existing cdn-enabled storage containers
        #
        # ==== Parameters
        # * options<~Hash>:
        #   * 'enabled_only'<~Boolean> - Set to true to limit results to cdn enabled containers
        #   * 'limit'<~Integer> - Upper limit to number of results returned
        #   * 'marker'<~String> - Only return objects with name greater than this value
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * container<~String>: Name of container
        def get_containers(options = {})
          response = request(
            :expects  => [200, 204],
            :method   => 'GET',
            :path     => '',
            :query    => {'format' => 'json'}.merge!(options)
          )
          response
        end

      end

      class Mock

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

      end
    end
  end
end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
fog-0.3.23 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.22 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.21 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.20 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.19 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.18 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.17 lib/fog/rackspace/requests/cdn/get_containers.rb