Skip to content

Commit bb69d90

Browse files
chore: sdk update
1 parent c07de9a commit bb69d90

659 files changed

Lines changed: 1082 additions & 665 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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,16 @@ configuration = hostinger_api.Configuration(
6464
# Enter a context with an instance of the API client
6565
with hostinger_api.ApiClient(configuration) as api_client:
6666
# Create an instance of the API class
67-
api_instance = hostinger_api.AgencyHostingCronJobsApi(api_client)
67+
api_instance = hostinger_api.AgencyHostingCacheApi(api_client)
6868
website_uid = 'zpwlGlp19' # str | Agency Plan website UID
69-
agency_hosting_v1_websites_cron_jobs_create_cron_job_request = hostinger_api.AgencyHostingV1WebsitesCronJobsCreateCronJobRequest() # AgencyHostingV1WebsitesCronJobsCreateCronJobRequest |
7069

7170
try:
72-
# Create Agency Plan website cron job
73-
api_response = api_instance.create_agency_plan_website_cron_job_v1(website_uid, agency_hosting_v1_websites_cron_jobs_create_cron_job_request)
74-
print("The response of AgencyHostingCronJobsApi->create_agency_plan_website_cron_job_v1:\n")
71+
# Clear Agency Plan website cache
72+
api_response = api_instance.clear_agency_plan_website_cache_v1(website_uid)
73+
print("The response of AgencyHostingCacheApi->clear_agency_plan_website_cache_v1:\n")
7574
pprint(api_response)
7675
except ApiException as e:
77-
print("Exception when calling AgencyHostingCronJobsApi->create_agency_plan_website_cron_job_v1: %s\n" % e)
76+
print("Exception when calling AgencyHostingCacheApi->clear_agency_plan_website_cache_v1: %s\n" % e)
7877

7978
```
8079

@@ -84,6 +83,7 @@ All URIs are relative to *https://developers.hostinger.com*
8483

8584
Class | Method | HTTP request | Description
8685
------------ | ------------- | ------------- | -------------
86+
*AgencyHostingCacheApi* | [**clear_agency_plan_website_cache_v1**](docs/AgencyHostingCacheApi.md#clear_agency_plan_website_cache_v1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/cache | Clear Agency Plan website cache
8787
*AgencyHostingCronJobsApi* | [**create_agency_plan_website_cron_job_v1**](docs/AgencyHostingCronJobsApi.md#create_agency_plan_website_cron_job_v1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/cron-jobs | Create Agency Plan website cron job
8888
*AgencyHostingCronJobsApi* | [**delete_agency_plan_website_cron_job_v1**](docs/AgencyHostingCronJobsApi.md#delete_agency_plan_website_cron_job_v1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/cron-jobs/{uuid} | Delete Agency Plan website cron job
8989
*AgencyHostingCronJobsApi* | [**list_agency_plan_website_cron_jobs_v1**](docs/AgencyHostingCronJobsApi.md#list_agency_plan_website_cron_jobs_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/cron-jobs | List Agency Plan website cron jobs

docs/AgencyHostingCacheApi.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# hostinger_api.AgencyHostingCacheApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**clear_agency_plan_website_cache_v1**](AgencyHostingCacheApi.md#clear_agency_plan_website_cache_v1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/cache | Clear Agency Plan website cache
8+
9+
10+
# **clear_agency_plan_website_cache_v1**
11+
> CommonSuccessEmptyResource clear_agency_plan_website_cache_v1(website_uid)
12+
13+
Clear Agency Plan website cache
14+
15+
Clears cache for all domains associated with an Agency Plan website, including its preview domain.
16+
17+
This operation clears all cache types for the website.
18+
19+
### Example
20+
21+
* Bearer Authentication (apiToken):
22+
23+
```python
24+
import hostinger_api
25+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
26+
from hostinger_api.rest import ApiException
27+
from pprint import pprint
28+
29+
30+
# Configure Bearer authorization: apiToken
31+
configuration = hostinger_api.Configuration(
32+
access_token = os.environ["BEARER_TOKEN"]
33+
)
34+
35+
# Enter a context with an instance of the API client
36+
with hostinger_api.ApiClient(configuration) as api_client:
37+
# Create an instance of the API class
38+
api_instance = hostinger_api.AgencyHostingCacheApi(api_client)
39+
website_uid = 'zpwlGlp19' # str | Agency Plan website UID
40+
41+
try:
42+
# Clear Agency Plan website cache
43+
api_response = api_instance.clear_agency_plan_website_cache_v1(website_uid)
44+
print("The response of AgencyHostingCacheApi->clear_agency_plan_website_cache_v1:\n")
45+
pprint(api_response)
46+
except Exception as e:
47+
print("Exception when calling AgencyHostingCacheApi->clear_agency_plan_website_cache_v1: %s\n" % e)
48+
```
49+
50+
51+
52+
### Parameters
53+
54+
55+
Name | Type | Description | Notes
56+
------------- | ------------- | ------------- | -------------
57+
**website_uid** | **str**| Agency Plan website UID |
58+
59+
### Return type
60+
61+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
62+
63+
### Authorization
64+
65+
[apiToken](../README.md#apiToken)
66+
67+
### HTTP request headers
68+
69+
- **Content-Type**: Not defined
70+
- **Accept**: application/json
71+
72+
### HTTP response details
73+
74+
| Status code | Description | Response headers |
75+
|-------------|-------------|------------------|
76+
**200** | Success empty response | - |
77+
**401** | Unauthenticated response | - |
78+
**500** | Error response | - |
79+
80+
[[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)
81+

hostinger_api/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
"""
66
Hostinger API Python SDK
77
8-
API Version: 1.8.1
8+
API Version: 1.8.2
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.6.1"
15+
__version__ = "3.6.2"
1616

1717
# import apis into sdk package
18+
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
1819
from hostinger_api.api.agency_hosting_cron_jobs_api import AgencyHostingCronJobsApi
1920
from hostinger_api.api.agency_hosting_datacenters_api import AgencyHostingDatacentersApi
2021
from hostinger_api.api.agency_hosting_domains_api import AgencyHostingDomainsApi

hostinger_api/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# flake8: noqa
22

33
# import apis into api package
4+
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
45
from hostinger_api.api.agency_hosting_cron_jobs_api import AgencyHostingCronJobsApi
56
from hostinger_api.api.agency_hosting_datacenters_api import AgencyHostingDatacentersApi
67
from hostinger_api.api.agency_hosting_domains_api import AgencyHostingDomainsApi

0 commit comments

Comments
 (0)