Skip to content

Commit 013f1b4

Browse files
committed
SDK Release 0.1.23 with Infrahub 1.23.0
1 parent 8deda12 commit 013f1b4

36 files changed

Lines changed: 2521 additions & 36 deletions

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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.2.0
11+
- Package version: 0.1.23
1212
- Generator version: 7.9.0
1313
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1414

@@ -111,6 +111,7 @@ Class | Method | HTTP request | Description
111111
*CustomerContractApi* | [**retrieve_contract_details**](docs/CustomerContractApi.md#retrieve_contract_details) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details
112112
*CustomerContractApi* | [**retrieve_gpu_allocation_graph_for_contract**](docs/CustomerContractApi.md#retrieve_gpu_allocation_graph_for_contract) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract
113113
*PricebookApi* | [**retrive_pricebook**](docs/PricebookApi.md#retrive_pricebook) | **GET** /pricebook |
114+
*SnapshotsApi* | [**create_an_image_from_a_snapshot**](docs/SnapshotsApi.md#create_an_image_from_a_snapshot) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot
114115
*SnapshotsApi* | [**delete_snapshot**](docs/SnapshotsApi.md#delete_snapshot) | **DELETE** /core/snapshots/{id} | Delete snapshot
115116
*SnapshotsApi* | [**fetch_snapshot_name_availability**](docs/SnapshotsApi.md#fetch_snapshot_name_availability) | **GET** /core/snapshots/name-availability/{name} | Fetch snapshot name availability
116117
*SnapshotsApi* | [**restore_a_snapshot**](docs/SnapshotsApi.md#restore_a_snapshot) | **POST** /core/snapshots/{id}/restore | Restore a snapshot
@@ -182,7 +183,10 @@ Class | Method | HTTP request | Description
182183
*FloatingIpApi* | [**attach_public_ip_to_virtual_machine**](docs/FloatingIpApi.md#attach_public_ip_to_virtual_machine) | **POST** /core/virtual-machines/{id}/attach-floatingip | Attach public IP to virtual machine
183184
*FloatingIpApi* | [**detach_public_ip_from_virtual_machine**](docs/FloatingIpApi.md#detach_public_ip_from_virtual_machine) | **POST** /core/virtual-machines/{id}/detach-floatingip | Detach public IP from virtual machine
184185
*GpuApi* | [**list_gpus**](docs/GpuApi.md#list_gpus) | **GET** /core/gpus | List GPUs
185-
*ImageApi* | [**list_images**](docs/ImageApi.md#list_images) | **GET** /core/images | List images
186+
*ImageApi* | [**delete_an_image**](docs/ImageApi.md#delete_an_image) | **DELETE** /core/images/{id} | Delete an image
187+
*ImageApi* | [**fetch_name_availability_for_images**](docs/ImageApi.md#fetch_name_availability_for_images) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images
188+
*ImageApi* | [**get_private_image_details**](docs/ImageApi.md#get_private_image_details) | **GET** /core/images/{id} | Get Private Image Details
189+
*ImageApi* | [**list_images**](docs/ImageApi.md#list_images) | **GET** /core/images | List Images
186190
*InviteApi* | [**delete_invite**](docs/InviteApi.md#delete_invite) | **DELETE** /auth/invites/{id} | Delete Invite
187191
*InviteApi* | [**invite_user_to_organization**](docs/InviteApi.md#invite_user_to_organization) | **POST** /auth/invites | Invite User to Organization
188192
*InviteApi* | [**list_invites**](docs/InviteApi.md#list_invites) | **GET** /auth/invites | List Invites
@@ -311,6 +315,8 @@ Class | Method | HTTP request | Description
311315
- [CreateFirewallPayload](docs/CreateFirewallPayload.md)
312316
- [CreateFirewallRulePayload](docs/CreateFirewallRulePayload.md)
313317
- [CreateGPU](docs/CreateGPU.md)
318+
- [CreateImage](docs/CreateImage.md)
319+
- [CreateImagePayload](docs/CreateImagePayload.md)
314320
- [CreateInstancesPayload](docs/CreateInstancesPayload.md)
315321
- [CreateInstancesResponse](docs/CreateInstancesResponse.md)
316322
- [CreateProfilePayload](docs/CreateProfilePayload.md)
@@ -407,6 +413,7 @@ Class | Method | HTTP request | Description
407413
- [GraphDatetimeValueModel](docs/GraphDatetimeValueModel.md)
408414
- [HistoricalInstance](docs/HistoricalInstance.md)
409415
- [HistoricalInstancesFields](docs/HistoricalInstancesFields.md)
416+
- [Image](docs/Image.md)
410417
- [ImageFields](docs/ImageFields.md)
411418
- [ImageGetResponse](docs/ImageGetResponse.md)
412419
- [ImageLogos](docs/ImageLogos.md)
@@ -476,6 +483,7 @@ Class | Method | HTTP request | Description
476483
- [Organizationthresholdsresponse](docs/Organizationthresholdsresponse.md)
477484
- [Organizationthresholdupdateresponse](docs/Organizationthresholdupdateresponse.md)
478485
- [OverviewInfo](docs/OverviewInfo.md)
486+
- [PaginationData](docs/PaginationData.md)
479487
- [PaymentDetailsFields](docs/PaymentDetailsFields.md)
480488
- [PaymentDetailsResponse](docs/PaymentDetailsResponse.md)
481489
- [PaymentInitiateFields](docs/PaymentInitiateFields.md)

docs/BillingApi.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ void (empty response body)
764764
[[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)
765765

766766
# **retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle**
767-
> ResourceLevelVolumeBillingHistoryResponseModel retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search)
767+
> ResourceLevelVolumeBillingHistoryResponseModel retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, page=page, per_page=per_page)
768768
769769
Retrieve Billing History of Snapshot for a specific Billing Cycle
770770

@@ -811,10 +811,12 @@ with hyperstack.ApiClient(configuration) as api_client:
811811
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
812812
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
813813
search = 'search_example' # str | Search by Volume \"Name\" or \"ID\" (optional)
814+
page = 'page_example' # str | Page number (optional)
815+
per_page = 'per_page_example' # str | Number of items to return per page (optional)
814816

815817
try:
816818
# Retrieve Billing History of Snapshot for a specific Billing Cycle
817-
api_response = api_instance.retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search)
819+
api_response = api_instance.retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, page=page, per_page=per_page)
818820
print("The response of BillingApi->retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle:\n")
819821
pprint(api_response)
820822
except Exception as e:
@@ -831,6 +833,8 @@ Name | Type | Description | Notes
831833
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
832834
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
833835
**search** | **str**| Search by Volume \"Name\" or \"ID\" | [optional]
836+
**page** | **str**| Page number | [optional]
837+
**per_page** | **str**| Number of items to return per page | [optional]
834838

835839
### Return type
836840

@@ -859,7 +863,7 @@ Name | Type | Description | Notes
859863
[[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)
860864

861865
# **retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle**
862-
> ResourceLevelVmBillingHistoryResponseModel retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search)
866+
> ResourceLevelVmBillingHistoryResponseModel retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
863867
864868
Retrieve Billing History of Virtual Machine for a specific Billing Cycle
865869

@@ -906,10 +910,12 @@ with hyperstack.ApiClient(configuration) as api_client:
906910
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
907911
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
908912
search = 'search_example' # str | Search by Virtual Machine \"Name\" or \"ID\" (optional)
913+
per_page = 'per_page_example' # str | Number of items to return per page (optional)
914+
page = 'page_example' # str | Page number (optional)
909915

910916
try:
911917
# Retrieve Billing History of Virtual Machine for a specific Billing Cycle
912-
api_response = api_instance.retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search)
918+
api_response = api_instance.retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
913919
print("The response of BillingApi->retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle:\n")
914920
pprint(api_response)
915921
except Exception as e:
@@ -926,6 +932,8 @@ Name | Type | Description | Notes
926932
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
927933
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
928934
**search** | **str**| Search by Virtual Machine \"Name\" or \"ID\" | [optional]
935+
**per_page** | **str**| Number of items to return per page | [optional]
936+
**page** | **str**| Page number | [optional]
929937

930938
### Return type
931939

@@ -954,7 +962,7 @@ Name | Type | Description | Notes
954962
[[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)
955963

956964
# **retrieve_billing_history_of_volume_for_a_specific_billing_cycle**
957-
> ResourceLevelVolumeBillingHistoryResponseModel retrieve_billing_history_of_volume_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search)
965+
> ResourceLevelVolumeBillingHistoryResponseModel retrieve_billing_history_of_volume_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
958966
959967
Retrieve Billing History of Volume for a specific Billing Cycle
960968

@@ -1001,10 +1009,12 @@ with hyperstack.ApiClient(configuration) as api_client:
10011009
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
10021010
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
10031011
search = 'search_example' # str | Search by Volume \"Name\" or \"ID\" (optional)
1012+
per_page = 'per_page_example' # str | Number of items to return per page (optional)
1013+
page = 'page_example' # str | Page number (optional)
10041014

10051015
try:
10061016
# Retrieve Billing History of Volume for a specific Billing Cycle
1007-
api_response = api_instance.retrieve_billing_history_of_volume_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search)
1017+
api_response = api_instance.retrieve_billing_history_of_volume_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
10081018
print("The response of BillingApi->retrieve_billing_history_of_volume_for_a_specific_billing_cycle:\n")
10091019
pprint(api_response)
10101020
except Exception as e:
@@ -1021,6 +1031,8 @@ Name | Type | Description | Notes
10211031
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
10221032
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
10231033
**search** | **str**| Search by Volume \"Name\" or \"ID\" | [optional]
1034+
**per_page** | **str**| Number of items to return per page | [optional]
1035+
**page** | **str**| Page number | [optional]
10241036

10251037
### Return type
10261038

docs/CreateImage.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# CreateImage
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | | [optional]
9+
**message** | **str** | | [optional]
10+
**status** | **bool** | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from hyperstack.models.create_image import CreateImage
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of CreateImage from a JSON string
20+
create_image_instance = CreateImage.from_json(json)
21+
# print the JSON string representation of the object
22+
print(CreateImage.to_json())
23+
24+
# convert the object into a dict
25+
create_image_dict = create_image_instance.to_dict()
26+
# create an instance of CreateImage from a dict
27+
create_image_from_dict = CreateImage.from_dict(create_image_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/CreateImagePayload.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# CreateImagePayload
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**labels** | **List[str]** | List of labels to attach to the image | [optional]
9+
**name** | **str** | Name for the new custom image |
10+
11+
## Example
12+
13+
```python
14+
from hyperstack.models.create_image_payload import CreateImagePayload
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of CreateImagePayload from a JSON string
19+
create_image_payload_instance = CreateImagePayload.from_json(json)
20+
# print the JSON string representation of the object
21+
print(CreateImagePayload.to_json())
22+
23+
# convert the object into a dict
24+
create_image_payload_dict = create_image_payload_instance.to_dict()
25+
# create an instance of CreateImagePayload from a dict
26+
create_image_payload_from_dict = CreateImagePayload.from_dict(create_image_payload_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+

docs/CreateInstancesPayload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**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. |
1313
**flavor** | [**FlavorObjectFields**](FlavorObjectFields.md) | | [optional]
1414
**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. |
15-
**image_name** | **str** | The [operating system (OS) image](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/images) name designated for installation on the virtual machine. | [optional]
15+
**image_name** | **str** | The [operating system (OS) image](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/images) name designated for installation on the virtual machine.It also accepts custom, private images, created from [existing snapshots](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/custom-images). | [optional]
1616
**key_name** | **str** | The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair). |
1717
**labels** | **List[str]** | | [optional]
1818
**name** | **str** | The name of the virtual machine being created. |

docs/Image.md

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

0 commit comments

Comments
 (0)