Class: PlatformAPI::Space

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

Overview

A space is an isolated, highly available, secure app execution environment.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Space

Returns a new instance of Space.



4529
4530
4531
# File 'lib/platform-api/client.rb', line 4529

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object



4586
4587
4588
# File 'lib/platform-api/client.rb', line 4586

def create(body = {})
  @client.space.create(body)
end

#delete(space_id_or_space_name) ⇒ Object



4574
4575
4576
# File 'lib/platform-api/client.rb', line 4574

def delete(space_id_or_space_name)
  @client.space.delete(space_id_or_space_name)
end

#info(space_id_or_space_name) ⇒ Object



4548
4549
4550
# File 'lib/platform-api/client.rb', line 4548

def info(space_id_or_space_name)
  @client.space.info(space_id_or_space_name)
end

#listObject

List existing spaces.



4536
4537
4538
# File 'lib/platform-api/client.rb', line 4536

def list()
  @client.space.list()
end

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



4562
4563
4564
# File 'lib/platform-api/client.rb', line 4562

def update(space_id_or_space_name, body = {})
  @client.space.update(space_id_or_space_name, body)
end