Sha256: c8576b2db0325bb0dd0603443dc10652372063932a8f9f0054b60b974d273175

Contents?: true

Size: 1.07 KB

Versions: 25

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

25 entries across 25 versions & 7 rubygems

Version Path
cifrado-0.2.1 vendor/fog/lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
cifrado-0.2.0 vendor/fog/lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
gapinc-fog-1.12.1.2.1 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
gapinc-fog-1.14.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.14.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.13.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
gapinc-fog-1.12.1.2 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
gapinc-fog-1.12.1.1 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
gapinc-fog-1.12.1a lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
gapinc-fog-1.12.1 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.12.1 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.12.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
hpfog-0.0.20 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.11.1 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.11.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-1.10.1 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb
fog-test-me-1.10.0 lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb