Class: PlatformAPI::Space
- Inherits:
-
Object
- Object
- PlatformAPI::Space
- 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
-
#create(body = {}) ⇒ Object
Create a new space.
-
#delete(space_id_or_space_name) ⇒ Object
Delete an existing space.
-
#info(space_id_or_space_name) ⇒ Object
Info for existing space.
-
#initialize(client) ⇒ Space
constructor
A new instance of Space.
-
#list ⇒ Object
List existing spaces.
-
#update(space_id_or_space_name, body = {}) ⇒ Object
Update an existing space.
Constructor Details
#initialize(client) ⇒ Space
Returns a new instance of Space.
2429 2430 2431 |
# File 'lib/platform-api/client.rb', line 2429 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new space.
2463 2464 2465 |
# File 'lib/platform-api/client.rb', line 2463 def create(body = {}) @client.space.create(body) end |
#delete(space_id_or_space_name) ⇒ Object
Delete an existing space.
2456 2457 2458 |
# File 'lib/platform-api/client.rb', line 2456 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.
2441 2442 2443 |
# File 'lib/platform-api/client.rb', line 2441 def info(space_id_or_space_name) @client.space.info(space_id_or_space_name) end |
#list ⇒ Object
List existing spaces.
2434 2435 2436 |
# File 'lib/platform-api/client.rb', line 2434 def list() @client.space.list() end |
#update(space_id_or_space_name, body = {}) ⇒ Object
Update an existing space.
2449 2450 2451 |
# File 'lib/platform-api/client.rb', line 2449 def update(space_id_or_space_name, body = {}) @client.space.update(space_id_or_space_name, body) end |