Sha256: c6668997573011224c439de1fb55b8459829ab8fb13dee25a8cbcfdfbcfa0240

Contents?: true

Size: 1.15 KB

Versions: 59

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module Storage
    class Softlayer

      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 :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)
          response = request(
            :expects  => [201, 202, 204],
            :method   => 'POST',
            :headers  => {'X-Account-Meta-Temp-Url-Key' => key}
          )
          @temp_url_key = get_temp_url_key_for_account
          response
        end

      end

    end
  end
end

Version data entries

59 entries across 57 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.1.4 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.1.3 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.1.2 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.1.1 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.1.0 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.0.3 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.0.2 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.0.1 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-1.0.0 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-softlayer-0.4.7/lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-0.4.7 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-0.4.6 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-0.4.5 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-0.4.4 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-0.4.3 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-0.4.2 lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb
fog-softlayer-0.4.2.pre lib/fog/softlayer/requests/storage/post_set_meta_temp_url_key.rb