Skip to content

Commit 785cfb7

Browse files
chore: sdk update
1 parent 6e288b7 commit 785cfb7

567 files changed

Lines changed: 9690 additions & 607 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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,24 @@ Class | Method | HTTP request | Description
239239
*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
240240
*VPSVirtualMachineApi* | [**start_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#start_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/start | Start virtual machine
241241
*VPSVirtualMachineApi* | [**stop_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#stop_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/stop | Stop virtual machine
242+
*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
243+
*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
244+
*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
245+
*WordPressInstallationsApi* | [**delete_word_press_installation_v1**](docs/WordPressInstallationsApi.md#delete_word_press_installation_v1) | **DELETE** /api/hosting/v1/accounts/{username}/wordpress/{software} | Delete WordPress installation
246+
*WordPressInstallationsApi* | [**detect_word_press_installations_v1**](docs/WordPressInstallationsApi.md#detect_word_press_installations_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations/detect | Detect WordPress installations
247+
*WordPressInstallationsApi* | [**get_installation_jwt_token_v1**](docs/WordPressInstallationsApi.md#get_installation_jwt_token_v1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token | Get installation JWT token
242248
*WordPressInstallationsApi* | [**install_word_press_v1**](docs/WordPressInstallationsApi.md#install_word_press_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations | Install WordPress
249+
*WordPressInstallationsApi* | [**list_available_word_press_core_updates_v1**](docs/WordPressInstallationsApi.md#list_available_word_press_core_updates_v1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/updates | List available WordPress core updates
243250
*WordPressInstallationsApi* | [**list_word_press_installations_v1**](docs/WordPressInstallationsApi.md#list_word_press_installations_v1) | **GET** /api/hosting/v1/wordpress/installations | List WordPress installations
251+
*WordPressInstallationsApi* | [**show_word_press_core_version_v1**](docs/WordPressInstallationsApi.md#show_word_press_core_version_v1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/version | Show WordPress core version
252+
*WordPressInstallationsApi* | [**update_word_press_core_v1**](docs/WordPressInstallationsApi.md#update_word_press_core_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/update | Update WordPress core
253+
*WordPressLiteSpeedCacheApi* | [**purge_lite_speed_cache_v1**](docs/WordPressLiteSpeedCacheApi.md#purge_lite_speed_cache_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/purge | Purge LiteSpeed Cache
254+
*WordPressLiteSpeedCacheApi* | [**show_lite_speed_cache_status_v1**](docs/WordPressLiteSpeedCacheApi.md#show_lite_speed_cache_status_v1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/status | Show LiteSpeed Cache status
255+
*WordPressLoginApi* | [**create_login_links_v1**](docs/WordPressLoginApi.md#create_login_links_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/login/links | Create login links
256+
*WordPressMaintenanceApi* | [**show_maintenance_status_v1**](docs/WordPressMaintenanceApi.md#show_maintenance_status_v1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/status | Show maintenance status
257+
*WordPressMaintenanceApi* | [**toggle_maintenance_mode_v1**](docs/WordPressMaintenanceApi.md#toggle_maintenance_mode_v1) | **PATCH** /api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggle | Toggle maintenance mode
258+
*WordPressObjectCacheApi* | [**show_memcached_object_cache_status_v1**](docs/WordPressObjectCacheApi.md#show_memcached_object_cache_status_v1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/status | Show Memcached object cache status
259+
*WordPressObjectCacheApi* | [**toggle_memcached_object_cache_v1**](docs/WordPressObjectCacheApi.md#toggle_memcached_object_cache_v1) | **PATCH** /api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/toggle | Toggle Memcached object cache
244260
*WordPressPluginsApi* | [**activate_word_press_plugin_v1**](docs/WordPressPluginsApi.md#activate_word_press_plugin_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate | Activate WordPress plugin
245261
*WordPressPluginsApi* | [**check_if_woo_commerce_is_installed_v1**](docs/WordPressPluginsApi.md#check_if_woo_commerce_is_installed_v1) | **GET** /api/hosting/v1/wordpress/plugins/is-woocommerce-installed | Check if WooCommerce is installed
246262
*WordPressPluginsApi* | [**deactivate_word_press_plugin_v1**](docs/WordPressPluginsApi.md#deactivate_word_press_plugin_v1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate | Deactivate WordPress plugin
@@ -443,10 +459,25 @@ Class | Method | HTTP request | Description
443459
- [VPSV1VirtualMachineSetupRequestPublicKey](docs/VPSV1VirtualMachineSetupRequestPublicKey.md)
444460
- [VPSV1VirtualMachineVirtualMachineResource](docs/VPSV1VirtualMachineVirtualMachineResource.md)
445461
- [WordPressV1CommonVulnerabilityResource](docs/WordPressV1CommonVulnerabilityResource.md)
462+
- [WordPressV1HostingerPluginsAiOptionStatusResource](docs/WordPressV1HostingerPluginsAiOptionStatusResource.md)
463+
- [WordPressV1HostingerPluginsUpdateAiOptionStatusRequest](docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md)
464+
- [WordPressV1InstallationsCheckIsValidRequest](docs/WordPressV1InstallationsCheckIsValidRequest.md)
465+
- [WordPressV1InstallationsCheckIsValidResultResource](docs/WordPressV1InstallationsCheckIsValidResultResource.md)
466+
- [WordPressV1InstallationsDeleteInstallationRequest](docs/WordPressV1InstallationsDeleteInstallationRequest.md)
446467
- [WordPressV1InstallationsInstallWordPressRequest](docs/WordPressV1InstallationsInstallWordPressRequest.md)
447468
- [WordPressV1InstallationsInstallWordPressRequestCredentials](docs/WordPressV1InstallationsInstallWordPressRequestCredentials.md)
448469
- [WordPressV1InstallationsInstallWordPressRequestDatabase](docs/WordPressV1InstallationsInstallWordPressRequestDatabase.md)
470+
- [WordPressV1InstallationsJwtTokenResource](docs/WordPressV1InstallationsJwtTokenResource.md)
471+
- [WordPressV1InstallationsUpdateInstallationRequest](docs/WordPressV1InstallationsUpdateInstallationRequest.md)
472+
- [WordPressV1InstallationsUpdateResource](docs/WordPressV1InstallationsUpdateResource.md)
473+
- [WordPressV1InstallationsVersionResource](docs/WordPressV1InstallationsVersionResource.md)
449474
- [WordPressV1InstallationsWordPressInstallationResource](docs/WordPressV1InstallationsWordPressInstallationResource.md)
475+
- [WordPressV1LitespeedLitespeedCacheStatusResource](docs/WordPressV1LitespeedLitespeedCacheStatusResource.md)
476+
- [WordPressV1LoginLoginLinksResource](docs/WordPressV1LoginLoginLinksResource.md)
477+
- [WordPressV1MaintenanceMaintenanceStatusResource](docs/WordPressV1MaintenanceMaintenanceStatusResource.md)
478+
- [WordPressV1MaintenanceToggleMaintenanceRequest](docs/WordPressV1MaintenanceToggleMaintenanceRequest.md)
479+
- [WordPressV1MemcachedMemcachedStatusResource](docs/WordPressV1MemcachedMemcachedStatusResource.md)
480+
- [WordPressV1MemcachedToggleMemcachedRequest](docs/WordPressV1MemcachedToggleMemcachedRequest.md)
450481
- [WordPressV1PluginsActivatePluginRequest](docs/WordPressV1PluginsActivatePluginRequest.md)
451482
- [WordPressV1PluginsAvailablePluginResource](docs/WordPressV1PluginsAvailablePluginResource.md)
452483
- [WordPressV1PluginsDeactivatePluginRequest](docs/WordPressV1PluginsDeactivatePluginRequest.md)

docs/WordPressAIToolsApi.md

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
# hostinger_api.WordPressAIToolsApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**set_ai_option_status_v1**](WordPressAIToolsApi.md#set_ai_option_status_v1) | **PATCH** /api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status | Set AI option status
8+
[**show_ai_option_status_v1**](WordPressAIToolsApi.md#show_ai_option_status_v1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status | Show AI option status
9+
10+
11+
# **set_ai_option_status_v1**
12+
> CommonSuccessEmptyResource set_ai_option_status_v1(username, software, word_press_v1_hostinger_plugins_update_ai_option_status_request)
13+
14+
Set AI option status
15+
16+
Enable or disable an AI option for the Hostinger Tools plugin on the specified
17+
WordPress installation.
18+
19+
Provide the WordPress installation (software) identifier in the path. It can
20+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
21+
22+
### Example
23+
24+
* Bearer Authentication (apiToken):
25+
26+
```python
27+
import hostinger_api
28+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
29+
from hostinger_api.models.word_press_v1_hostinger_plugins_update_ai_option_status_request import WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
30+
from hostinger_api.rest import ApiException
31+
from pprint import pprint
32+
33+
34+
# Configure Bearer authorization: apiToken
35+
configuration = hostinger_api.Configuration(
36+
access_token = os.environ["BEARER_TOKEN"]
37+
)
38+
39+
# Enter a context with an instance of the API client
40+
with hostinger_api.ApiClient(configuration) as api_client:
41+
# Create an instance of the API class
42+
api_instance = hostinger_api.WordPressAIToolsApi(api_client)
43+
username = 'u123456789' # str |
44+
software = '1232456789' # str | WordPress installation (software) identifier
45+
word_press_v1_hostinger_plugins_update_ai_option_status_request = hostinger_api.WordPressV1HostingerPluginsUpdateAiOptionStatusRequest() # WordPressV1HostingerPluginsUpdateAiOptionStatusRequest |
46+
47+
try:
48+
# Set AI option status
49+
api_response = api_instance.set_ai_option_status_v1(username, software, word_press_v1_hostinger_plugins_update_ai_option_status_request)
50+
print("The response of WordPressAIToolsApi->set_ai_option_status_v1:\n")
51+
pprint(api_response)
52+
except Exception as e:
53+
print("Exception when calling WordPressAIToolsApi->set_ai_option_status_v1: %s\n" % e)
54+
```
55+
56+
57+
58+
### Parameters
59+
60+
61+
Name | Type | Description | Notes
62+
------------- | ------------- | ------------- | -------------
63+
**username** | **str**| |
64+
**software** | **str**| WordPress installation (software) identifier |
65+
**word_press_v1_hostinger_plugins_update_ai_option_status_request** | [**WordPressV1HostingerPluginsUpdateAiOptionStatusRequest**](WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md)| |
66+
67+
### Return type
68+
69+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
70+
71+
### Authorization
72+
73+
[apiToken](../README.md#apiToken)
74+
75+
### HTTP request headers
76+
77+
- **Content-Type**: application/json
78+
- **Accept**: application/json
79+
80+
### HTTP response details
81+
82+
| Status code | Description | Response headers |
83+
|-------------|-------------|------------------|
84+
**200** | Success empty response | - |
85+
**422** | Validation error response | - |
86+
**401** | Unauthenticated response | - |
87+
**500** | Error response | - |
88+
89+
[[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)
90+
91+
# **show_ai_option_status_v1**
92+
> WordPressV1HostingerPluginsAiOptionStatusResource show_ai_option_status_v1(username, software, option=option)
93+
94+
Show AI option status
95+
96+
Show the current AI option status for the Hostinger Tools plugin on the
97+
specified WordPress installation. Filter by `option` to return a single
98+
option, or omit it to return all options.
99+
100+
Provide the WordPress installation (software) identifier in the path. It can
101+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
102+
103+
### Example
104+
105+
* Bearer Authentication (apiToken):
106+
107+
```python
108+
import hostinger_api
109+
from hostinger_api.models.word_press_v1_hostinger_plugins_ai_option_status_resource import WordPressV1HostingerPluginsAiOptionStatusResource
110+
from hostinger_api.rest import ApiException
111+
from pprint import pprint
112+
113+
114+
# Configure Bearer authorization: apiToken
115+
configuration = hostinger_api.Configuration(
116+
access_token = os.environ["BEARER_TOKEN"]
117+
)
118+
119+
# Enter a context with an instance of the API client
120+
with hostinger_api.ApiClient(configuration) as api_client:
121+
# Create an instance of the API class
122+
api_instance = hostinger_api.WordPressAIToolsApi(api_client)
123+
username = 'u123456789' # str |
124+
software = '1232456789' # str | WordPress installation (software) identifier
125+
option = 'llmstxt' # str | Filter the status by a single AI option. (optional)
126+
127+
try:
128+
# Show AI option status
129+
api_response = api_instance.show_ai_option_status_v1(username, software, option=option)
130+
print("The response of WordPressAIToolsApi->show_ai_option_status_v1:\n")
131+
pprint(api_response)
132+
except Exception as e:
133+
print("Exception when calling WordPressAIToolsApi->show_ai_option_status_v1: %s\n" % e)
134+
```
135+
136+
137+
138+
### Parameters
139+
140+
141+
Name | Type | Description | Notes
142+
------------- | ------------- | ------------- | -------------
143+
**username** | **str**| |
144+
**software** | **str**| WordPress installation (software) identifier |
145+
**option** | **str**| Filter the status by a single AI option. | [optional]
146+
147+
### Return type
148+
149+
[**WordPressV1HostingerPluginsAiOptionStatusResource**](WordPressV1HostingerPluginsAiOptionStatusResource.md)
150+
151+
### Authorization
152+
153+
[apiToken](../README.md#apiToken)
154+
155+
### HTTP request headers
156+
157+
- **Content-Type**: Not defined
158+
- **Accept**: application/json
159+
160+
### HTTP response details
161+
162+
| Status code | Description | Response headers |
163+
|-------------|-------------|------------------|
164+
**200** | Success response | - |
165+
**401** | Unauthenticated response | - |
166+
**500** | Error response | - |
167+
168+
[[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)
169+

0 commit comments

Comments
 (0)