Commit 9a4d01d
committed
move various methods to the open source client
This commit moves these methods to the open source hypernode-api-python client:
```
get_app_info_or_404
get_next_best_plan_for_app_or_404
validate_app_name
get_slas
get_available_backups_for_app
get_app_eav_description
set_app_settings
get_app_configurations
get_product_info_with_price
get_whitelist_options
get_whitelist_rules
get_current_product_for_app
check_payment_information_for_app
get_active_products
check_xgrade
xgrade
order_hypernode
```
There is some code in here that's slightly incongruent, but that's an
artifact of where this came from. I added docstrings with usage examples
and refactored out some of the django specific exceptions (Http404) and
replaced those with RuntimeError so that the client doesn't make any
assumptions about being ran in a Django application.1 parent bdb74a0 commit 9a4d01d
File tree
21 files changed
+1294
-12
lines changed- hypernode_api_python
- tests/client
21 files changed
+1294
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | | - | |
32 | | - | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | | - | |
39 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
41 | 60 | | |
42 | 61 | | |
| 62 | + | |
43 | 63 | | |
44 | 64 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
48 | 68 | | |
49 | 69 | | |
50 | 70 | | |
| |||
0 commit comments