Skip to content

Commit 56327b4

Browse files
chore: sdk update
1 parent eda3fd3 commit 56327b4

724 files changed

Lines changed: 2379 additions & 715 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ Class | Method | HTTP request | Description
104104
*AgencyHostingWebsitesApi* | [**delete_agency_plan_website_v1**](docs/AgencyHostingWebsitesApi.md#delete_agency_plan_website_v1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid} | Delete Agency Plan website
105105
*AgencyHostingWebsitesApi* | [**get_agency_plan_website_details_v1**](docs/AgencyHostingWebsitesApi.md#get_agency_plan_website_details_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid} | Get Agency Plan website details
106106
*AgencyHostingWebsitesApi* | [**list_running_agency_plan_website_processes_v1**](docs/AgencyHostingWebsitesApi.md#list_running_agency_plan_website_processes_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/processes | List running Agency Plan website processes
107+
*AgencyHostingWordPressApi* | [**change_agency_plan_website_word_press_core_version_v1**](docs/AgencyHostingWordPressApi.md#change_agency_plan_website_word_press_core_version_v1) | **PATCH** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version | Change Agency Plan website WordPress core version
108+
*AgencyHostingWordPressApi* | [**get_agency_plan_website_word_press_settings_v1**](docs/AgencyHostingWordPressApi.md#get_agency_plan_website_word_press_settings_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings | Get Agency Plan website WordPress settings
109+
*AgencyHostingWordPressApi* | [**list_available_word_press_versions_for_an_agency_plan_website_v1**](docs/AgencyHostingWordPressApi.md#list_available_word_press_versions_for_an_agency_plan_website_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions | List available WordPress versions for an Agency Plan website
107110
*BillingCatalogApi* | [**get_catalog_item_list_v1**](docs/BillingCatalogApi.md#get_catalog_item_list_v1) | **GET** /api/billing/v1/catalog | Get catalog item list
108111
*BillingOrdersApi* | [**create_purchase_order_v1**](docs/BillingOrdersApi.md#create_purchase_order_v1) | **POST** /api/billing/v1/orders | Create purchase order
109112
*BillingPaymentMethodsApi* | [**delete_payment_method_v1**](docs/BillingPaymentMethodsApi.md#delete_payment_method_v1) | **DELETE** /api/billing/v1/payment-methods/{paymentMethodId} | Delete payment method
@@ -362,6 +365,9 @@ Class | Method | HTTP request | Description
362365
- [AgencyHostingV1WebsitesWebsiteStagingRootResource](docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md)
363366
- [AgencyHostingV1WebsitesWebsiteUserResource](docs/AgencyHostingV1WebsitesWebsiteUserResource.md)
364367
- [AgencyHostingV1WebsitesWordPressInstallResource](docs/AgencyHostingV1WebsitesWordPressInstallResource.md)
368+
- [AgencyHostingV1WordPressChangeVersionRequest](docs/AgencyHostingV1WordPressChangeVersionRequest.md)
369+
- [AgencyHostingV1WordPressSettingsResource](docs/AgencyHostingV1WordPressSettingsResource.md)
370+
- [AgencyHostingV1WordPressVersionResource](docs/AgencyHostingV1WordPressVersionResource.md)
365371
- [BillingV1CatalogCatalogItemPriceResource](docs/BillingV1CatalogCatalogItemPriceResource.md)
366372
- [BillingV1CatalogCatalogItemResource](docs/BillingV1CatalogCatalogItemResource.md)
367373
- [BillingV1OrderOrderBillingAddressResource](docs/BillingV1OrderOrderBillingAddressResource.md)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# AgencyHostingV1WordPressChangeVersionRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**version** | **str** | Target WordPress core version to install. Must be one of the available versions. |
9+
10+
## Example
11+
12+
```python
13+
from hostinger_api.models.agency_hosting_v1_word_press_change_version_request import AgencyHostingV1WordPressChangeVersionRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of AgencyHostingV1WordPressChangeVersionRequest from a JSON string
18+
agency_hosting_v1_word_press_change_version_request_instance = AgencyHostingV1WordPressChangeVersionRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(AgencyHostingV1WordPressChangeVersionRequest.to_json())
21+
22+
# convert the object into a dict
23+
agency_hosting_v1_word_press_change_version_request_dict = agency_hosting_v1_word_press_change_version_request_instance.to_dict()
24+
# create an instance of AgencyHostingV1WordPressChangeVersionRequest from a dict
25+
agency_hosting_v1_word_press_change_version_request_from_dict = AgencyHostingV1WordPressChangeVersionRequest.from_dict(agency_hosting_v1_word_press_change_version_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+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# AgencyHostingV1WordPressSettingsResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**core_version** | **str** | Currently installed WordPress core version, or null when it cannot be determined. | [optional]
9+
**is_lite_speed_cache_enabled** | **bool** | Whether the LiteSpeed Cache plugin is active. | [optional]
10+
**is_object_cache_enabled** | **bool** | Whether LiteSpeed object cache is enabled. | [optional]
11+
**is_maintenance_mode_enabled** | **bool** | Whether WordPress maintenance mode is currently enabled. | [optional]
12+
13+
## Example
14+
15+
```python
16+
from hostinger_api.models.agency_hosting_v1_word_press_settings_resource import AgencyHostingV1WordPressSettingsResource
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of AgencyHostingV1WordPressSettingsResource from a JSON string
21+
agency_hosting_v1_word_press_settings_resource_instance = AgencyHostingV1WordPressSettingsResource.from_json(json)
22+
# print the JSON string representation of the object
23+
print(AgencyHostingV1WordPressSettingsResource.to_json())
24+
25+
# convert the object into a dict
26+
agency_hosting_v1_word_press_settings_resource_dict = agency_hosting_v1_word_press_settings_resource_instance.to_dict()
27+
# create an instance of AgencyHostingV1WordPressSettingsResource from a dict
28+
agency_hosting_v1_word_press_settings_resource_from_dict = AgencyHostingV1WordPressSettingsResource.from_dict(agency_hosting_v1_word_press_settings_resource_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# AgencyHostingV1WordPressVersionResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**version** | **str** | WordPress core version. | [optional]
9+
10+
## Example
11+
12+
```python
13+
from hostinger_api.models.agency_hosting_v1_word_press_version_resource import AgencyHostingV1WordPressVersionResource
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of AgencyHostingV1WordPressVersionResource from a JSON string
18+
agency_hosting_v1_word_press_version_resource_instance = AgencyHostingV1WordPressVersionResource.from_json(json)
19+
# print the JSON string representation of the object
20+
print(AgencyHostingV1WordPressVersionResource.to_json())
21+
22+
# convert the object into a dict
23+
agency_hosting_v1_word_press_version_resource_dict = agency_hosting_v1_word_press_version_resource_instance.to_dict()
24+
# create an instance of AgencyHostingV1WordPressVersionResource from a dict
25+
agency_hosting_v1_word_press_version_resource_from_dict = AgencyHostingV1WordPressVersionResource.from_dict(agency_hosting_v1_word_press_version_resource_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/AgencyHostingWordPressApi.md

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
# hostinger_api.AgencyHostingWordPressApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**change_agency_plan_website_word_press_core_version_v1**](AgencyHostingWordPressApi.md#change_agency_plan_website_word_press_core_version_v1) | **PATCH** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version | Change Agency Plan website WordPress core version
8+
[**get_agency_plan_website_word_press_settings_v1**](AgencyHostingWordPressApi.md#get_agency_plan_website_word_press_settings_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings | Get Agency Plan website WordPress settings
9+
[**list_available_word_press_versions_for_an_agency_plan_website_v1**](AgencyHostingWordPressApi.md#list_available_word_press_versions_for_an_agency_plan_website_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions | List available WordPress versions for an Agency Plan website
10+
11+
12+
# **change_agency_plan_website_word_press_core_version_v1**
13+
> CommonSuccessEmptyResource change_agency_plan_website_word_press_core_version_v1(website_uid, agency_hosting_v1_word_press_change_version_request)
14+
15+
Change Agency Plan website WordPress core version
16+
17+
Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
18+
19+
### Example
20+
21+
* Bearer Authentication (apiToken):
22+
23+
```python
24+
import hostinger_api
25+
from hostinger_api.models.agency_hosting_v1_word_press_change_version_request import AgencyHostingV1WordPressChangeVersionRequest
26+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
27+
from hostinger_api.rest import ApiException
28+
from pprint import pprint
29+
30+
31+
# Configure Bearer authorization: apiToken
32+
configuration = hostinger_api.Configuration(
33+
access_token = os.environ["BEARER_TOKEN"]
34+
)
35+
36+
# Enter a context with an instance of the API client
37+
with hostinger_api.ApiClient(configuration) as api_client:
38+
# Create an instance of the API class
39+
api_instance = hostinger_api.AgencyHostingWordPressApi(api_client)
40+
website_uid = 'zpwlGlp19' # str | Agency Plan website UID
41+
agency_hosting_v1_word_press_change_version_request = hostinger_api.AgencyHostingV1WordPressChangeVersionRequest() # AgencyHostingV1WordPressChangeVersionRequest |
42+
43+
try:
44+
# Change Agency Plan website WordPress core version
45+
api_response = api_instance.change_agency_plan_website_word_press_core_version_v1(website_uid, agency_hosting_v1_word_press_change_version_request)
46+
print("The response of AgencyHostingWordPressApi->change_agency_plan_website_word_press_core_version_v1:\n")
47+
pprint(api_response)
48+
except Exception as e:
49+
print("Exception when calling AgencyHostingWordPressApi->change_agency_plan_website_word_press_core_version_v1: %s\n" % e)
50+
```
51+
52+
53+
54+
### Parameters
55+
56+
57+
Name | Type | Description | Notes
58+
------------- | ------------- | ------------- | -------------
59+
**website_uid** | **str**| Agency Plan website UID |
60+
**agency_hosting_v1_word_press_change_version_request** | [**AgencyHostingV1WordPressChangeVersionRequest**](AgencyHostingV1WordPressChangeVersionRequest.md)| |
61+
62+
### Return type
63+
64+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
65+
66+
### Authorization
67+
68+
[apiToken](../README.md#apiToken)
69+
70+
### HTTP request headers
71+
72+
- **Content-Type**: application/json
73+
- **Accept**: application/json
74+
75+
### HTTP response details
76+
77+
| Status code | Description | Response headers |
78+
|-------------|-------------|------------------|
79+
**200** | Success empty response | - |
80+
**422** | Validation error response | - |
81+
**401** | Unauthenticated response | - |
82+
**500** | Error response | - |
83+
84+
[[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)
85+
86+
# **get_agency_plan_website_word_press_settings_v1**
87+
> AgencyHostingV1WordPressSettingsResource get_agency_plan_website_word_press_settings_v1(website_uid)
88+
89+
Get Agency Plan website WordPress settings
90+
91+
Returns the current WordPress settings for an Agency Plan website: installed core version,
92+
LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
93+
94+
### Example
95+
96+
* Bearer Authentication (apiToken):
97+
98+
```python
99+
import hostinger_api
100+
from hostinger_api.models.agency_hosting_v1_word_press_settings_resource import AgencyHostingV1WordPressSettingsResource
101+
from hostinger_api.rest import ApiException
102+
from pprint import pprint
103+
104+
105+
# Configure Bearer authorization: apiToken
106+
configuration = hostinger_api.Configuration(
107+
access_token = os.environ["BEARER_TOKEN"]
108+
)
109+
110+
# Enter a context with an instance of the API client
111+
with hostinger_api.ApiClient(configuration) as api_client:
112+
# Create an instance of the API class
113+
api_instance = hostinger_api.AgencyHostingWordPressApi(api_client)
114+
website_uid = 'zpwlGlp19' # str | Agency Plan website UID
115+
116+
try:
117+
# Get Agency Plan website WordPress settings
118+
api_response = api_instance.get_agency_plan_website_word_press_settings_v1(website_uid)
119+
print("The response of AgencyHostingWordPressApi->get_agency_plan_website_word_press_settings_v1:\n")
120+
pprint(api_response)
121+
except Exception as e:
122+
print("Exception when calling AgencyHostingWordPressApi->get_agency_plan_website_word_press_settings_v1: %s\n" % e)
123+
```
124+
125+
126+
127+
### Parameters
128+
129+
130+
Name | Type | Description | Notes
131+
------------- | ------------- | ------------- | -------------
132+
**website_uid** | **str**| Agency Plan website UID |
133+
134+
### Return type
135+
136+
[**AgencyHostingV1WordPressSettingsResource**](AgencyHostingV1WordPressSettingsResource.md)
137+
138+
### Authorization
139+
140+
[apiToken](../README.md#apiToken)
141+
142+
### HTTP request headers
143+
144+
- **Content-Type**: Not defined
145+
- **Accept**: application/json
146+
147+
### HTTP response details
148+
149+
| Status code | Description | Response headers |
150+
|-------------|-------------|------------------|
151+
**200** | Success response | - |
152+
**401** | Unauthenticated response | - |
153+
**500** | Error response | - |
154+
155+
[[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)
156+
157+
# **list_available_word_press_versions_for_an_agency_plan_website_v1**
158+
> List[AgencyHostingV1WordPressVersionResource] list_available_word_press_versions_for_an_agency_plan_website_v1(website_uid)
159+
160+
List available WordPress versions for an Agency Plan website
161+
162+
Lists the WordPress core versions available for installation on an Agency Plan website.
163+
164+
### Example
165+
166+
* Bearer Authentication (apiToken):
167+
168+
```python
169+
import hostinger_api
170+
from hostinger_api.models.agency_hosting_v1_word_press_version_resource import AgencyHostingV1WordPressVersionResource
171+
from hostinger_api.rest import ApiException
172+
from pprint import pprint
173+
174+
175+
# Configure Bearer authorization: apiToken
176+
configuration = hostinger_api.Configuration(
177+
access_token = os.environ["BEARER_TOKEN"]
178+
)
179+
180+
# Enter a context with an instance of the API client
181+
with hostinger_api.ApiClient(configuration) as api_client:
182+
# Create an instance of the API class
183+
api_instance = hostinger_api.AgencyHostingWordPressApi(api_client)
184+
website_uid = 'zpwlGlp19' # str | Agency Plan website UID
185+
186+
try:
187+
# List available WordPress versions for an Agency Plan website
188+
api_response = api_instance.list_available_word_press_versions_for_an_agency_plan_website_v1(website_uid)
189+
print("The response of AgencyHostingWordPressApi->list_available_word_press_versions_for_an_agency_plan_website_v1:\n")
190+
pprint(api_response)
191+
except Exception as e:
192+
print("Exception when calling AgencyHostingWordPressApi->list_available_word_press_versions_for_an_agency_plan_website_v1: %s\n" % e)
193+
```
194+
195+
196+
197+
### Parameters
198+
199+
200+
Name | Type | Description | Notes
201+
------------- | ------------- | ------------- | -------------
202+
**website_uid** | **str**| Agency Plan website UID |
203+
204+
### Return type
205+
206+
[**List[AgencyHostingV1WordPressVersionResource]**](AgencyHostingV1WordPressVersionResource.md)
207+
208+
### Authorization
209+
210+
[apiToken](../README.md#apiToken)
211+
212+
### HTTP request headers
213+
214+
- **Content-Type**: Not defined
215+
- **Accept**: application/json
216+
217+
### HTTP response details
218+
219+
| Status code | Description | Response headers |
220+
|-------------|-------------|------------------|
221+
**200** | Success response | - |
222+
**401** | Unauthenticated response | - |
223+
**500** | Error response | - |
224+
225+
[[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)
226+

hostinger_api/__init__.py

Lines changed: 6 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.14.0
8+
API Version: 1.14.1
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.12.0"
15+
__version__ = "3.12.1"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -23,6 +23,7 @@
2323
from hostinger_api.api.agency_hosting_files_api import AgencyHostingFilesApi
2424
from hostinger_api.api.agency_hosting_website_setups_api import AgencyHostingWebsiteSetupsApi
2525
from hostinger_api.api.agency_hosting_websites_api import AgencyHostingWebsitesApi
26+
from hostinger_api.api.agency_hosting_word_press_api import AgencyHostingWordPressApi
2627
from hostinger_api.api.billing_catalog_api import BillingCatalogApi
2728
from hostinger_api.api.billing_orders_api import BillingOrdersApi
2829
from hostinger_api.api.billing_payment_methods_api import BillingPaymentMethodsApi
@@ -136,6 +137,9 @@
136137
from hostinger_api.models.agency_hosting_v1_websites_website_staging_root_resource import AgencyHostingV1WebsitesWebsiteStagingRootResource
137138
from hostinger_api.models.agency_hosting_v1_websites_website_user_resource import AgencyHostingV1WebsitesWebsiteUserResource
138139
from hostinger_api.models.agency_hosting_v1_websites_word_press_install_resource import AgencyHostingV1WebsitesWordPressInstallResource
140+
from hostinger_api.models.agency_hosting_v1_word_press_change_version_request import AgencyHostingV1WordPressChangeVersionRequest
141+
from hostinger_api.models.agency_hosting_v1_word_press_settings_resource import AgencyHostingV1WordPressSettingsResource
142+
from hostinger_api.models.agency_hosting_v1_word_press_version_resource import AgencyHostingV1WordPressVersionResource
139143
from hostinger_api.models.billing_v1_catalog_catalog_item_price_resource import BillingV1CatalogCatalogItemPriceResource
140144
from hostinger_api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
141145
from hostinger_api.models.billing_v1_order_order_billing_address_resource import BillingV1OrderOrderBillingAddressResource

hostinger_api/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from hostinger_api.api.agency_hosting_files_api import AgencyHostingFilesApi
1010
from hostinger_api.api.agency_hosting_website_setups_api import AgencyHostingWebsiteSetupsApi
1111
from hostinger_api.api.agency_hosting_websites_api import AgencyHostingWebsitesApi
12+
from hostinger_api.api.agency_hosting_word_press_api import AgencyHostingWordPressApi
1213
from hostinger_api.api.billing_catalog_api import BillingCatalogApi
1314
from hostinger_api.api.billing_orders_api import BillingOrdersApi
1415
from hostinger_api.api.billing_payment_methods_api import BillingPaymentMethodsApi

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.14.0
6+
API Version: 1.14.1
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)