Skip to content

Commit

Permalink
nightly API update
Browse files Browse the repository at this point in the history
  • Loading branch information
p-fruck committed Feb 4, 2025
1 parent 5201865 commit 0b59e8c
Show file tree
Hide file tree
Showing 69 changed files with 948 additions and 180 deletions.
12 changes: 12 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ docs/AssignmentAuditResponse.md
docs/AssignmentResponse.md
docs/AutoScalingTypeRequest.md
docs/AutoScalingTypeResponse.md
docs/CancelInstanceRequest.md
docs/CancelInstanceResponse.md
docs/CancelInstanceResponseData.md
docs/CancelObjectStorageRequest.md
docs/CancelObjectStorageResponse.md
docs/CancelObjectStorageResponseData.md
docs/ClientResponse.md
Expand Down Expand Up @@ -107,8 +109,10 @@ docs/InstancesAuditsApi.md
docs/InstancesResetPasswordActionsRequest.md
docs/InternalApi.md
docs/IpConfig.md
docs/IpConfig1.md
docs/IpV4.md
docs/IpV41.md
docs/IpV42.md
docs/IpV6.md
docs/Links.md
docs/ListApiPermissionResponse.md
Expand Down Expand Up @@ -265,8 +269,10 @@ pfruck_contabo/models/assignment_audit_response.py
pfruck_contabo/models/assignment_response.py
pfruck_contabo/models/auto_scaling_type_request.py
pfruck_contabo/models/auto_scaling_type_response.py
pfruck_contabo/models/cancel_instance_request.py
pfruck_contabo/models/cancel_instance_response.py
pfruck_contabo/models/cancel_instance_response_data.py
pfruck_contabo/models/cancel_object_storage_request.py
pfruck_contabo/models/cancel_object_storage_response.py
pfruck_contabo/models/cancel_object_storage_response_data.py
pfruck_contabo/models/client_response.py
Expand Down Expand Up @@ -347,8 +353,10 @@ pfruck_contabo/models/instances_actions_rescue_request.py
pfruck_contabo/models/instances_audit_response.py
pfruck_contabo/models/instances_reset_password_actions_request.py
pfruck_contabo/models/ip_config.py
pfruck_contabo/models/ip_config1.py
pfruck_contabo/models/ip_v4.py
pfruck_contabo/models/ip_v41.py
pfruck_contabo/models/ip_v42.py
pfruck_contabo/models/ip_v6.py
pfruck_contabo/models/links.py
pfruck_contabo/models/list_api_permission_response.py
Expand Down Expand Up @@ -463,8 +471,10 @@ test/test_assignment_audit_response.py
test/test_assignment_response.py
test/test_auto_scaling_type_request.py
test/test_auto_scaling_type_response.py
test/test_cancel_instance_request.py
test/test_cancel_instance_response.py
test/test_cancel_instance_response_data.py
test/test_cancel_object_storage_request.py
test/test_cancel_object_storage_response.py
test/test_cancel_object_storage_response_data.py
test/test_client_response.py
Expand Down Expand Up @@ -552,8 +562,10 @@ test/test_instances_audits_api.py
test/test_instances_reset_password_actions_request.py
test/test_internal_api.py
test/test_ip_config.py
test/test_ip_config1.py
test/test_ip_v4.py
test/test_ip_v41.py
test/test_ip_v42.py
test/test_ip_v6.py
test/test_links.py
test/test_list_api_permission_response.py
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ Class | Method | HTTP request | Description
- [AssignmentResponse](docs/AssignmentResponse.md)
- [AutoScalingTypeRequest](docs/AutoScalingTypeRequest.md)
- [AutoScalingTypeResponse](docs/AutoScalingTypeResponse.md)
- [CancelInstanceRequest](docs/CancelInstanceRequest.md)
- [CancelInstanceResponse](docs/CancelInstanceResponse.md)
- [CancelInstanceResponseData](docs/CancelInstanceResponseData.md)
- [CancelObjectStorageRequest](docs/CancelObjectStorageRequest.md)
- [CancelObjectStorageResponse](docs/CancelObjectStorageResponse.md)
- [CancelObjectStorageResponseData](docs/CancelObjectStorageResponseData.md)
- [ClientResponse](docs/ClientResponse.md)
Expand Down Expand Up @@ -286,8 +288,10 @@ Class | Method | HTTP request | Description
- [InstancesAuditResponse](docs/InstancesAuditResponse.md)
- [InstancesResetPasswordActionsRequest](docs/InstancesResetPasswordActionsRequest.md)
- [IpConfig](docs/IpConfig.md)
- [IpConfig1](docs/IpConfig1.md)
- [IpV4](docs/IpV4.md)
- [IpV41](docs/IpV41.md)
- [IpV42](docs/IpV42.md)
- [IpV6](docs/IpV6.md)
- [Links](docs/Links.md)
- [ListApiPermissionResponse](docs/ListApiPermissionResponse.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/AdditionalIp.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**v4** | [**IpV4**](IpV4.md) | |
**v4** | [**IpV42**](IpV42.md) | |

## Example

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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cancel_date** | **datetime** | Date of cancellation | [optional]

## Example

```python
from pfruck_contabo.models.cancel_instance_request import CancelInstanceRequest

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

# convert the object into a dict
cancel_instance_request_dict = cancel_instance_request_instance.to_dict()
# create an instance of CancelInstanceRequest from a dict
cancel_instance_request_from_dict = CancelInstanceRequest.from_dict(cancel_instance_request_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/CancelObjectStorageRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# CancelObjectStorageRequest


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cancel_date** | **datetime** | Date of cancellation | [optional]

## Example

```python
from pfruck_contabo.models.cancel_object_storage_request import CancelObjectStorageRequest

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

# convert the object into a dict
cancel_object_storage_request_dict = cancel_object_storage_request_instance.to_dict()
# create an instance of CancelObjectStorageRequest from a dict
cancel_object_storage_request_from_dict = CancelObjectStorageRequest.from_dict(cancel_object_storage_request_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)


6 changes: 4 additions & 2 deletions docs/ImagesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ Name | Type | Description | Notes
[[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)

# **retrieve_image_list**
> ListImageResponse retrieve_image_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, standard_image=standard_image)
> ListImageResponse retrieve_image_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, standard_image=standard_image, search=search)
List available standard and custom images

Expand Down Expand Up @@ -381,10 +381,11 @@ with pfruck_contabo.ApiClient(configuration) as api_client:
order_by = ['name:asc'] # List[str] | Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`. (optional)
name = 'Ubuntu' # str | The name of the image (optional)
standard_image = true # bool | Flag indicating that image is either a standard (true) or a custom image (false) (optional)
search = 'windows or Debian' # str | full text search on image name or image os type (optional)

try:
# List available standard and custom images
api_response = api_instance.retrieve_image_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, standard_image=standard_image)
api_response = api_instance.retrieve_image_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, standard_image=standard_image, search=search)
print("The response of ImagesApi->retrieve_image_list:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -405,6 +406,7 @@ Name | Type | Description | Notes
**order_by** | [**List[str]**](str.md)| Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`. | [optional]
**name** | **str**| The name of the image | [optional]
**standard_image** | **bool**| Flag indicating that image is either a standard (true) or a custom image (false) | [optional]
**search** | **str**| full text search on image name or image os type | [optional]

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/InstanceResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Name | Type | Description | Notes
**region_name** | **str** | The name of the region where the instance is located. |
**product_id** | **str** | Product ID |
**image_id** | **str** | Image's id |
**ip_config** | [**IpConfig**](IpConfig.md) | |
**ip_config** | [**IpConfig1**](IpConfig1.md) | |
**mac_address** | **str** | MAC Address |
**ram_mb** | **float** | Image RAM size in MB |
**cpu_cores** | **int** | CPU core count |
Expand Down
9 changes: 5 additions & 4 deletions docs/InstancesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Method | HTTP request | Description


# **cancel_instance**
> CancelInstanceResponse cancel_instance(x_request_id, instance_id, body, x_trace_id=x_trace_id)
> CancelInstanceResponse cancel_instance(x_request_id, instance_id, cancel_instance_request, x_trace_id=x_trace_id)
Cancel specific instance by id

Expand All @@ -26,6 +26,7 @@ Your are free to cancel a previously created instance at any time.

```python
import pfruck_contabo
from pfruck_contabo.models.cancel_instance_request import CancelInstanceRequest
from pfruck_contabo.models.cancel_instance_response import CancelInstanceResponse
from pfruck_contabo.rest import ApiException
from pprint import pprint
Expand All @@ -52,12 +53,12 @@ with pfruck_contabo.ApiClient(configuration) as api_client:
api_instance = pfruck_contabo.InstancesApi(api_client)
x_request_id = '04e0f898-37b4-48bc-a794-1a57abe6aa31' # str | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
instance_id = 12345 # int | The identifier of the instance
body = None # object |
cancel_instance_request = pfruck_contabo.CancelInstanceRequest() # CancelInstanceRequest |
x_trace_id = 'x_trace_id_example' # str | Identifier to trace group of requests. (optional)

try:
# Cancel specific instance by id
api_response = api_instance.cancel_instance(x_request_id, instance_id, body, x_trace_id=x_trace_id)
api_response = api_instance.cancel_instance(x_request_id, instance_id, cancel_instance_request, x_trace_id=x_trace_id)
print("The response of InstancesApi->cancel_instance:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -73,7 +74,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**x_request_id** | **str**| [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually. |
**instance_id** | **int**| The identifier of the instance |
**body** | **object**| |
**cancel_instance_request** | [**CancelInstanceRequest**](CancelInstanceRequest.md)| |
**x_trace_id** | **str**| Identifier to trace group of requests. | [optional]

### Return type
Expand Down
2 changes: 1 addition & 1 deletion docs/IpConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**v4** | [**IpV4**](IpV4.md) | |
**v4** | [**IpV41**](IpV41.md) | |
**v6** | [**IpV6**](IpV6.md) | |

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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**v4** | [**IpV42**](IpV42.md) | |
**v6** | [**IpV6**](IpV6.md) | |

## Example

```python
from pfruck_contabo.models.ip_config1 import IpConfig1

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

# convert the object into a dict
ip_config1_dict = ip_config1_instance.to_dict()
# create an instance of IpConfig1 from a dict
ip_config1_from_dict = IpConfig1.from_dict(ip_config1_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)


6 changes: 4 additions & 2 deletions docs/IpV4.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ip** | **str** | IP Address |
**netmask_cidr** | **int** | Netmask CIDR |
**ip** | **str** | IP address |
**gateway** | **str** | Gateway |
**netmask_cidr** | **int** | Netmask CIDR |
**broadcast** | **str** | Broadcast address |
**net** | **str** | Net address |

## Example

Expand Down
6 changes: 2 additions & 4 deletions docs/IpV41.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ip** | **str** | IP address |
**gateway** | **str** | Gateway |
**ip** | **str** | IP Address |
**netmask_cidr** | **int** | Netmask CIDR |
**broadcast** | **str** | Broadcast address |
**net** | **str** | Net address |
**gateway** | **str** | Gateway |

## Example

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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ip** | **str** | IP Address |
**netmask_cidr** | **int** | Netmask CIDR |
**gateway** | **str** | Gateway |

## Example

```python
from pfruck_contabo.models.ip_v42 import IpV42

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

# convert the object into a dict
ip_v42_dict = ip_v42_instance.to_dict()
# create an instance of IpV42 from a dict
ip_v42_from_dict = IpV42.from_dict(ip_v42_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)


2 changes: 1 addition & 1 deletion docs/ListInstancesResponseData.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Name | Type | Description | Notes
**region_name** | **str** | The name of the region where the instance is located. |
**product_id** | **str** | Product ID |
**image_id** | **str** | Image's id |
**ip_config** | [**IpConfig**](IpConfig.md) | |
**ip_config** | [**IpConfig1**](IpConfig1.md) | |
**mac_address** | **str** | MAC Address |
**ram_mb** | **float** | Image RAM size in MB |
**cpu_cores** | **int** | CPU core count |
Expand Down
2 changes: 1 addition & 1 deletion docs/ListVipResponseData.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Name | Type | Description | Notes
**resource_display_name** | **str** | Resource display name. |
**ip_version** | **str** | Version of Ip. |
**type** | **str** | The VIP type. | [optional]
**v4** | [**IpV41**](IpV41.md) | | [optional]
**v4** | [**IpV4**](IpV4.md) | | [optional]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/MinimumRequirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**cpu_cores** | **float** | CPU Cores Requirement | [optional]
**ram_mb** | **float** | Memory Requirement in MB | [optional]
**disk_mb** | **float** | Storage Requirement in MB | [optional]
**valid_product_ids** | **List[str]** | Valid Product IDs for this application | [optional]

## Example

Expand Down
Loading

0 comments on commit 0b59e8c

Please sign in to comment.