class PlatformAPI::Peering
[Peering](devcenter.heroku.com/articles/private-space-peering) provides a way to peer your Private Space
VPC to another AWS VPC.
Public Class Methods
# File lib/platform-api/client.rb, line 2345 def initialize(client) @client = client end
Public Instance Methods
Accept a pending peering connection with a private space.
@param space_id_or_space_name: unique identifier of space or unique name of space @param peering_pcx_id: The AWS VPC Peering
Connection ID of the peering.
# File lib/platform-api/client.rb, line 2360 def accept(space_id_or_space_name, peering_pcx_id) @client.peering.accept(space_id_or_space_name, peering_pcx_id) end
Destroy an active peering connection with a private space.
@param space_id_or_space_name: unique identifier of space or unique name of space @param peering_pcx_id: The AWS VPC Peering
Connection ID of the peering.
# File lib/platform-api/client.rb, line 2368 def destroy(space_id_or_space_name, peering_pcx_id) @client.peering.destroy(space_id_or_space_name, peering_pcx_id) end
Fetch information for existing peering connection
@param space_id_or_space_name: unique identifier of space or unique name of space @param peering_pcx_id: The AWS VPC Peering
Connection ID of the peering.
# File lib/platform-api/client.rb, line 2376 def info(space_id_or_space_name, peering_pcx_id) @client.peering.info(space_id_or_space_name, peering_pcx_id) end
List peering connections of a private space.
@param space_id_or_space_name: unique identifier of space or unique name of space
# File lib/platform-api/client.rb, line 2352 def list(space_id_or_space_name) @client.peering.list(space_id_or_space_name) end