Class: PlatformAPI::Peering

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(client) ⇒ Peering

Returns a new instance of Peering.



2327
2328
2329
# File 'lib/platform-api/client.rb', line 2327

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.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space

  • peering_pcx_id:

    The AWS VPC Peering Connection ID of the peering.



2342
2343
2344
# File 'lib/platform-api/client.rb', line 2342

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.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space

  • peering_pcx_id:

    The AWS VPC Peering Connection ID of the peering.



2350
2351
2352
# File 'lib/platform-api/client.rb', line 2350

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

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space

  • peering_pcx_id:

    The AWS VPC Peering Connection ID of the peering.



2358
2359
2360
# File 'lib/platform-api/client.rb', line 2358

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.

Parameters:

  • space_id_or_space_name:

    unique identifier of space or unique name of space



2334
2335
2336
# File 'lib/platform-api/client.rb', line 2334

def list(space_id_or_space_name)
  @client.peering.list(space_id_or_space_name)
end