3 Commits

Author SHA1 Message Date
Terry Howe
b9cc376271 Server IP resource
The server IP resource can only list.  The Resource.list method
needed to be overridden because:
* The url path contains the server_id.
* The output is a dict of networks rather than an array.

Also in this change:
* ServerIP objects have sufficient information to stand on their
  own because they contain the server_id and network_label.
* An ips(session) convenience method has been added to the Server.
* The list example has been updated to pass data to path_args so
  the list method and format the url.

The path_args parameter to list may be convenient for other
classes.  I didn't add it to the Resource.list method because
that isn't required for this change.

Change-Id: Iac77aba144d2e5b4ca4cdbf97e534d83519066ef
2014-08-14 14:33:08 -06:00
Terry Howe
966beafd97 Minor fixes to examples
* Fix typo in authenticate
* Add comments to head command
* Fix name of head method
* Use find_resource_cls for lists

Change-Id: If4bb485088460151916e1d2b9b5fe80ad150dcff
2014-07-09 07:05:05 -06:00
Terry Howe
652b7adec7 Very basic image resource
All I've tried with this resource is listing so far.  I don't
see why some other operations wouldn't work, but I want to get
this in to get things rolling.

To run the example:

python -m examples.list openstack.image.v1.image.Image

Change-Id: Ia341c8bc2a914e38b96a67a21efb40ad8cf4e93c
2014-06-23 16:37:38 -06:00