Sha256: 8bd3599aa5810133551a42af78ce39f88ce051bbb9f6fd65d98b1e668bd63cf6

Contents?: true

Size: 834 Bytes

Versions: 71

Compression:

Stored size: 834 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Cancels or completes the collaboration
        #
        # @param [String] identifier Unique reference to identify the resource
        #
        # @return [Hash] if successful Hash version of JSON object
        #
        # @see https://api.gb1.brightbox.com/1.0/#collaboration_delete_collaboration
        #
        def delete_collaboration(identifier)
          return nil if identifier.nil? || identifier == ""
          wrapped_request("delete", "/1.0/collaborations/#{identifier}", [200])
        end

        # Old format of the delete request.
        #
        # @deprecated Use +#delete_collaboration+ instead
        #
        def destroy_collaboration(identifier)
          delete_collaboration(identifier)
        end
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 5 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 lib/fog/brightbox/requests/compute/delete_collaboration.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/brightbox/requests/compute/delete_collaboration.rb
fog-1.15.0 lib/fog/brightbox/requests/compute/delete_collaboration.rb
gapinc-fog-1.14.0 lib/fog/brightbox/requests/compute/delete_collaboration.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/brightbox/requests/compute/delete_collaboration.rb
fog-1.14.0 lib/fog/brightbox/requests/compute/delete_collaboration.rb
fog-1.13.0 lib/fog/brightbox/requests/compute/delete_collaboration.rb
gapinc-fog-1.12.1.2 lib/fog/brightbox/requests/compute/delete_collaboration.rb
gapinc-fog-1.12.1.1 lib/fog/brightbox/requests/compute/delete_collaboration.rb
gapinc-fog-1.12.1a lib/fog/brightbox/requests/compute/delete_collaboration.rb
gapinc-fog-1.12.1 lib/fog/brightbox/requests/compute/delete_collaboration.rb