Skip to content

Commit 94bdac7

Browse files
committed
nightly API update
1 parent 5201865 commit 94bdac7

73 files changed

Lines changed: 2148 additions & 1654 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.

.openapi-generator/FILES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ docs/AssignmentAuditResponse.md
1818
docs/AssignmentResponse.md
1919
docs/AutoScalingTypeRequest.md
2020
docs/AutoScalingTypeResponse.md
21+
docs/CancelInstanceRequest.md
2122
docs/CancelInstanceResponse.md
2223
docs/CancelInstanceResponseData.md
24+
docs/CancelObjectStorageRequest.md
2325
docs/CancelObjectStorageResponse.md
2426
docs/CancelObjectStorageResponseData.md
2527
docs/ClientResponse.md
@@ -213,6 +215,7 @@ docs/UserIsPasswordSetResponse.md
213215
docs/UserResponse.md
214216
docs/UsersApi.md
215217
docs/UsersAuditsApi.md
218+
docs/UsersObjectStorageCredentialsApi.md
216219
docs/VIPApi.md
217220
docs/VipAuditResponse.md
218221
docs/VipAuditsApi.md
@@ -243,6 +246,7 @@ pfruck_contabo/api/tags_api.py
243246
pfruck_contabo/api/tags_audits_api.py
244247
pfruck_contabo/api/users_api.py
245248
pfruck_contabo/api/users_audits_api.py
249+
pfruck_contabo/api/users_object_storage_credentials_api.py
246250
pfruck_contabo/api/vip_api.py
247251
pfruck_contabo/api/vip_audits_api.py
248252
pfruck_contabo/api_client.py
@@ -265,8 +269,10 @@ pfruck_contabo/models/assignment_audit_response.py
265269
pfruck_contabo/models/assignment_response.py
266270
pfruck_contabo/models/auto_scaling_type_request.py
267271
pfruck_contabo/models/auto_scaling_type_response.py
272+
pfruck_contabo/models/cancel_instance_request.py
268273
pfruck_contabo/models/cancel_instance_response.py
269274
pfruck_contabo/models/cancel_instance_response_data.py
275+
pfruck_contabo/models/cancel_object_storage_request.py
270276
pfruck_contabo/models/cancel_object_storage_response.py
271277
pfruck_contabo/models/cancel_object_storage_response_data.py
272278
pfruck_contabo/models/client_response.py
@@ -463,8 +469,10 @@ test/test_assignment_audit_response.py
463469
test/test_assignment_response.py
464470
test/test_auto_scaling_type_request.py
465471
test/test_auto_scaling_type_response.py
472+
test/test_cancel_instance_request.py
466473
test/test_cancel_instance_response.py
467474
test/test_cancel_instance_response_data.py
475+
test/test_cancel_object_storage_request.py
468476
test/test_cancel_object_storage_response.py
469477
test/test_cancel_object_storage_response_data.py
470478
test/test_client_response.py
@@ -658,6 +666,7 @@ test/test_user_is_password_set_response.py
658666
test/test_user_response.py
659667
test/test_users_api.py
660668
test/test_users_audits_api.py
669+
test/test_users_object_storage_credentials_api.py
661670
test/test_vip_api.py
662671
test/test_vip_audit_response.py
663672
test/test_vip_audits_api.py

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ Class | Method | HTTP request | Description
118118
*InstancesApi* | [**upgrade_instance**](docs/InstancesApi.md#upgrade_instance) | **POST** /v1/compute/instances/{instanceId}/upgrade | Upgrading instance capabilities
119119
*InstancesAuditsApi* | [**retrieve_instances_audits_list**](docs/InstancesAuditsApi.md#retrieve_instances_audits_list) | **GET** /v1/compute/instances/audits | List history about your instances (audit)
120120
*InternalApi* | [**create_ticket**](docs/InternalApi.md#create_ticket) | **POST** /v1/create-ticket | Create a new support ticket
121-
*InternalApi* | [**retrieve_user_is_password_set**](docs/InternalApi.md#retrieve_user_is_password_set) | **GET** /v1/users/is-password-set | Get user is password set status
122121
*ObjectStoragesApi* | [**cancel_object_storage**](docs/ObjectStoragesApi.md#cancel_object_storage) | **PATCH** /v1/object-storages/{objectStorageId}/cancel | Cancels the specified object storage at the next possible date
123122
*ObjectStoragesApi* | [**create_object_storage**](docs/ObjectStoragesApi.md#create_object_storage) | **POST** /v1/object-storages | Create a new object storage
124123
*ObjectStoragesApi* | [**retrieve_data_center_list**](docs/ObjectStoragesApi.md#retrieve_data_center_list) | **GET** /v1/data-centers | List data centers
@@ -170,16 +169,17 @@ Class | Method | HTTP request | Description
170169
*UsersApi* | [**create_user**](docs/UsersApi.md#create_user) | **POST** /v1/users | Create a new user
171170
*UsersApi* | [**delete_user**](docs/UsersApi.md#delete_user) | **DELETE** /v1/users/{userId} | Delete existing user by id
172171
*UsersApi* | [**generate_client_secret**](docs/UsersApi.md#generate_client_secret) | **PUT** /v1/users/client/secret | Generate new client secret
173-
*UsersApi* | [**get_object_storage_credentials**](docs/UsersApi.md#get_object_storage_credentials) | **GET** /v1/users/{userId}/object-storages/{objectStorageId}/credentials/{credentialId} | Get S3 compatible object storage credentials.
174-
*UsersApi* | [**list_object_storage_credentials**](docs/UsersApi.md#list_object_storage_credentials) | **GET** /v1/users/{userId}/object-storages/credentials | Get list of S3 compatible object storage credentials for user.
175-
*UsersApi* | [**regenerate_object_storage_credentials**](docs/UsersApi.md#regenerate_object_storage_credentials) | **PATCH** /v1/users/{userId}/object-storages/{objectStorageId}/credentials/{credentialId} | Regenerates secret key of specified user for the S3 compatible object storages.
176172
*UsersApi* | [**resend_email_verification**](docs/UsersApi.md#resend_email_verification) | **POST** /v1/users/{userId}/resend-email-verification | Resend email verification
177173
*UsersApi* | [**reset_password**](docs/UsersApi.md#reset_password) | **POST** /v1/users/{userId}/reset-password | Send reset password email
178174
*UsersApi* | [**retrieve_user**](docs/UsersApi.md#retrieve_user) | **GET** /v1/users/{userId} | Get specific user by id
179175
*UsersApi* | [**retrieve_user_client**](docs/UsersApi.md#retrieve_user_client) | **GET** /v1/users/client | Get client
176+
*UsersApi* | [**retrieve_user_is_password_set**](docs/UsersApi.md#retrieve_user_is_password_set) | **GET** /v1/users/is-password-set | Get user is password set status
180177
*UsersApi* | [**retrieve_user_list**](docs/UsersApi.md#retrieve_user_list) | **GET** /v1/users | List users
181178
*UsersApi* | [**update_user**](docs/UsersApi.md#update_user) | **PATCH** /v1/users/{userId} | Update specific user by id
182179
*UsersAuditsApi* | [**retrieve_user_audits_list**](docs/UsersAuditsApi.md#retrieve_user_audits_list) | **GET** /v1/users/audits | List history about your users (audit)
180+
*UsersObjectStorageCredentialsApi* | [**get_object_storage_credentials**](docs/UsersObjectStorageCredentialsApi.md#get_object_storage_credentials) | **GET** /v1/users/{userId}/object-storages/{objectStorageId}/credentials/{credentialId} | Get S3 compatible object storage credentials.
181+
*UsersObjectStorageCredentialsApi* | [**list_object_storage_credentials**](docs/UsersObjectStorageCredentialsApi.md#list_object_storage_credentials) | **GET** /v1/users/{userId}/object-storages/credentials | Get list of S3 compatible object storage credentials for user.
182+
*UsersObjectStorageCredentialsApi* | [**regenerate_object_storage_credentials**](docs/UsersObjectStorageCredentialsApi.md#regenerate_object_storage_credentials) | **PATCH** /v1/users/{userId}/object-storages/{objectStorageId}/credentials/{credentialId} | Regenerates secret key of specified user for the S3 compatible object storages.
183183
*VIPApi* | [**assign_ip**](docs/VIPApi.md#assign_ip) | **POST** /v1/vips/{ip}/{resourceType}/{resourceId} | Assign a VIP to an VPS/VDS/Bare Metal
184184
*VIPApi* | [**retrieve_vip**](docs/VIPApi.md#retrieve_vip) | **GET** /v1/vips/{ip} | Get specific VIP by ip
185185
*VIPApi* | [**retrieve_vip_list**](docs/VIPApi.md#retrieve_vip_list) | **GET** /v1/vips | List VIPs
@@ -204,8 +204,10 @@ Class | Method | HTTP request | Description
204204
- [AssignmentResponse](docs/AssignmentResponse.md)
205205
- [AutoScalingTypeRequest](docs/AutoScalingTypeRequest.md)
206206
- [AutoScalingTypeResponse](docs/AutoScalingTypeResponse.md)
207+
- [CancelInstanceRequest](docs/CancelInstanceRequest.md)
207208
- [CancelInstanceResponse](docs/CancelInstanceResponse.md)
208209
- [CancelInstanceResponseData](docs/CancelInstanceResponseData.md)
210+
- [CancelObjectStorageRequest](docs/CancelObjectStorageRequest.md)
209211
- [CancelObjectStorageResponse](docs/CancelObjectStorageResponse.md)
210212
- [CancelObjectStorageResponseData](docs/CancelObjectStorageResponseData.md)
211213
- [ClientResponse](docs/ClientResponse.md)

docs/CancelInstanceRequest.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# CancelInstanceRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**cancel_date** | **datetime** | Date of cancellation | [optional]
9+
10+
## Example
11+
12+
```python
13+
from pfruck_contabo.models.cancel_instance_request import CancelInstanceRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of CancelInstanceRequest from a JSON string
18+
cancel_instance_request_instance = CancelInstanceRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(CancelInstanceRequest.to_json())
21+
22+
# convert the object into a dict
23+
cancel_instance_request_dict = cancel_instance_request_instance.to_dict()
24+
# create an instance of CancelInstanceRequest from a dict
25+
cancel_instance_request_from_dict = CancelInstanceRequest.from_dict(cancel_instance_request_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+

docs/CancelObjectStorageRequest.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# CancelObjectStorageRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**cancel_date** | **datetime** | Date of cancellation | [optional]
9+
10+
## Example
11+
12+
```python
13+
from pfruck_contabo.models.cancel_object_storage_request import CancelObjectStorageRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of CancelObjectStorageRequest from a JSON string
18+
cancel_object_storage_request_instance = CancelObjectStorageRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(CancelObjectStorageRequest.to_json())
21+
22+
# convert the object into a dict
23+
cancel_object_storage_request_dict = cancel_object_storage_request_instance.to_dict()
24+
# create an instance of CancelObjectStorageRequest from a dict
25+
cancel_object_storage_request_from_dict = CancelObjectStorageRequest.from_dict(cancel_object_storage_request_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+

docs/CreateInstanceAddons.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**private_networking** | **object** | Set this attribute if you want to upgrade your instance with the Private Networking addon. Please provide an empty object for the time being as value. There will be more configuration possible in the future. | [optional]
9-
**additional_ips** | **object** | Set this attribute if you want to upgrade your instance with the Additional IPs addon. Please provide an empty object for the time being as value. There will be more configuration possible in the future. | [optional]
8+
**private_networking** | **Dict[str, object]** | Set this attribute if you want to upgrade your instance with the Private Networking addon. Please provide an empty object for the time being as value. There will be more configuration possible in the future. | [optional]
9+
**additional_ips** | **Dict[str, object]** | Set this attribute if you want to upgrade your instance with the Additional IPs addon. Please provide an empty object for the time being as value. There will be more configuration possible in the future. | [optional]
10+
**backup** | **Dict[str, object]** | Set this attribute if you want to upgrade your instance with the Automated backup addon. Please provide an empty object for the time being as value. There will be more configuration possible in the future. | [optional]
1011
**extra_storage** | [**ExtraStorageRequest**](ExtraStorageRequest.md) | Set this attribute if you want to upgrade your instance with the Extra Storage addon. | [optional]
11-
**custom_image** | **object** | Set this attribute if you want to upgrade your instance with the Custom Images addon. Please provide an empty object for the time being as value. There will be more configuration possible in the future. | [optional]
12+
**custom_image** | **Dict[str, object]** | Set this attribute if you want to upgrade your instance with the Custom Images addon. Please provide an empty object for the time being as value. There will be more configuration possible in the future. | [optional]
1213
**addons_ids** | [**List[AddOnRequest]**](AddOnRequest.md) | | [optional]
1314

1415
## Example

docs/CreateInstanceRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**image_id** | **str** | ImageId to be used to setup the compute instance. Default is Ubuntu 22.04 | [optional] [default to 'afecbb85-e2fc-46f0-9684-b46b1faf00bb']
9-
**product_id** | **str** | Default is V45 | [optional] [default to 'V45']
9+
**product_id** | **str** | Default is V92 | [optional] [default to 'V92']
1010
**region** | **str** | Instance Region where the compute instance should be located. Default is EU | [optional] [default to 'EU']
1111
**ssh_keys** | **List[int]** | Array of `secretId`s of public SSH keys for logging into as `defaultUser` with administrator/root privileges. Applies to Linux/BSD systems. Please refer to Secrets Management API. | [optional]
1212
**root_password** | **int** | `secretId` of the password for the `defaultUser` with administrator/root privileges. For Linux/BSD please use SSH, for Windows RDP. Please refer to Secrets Management API. | [optional]

docs/CreateInstanceResponseData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
**region** | **str** | Instance Region where the compute instance should be located. |
1515
**add_ons** | [**List[AddOnResponse]**](AddOnResponse.md) | |
1616
**os_type** | **str** | Type of operating system (OS) |
17-
**status** | [**InstanceStatus**](InstanceStatus.md) | |
17+
**status** | [**InstanceStatus**](InstanceStatus.md) | Instance's status |
1818
**ssh_keys** | **List[int]** | Array of `secretId`s of public SSH keys for logging into as `defaultUser` with administrator/root privileges. Applies to Linux/BSD systems. Please refer to Secrets Management API. |
1919

2020
## Example

docs/CreateUserRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
**email** | **str** | The email of the user to which activation and forgot password links are being sent to. There is a limit of 255 characters per email. |
1111
**enabled** | **bool** | If user is not enabled, he can't login and thus use services any longer. |
1212
**totp** | **bool** | Enable or disable two-factor authentication (2FA) via time based OTP. |
13-
**locale** | **str** | The locale of the user. This can be `de-DE`, `de`, `en-US`, `en` |
13+
**locale** | **str** | The locale of the user. This can be `de-DE`, `de`, `en-US`, `en`, `es-ES`, `es`. |
1414
**roles** | **List[int]** | The roles as list of `roleId`s of the user. | [optional]
1515

1616
## Example

docs/ImagesApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Name | Type | Description | Notes
338338
[[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)
339339

340340
# **retrieve_image_list**
341-
> 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)
341+
> 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)
342342
343343
List available standard and custom images
344344

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

385386
try:
386387
# List available standard and custom images
387-
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)
388+
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)
388389
print("The response of ImagesApi->retrieve_image_list:\n")
389390
pprint(api_response)
390391
except Exception as e:
@@ -405,6 +406,7 @@ Name | Type | Description | Notes
405406
**order_by** | [**List[str]**](str.md)| Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`. | [optional]
406407
**name** | **str**| The name of the image | [optional]
407408
**standard_image** | **bool**| Flag indicating that image is either a standard (true) or a custom image (false) | [optional]
409+
**search** | **str**| full text search on image name or image os type | [optional]
408410

409411
### Return type
410412

docs/ImagesAuditsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ with pfruck_contabo.ApiClient(configuration) as api_client:
5252
image_id = 'e443eab5-647a-4bc3-b4f9-16f5a281224d' # str | The identifier of the image. (optional)
5353
request_id = 'D5FD9FAF-58C0-4406-8F46-F449B8E4FEC3' # str | The requestId of the API call which led to the change. (optional)
5454
changed_by = '23cbb6d6-cb11-4330-bdff-7bb791df2e23' # str | UserId of the user which led to the change. (optional)
55-
start_date = '2021-06-02' # date | Start of search time range. (optional)
56-
end_date = '2021-06-02' # date | End of search time range. (optional)
55+
start_date = 'Wed Jun 02 00:00:00 UTC 2021' # date | Start of search time range. (optional)
56+
end_date = 'Wed Jun 02 00:00:00 UTC 2021' # date | End of search time range. (optional)
5757

5858
try:
5959
# List history about your custom images (audit)

0 commit comments

Comments
 (0)