Sha256: 4f62df75ff3c0be9c427fbf5fdb8632869929e292c33c8b929e2593aaa265842

Contents?: true

Size: 831 Bytes

Versions: 23

Compression:

Stored size: 831 Bytes

Contents

module Fog
  module Brightbox
    class Compute
      class Real
        # Resets the secret used by the application to a new generated value.
        #
        # @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.
        #
        # @return [Hash] if successful Hash version of JSON object
        #
        # @see https://api.gb1.brightbox.com/1.0/#application_reset_secret_application
        #
        def reset_secret_application(identifier, options = {})
          return nil if identifier.nil? || identifier == ""
          wrapped_request("post", "/1.0/applications/#{identifier}/reset_secret", [200], options)
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fog-brightbox-1.1.0 lib/fog/brightbox/requests/compute/reset_secret_application.rb
fog-brightbox-1.0.0 lib/fog/brightbox/requests/compute/reset_secret_application.rb
fog-brightbox-1.0.0.rc2 lib/fog/brightbox/requests/compute/reset_secret_application.rb