1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[hp|network] Minor chnages to inline docs and mocks.

This commit is contained in:
Rupak Ganguly 2013-03-27 18:00:37 -04:00
parent 921fe7d6e5
commit 8766c7b8f4
5 changed files with 9 additions and 5 deletions

View file

@ -81,6 +81,9 @@ module Fog
'tenant_id' => options[:tenant_id] || Fog::Mock.random_numbers(14).to_s
}
self.data[:subnets][data['id']] = data
# add this subnet to the network
self.data[:networks][network_id]['subnets'] << data['id']
response.body = { 'subnet' => data }
response
else

View file

@ -6,7 +6,7 @@ module Fog
# Delete an existing network
#
# ==== Parameters
# * network_id<~String> - UUId for the network to delete
# * 'network_id'<~String> - UUId for the network to delete
def delete_network(network_id)
request(
:expects => 204,

View file

@ -3,10 +3,10 @@ module Fog
class Network
class Real
# Get an existing floating ip by id
# Get details for an existing floating ip by id
#
# ==== Parameters
# * 'id'<~String>: - UUId for the floating ip
# * 'floating_ip_id'<~String>: - UUId for the floating ip to get details for
#
# ==== Returns
# * response<~Excon::Response>:

View file

@ -3,10 +3,10 @@ module Fog
class Network
class Real
# Get an existing port by id
# Get details for an existing port by id
#
# ==== Parameters
# * 'id'<~String>: - UUId for the port
# * 'port_id'<~String>: - UUId for the port to get details for
#
# ==== Returns
# * response<~Excon::Response>:

View file

@ -6,6 +6,7 @@ module Fog
# Update attributes for an existing network
#
# ==== Parameters
# * 'network_id'<~String>: - UUId of the network
# * options<~Hash>:
# * 'name'<~String> - Name of the network
# * 'admin_state_up'<~Boolean> - The administrative state of the network, true or false