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.5.1 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.5.0 lib/fog/cdn/requests/rackspace/get_containers.rb
phpfog-fog-0.4.1.3 lib/fog/cdn/requests/rackspace/get_containers.rb
phpfog-fog-0.4.1.2 lib/fog/cdn/requests/rackspace/get_containers.rb
phpfog-fog-0.4.1.1 lib/fog/cdn/requests/rackspace/get_containers.rb
phpfog-fog-0.4.1 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.4.1 lib/fog/cdn/requests/rackspace/get_containers.rb
fog-0.4.0 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.34 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.33 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.32 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.31 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.30 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.29 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.28 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.27 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.26 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.25 lib/fog/rackspace/requests/cdn/get_containers.rb
fog-0.3.24 lib/fog/rackspace/requests/cdn/get_containers.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/rackspace/requests/cdn/get_containers.rb