Revision 7ae842c2 docs/developers/clients-api.rst
b/docs/developers/clients-api.rst | ||
---|---|---|
16 | 16 |
.. code-block:: python |
17 | 17 |
:emphasize-lines: 1 |
18 | 18 |
|
19 |
Example 1.1: Instantiate a Cyclades client
|
|
19 |
Example 1.1: Instantiate Cyclades and Pithos client
|
|
20 | 20 |
|
21 | 21 |
|
22 | 22 |
from kamaki.clients.cyclades import CycladesClient |
... | ... | |
27 | 27 |
|
28 | 28 |
.. note:: *cyclades* and *pithos* clients inherit all methods of *compute* and *storage* clients respectively. Separate compute or storage objects should be used only when implementing applications for strict OS Compute or OS Storage services. |
29 | 29 |
|
30 |
.. note:: *account* variable is usually acquired by the following astakos call |
|
31 |
|
|
32 |
.. code-block:: python |
|
33 |
|
|
34 |
from kamaki.clients.astakos import AstakosClient |
|
35 |
astakos = AstakosClient(astakos_base_url, token) |
|
36 |
account = astakos.term('uuid') |
|
37 |
|
|
30 | 38 |
Use client methods |
31 | 39 |
------------------ |
32 | 40 |
|
Also available in: Unified diff