Class: Fog::Compute::Gridscale::Interfaces
Instance Method Summary
collapse
#next_page, #previous_page
Instance Method Details
#all(server_uuid) ⇒ Object
9
10
11
12
13
14
|
# File 'lib/fog/compute/gridscale/models/interfaces.rb', line 9
def all(server_uuid)
data = service.server_relation_networks_get(server_uuid)
relations = data.body['network_relations'].each
load(relations)
end
|
#get(server_uuid, network_uuid) ⇒ Object
16
17
18
19
20
21
|
# File 'lib/fog/compute/gridscale/models/interfaces.rb', line 16
def get(server_uuid, network_uuid)
networks_relation = service.server_relation_network_get(server_uuid, network_uuid).body['network_relation']
new(networks_relation) if networks_relation
rescue Fog::Errors::NotFound
nil
end
|