Module: Lunanode::APIActions::Network

Included in:
Lunanode::APIActions
Defined in:
lib/lunanode/api_actions/network.rb,
lib/lunanode/api_actions/default/network.rb

Instance Method Summary collapse

Instance Method Details

#network_create(region:, name:, subnet:, dns:) ⇒ Object


10
11
12
# File 'lib/lunanode/api_actions/default/network.rb', line 10

def network_create(region:, name:, subnet:, dns:)
  action(:network, :create, region: region, name: name, subnet: subnet, dns: dns)
end

#network_delete(region:, net_id:) ⇒ Object


14
15
16
# File 'lib/lunanode/api_actions/default/network.rb', line 14

def network_delete(region:, net_id:)
  action(:network, :delete, region: region, net_id: net_id)
end

#network_list(region: nil) ⇒ Object


6
7
8
# File 'lib/lunanode/api_actions/default/network.rb', line 6

def network_list(region: nil)
  action(:network, :list, region: region)
end