Sha256: 1c0c042f0779031b91e18a04211d3c8a46eabcb0d72ce4342ac42d2217184e84

Contents?: true

Size: 1.07 KB

Versions: 20

Compression:

Stored size: 1.07 KB

Contents

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

20 entries across 18 versions & 3 rubygems

Version Path
fog-brightbox-1.0.0.rc1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.16.1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.16.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.15.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.14.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.13.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.12.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.11.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.10.1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.10.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-brightbox-0.9.0/lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.9.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.8.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.7.2 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-brightbox-0.7.1/lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.7.1 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
fog-brightbox-0.7.0 lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb