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
* Fix typo in authenticate
* Add comments to head command
* Fix name of head method
* Use find_resource_cls for lists
Change-Id: If4bb485088460151916e1d2b9b5fe80ad150dcff
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