Sha256: 4bab1b71bc28007e64c6d71e679f459fdc877d4e3047de3a6b923e6248a4c42d

Contents?: true

Size: 1.07 KB

Versions: 21

Compression:

Stored size: 1.07 KB

Contents

module Fog
  module Brightbox
    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 :brightbox_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

21 entries across 21 versions & 1 rubygems

Version Path
fog-brightbox-1.10.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.9.1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.9.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.8.2 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.8.1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.8.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.7.3 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.7.2 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.7.1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.7.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.6.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.5.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.5.0.rc1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.4.2 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.4.1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.4.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.3.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.2.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.1.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-1.0.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb