Sha256: 586e0deb961431d5775bc9528b3eebcaa4d1776eaf0e1ab6c5a1c6b79e9275a2

Contents?: true

Size: 1.07 KB

Versions: 11

Compression:

Stored size: 1.07 KB

Contents

module Fog
  module Storage
    class Rackspace

      class Real

        # Set the account wide Temp URL Key. This is a secret key that's
        # used to generate signed expiring URLs.
        #
        # Once the key has been set with this request you should create new
        # Storage objects with the :rackspace_temp_url_key option then use
        # the get_object_https_url method to generate expirign URLs.
        #
        # *** CAUTION *** changing this secret key will invalidate any expiring
        # URLS generated with old keys.
        #
        # ==== Parameters
        # * key<~String> - The new Temp URL Key
        #
        # ==== Returns
        # * response<~Excon::Response>
        #
        # ==== See Also
        # http://docs.rackspace.com/files/api/v1/cf-devguide/content/Set_Account_Metadata-d1a4460.html
        def post_set_meta_temp_url_key(key)
          request(
            :expects  => [201, 202, 204],
            :method   => 'POST',
            :headers  => {'X-Account-Meta-Temp-Url-Key' => key}
          )
        end

      end

    end
  end
end

Version data entries

11 entries across 11 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-nirvanix-1.8.1 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-parser-fix-1.6.1 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-test-again-1.6.0 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-parser-fix-1.6.0 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-sgonyea-1.8.1 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-1.8.0 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-1.7.0 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-1.6.0 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb