Sha256: 8d306c718e9f5e145d20b3fcff1f1042da87f5a8c70aa8c53f9790e160db712a

Contents?: true

Size: 1.07 KB

Versions: 42

Compression:

Stored size: 1.07 KB

Contents

module Fog
  module Storage
    class OpenStack

      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 :openstack_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>
        #
        # ==== 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

42 entries across 42 versions & 2 rubygems

Version Path
fog-maestrodev-1.18.0.20131209090811 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.18.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.17.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.16.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb