Sha256: 9148ae503d1da9d8a72364c1d34f92640ad87fa5311e17ca31d4882fcd85d2b6

Contents?: true

Size: 1.07 KB

Versions: 20

Compression:

Stored size: 1.07 KB

Contents

module Fog
  module OpenStack
    class Storage
      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

20 entries across 20 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.1.2 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-fork-99 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.1.0 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.1.0.pre lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.11 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.10 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.9 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.8 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.7 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.6 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.5 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.4 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.3 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.2 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.1 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-1.0.0 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb
fog-openstack-0.3.1 lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb