Sha256: 7ac634e7590f745c1c4ae4537251c630104d7ad4d3ae978fa52a0144c40350f6
Contents?: true
Size: 1.09 KB
Versions: 51
Compression:
Stored size: 1.09 KB
Contents
require 'fog/core/collection' require 'fog/storm_on_demand/models/network/network_ip' module Fog module Network class StormOnDemand class NetworkIPs < Fog::Collection model Fog::Network::StormOnDemand::NetworkIP def add(options) service.add_ip_to_server(options) true end def get(server_id, ip) data = service.get_ip_details(:uniq_id => server_id, :ip => ip).body new(data) end def all(options={}) data = service.list_network_ips(options).body['items'] load(data) end def get_public_accounts(options={}) service.list_ip_public_accounts(options).body['items'] end def all_public(options={}) data = service.list_network_public_ips(options).body['items'] load(data) end def remove(options) service.remove_ip_from_server(options) true end def request_new_ips(options) service.request_new_ips(options) true end end end end end
Version data entries
51 entries across 51 versions & 3 rubygems