Sha256: 9f24be1272784396bc2ac128b878506edaffca931392287a6b8ade19fa7a158e

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

module Fog
  module Rackspace
    class Storage
      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_cdn_containers(options = {})
          response = request(
            :expects  => [200, 204],
            :method   => 'GET',
            :path     => '',
            :query    => {'format' => 'json'}.merge!(options)
          )
          response
        end

      end

      class Mock

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

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-0.3.16 lib/fog/rackspace/requests/cdn/get_cdn_containers.rb
fog-0.3.15 lib/fog/rackspace/requests/cdn/get_cdn_containers.rb
fog-0.3.14 lib/fog/rackspace/requests/cdn/get_cdn_containers.rb