| 1 |
Title: Integrating with cloud providers |
| 2 |
|
| 3 |
Integration with cloud providers can be achieved by fetching a list of exported |
| 4 |
cloud provider accounts using [[email protected]_providers]. This function returns |
| 5 |
a list of [class@Provider] objects that can then be used to obtain details about |
| 6 |
the providers. Each [class@Provider] holds a list of [class@Account] |
| 7 |
that can be query using [[email protected]_accounts]. |
| 8 |
|
| 9 |
To get notified about changes in either the [class@Provider] or each of |
| 10 |
their [class@Account] you can connect to the "notify::" signal of |
| 11 |
each of their properties. Any UI elements should be updated after receiving |
| 12 |
this signal. |
| 13 |
|
| 14 |
Besides the account details, [class@Account] may also export a [[email protected]] and a [[email protected]] |
| 15 |
to provide actions that are related with the account. Those can be obtained by calling |
| 16 |
[[email protected]_menu_model] and [[email protected]_action_group]. |