Skip to content

Commit 43ad2af

Browse files
chore: sdk update
1 parent acc5616 commit 43ad2af

641 files changed

Lines changed: 1436 additions & 635 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
@@ -88,6 +88,7 @@ Class | Method | HTTP request | Description
8888
*AgencyHostingDomainsApi* | [**link_domain_to_agency_plan_website_v1**](docs/AgencyHostingDomainsApi.md#link_domain_to_agency_plan_website_v1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/domains | Link domain to Agency Plan website
8989
*AgencyHostingDomainsApi* | [**list_agency_plan_domains_v1**](docs/AgencyHostingDomainsApi.md#list_agency_plan_domains_v1) | **GET** /api/agency-hosting/v1/domains | List Agency Plan domains
9090
*AgencyHostingDomainsApi* | [**unlink_domain_from_agency_plan_website_v1**](docs/AgencyHostingDomainsApi.md#unlink_domain_from_agency_plan_website_v1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/domains/{domain} | Unlink domain from Agency Plan website
91+
*AgencyHostingFilesApi* | [**import_agency_plan_website_from_archive_v1**](docs/AgencyHostingFilesApi.md#import_agency_plan_website_from_archive_v1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/files/import-archive | Import Agency Plan website from archive
9192
*AgencyHostingWebsiteSetupsApi* | [**get_agency_plan_website_setup_status_v1**](docs/AgencyHostingWebsiteSetupsApi.md#get_agency_plan_website_setup_status_v1) | **GET** /api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid} | Get Agency Plan website setup status
9293
*AgencyHostingWebsiteSetupsApi* | [**provision_a_new_agency_plan_website_v1**](docs/AgencyHostingWebsiteSetupsApi.md#provision_a_new_agency_plan_website_v1) | **POST** /api/agency-hosting/v1/orders/{order_id}/websites/setups | Provision a new Agency Plan website
9394
*AgencyHostingWebsitesApi* | [**build_agency_plan_website_node_js_assets_v1**](docs/AgencyHostingWebsitesApi.md#build_agency_plan_website_node_js_assets_v1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/build-assets | Build Agency Plan website NodeJS assets
@@ -298,6 +299,8 @@ Class | Method | HTTP request | Description
298299
- [AgencyHostingV1DomainsChangeDomainRequest](docs/AgencyHostingV1DomainsChangeDomainRequest.md)
299300
- [AgencyHostingV1DomainsDomainResource](docs/AgencyHostingV1DomainsDomainResource.md)
300301
- [AgencyHostingV1DomainsLinkDomainRequest](docs/AgencyHostingV1DomainsLinkDomainRequest.md)
302+
- [AgencyHostingV1FilesImportArchiveRequest](docs/AgencyHostingV1FilesImportArchiveRequest.md)
303+
- [AgencyHostingV1FilesUploadUrlResource](docs/AgencyHostingV1FilesUploadUrlResource.md)
301304
- [AgencyHostingV1SetupsCreateSetupRequest](docs/AgencyHostingV1SetupsCreateSetupRequest.md)
302305
- [AgencyHostingV1SetupsCreateSetupRequestClone](docs/AgencyHostingV1SetupsCreateSetupRequestClone.md)
303306
- [AgencyHostingV1SetupsCreateSetupRequestDeriveDomain](docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md)

docs/AgencyHostingFilesApi.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# hostinger_api.AgencyHostingFilesApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**import_agency_plan_website_from_archive_v1**](AgencyHostingFilesApi.md#import_agency_plan_website_from_archive_v1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/files/import-archive | Import Agency Plan website from archive
8+
9+
10+
# **import_agency_plan_website_from_archive_v1**
11+
> CommonSuccessEmptyResource import_agency_plan_website_from_archive_v1(website_uid, agency_hosting_v1_files_import_archive_request)
12+
13+
Import Agency Plan website from archive
14+
15+
Imports an Agency Plan website from an already-uploaded archive.
16+
17+
Upload the archive to the website's root directory via file browser first, then provide its
18+
filename in this request. Website contents are overwritten by the archive contents. Supported
19+
archive types: .zip, .tar, .tar.gz, .tgz.
20+
21+
### Example
22+
23+
* Bearer Authentication (apiToken):
24+
25+
```python
26+
import hostinger_api
27+
from hostinger_api.models.agency_hosting_v1_files_import_archive_request import AgencyHostingV1FilesImportArchiveRequest
28+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
29+
from hostinger_api.rest import ApiException
30+
from pprint import pprint
31+
32+
33+
# Configure Bearer authorization: apiToken
34+
configuration = hostinger_api.Configuration(
35+
access_token = os.environ["BEARER_TOKEN"]
36+
)
37+
38+
# Enter a context with an instance of the API client
39+
with hostinger_api.ApiClient(configuration) as api_client:
40+
# Create an instance of the API class
41+
api_instance = hostinger_api.AgencyHostingFilesApi(api_client)
42+
website_uid = 'zpwlGlp19' # str | Agency Plan website UID
43+
agency_hosting_v1_files_import_archive_request = hostinger_api.AgencyHostingV1FilesImportArchiveRequest() # AgencyHostingV1FilesImportArchiveRequest |
44+
45+
try:
46+
# Import Agency Plan website from archive
47+
api_response = api_instance.import_agency_plan_website_from_archive_v1(website_uid, agency_hosting_v1_files_import_archive_request)
48+
print("The response of AgencyHostingFilesApi->import_agency_plan_website_from_archive_v1:\n")
49+
pprint(api_response)
50+
except Exception as e:
51+
print("Exception when calling AgencyHostingFilesApi->import_agency_plan_website_from_archive_v1: %s\n" % e)
52+
```
53+
54+
55+
56+
### Parameters
57+
58+
59+
Name | Type | Description | Notes
60+
------------- | ------------- | ------------- | -------------
61+
**website_uid** | **str**| Agency Plan website UID |
62+
**agency_hosting_v1_files_import_archive_request** | [**AgencyHostingV1FilesImportArchiveRequest**](AgencyHostingV1FilesImportArchiveRequest.md)| |
63+
64+
### Return type
65+
66+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
67+
68+
### Authorization
69+
70+
[apiToken](../README.md#apiToken)
71+
72+
### HTTP request headers
73+
74+
- **Content-Type**: application/json
75+
- **Accept**: application/json
76+
77+
### HTTP response details
78+
79+
| Status code | Description | Response headers |
80+
|-------------|-------------|------------------|
81+
**200** | Success empty response | - |
82+
**422** | Validation error response | - |
83+
**401** | Unauthenticated response | - |
84+
**500** | Error response | - |
85+
86+
[[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)
87+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AgencyHostingV1FilesImportArchiveRequest
2+
3+
Import a website from an already-uploaded archive
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**archive_name** | **str** | Archive filename (e.g., archive.zip). The file must already be uploaded to the website's .h5g/ directory. |
10+
11+
## Example
12+
13+
```python
14+
from hostinger_api.models.agency_hosting_v1_files_import_archive_request import AgencyHostingV1FilesImportArchiveRequest
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of AgencyHostingV1FilesImportArchiveRequest from a JSON string
19+
agency_hosting_v1_files_import_archive_request_instance = AgencyHostingV1FilesImportArchiveRequest.from_json(json)
20+
# print the JSON string representation of the object
21+
print(AgencyHostingV1FilesImportArchiveRequest.to_json())
22+
23+
# convert the object into a dict
24+
agency_hosting_v1_files_import_archive_request_dict = agency_hosting_v1_files_import_archive_request_instance.to_dict()
25+
# create an instance of AgencyHostingV1FilesImportArchiveRequest from a dict
26+
agency_hosting_v1_files_import_archive_request_from_dict = AgencyHostingV1FilesImportArchiveRequest.from_dict(agency_hosting_v1_files_import_archive_request_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# AgencyHostingV1FilesUploadUrlResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**url** | **str** | The TUS upload endpoint URL to send upload requests to |
9+
**auth_key** | **str** | Authentication token to pass as the `X-Auth` header in TUS upload requests |
10+
**rest_auth_key** | **str** | Authentication token to pass as the `X-Auth-Rest` header in TUS upload requests |
11+
12+
## Example
13+
14+
```python
15+
from hostinger_api.models.agency_hosting_v1_files_upload_url_resource import AgencyHostingV1FilesUploadUrlResource
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of AgencyHostingV1FilesUploadUrlResource from a JSON string
20+
agency_hosting_v1_files_upload_url_resource_instance = AgencyHostingV1FilesUploadUrlResource.from_json(json)
21+
# print the JSON string representation of the object
22+
print(AgencyHostingV1FilesUploadUrlResource.to_json())
23+
24+
# convert the object into a dict
25+
agency_hosting_v1_files_upload_url_resource_dict = agency_hosting_v1_files_upload_url_resource_instance.to_dict()
26+
# create an instance of AgencyHostingV1FilesUploadUrlResource from a dict
27+
agency_hosting_v1_files_upload_url_resource_from_dict = AgencyHostingV1FilesUploadUrlResource.from_dict(agency_hosting_v1_files_upload_url_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,18 +5,19 @@
55
"""
66
Hostinger API Python SDK
77
8-
API Version: 1.6.1
8+
API Version: 1.6.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.4.2"
15+
__version__ = "3.4.3"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_datacenters_api import AgencyHostingDatacentersApi
1919
from hostinger_api.api.agency_hosting_domains_api import AgencyHostingDomainsApi
20+
from hostinger_api.api.agency_hosting_files_api import AgencyHostingFilesApi
2021
from hostinger_api.api.agency_hosting_website_setups_api import AgencyHostingWebsiteSetupsApi
2122
from hostinger_api.api.agency_hosting_websites_api import AgencyHostingWebsitesApi
2223
from hostinger_api.api.billing_catalog_api import BillingCatalogApi
@@ -88,6 +89,8 @@
8889
from hostinger_api.models.agency_hosting_v1_domains_change_domain_request import AgencyHostingV1DomainsChangeDomainRequest
8990
from hostinger_api.models.agency_hosting_v1_domains_domain_resource import AgencyHostingV1DomainsDomainResource
9091
from hostinger_api.models.agency_hosting_v1_domains_link_domain_request import AgencyHostingV1DomainsLinkDomainRequest
92+
from hostinger_api.models.agency_hosting_v1_files_import_archive_request import AgencyHostingV1FilesImportArchiveRequest
93+
from hostinger_api.models.agency_hosting_v1_files_upload_url_resource import AgencyHostingV1FilesUploadUrlResource
9194
from hostinger_api.models.agency_hosting_v1_setups_create_setup_request import AgencyHostingV1SetupsCreateSetupRequest
9295
from hostinger_api.models.agency_hosting_v1_setups_create_setup_request_clone import AgencyHostingV1SetupsCreateSetupRequestClone
9396
from hostinger_api.models.agency_hosting_v1_setups_create_setup_request_derive_domain import AgencyHostingV1SetupsCreateSetupRequestDeriveDomain

hostinger_api/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# import apis into api package
44
from hostinger_api.api.agency_hosting_datacenters_api import AgencyHostingDatacentersApi
55
from hostinger_api.api.agency_hosting_domains_api import AgencyHostingDomainsApi
6+
from hostinger_api.api.agency_hosting_files_api import AgencyHostingFilesApi
67
from hostinger_api.api.agency_hosting_website_setups_api import AgencyHostingWebsiteSetupsApi
78
from hostinger_api.api.agency_hosting_websites_api import AgencyHostingWebsitesApi
89
from hostinger_api.api.billing_catalog_api import BillingCatalogApi

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.6.1
6+
API Version: 1.6.2
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_domains_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.6.1
6+
API Version: 1.6.2
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)