Skip to content

Commit 8deda12

Browse files
committed
Hyperstack sdk release v0.2.0
1 parent d8aa2bd commit 8deda12

1,177 files changed

Lines changed: 128645 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/python.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: hyperstack Python package
7+
8+
on: [push, pull_request]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -r test-requirements.txt
29+
- name: Test with pytest
30+
run: |
31+
pytest --cov={{packageName}}

.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=hyperstack
16+
17+
pytest-3.8:
18+
extends: .pytest
19+
image: python:3.8-alpine
20+
pytest-3.9:
21+
extends: .pytest
22+
image: python:3.9-alpine
23+
pytest-3.10:
24+
extends: .pytest
25+
image: python:3.10-alpine
26+
pytest-3.11:
27+
extends: .pytest
28+
image: python:3.11-alpine
29+
pytest-3.12:
30+
extends: .pytest
31+
image: python:3.12-alpine

README.md

Lines changed: 623 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# AddUpdateFlavorOrganizationPayload
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**cpu** | **int** | |
9+
**description** | **str** | | [optional]
10+
**disk** | **int** | |
11+
**ephemeral** | **int** | | [optional]
12+
**gpu_count** | **int** | |
13+
**gpu_id** | **int** | |
14+
**is_public** | **bool** | |
15+
**labels** | **List[str]** | | [optional]
16+
**name** | **str** | |
17+
**openstack_id** | **str** | |
18+
**organizations** | **List[int]** | |
19+
**ram** | **float** | |
20+
**region_id** | **int** | |
21+
22+
## Example
23+
24+
```python
25+
from hyperstack.models.add_update_flavor_organization_payload import AddUpdateFlavorOrganizationPayload
26+
27+
# TODO update the JSON string below
28+
json = "{}"
29+
# create an instance of AddUpdateFlavorOrganizationPayload from a JSON string
30+
add_update_flavor_organization_payload_instance = AddUpdateFlavorOrganizationPayload.from_json(json)
31+
# print the JSON string representation of the object
32+
print(AddUpdateFlavorOrganizationPayload.to_json())
33+
34+
# convert the object into a dict
35+
add_update_flavor_organization_payload_dict = add_update_flavor_organization_payload_instance.to_dict()
36+
# create an instance of AddUpdateFlavorOrganizationPayload from a dict
37+
add_update_flavor_organization_payload_from_dict = AddUpdateFlavorOrganizationPayload.from_dict(add_update_flavor_organization_payload_dict)
38+
```
39+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
40+
41+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# AddUserInfoSuccessResponseModel
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**data** | [**UsersInfoFields**](UsersInfoFields.md) | | [optional]
9+
**message** | **str** | | [optional]
10+
**status** | **bool** | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from hyperstack.models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of AddUserInfoSuccessResponseModel from a JSON string
20+
add_user_info_success_response_model_instance = AddUserInfoSuccessResponseModel.from_json(json)
21+
# print the JSON string representation of the object
22+
print(AddUserInfoSuccessResponseModel.to_json())
23+
24+
# convert the object into a dict
25+
add_user_info_success_response_model_dict = add_user_info_success_response_model_instance.to_dict()
26+
# create an instance of AddUserInfoSuccessResponseModel from a dict
27+
add_user_info_success_response_model_from_dict = AddUserInfoSuccessResponseModel.from_dict(add_user_info_success_response_model_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/AliveApi.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# hyperstack.AliveApi
2+
3+
All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_alive**](AliveApi.md#get_alive) | **GET** /billing/alive | GET: Alive
8+
9+
10+
# **get_alive**
11+
> get_alive()
12+
13+
GET: Alive
14+
15+
### Example
16+
17+
18+
```python
19+
import hyperstack
20+
from hyperstack.rest import ApiException
21+
from pprint import pprint
22+
23+
# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
24+
# See configuration.py for a list of all supported configuration parameters.
25+
configuration = hyperstack.Configuration(
26+
host = "https://infrahub-api.nexgencloud.com/v1"
27+
)
28+
29+
30+
# Enter a context with an instance of the API client
31+
with hyperstack.ApiClient(configuration) as api_client:
32+
# Create an instance of the API class
33+
api_instance = hyperstack.AliveApi(api_client)
34+
35+
try:
36+
# GET: Alive
37+
api_instance.get_alive()
38+
except Exception as e:
39+
print("Exception when calling AliveApi->get_alive: %s\n" % e)
40+
```
41+
42+
43+
44+
### Parameters
45+
46+
This endpoint does not need any parameter.
47+
48+
### Return type
49+
50+
void (empty response body)
51+
52+
### Authorization
53+
54+
No authorization required
55+
56+
### HTTP request headers
57+
58+
- **Content-Type**: Not defined
59+
- **Accept**: Not defined
60+
61+
### HTTP response details
62+
63+
| Status code | Description | Response headers |
64+
|-------------|-------------|------------------|
65+
**200** | Success | - |
66+
67+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
68+

docs/AllocatedGPUCountGraph.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AllocatedGPUCountGraph
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**datetime** | **str** | | [optional]
9+
**value** | **int** | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hyperstack.models.allocated_gpu_count_graph import AllocatedGPUCountGraph
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of AllocatedGPUCountGraph from a JSON string
19+
allocated_gpu_count_graph_instance = AllocatedGPUCountGraph.from_json(json)
20+
# print the JSON string representation of the object
21+
print(AllocatedGPUCountGraph.to_json())
22+
23+
# convert the object into a dict
24+
allocated_gpu_count_graph_dict = allocated_gpu_count_graph_instance.to_dict()
25+
# create an instance of AllocatedGPUCountGraph from a dict
26+
allocated_gpu_count_graph_from_dict = AllocatedGPUCountGraph.from_dict(allocated_gpu_count_graph_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

0 commit comments

Comments
 (0)