Skip to content

Commit 71f5fc3

Browse files
chore: sdk update
1 parent 12bc4b0 commit 71f5fc3

839 files changed

Lines changed: 1547 additions & 844 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ Class | Method | HTTP request | Description
148148
*DomainsWHOISApi* | [**get_whois_profile_list_v1**](docs/DomainsWHOISApi.md#get_whois_profile_list_v1) | **GET** /api/domains/v1/whois | Get WHOIS profile list
149149
*DomainsWHOISApi* | [**get_whois_profile_usage_v1**](docs/DomainsWHOISApi.md#get_whois_profile_usage_v1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage
150150
*DomainsWHOISApi* | [**get_whois_profile_v1**](docs/DomainsWHOISApi.md#get_whois_profile_v1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile
151+
*DomainsWHOISApi* | [**set_whois_profile_as_default_v1**](docs/DomainsWHOISApi.md#set_whois_profile_as_default_v1) | **PATCH** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default
152+
*DomainsWHOISApi* | [**unset_default_whois_profile_v1**](docs/DomainsWHOISApi.md#unset_default_whois_profile_v1) | **DELETE** /api/domains/v1/whois/default/{whoisId} | Unset default WHOIS profile
151153
*EcommerceMiscellaneousApi* | [**get_custom_storefront_setup_instructions_v1**](docs/EcommerceMiscellaneousApi.md#get_custom_storefront_setup_instructions_v1) | **GET** /api/ecommerce/v1/miscellaneous/custom-storefront-instructions | Get custom storefront setup instructions
152154
*EcommercePaymentsApi* | [**enable_manual_payment_method_v1**](docs/EcommercePaymentsApi.md#enable_manual_payment_method_v1) | **POST** /api/ecommerce/v1/stores/{store_id}/payment-methods/manual | Enable manual payment method
153155
*EcommerceProductsApi* | [**create_digital_product_v1**](docs/EcommerceProductsApi.md#create_digital_product_v1) | **POST** /api/ecommerce/v1/stores/{store_id}/products/digital | Create digital product

docs/DomainsWHOISApi.md

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Method | HTTP request | Description
99
[**get_whois_profile_list_v1**](DomainsWHOISApi.md#get_whois_profile_list_v1) | **GET** /api/domains/v1/whois | Get WHOIS profile list
1010
[**get_whois_profile_usage_v1**](DomainsWHOISApi.md#get_whois_profile_usage_v1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage
1111
[**get_whois_profile_v1**](DomainsWHOISApi.md#get_whois_profile_v1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile
12+
[**set_whois_profile_as_default_v1**](DomainsWHOISApi.md#set_whois_profile_as_default_v1) | **PATCH** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default
13+
[**unset_default_whois_profile_v1**](DomainsWHOISApi.md#unset_default_whois_profile_v1) | **DELETE** /api/domains/v1/whois/default/{whoisId} | Unset default WHOIS profile
1214

1315

1416
# **create_whois_profile_v1**
@@ -372,3 +374,151 @@ Name | Type | Description | Notes
372374

373375
[[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)
374376

377+
# **set_whois_profile_as_default_v1**
378+
> CommonSuccessEmptyResource set_whois_profile_as_default_v1(whois_id)
379+
380+
Set WHOIS profile as default
381+
382+
Set WHOIS contact profile as default.
383+
384+
The default profile is pre-selected for the TLD it belongs to when registering new domains.
385+
386+
Use this endpoint to avoid picking contact information for every registration.
387+
388+
### Example
389+
390+
* Bearer Authentication (apiToken):
391+
392+
```python
393+
import hostinger_api
394+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
395+
from hostinger_api.rest import ApiException
396+
from pprint import pprint
397+
398+
399+
# Configure Bearer authorization: apiToken
400+
configuration = hostinger_api.Configuration(
401+
access_token = os.environ["BEARER_TOKEN"]
402+
)
403+
404+
# Enter a context with an instance of the API client
405+
with hostinger_api.ApiClient(configuration) as api_client:
406+
# Create an instance of the API class
407+
api_instance = hostinger_api.DomainsWHOISApi(api_client)
408+
whois_id = 564651 # int | WHOIS ID
409+
410+
try:
411+
# Set WHOIS profile as default
412+
api_response = api_instance.set_whois_profile_as_default_v1(whois_id)
413+
print("The response of DomainsWHOISApi->set_whois_profile_as_default_v1:\n")
414+
pprint(api_response)
415+
except Exception as e:
416+
print("Exception when calling DomainsWHOISApi->set_whois_profile_as_default_v1: %s\n" % e)
417+
```
418+
419+
420+
421+
### Parameters
422+
423+
424+
Name | Type | Description | Notes
425+
------------- | ------------- | ------------- | -------------
426+
**whois_id** | **int**| WHOIS ID |
427+
428+
### Return type
429+
430+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
431+
432+
### Authorization
433+
434+
[apiToken](../README.md#apiToken)
435+
436+
### HTTP request headers
437+
438+
- **Content-Type**: Not defined
439+
- **Accept**: application/json
440+
441+
### HTTP response details
442+
443+
| Status code | Description | Response headers |
444+
|-------------|-------------|------------------|
445+
**200** | Success empty response | - |
446+
**401** | Unauthenticated response | - |
447+
**500** | Error response | - |
448+
449+
[[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)
450+
451+
# **unset_default_whois_profile_v1**
452+
> CommonSuccessEmptyResource unset_default_whois_profile_v1(whois_id)
453+
454+
Unset default WHOIS profile
455+
456+
Unset WHOIS contact profile as default.
457+
458+
The profile itself is kept, it is only no longer pre-selected for its TLD.
459+
460+
Use this endpoint to stop reusing contact information for new registrations.
461+
462+
### Example
463+
464+
* Bearer Authentication (apiToken):
465+
466+
```python
467+
import hostinger_api
468+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
469+
from hostinger_api.rest import ApiException
470+
from pprint import pprint
471+
472+
473+
# Configure Bearer authorization: apiToken
474+
configuration = hostinger_api.Configuration(
475+
access_token = os.environ["BEARER_TOKEN"]
476+
)
477+
478+
# Enter a context with an instance of the API client
479+
with hostinger_api.ApiClient(configuration) as api_client:
480+
# Create an instance of the API class
481+
api_instance = hostinger_api.DomainsWHOISApi(api_client)
482+
whois_id = 564651 # int | WHOIS ID
483+
484+
try:
485+
# Unset default WHOIS profile
486+
api_response = api_instance.unset_default_whois_profile_v1(whois_id)
487+
print("The response of DomainsWHOISApi->unset_default_whois_profile_v1:\n")
488+
pprint(api_response)
489+
except Exception as e:
490+
print("Exception when calling DomainsWHOISApi->unset_default_whois_profile_v1: %s\n" % e)
491+
```
492+
493+
494+
495+
### Parameters
496+
497+
498+
Name | Type | Description | Notes
499+
------------- | ------------- | ------------- | -------------
500+
**whois_id** | **int**| WHOIS ID |
501+
502+
### Return type
503+
504+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
505+
506+
### Authorization
507+
508+
[apiToken](../README.md#apiToken)
509+
510+
### HTTP request headers
511+
512+
- **Content-Type**: Not defined
513+
- **Accept**: application/json
514+
515+
### HTTP response details
516+
517+
| Status code | Description | Response headers |
518+
|-------------|-------------|------------------|
519+
**200** | Success empty response | - |
520+
**401** | Unauthenticated response | - |
521+
**500** | Error response | - |
522+
523+
[[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)
524+

docs/VPSVirtualMachineApi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,9 @@ Stop a specified virtual machine.
11121112

11131113
If the virtual machine is already stopped, the request will still be processed without any effect.
11141114

1115+
This is a compute-only power state change and does not affect billing. To stop future charges,
1116+
disable auto-renewal on the owning subscription.
1117+
11151118
Use this endpoint to power off running VPS instances.
11161119

11171120
### Example

hostinger_api/__init__.py

Lines changed: 2 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.23.0
8+
API Version: 1.24.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.21.0"
15+
__version__ = "3.22.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi

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.23.0
6+
API Version: 1.24.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.23.0
6+
API Version: 1.24.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.23.0
6+
API Version: 1.24.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.23.0
6+
API Version: 1.24.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_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.23.0
6+
API Version: 1.24.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_files_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.23.0
6+
API Version: 1.24.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)