Sha256: 4175c60763997c1a79a988a4de650973748c004f8c249192dd142b3514140d1f

Contents?: true

Size: 1.17 KB

Versions: 12

Compression:

Stored size: 1.17 KB

Contents

module Fog
  module Compute
    class Brightbox
      class Real

        # Reset the image library ftp password for the account.
        #
        # @note The response is the only time the new password is available in plaintext.
        #
        # @overload reset_ftp_password_account(identifier)
        #   @param [String] identifier Unique reference to identify the resource
        #
        # @overload reset_ftp_password_account()
        #   @deprecated Use {Fog::Compute::Brightbox::Real#get_scoped_account} instead
        #
        # @return [Hash] The JSON response parsed to a Hash
        #
        # @see https://api.gb1.brightbox.com/1.0/#account_reset_ftp_password_account
        #
        def reset_ftp_password_account(identifier = nil)
          if identifier.nil? || identifier.empty?
            Fog::Logger.deprecation("reset_ftp_password_account() without a parameter is deprecated, use reset_ftp_password_scoped_account instead [light_black](#{caller.first})[/]")
            reset_ftp_password_scoped_account
          else
            wrapped_request("post", "/1.0/accounts/#{identifier}/reset_ftp_password", [200])
          end
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
hpfog-0.0.20 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-1.11.1 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-1.11.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-1.10.1 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-test-me-1.10.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-1.10.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-1.9.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb