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

[hp|network] Add request method for list_networks.

This commit is contained in:
Rupak Ganguly 2013-03-21 14:18:14 -04:00
parent 8f1f1a9d14
commit b1a94f9a2e

View file

@ -11,19 +11,17 @@ module Fog
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Array>:
# * volumes<~Hash>:
# * 'id'<~Integer>: - Id for the volume
# * 'displayName'<~String>: - Name of the volume
# * 'displayDescription'<~String>: - Description of the volume
# * 'size'<~Integer>: - Size in GB for the volume
# * 'status'<~String>: - Status of the volume i.e. "available"
# * 'volumeType'<~String>: - Type of the volume
# * 'snapshotId'<~String>: - Id of the volume snapshot
# * 'createdAt'<~String>: - Timestamp in UTC when volume was created
# * 'availabilityZone'<~String>: - Availability zone i.e. "nova"
# * attachments<~Array>: Array of hashes of attachments
# * metadata<~Hash>: Hash of metadata for the volume
# * body<~Hash>:
# * networks<~Array>:
# * 'id'<~Integer>: - UUId for the network
# * 'name'<~String>: - Name of the network
# * 'tenant_id'<~String>: - TenantId that owns the network
# * 'status'<~String>: - Status of the network i.e. "ACTIVE"
# * 'subnets'<~Array>: - Subnets for the network
# * 'id'<~Integer>: - UUId for the subnet
# * 'router:external'<~Boolean>: - true or false
# * 'admin_state_up'<~Boolean>: - true or false
# * 'shared'<~Boolean>: - true or false
def list_networks(options = {})
request(
:expects => 200,