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 environments, running in the modern VPC substrate.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Space

Returns a new instance of Space.



2948
2949
2950
# File 'lib/platform-api/client.rb', line 2948

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new space.

Parameters:

  • body:

    the object to pass as the request payload



2982
2983
2984
# File 'lib/platform-api/client.rb', line 2982

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

#delete(space_id_or_space_name) ⇒ Object

Delete an existing space.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space



2975
2976
2977
# File 'lib/platform-api/client.rb', line 2975

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

#info(space_id_or_space_name) ⇒ Object

Info for existing space.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space



2960
2961
2962
# File 'lib/platform-api/client.rb', line 2960

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

#listObject

List existing spaces.



2953
2954
2955
# File 'lib/platform-api/client.rb', line 2953

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

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

Update an existing space.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space

  • body:

    the object to pass as the request payload



2968
2969
2970
# File 'lib/platform-api/client.rb', line 2968

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