Sha256: 4db2204b3deabbc6b4814d773a5ea67943d5ed393e09b20cde005f35b97ec8b3

Contents?: true

Size: 1.32 KB

Versions: 50

Compression:

Stored size: 1.32 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 expiring 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>
        # @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
        # @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
        # @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
        # @raise [Fog::Storage::Rackspace::ServiceError]
        # ==== 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

50 entries across 50 versions & 3 rubygems

Version Path
fog-maestrodev-1.19.0.20140212012611 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-1.19.0 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb