Sha256: 8330a88abc959a583dd1dfd3b960f31688b6863f5c7bdf3488e9578132755b4b

Contents?: true

Size: 1.38 KB

Versions: 13

Compression:

Stored size: 1.38 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, options = {})
        #   @param [String] identifier Unique reference to identify the resource
        #   @param [Hash] options
        #   @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
        #
        # @overload reset_ftp_password_account()
        #   @deprecated Use {Fog::Compute::Brightbox::Real#reset_ftp_password_scoped_account} instead
        #
        # @return [Hash] if successful Hash version of JSON object
        #
        # @see https://api.gb1.brightbox.com/1.0/#account_reset_ftp_password_account
        #
        def reset_ftp_password_account(identifier = nil, options = {})
          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], options)
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
fog-brightbox-1.0.0.rc1 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.16.1 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.16.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.15.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.14.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.13.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.12.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.11.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.10.1 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb
fog-brightbox-0.10.0 lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb