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.



3483
3484
3485
# File 'lib/platform-api/client.rb', line 3483

def initialize(client)
  @client = client
end

Instance Method Details

#accept(space_id_or_space_name, peering_pcx_id) ⇒ Object



3509
3510
3511
# File 'lib/platform-api/client.rb', line 3509

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



3523
3524
3525
# File 'lib/platform-api/client.rb', line 3523

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



3537
3538
3539
# File 'lib/platform-api/client.rb', line 3537

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



3495
3496
3497
# File 'lib/platform-api/client.rb', line 3495

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