Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
713 changes: 622 additions & 91 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.0-SNAPSHOT
7.4.0-SNAPSHOT
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.PHONY: all generate clean
.PHONY: all generate clean remove

UID := $(shell id -u)
API_URL := https://infrahub-api-doc.nexgencloud.com/api.json

all: generate

generate: api.json
generate: openapi/api.json
docker container run \
--rm \
--user $(UID) \
Expand All @@ -14,19 +14,19 @@ generate: api.json
--volume "$(PWD):/local" \
openapitools/openapi-generator-cli \
generate \
--generator-name python \
--input-spec "/local/api.json" \
--output /local/ \
--config /local/config.json
--config /local/openapi/config.yaml

api.orig.json:
curl "$(API_URL)" | jq . > api.orig.json
openapi/api.orig.json:
curl "$(API_URL)" | jq . > openapi/api.orig.json

api.json: api.orig.json patch.jq
jq -f 'patch.jq' api.orig.json > api.json
openapi/api.json: openapi/api.orig.json openapi/patch.jq
jq -f 'openapi/patch.jq' openapi/api.orig.json > openapi/api.json

api.patch: api.orig.json api.json
diff -u5 api.orig.json api.json > api.patch || true
openapi/api.patch: openapi/api.orig.json openapi/api.json
diff -u5 openapi/api.orig.json openapi/api.json > openapi/api.patch || true

clean:
rm -f api.orig.json api.json api.patch
rm -f openapi/api.orig.json openapi/api.json openapi/api.patch

remove:
rm -rf hyperstack docs test .github .openapi-generator .openapi-generator-ignore .gitlab-ci.yml .travis.yml README.md git_push.sh pyproject.toml requirements.txt setup.py setup.cfg test-requirements.txt tox.ini
328 changes: 219 additions & 109 deletions README.md

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions config.json

This file was deleted.

12 changes: 6 additions & 6 deletions docs/APIKeyFields.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# APIKeyFields
# ApiKeyFields


## Properties
Expand All @@ -10,18 +10,18 @@ Name | Type | Description | Notes
## Example

```python
from hyperstack.models.api_key_fields import APIKeyFields
from hyperstack.models.api_key_fields import ApiKeyFields

# TODO update the JSON string below
json = "{}"
# create an instance of APIKeyFields from a JSON string
api_key_fields_instance = APIKeyFields.from_json(json)
# create an instance of ApiKeyFields from a JSON string
api_key_fields_instance = ApiKeyFields.from_json(json)
# print the JSON string representation of the object
print APIKeyFields.to_json()
print(ApiKeyFields.to_json())

# convert the object into a dict
api_key_fields_dict = api_key_fields_instance.to_dict()
# create an instance of APIKeyFields from a dict
# create an instance of ApiKeyFields from a dict
api_key_fields_form_dict = api_key_fields.from_dict(api_key_fields_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
29 changes: 0 additions & 29 deletions docs/APIKeyPayload.md

This file was deleted.

40 changes: 40 additions & 0 deletions docs/AddUpdateFlavorOrganizationPayload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# AddUpdateFlavorOrganizationPayload


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | |
**description** | **str** | | [optional]
**openstack_id** | **str** | |
**region_id** | **int** | |
**cpu** | **int** | |
**ram** | **float** | |
**disk** | **int** | |
**ephemeral** | **int** | | [optional]
**gpu_id** | **int** | |
**gpu_count** | **int** | |
**is_public** | **bool** | |
**organizations** | **List[int]** | |

## Example

```python
from hyperstack.models.add_update_flavor_organization_payload import AddUpdateFlavorOrganizationPayload

# TODO update the JSON string below
json = "{}"
# create an instance of AddUpdateFlavorOrganizationPayload from a JSON string
add_update_flavor_organization_payload_instance = AddUpdateFlavorOrganizationPayload.from_json(json)
# print the JSON string representation of the object
print(AddUpdateFlavorOrganizationPayload.to_json())

# convert the object into a dict
add_update_flavor_organization_payload_dict = add_update_flavor_organization_payload_instance.to_dict()
# create an instance of AddUpdateFlavorOrganizationPayload from a dict
add_update_flavor_organization_payload_form_dict = add_update_flavor_organization_payload.from_dict(add_update_flavor_organization_payload_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


31 changes: 31 additions & 0 deletions docs/AddUserInfoSuccessResponseModel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# AddUserInfoSuccessResponseModel


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **bool** | | [optional]
**message** | **str** | | [optional]
**data** | [**UsersInfoFields**](UsersInfoFields.md) | | [optional]

## Example

```python
from hyperstack.models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel

# TODO update the JSON string below
json = "{}"
# create an instance of AddUserInfoSuccessResponseModel from a JSON string
add_user_info_success_response_model_instance = AddUserInfoSuccessResponseModel.from_json(json)
# print the JSON string representation of the object
print(AddUserInfoSuccessResponseModel.to_json())

# convert the object into a dict
add_user_info_success_response_model_dict = add_user_info_success_response_model_instance.to_dict()
# create an instance of AddUserInfoSuccessResponseModel from a dict
add_user_info_success_response_model_form_dict = add_user_info_success_response_model.from_dict(add_user_info_success_response_model_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


38 changes: 38 additions & 0 deletions docs/AdminAddUpdateImageOrganizationPayload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# AdminAddUpdateImageOrganizationPayload


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | |
**openstack_id** | **str** | |
**region_id** | **int** | |
**type** | **str** | |
**version** | **str** | |
**size** | **int** | |
**is_public** | **bool** | |
**description** | **str** | | [optional]
**labels** | **List[str]** | | [optional]
**organizations** | **List[int]** | |

## Example

```python
from hyperstack.models.admin_add_update_image_organization_payload import AdminAddUpdateImageOrganizationPayload

# TODO update the JSON string below
json = "{}"
# create an instance of AdminAddUpdateImageOrganizationPayload from a JSON string
admin_add_update_image_organization_payload_instance = AdminAddUpdateImageOrganizationPayload.from_json(json)
# print the JSON string representation of the object
print(AdminAddUpdateImageOrganizationPayload.to_json())

# convert the object into a dict
admin_add_update_image_organization_payload_dict = admin_add_update_image_organization_payload_instance.to_dict()
# create an instance of AdminAddUpdateImageOrganizationPayload from a dict
admin_add_update_image_organization_payload_form_dict = admin_add_update_image_organization_payload.from_dict(admin_add_update_image_organization_payload_dict)
```
[[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 changes: 29 additions & 0 deletions docs/AdminBootstrapEnvironmentPayload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# AdminBootstrapEnvironmentPayload


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**org_id** | **int** | |

## Example

```python
from hyperstack.models.admin_bootstrap_environment_payload import AdminBootstrapEnvironmentPayload

# TODO update the JSON string below
json = "{}"
# create an instance of AdminBootstrapEnvironmentPayload from a JSON string
admin_bootstrap_environment_payload_instance = AdminBootstrapEnvironmentPayload.from_json(json)
# print the JSON string representation of the object
print(AdminBootstrapEnvironmentPayload.to_json())

# convert the object into a dict
admin_bootstrap_environment_payload_dict = admin_bootstrap_environment_payload_instance.to_dict()
# create an instance of AdminBootstrapEnvironmentPayload from a dict
admin_bootstrap_environment_payload_form_dict = admin_bootstrap_environment_payload.from_dict(admin_bootstrap_environment_payload_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


18 changes: 9 additions & 9 deletions docs/ClusterResource.md → docs/AdminClusterResource.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClusterResource
# AdminClusterResource


## Properties
Expand All @@ -11,26 +11,26 @@ Name | Type | Description | Notes
**status** | **str** | | [optional]
**master_count** | **int** | | [optional]
**node_count** | **int** | | [optional]
**node_flavor** | [**FlavorResource**](FlavorResource.md) | | [optional]
**node_flavor** | [**AdminFlavorResource**](AdminFlavorResource.md) | | [optional]
**enable_public_ip** | **bool** | | [optional]
**created_at** | **datetime** | | [optional]

## Example

```python
from hyperstack.models.cluster_resource import ClusterResource
from hyperstack.models.admin_cluster_resource import AdminClusterResource

# TODO update the JSON string below
json = "{}"
# create an instance of ClusterResource from a JSON string
cluster_resource_instance = ClusterResource.from_json(json)
# create an instance of AdminClusterResource from a JSON string
admin_cluster_resource_instance = AdminClusterResource.from_json(json)
# print the JSON string representation of the object
print ClusterResource.to_json()
print(AdminClusterResource.to_json())

# convert the object into a dict
cluster_resource_dict = cluster_resource_instance.to_dict()
# create an instance of ClusterResource from a dict
cluster_resource_form_dict = cluster_resource.from_dict(cluster_resource_dict)
admin_cluster_resource_dict = admin_cluster_resource_instance.to_dict()
# create an instance of AdminClusterResource from a dict
admin_cluster_resource_form_dict = admin_cluster_resource.from_dict(admin_cluster_resource_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
18 changes: 9 additions & 9 deletions docs/ContainerResource.md → docs/AdminContainerResource.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ContainerResource
# AdminContainerResource


## Properties
Expand All @@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**name** | **str** | | [optional]
**flavor** | [**FlavorResource**](FlavorResource.md) | | [optional]
**flavor** | [**AdminFlavorResource**](AdminFlavorResource.md) | | [optional]
**status** | **str** | | [optional]
**image** | **str** | | [optional]
**fixed_ip** | **str** | | [optional]
Expand All @@ -17,19 +17,19 @@ Name | Type | Description | Notes
## Example

```python
from hyperstack.models.container_resource import ContainerResource
from hyperstack.models.admin_container_resource import AdminContainerResource

# TODO update the JSON string below
json = "{}"
# create an instance of ContainerResource from a JSON string
container_resource_instance = ContainerResource.from_json(json)
# create an instance of AdminContainerResource from a JSON string
admin_container_resource_instance = AdminContainerResource.from_json(json)
# print the JSON string representation of the object
print ContainerResource.to_json()
print(AdminContainerResource.to_json())

# convert the object into a dict
container_resource_dict = container_resource_instance.to_dict()
# create an instance of ContainerResource from a dict
container_resource_form_dict = container_resource.from_dict(container_resource_dict)
admin_container_resource_dict = admin_container_resource_instance.to_dict()
# create an instance of AdminContainerResource from a dict
admin_container_resource_form_dict = admin_container_resource.from_dict(admin_container_resource_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
36 changes: 36 additions & 0 deletions docs/AdminContractEventFields.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# AdminContractEventFields


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**user_id** | **int** | | [optional]
**org_id** | **int** | | [optional]
**time** | **datetime** | | [optional]
**type** | **str** | | [optional]
**reason** | **str** | | [optional]
**message** | **str** | | [optional]
**created_at** | **datetime** | | [optional]

## Example

```python
from hyperstack.models.admin_contract_event_fields import AdminContractEventFields

# TODO update the JSON string below
json = "{}"
# create an instance of AdminContractEventFields from a JSON string
admin_contract_event_fields_instance = AdminContractEventFields.from_json(json)
# print the JSON string representation of the object
print(AdminContractEventFields.to_json())

# convert the object into a dict
admin_contract_event_fields_dict = admin_contract_event_fields_instance.to_dict()
# create an instance of AdminContractEventFields from a dict
admin_contract_event_fields_form_dict = admin_contract_event_fields.from_dict(admin_contract_event_fields_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading