Skip to content

Commit aae3035

Browse files
chore: sdk update
1 parent 188acb5 commit aae3035

1,172 files changed

Lines changed: 1541 additions & 1181 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ Class | Method | HTTP request | Description
372372
*VPSFirewallApi* | [**get_firewall_details_v1**](docs/VPSFirewallApi.md#get_firewall_details_v1) | **GET** /api/vps/v1/firewall/{firewallId} | Get firewall details
373373
*VPSFirewallApi* | [**get_firewall_list_v1**](docs/VPSFirewallApi.md#get_firewall_list_v1) | **GET** /api/vps/v1/firewall | Get firewall list
374374
*VPSFirewallApi* | [**replace_all_firewall_rules_in_group_v1**](docs/VPSFirewallApi.md#replace_all_firewall_rules_in_group_v1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules | Replace all firewall rules in group
375+
*VPSFirewallApi* | [**sync_firewall_to_all_assigned_vms_v1**](docs/VPSFirewallApi.md#sync_firewall_to_all_assigned_vms_v1) | **POST** /api/vps/v1/firewall/{firewallId}/sync | Sync firewall to all assigned VMs
375376
*VPSFirewallApi* | [**sync_firewall_v1**](docs/VPSFirewallApi.md#sync_firewall_v1) | **POST** /api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId} | Sync firewall
376377
*VPSFirewallApi* | [**update_firewall_rule_v1**](docs/VPSFirewallApi.md#update_firewall_rule_v1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules/{ruleId} | Update firewall rule
377378
*VPSMalwareScannerApi* | [**get_scan_metrics_v1**](docs/VPSMalwareScannerApi.md#get_scan_metrics_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/monarx | Get scan metrics

docs/VPSFirewallApi.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Method | HTTP request | Description
1313
[**get_firewall_details_v1**](VPSFirewallApi.md#get_firewall_details_v1) | **GET** /api/vps/v1/firewall/{firewallId} | Get firewall details
1414
[**get_firewall_list_v1**](VPSFirewallApi.md#get_firewall_list_v1) | **GET** /api/vps/v1/firewall | Get firewall list
1515
[**replace_all_firewall_rules_in_group_v1**](VPSFirewallApi.md#replace_all_firewall_rules_in_group_v1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules | Replace all firewall rules in group
16+
[**sync_firewall_to_all_assigned_vms_v1**](VPSFirewallApi.md#sync_firewall_to_all_assigned_vms_v1) | **POST** /api/vps/v1/firewall/{firewallId}/sync | Sync firewall to all assigned VMs
1617
[**sync_firewall_v1**](VPSFirewallApi.md#sync_firewall_v1) | **POST** /api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId} | Sync firewall
1718
[**update_firewall_rule_v1**](VPSFirewallApi.md#update_firewall_rule_v1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules/{ruleId} | Update firewall rule
1819

@@ -698,11 +699,89 @@ Name | Type | Description | Notes
698699

699700
[[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)
700701

702+
# **sync_firewall_to_all_assigned_vms_v1**
703+
> CommonSuccessEmptyResource sync_firewall_to_all_assigned_vms_v1(firewall_id)
704+
705+
Sync firewall to all assigned VMs
706+
707+
Sync a firewall's rules to every virtual machine it's assigned to.
708+
709+
Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated.
710+
711+
Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
712+
713+
### Example
714+
715+
* Bearer Authentication (apiToken):
716+
717+
```python
718+
import hostinger_api
719+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
720+
from hostinger_api.rest import ApiException
721+
from pprint import pprint
722+
723+
724+
# Configure Bearer authorization: apiToken
725+
configuration = hostinger_api.Configuration(
726+
access_token = os.environ["BEARER_TOKEN"]
727+
)
728+
729+
# Enter a context with an instance of the API client
730+
with hostinger_api.ApiClient(configuration) as api_client:
731+
# Create an instance of the API class
732+
api_instance = hostinger_api.VPSFirewallApi(api_client)
733+
firewall_id = 9449049 # int | Firewall ID
734+
735+
try:
736+
# Sync firewall to all assigned VMs
737+
api_response = api_instance.sync_firewall_to_all_assigned_vms_v1(firewall_id)
738+
print("The response of VPSFirewallApi->sync_firewall_to_all_assigned_vms_v1:\n")
739+
pprint(api_response)
740+
except Exception as e:
741+
print("Exception when calling VPSFirewallApi->sync_firewall_to_all_assigned_vms_v1: %s\n" % e)
742+
```
743+
744+
745+
746+
### Parameters
747+
748+
749+
Name | Type | Description | Notes
750+
------------- | ------------- | ------------- | -------------
751+
**firewall_id** | **int**| Firewall ID |
752+
753+
### Return type
754+
755+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
756+
757+
### Authorization
758+
759+
[apiToken](../README.md#apiToken)
760+
761+
### HTTP request headers
762+
763+
- **Content-Type**: Not defined
764+
- **Accept**: application/json
765+
766+
### HTTP response details
767+
768+
| Status code | Description | Response headers |
769+
|-------------|-------------|------------------|
770+
**200** | Success empty response | - |
771+
**422** | Validation error response | - |
772+
**401** | Unauthenticated response | - |
773+
**500** | Error response | - |
774+
775+
[[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)
776+
701777
# **sync_firewall_v1**
702778
> VPSV1ActionActionResource sync_firewall_v1(firewall_id, virtual_machine_id)
703779
704780
Sync firewall
705781

782+
Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall
783+
to all virtual machines assigned to it.
784+
706785
Sync a firewall for a specified virtual machine.
707786

708787
Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated.

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.47.1
8+
API Version: 1.48.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.45.1"
15+
__version__ = "3.46.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.47.1
6+
API Version: 1.48.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.47.1
6+
API Version: 1.48.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.47.1
6+
API Version: 1.48.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.47.1
6+
API Version: 1.48.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.47.1
6+
API Version: 1.48.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.47.1
6+
API Version: 1.48.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_metrics_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.47.1
6+
API Version: 1.48.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)