Skip to content

Commit bd8bdf8

Browse files
chore: sdk update
1 parent 3319bf1 commit bd8bdf8

1,273 files changed

Lines changed: 2139 additions & 1267 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.

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ Class | Method | HTTP request | Description
451451
*VPSVirtualMachineApi* | [**setup_purchased_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#setup_purchased_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/setup | Setup purchased virtual machine
452452
*VPSVirtualMachineApi* | [**start_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#start_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/start | Start virtual machine
453453
*VPSVirtualMachineApi* | [**stop_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#stop_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/stop | Stop virtual machine
454+
*WordPressAIContentApi* | [**generate_images_v1**](docs/WordPressAIContentApi.md#generate_images_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate | Generate images
454455
*WordPressAIToolsApi* | [**set_ai_option_status_v1**](docs/WordPressAIToolsApi.md#set_ai_option_status_v1) | **PATCH** /api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status | Set AI option status
455456
*WordPressAIToolsApi* | [**show_ai_option_status_v1**](docs/WordPressAIToolsApi.md#show_ai_option_status_v1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status | Show AI option status
456457
*WordPressInstallationsApi* | [**check_if_word_press_installations_are_valid_v1**](docs/WordPressInstallationsApi.md#check_if_word_press_installations_are_valid_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations/check-is-valid | Check if WordPress installations are valid
@@ -987,6 +988,8 @@ Class | Method | HTTP request | Description
987988
- [VPSV1VirtualMachineSetupRequestPublicKey](docs/VPSV1VirtualMachineSetupRequestPublicKey.md)
988989
- [VPSV1VirtualMachineVirtualMachineResource](docs/VPSV1VirtualMachineVirtualMachineResource.md)
989990
- [WordPressV1CommonVulnerabilityResource](docs/WordPressV1CommonVulnerabilityResource.md)
991+
- [WordPressV1ContentGenerateImagesRequest](docs/WordPressV1ContentGenerateImagesRequest.md)
992+
- [WordPressV1ContentGeneratedImagesResource](docs/WordPressV1ContentGeneratedImagesResource.md)
990993
- [WordPressV1HostingerPluginsAiOptionStatusResource](docs/WordPressV1HostingerPluginsAiOptionStatusResource.md)
991994
- [WordPressV1HostingerPluginsUpdateAiOptionStatusRequest](docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md)
992995
- [WordPressV1InstallationsCheckIsValidRequest](docs/WordPressV1InstallationsCheckIsValidRequest.md)

‎docs/WordPressAIContentApi.md‎

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# hostinger_api.WordPressAIContentApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**generate_images_v1**](WordPressAIContentApi.md#generate_images_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate | Generate images
8+
9+
10+
# **generate_images_v1**
11+
> WordPressV1ContentGeneratedImagesResource generate_images_v1(username, software, word_press_v1_content_generate_images_request)
12+
13+
Generate images
14+
15+
Generate one or more images from a prompt and an image type for the specified
16+
WordPress installation. Images are returned inline as base64-encoded PNGs. They match
17+
the requested aspect ratio and are never smaller than the requested size; logos are
18+
transparent PNGs cropped to the mark.
19+
20+
Generation is synchronous and can take up to a minute. The endpoint is limited to
21+
10 requests per minute.
22+
23+
Provide the WordPress installation (software) identifier in the path. It can
24+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
25+
26+
### Example
27+
28+
* Bearer Authentication (apiToken):
29+
30+
```python
31+
import hostinger_api
32+
from hostinger_api.models.word_press_v1_content_generate_images_request import WordPressV1ContentGenerateImagesRequest
33+
from hostinger_api.models.word_press_v1_content_generated_images_resource import WordPressV1ContentGeneratedImagesResource
34+
from hostinger_api.rest import ApiException
35+
from pprint import pprint
36+
37+
38+
# Configure Bearer authorization: apiToken
39+
configuration = hostinger_api.Configuration(
40+
access_token = os.environ["BEARER_TOKEN"]
41+
)
42+
43+
# Enter a context with an instance of the API client
44+
with hostinger_api.ApiClient(configuration) as api_client:
45+
# Create an instance of the API class
46+
api_instance = hostinger_api.WordPressAIContentApi(api_client)
47+
username = 'u123456789' # str |
48+
software = '1232456789' # str | WordPress installation (software) identifier
49+
word_press_v1_content_generate_images_request = hostinger_api.WordPressV1ContentGenerateImagesRequest() # WordPressV1ContentGenerateImagesRequest |
50+
51+
try:
52+
# Generate images
53+
api_response = api_instance.generate_images_v1(username, software, word_press_v1_content_generate_images_request)
54+
print("The response of WordPressAIContentApi->generate_images_v1:\n")
55+
pprint(api_response)
56+
except Exception as e:
57+
print("Exception when calling WordPressAIContentApi->generate_images_v1: %s\n" % e)
58+
```
59+
60+
61+
62+
### Parameters
63+
64+
65+
Name | Type | Description | Notes
66+
------------- | ------------- | ------------- | -------------
67+
**username** | **str**| |
68+
**software** | **str**| WordPress installation (software) identifier |
69+
**word_press_v1_content_generate_images_request** | [**WordPressV1ContentGenerateImagesRequest**](WordPressV1ContentGenerateImagesRequest.md)| |
70+
71+
### Return type
72+
73+
[**WordPressV1ContentGeneratedImagesResource**](WordPressV1ContentGeneratedImagesResource.md)
74+
75+
### Authorization
76+
77+
[apiToken](../README.md#apiToken)
78+
79+
### HTTP request headers
80+
81+
- **Content-Type**: application/json
82+
- **Accept**: application/json
83+
84+
### HTTP response details
85+
86+
| Status code | Description | Response headers |
87+
|-------------|-------------|------------------|
88+
**200** | Success response | - |
89+
**422** | Validation error response | - |
90+
**401** | Unauthenticated response | - |
91+
**500** | Error response | - |
92+
93+
[[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)
94+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# WordPressV1ContentGenerateImagesRequest
2+
3+
Generate images from a prompt and an image type
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**prompt** | **str** | What the image should show. For the logo type, the wordmark and mark to render. |
10+
**image_type** | **str** | Kind of image to generate. It sets the default size and cropping. |
11+
**num_of_images** | **int** | How many images to generate | [optional] [default to 1]
12+
**width** | **int** | Output width in pixels. Defaults per image type and is ignored for the logo type. | [optional]
13+
**height** | **int** | Output height in pixels. Defaults per image type and is ignored for the logo type. | [optional]
14+
**style** | **str** | Style tokens appended to photographic prompts. Ignored for the logo type. | [optional]
15+
**color_guidance** | **str** | Colour direction for the logo type only. It is not rendered as text. | [optional]
16+
17+
## Example
18+
19+
```python
20+
from hostinger_api.models.word_press_v1_content_generate_images_request import WordPressV1ContentGenerateImagesRequest
21+
22+
# TODO update the JSON string below
23+
json = "{}"
24+
# create an instance of WordPressV1ContentGenerateImagesRequest from a JSON string
25+
word_press_v1_content_generate_images_request_instance = WordPressV1ContentGenerateImagesRequest.from_json(json)
26+
# print the JSON string representation of the object
27+
print(WordPressV1ContentGenerateImagesRequest.to_json())
28+
29+
# convert the object into a dict
30+
word_press_v1_content_generate_images_request_dict = word_press_v1_content_generate_images_request_instance.to_dict()
31+
# create an instance of WordPressV1ContentGenerateImagesRequest from a dict
32+
word_press_v1_content_generate_images_request_from_dict = WordPressV1ContentGenerateImagesRequest.from_dict(word_press_v1_content_generate_images_request_dict)
33+
```
34+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
35+
36+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# WordPressV1ContentGeneratedImagesResource
2+
3+
Images generated by the AI image generator.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**images** | **List[str]** | Generated images, each encoded as a base64 string |
10+
**content_type** | **str** | MIME type shared by all returned images |
11+
12+
## Example
13+
14+
```python
15+
from hostinger_api.models.word_press_v1_content_generated_images_resource import WordPressV1ContentGeneratedImagesResource
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of WordPressV1ContentGeneratedImagesResource from a JSON string
20+
word_press_v1_content_generated_images_resource_instance = WordPressV1ContentGeneratedImagesResource.from_json(json)
21+
# print the JSON string representation of the object
22+
print(WordPressV1ContentGeneratedImagesResource.to_json())
23+
24+
# convert the object into a dict
25+
word_press_v1_content_generated_images_resource_dict = word_press_v1_content_generated_images_resource_instance.to_dict()
26+
# create an instance of WordPressV1ContentGeneratedImagesResource from a dict
27+
word_press_v1_content_generated_images_resource_from_dict = WordPressV1ContentGeneratedImagesResource.from_dict(word_press_v1_content_generated_images_resource_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+

‎hostinger_api/__init__.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"""
66
Hostinger API Python SDK
77
8-
API Version: 1.64.1
8+
API Version: 1.65.0
99
1010
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
1111
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1212
""" # noqa: E501
1313

1414

15-
__version__ = "3.62.1"
15+
__version__ = "3.63.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -96,6 +96,7 @@
9696
from hostinger_api.api.vpsssh_keys_api import VPSSSHKeysApi
9797
from hostinger_api.api.vps_snapshots_api import VPSSnapshotsApi
9898
from hostinger_api.api.vps_virtual_machine_api import VPSVirtualMachineApi
99+
from hostinger_api.api.word_press_ai_content_api import WordPressAIContentApi
99100
from hostinger_api.api.word_press_ai_tools_api import WordPressAIToolsApi
100101
from hostinger_api.api.word_press_installations_api import WordPressInstallationsApi
101102
from hostinger_api.api.word_press_lite_speed_cache_api import WordPressLiteSpeedCacheApi
@@ -611,6 +612,8 @@
611612
from hostinger_api.models.vpsv1_virtual_machine_setup_request_public_key import VPSV1VirtualMachineSetupRequestPublicKey
612613
from hostinger_api.models.vpsv1_virtual_machine_virtual_machine_resource import VPSV1VirtualMachineVirtualMachineResource
613614
from hostinger_api.models.word_press_v1_common_vulnerability_resource import WordPressV1CommonVulnerabilityResource
615+
from hostinger_api.models.word_press_v1_content_generate_images_request import WordPressV1ContentGenerateImagesRequest
616+
from hostinger_api.models.word_press_v1_content_generated_images_resource import WordPressV1ContentGeneratedImagesResource
614617
from hostinger_api.models.word_press_v1_hostinger_plugins_ai_option_status_resource import WordPressV1HostingerPluginsAiOptionStatusResource
615618
from hostinger_api.models.word_press_v1_hostinger_plugins_update_ai_option_status_request import WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
616619
from hostinger_api.models.word_press_v1_installations_check_is_valid_request import WordPressV1InstallationsCheckIsValidRequest

‎hostinger_api/api/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
from hostinger_api.api.vpsssh_keys_api import VPSSSHKeysApi
8383
from hostinger_api.api.vps_snapshots_api import VPSSnapshotsApi
8484
from hostinger_api.api.vps_virtual_machine_api import VPSVirtualMachineApi
85+
from hostinger_api.api.word_press_ai_content_api import WordPressAIContentApi
8586
from hostinger_api.api.word_press_ai_tools_api import WordPressAIToolsApi
8687
from hostinger_api.api.word_press_installations_api import WordPressInstallationsApi
8788
from hostinger_api.api.word_press_lite_speed_cache_api import WordPressLiteSpeedCacheApi

‎hostinger_api/api/agency_hosting_cache_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 1.64.1
6+
API Version: 1.65.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_cron_jobs_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 1.64.1
6+
API Version: 1.65.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_databases_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 1.64.1
6+
API Version: 1.65.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_datacenters_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 1.64.1
6+
API Version: 1.65.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

0 commit comments

Comments
 (0)