Class: PlatformAPI::Peering
- Inherits:
-
Object
- Object
- PlatformAPI::Peering
- Defined in:
- lib/platform-api/client.rb
Overview
Peering provides a way to peer your Private Space VPC to another AWS VPC.
Instance Method Summary collapse
-
#accept(space_id_or_space_name, peering_pcx_id) ⇒ Object
Accept a pending peering connection with a private space.
-
#destroy(space_id_or_space_name, peering_pcx_id) ⇒ Object
Destroy an active peering connection with a private space.
-
#info(space_id_or_space_name, peering_pcx_id) ⇒ Object
Fetch information for existing peering connection.
-
#initialize(client) ⇒ Peering
constructor
A new instance of Peering.
-
#list(space_id_or_space_name) ⇒ Object
List peering connections of a private space.
Constructor Details
#initialize(client) ⇒ Peering
Returns a new instance of Peering.
2347 2348 2349 |
# File 'lib/platform-api/client.rb', line 2347 def initialize(client) @client = client end |
Instance Method Details
#accept(space_id_or_space_name, peering_pcx_id) ⇒ Object
Accept a pending peering connection with a private space.
2362 2363 2364 |
# File 'lib/platform-api/client.rb', line 2362 def accept(space_id_or_space_name, peering_pcx_id) @client.peering.accept(space_id_or_space_name, peering_pcx_id) end |
#destroy(space_id_or_space_name, peering_pcx_id) ⇒ Object
Destroy an active peering connection with a private space.
2370 2371 2372 |
# File 'lib/platform-api/client.rb', line 2370 def destroy(space_id_or_space_name, peering_pcx_id) @client.peering.destroy(space_id_or_space_name, peering_pcx_id) end |
#info(space_id_or_space_name, peering_pcx_id) ⇒ Object
Fetch information for existing peering connection
2378 2379 2380 |
# File 'lib/platform-api/client.rb', line 2378 def info(space_id_or_space_name, peering_pcx_id) @client.peering.info(space_id_or_space_name, peering_pcx_id) end |
#list(space_id_or_space_name) ⇒ Object
List peering connections of a private space.
2354 2355 2356 |
# File 'lib/platform-api/client.rb', line 2354 def list(space_id_or_space_name) @client.peering.list(space_id_or_space_name) end |