Class: Fog::Network::StormOnDemand::NetworkIPs
- Inherits:
-
Collection
- Object
- Collection
- Fog::Network::StormOnDemand::NetworkIPs
- Defined in:
- lib/fog/network/storm_on_demand/models/network_ips.rb
Instance Method Summary collapse
- #add(options) ⇒ Object
- #all(options = {}) ⇒ Object
- #all_public(options = {}) ⇒ Object
- #get(server_id, ip) ⇒ Object
- #get_public_accounts(options = {}) ⇒ Object
- #remove(options) ⇒ Object
- #request_new_ips(options) ⇒ Object
Instance Method Details
#add(options) ⇒ Object
7 8 9 10 |
# File 'lib/fog/network/storm_on_demand/models/network_ips.rb', line 7 def add() service.add_ip_to_server() true end |
#all(options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/fog/network/storm_on_demand/models/network_ips.rb', line 17 def all( = {}) data = service.list_network_ips().body["items"] load(data) end |
#all_public(options = {}) ⇒ Object
26 27 28 29 |
# File 'lib/fog/network/storm_on_demand/models/network_ips.rb', line 26 def all_public( = {}) data = service.list_network_public_ips().body["items"] load(data) end |
#get(server_id, ip) ⇒ Object
12 13 14 15 |
# File 'lib/fog/network/storm_on_demand/models/network_ips.rb', line 12 def get(server_id, ip) data = service.get_ip_details(:uniq_id => server_id, :ip => ip).body new(data) end |
#get_public_accounts(options = {}) ⇒ Object
22 23 24 |
# File 'lib/fog/network/storm_on_demand/models/network_ips.rb', line 22 def get_public_accounts( = {}) service.list_ip_public_accounts().body["items"] end |
#remove(options) ⇒ Object
31 32 33 34 |
# File 'lib/fog/network/storm_on_demand/models/network_ips.rb', line 31 def remove() service.remove_ip_from_server() true end |
#request_new_ips(options) ⇒ Object
36 37 38 39 |
# File 'lib/fog/network/storm_on_demand/models/network_ips.rb', line 36 def request_new_ips() service.request_new_ips() true end |