Class: PlatformAPI::SpaceTransfer

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Transfer spaces between enterprise teams with the same Enterprise Account.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ SpaceTransfer

Returns a new instance of SpaceTransfer.



2963
2964
2965
# File 'lib/platform-api/client.rb', line 2963

def initialize(client)
  @client = client
end

Instance Method Details

#transfer(space_id_or_space_name, body = {}) ⇒ Object

Transfer space between enterprise teams

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space

  • body:

    the object to pass as the request payload



2971
2972
2973
# File 'lib/platform-api/client.rb', line 2971

def transfer(space_id_or_space_name, body = {})
  @client.space_transfer.transfer(space_id_or_space_name, body)
end