4 Commits

Author SHA1 Message Date
tengqm
a8beb00ca3 Added function to create connection via SDK
Connection creation may invole SDK layer exception throwing, we
wrap this exception handling into a utility function.
2015-01-25 18:58:11 +08:00
tengqm
b4110e3e80 Added customization of create() method
The create method will return a response.  This patch avoids hiding that
response from the create() return values.
2015-01-23 16:02:42 +08:00
tengqm
3d5fffd7a3 Revised sdk interface
This module is used to interface with openstacksdk.  The main problem we
encountered is that the default list() operation carries DB session.
There are cases where our list generation is from in-memory data.  To
overcome that we provide a list_short() method to Resource class.

The SenlinConnection class is not useful at the moment.

The UserPreferences is a standard way to specify desired API version,
region name, an API visibility (public, private, admin). We provide a
subclass here to deal with the respective requirements.
2015-01-16 15:15:20 +08:00
tengqm
432ef53b3d Placeholder for openstacksdk interface
Will transit to this interface in future.  The current http.py based
implementation will deprecate soon.
2015-01-12 15:40:04 +08:00