class PlatformAPI::Space

A space is an isolated, highly available, secure app execution environments, running in the modern VPC substrate.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 3002
def initialize(client)
  @client = client
end

Public Instance Methods

create(body = {}) click to toggle source

Create a new space.

@param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 3036
def create(body = {})
  @client.space.create(body)
end
delete(space_id_or_space_name) click to toggle source

Delete an existing space.

@param space_id_or_space_name: unique identifier of space or unique name of space

# File lib/platform-api/client.rb, line 3029
def delete(space_id_or_space_name)
  @client.space.delete(space_id_or_space_name)
end
info(space_id_or_space_name) click to toggle source

Info for existing space.

@param space_id_or_space_name: unique identifier of space or unique name of space

# File lib/platform-api/client.rb, line 3014
def info(space_id_or_space_name)
  @client.space.info(space_id_or_space_name)
end
list() click to toggle source

List existing spaces.

# File lib/platform-api/client.rb, line 3007
def list()
  @client.space.list()
end
update(space_id_or_space_name, body = {}) click to toggle source

Update an existing space.

@param space_id_or_space_name: unique identifier of space or unique name of space @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 3022
def update(space_id_or_space_name, body = {})
  @client.space.update(space_id_or_space_name, body)
end