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

new(client) click to toggle source
# File lib/platform-api/client.rb, line 2345
def initialize(client)
  @client = client
end

Public Instance Methods

accept(space_id_or_space_name, peering_pcx_id) click to toggle source

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(space_id_or_space_name, peering_pcx_id) click to toggle source

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
info(space_id_or_space_name, peering_pcx_id) click to toggle source

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(space_id_or_space_name) click to toggle source

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