Skip to content

Commit 3bfafb2

Browse files
committed
SDK Release v1.25.0-alpha with Infrahub v1.25.0
1 parent 8b0c272 commit 3bfafb2

20 files changed

+356
-197
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ To contribute, please raise an issue with a bug report, feature request, feedbac
88
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
99

1010
- API version: 1.0
11-
- Package version: 0.1.23
12-
- Generator version: 7.9.0
11+
- Package version: v1.25.0-alpha
12+
- Generator version: 7.10.0
1313
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1414

1515
## Requirements.
1616

17-
Python 3.7+
17+
Python 3.8+
1818

1919
## Installation & Usage
2020
### pip install
@@ -129,9 +129,9 @@ Class | Method | HTTP request | Description
129129
*BillingApi* | [**get_billing_usage**](docs/BillingApi.md#get_billing_usage) | **GET** /billing/billing/usage | GET: Billing usage
130130
*BillingApi* | [**get_last_day_cost**](docs/BillingApi.md#get_last_day_cost) | **GET** /billing/billing/last-day-cost | GET: Last Day Cost
131131
*BillingApi* | [**retrieve_billing_history_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_for_a_specific_billing_cycle) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle
132+
*BillingApi* | [**retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
132133
*BillingApi* | [**retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
133-
*BillingApi* | [**retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
134-
*BillingApi* | [**retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0**](docs/BillingApi.md#retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
134+
*BillingApi* | [**retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
135135
*BillingApi* | [**retrieve_billing_history_of_contract_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_contract_for_a_specific_billing_cycle) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle
136136
*BillingApi* | [**retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
137137
*BillingApi* | [**retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle

docs/BillingApi.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Method | HTTP request | Description
88
[**get_billing_usage**](BillingApi.md#get_billing_usage) | **GET** /billing/billing/usage | GET: Billing usage
99
[**get_last_day_cost**](BillingApi.md#get_last_day_cost) | **GET** /billing/billing/last-day-cost | GET: Last Day Cost
1010
[**retrieve_billing_history_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_for_a_specific_billing_cycle) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle
11+
[**retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
1112
[**retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
12-
[**retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
13-
[**retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0**](BillingApi.md#retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
13+
[**retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
1414
[**retrieve_billing_history_of_contract_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_contract_for_a_specific_billing_cycle) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle
1515
[**retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
1616
[**retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle
@@ -387,12 +387,12 @@ Name | Type | Description | Notes
387387

388388
[[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)
389389

390-
# **retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle**
391-
> ResourceLevelVMBillingDetailsResponseModel retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle(vm_id, start_date=start_date, end_date=end_date)
390+
# **retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle**
391+
> ResourceLevelVolumeBillingDetailsResponseModel retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle(snapshot_id, start_date=start_date, end_date=end_date)
392392
393-
Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
393+
Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
394394

395-
User will recieve billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
395+
Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
396396

397397
### Example
398398

@@ -401,7 +401,7 @@ User will recieve billing history of a specific Virtual Machine for the specifie
401401

402402
```python
403403
import hyperstack
404-
from hyperstack.models.resource_level_vm_billing_details_response_model import ResourceLevelVMBillingDetailsResponseModel
404+
from hyperstack.models.resource_level_volume_billing_details_response_model import ResourceLevelVolumeBillingDetailsResponseModel
405405
from hyperstack.rest import ApiException
406406
from pprint import pprint
407407

@@ -432,17 +432,17 @@ configuration.api_key['accessToken'] = os.environ["API_KEY"]
432432
with hyperstack.ApiClient(configuration) as api_client:
433433
# Create an instance of the API class
434434
api_instance = hyperstack.BillingApi(api_client)
435-
vm_id = 56 # int |
436-
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
437-
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
435+
snapshot_id = 56 # int |
436+
start_date = 'start_date_example' # str | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
437+
end_date = 'end_date_example' # str | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
438438

439439
try:
440-
# Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
441-
api_response = api_instance.retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle(vm_id, start_date=start_date, end_date=end_date)
442-
print("The response of BillingApi->retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle:\n")
440+
# Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
441+
api_response = api_instance.retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle(snapshot_id, start_date=start_date, end_date=end_date)
442+
print("The response of BillingApi->retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle:\n")
443443
pprint(api_response)
444444
except Exception as e:
445-
print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle: %s\n" % e)
445+
print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle: %s\n" % e)
446446
```
447447

448448

@@ -452,13 +452,13 @@ with hyperstack.ApiClient(configuration) as api_client:
452452

453453
Name | Type | Description | Notes
454454
------------- | ------------- | ------------- | -------------
455-
**vm_id** | **int**| |
456-
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
457-
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
455+
**snapshot_id** | **int**| |
456+
**start_date** | **str**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
457+
**end_date** | **str**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
458458

459459
### Return type
460460

461-
[**ResourceLevelVMBillingDetailsResponseModel**](ResourceLevelVMBillingDetailsResponseModel.md)
461+
[**ResourceLevelVolumeBillingDetailsResponseModel**](ResourceLevelVolumeBillingDetailsResponseModel.md)
462462

463463
### Authorization
464464

@@ -482,12 +482,12 @@ Name | Type | Description | Notes
482482

483483
[[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)
484484

485-
# **retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**
486-
> ResourceLevelVolumeBillingDetailsResponseModel retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(snapshot_id, start_date=start_date, end_date=end_date)
485+
# **retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle**
486+
> ResourceLevelVMBillingDetailsResponseModel retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle(vm_id, start_date=start_date, end_date=end_date)
487487
488-
Retrieve Billing History of a Specific Volume for a specific Billing Cycle
488+
Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
489489

490-
Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
490+
User will recieve billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
491491

492492
### Example
493493

@@ -496,7 +496,7 @@ Retrieve billing history of a specific Snapshot for the specified billing cycle.
496496

497497
```python
498498
import hyperstack
499-
from hyperstack.models.resource_level_volume_billing_details_response_model import ResourceLevelVolumeBillingDetailsResponseModel
499+
from hyperstack.models.resource_level_vm_billing_details_response_model import ResourceLevelVMBillingDetailsResponseModel
500500
from hyperstack.rest import ApiException
501501
from pprint import pprint
502502

@@ -527,17 +527,17 @@ configuration.api_key['accessToken'] = os.environ["API_KEY"]
527527
with hyperstack.ApiClient(configuration) as api_client:
528528
# Create an instance of the API class
529529
api_instance = hyperstack.BillingApi(api_client)
530-
snapshot_id = 56 # int |
531-
start_date = 'start_date_example' # str | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
532-
end_date = 'end_date_example' # str | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
530+
vm_id = 56 # int |
531+
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
532+
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
533533

534534
try:
535-
# Retrieve Billing History of a Specific Volume for a specific Billing Cycle
536-
api_response = api_instance.retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(snapshot_id, start_date=start_date, end_date=end_date)
537-
print("The response of BillingApi->retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle:\n")
535+
# Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
536+
api_response = api_instance.retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle(vm_id, start_date=start_date, end_date=end_date)
537+
print("The response of BillingApi->retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle:\n")
538538
pprint(api_response)
539539
except Exception as e:
540-
print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle: %s\n" % e)
540+
print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle: %s\n" % e)
541541
```
542542

543543

@@ -547,13 +547,13 @@ with hyperstack.ApiClient(configuration) as api_client:
547547

548548
Name | Type | Description | Notes
549549
------------- | ------------- | ------------- | -------------
550-
**snapshot_id** | **int**| |
551-
**start_date** | **str**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
552-
**end_date** | **str**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
550+
**vm_id** | **int**| |
551+
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
552+
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
553553

554554
### Return type
555555

556-
[**ResourceLevelVolumeBillingDetailsResponseModel**](ResourceLevelVolumeBillingDetailsResponseModel.md)
556+
[**ResourceLevelVMBillingDetailsResponseModel**](ResourceLevelVMBillingDetailsResponseModel.md)
557557

558558
### Authorization
559559

@@ -577,8 +577,8 @@ Name | Type | Description | Notes
577577

578578
[[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)
579579

580-
# **retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0**
581-
> ResourceLevelVolumeBillingDetailsResponseModel retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0(volume_id, start_date=start_date, end_date=end_date)
580+
# **retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**
581+
> ResourceLevelVolumeBillingDetailsResponseModel retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(volume_id, start_date=start_date, end_date=end_date)
582582
583583
Retrieve Billing History of a Specific Volume for a specific Billing Cycle
584584

@@ -628,11 +628,11 @@ with hyperstack.ApiClient(configuration) as api_client:
628628

629629
try:
630630
# Retrieve Billing History of a Specific Volume for a specific Billing Cycle
631-
api_response = api_instance.retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0(volume_id, start_date=start_date, end_date=end_date)
632-
print("The response of BillingApi->retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0:\n")
631+
api_response = api_instance.retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(volume_id, start_date=start_date, end_date=end_date)
632+
print("The response of BillingApi->retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle:\n")
633633
pprint(api_response)
634634
except Exception as e:
635-
print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_0: %s\n" % e)
635+
print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle: %s\n" % e)
636636
```
637637

638638

docs/CreateInstancesPayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**callback_url** | **str** | An optional URL where actions performed on the virtual machine will be sent. For additional information on event callbacks, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks). | [optional]
1010
**count** | **int** | The number of virtual machines to be created. |
1111
**create_bootable_volume** | **bool** | Indicates whether to create a bootable volume for the virtual machine. When set to `true`, a bootable volume will be created; the default value is `false`. | [optional]
12+
**enable_port_randomization** | **bool** | Indicates whether to enable port randomization.This setting is only effective if 'assign_floating_ip' is true. Defaults to true. | [optional] [default to True]
1213
**environment_name** | **str** | The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) in which the virtual machine is to be created. |
1314
**flavor** | [**FlavorObjectFields**](FlavorObjectFields.md) | | [optional]
1415
**flavor_name** | **str** | The name of the GPU hardware configuration ([flavor](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors)) for the virtual machines being created. |

docs/InstanceFields.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**callback_url** | **str** | | [optional]
89
**contract_id** | **int** | | [optional]
910
**created_at** | **datetime** | | [optional]
1011
**environment** | [**InstanceEnvironmentFields**](InstanceEnvironmentFields.md) | | [optional]
@@ -19,6 +20,8 @@ Name | Type | Description | Notes
1920
**locked** | **bool** | | [optional]
2021
**name** | **str** | | [optional]
2122
**os** | **str** | | [optional]
23+
**port_randomization** | **bool** | | [optional]
24+
**port_randomization_status** | **str** | | [optional]
2225
**power_state** | **str** | | [optional]
2326
**security_rules** | [**List[SecurityRulesFieldsforInstance]**](SecurityRulesFieldsforInstance.md) | | [optional]
2427
**status** | **str** | | [optional]

hyperstack/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "0.1.23"
17+
__version__ = "v1.25.0-alpha"
1818

1919
# import apis into sdk package
2020
from .api.calculate_api import CalculateApi

hyperstack/__init__.py.bak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "0.1.23"
17+
__version__ = "v1.25.0-alpha"
1818

1919
# import apis into sdk package
2020
from hyperstack.api.calculate_api import CalculateApi

0 commit comments

Comments
 (0)