Skip to content

Commit fb9e3db

Browse files
committed
chore: sdk update
1 parent b23985c commit fb9e3db

File tree

218 files changed

+343
-228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+343
-228
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ Class | Method | HTTP request | Description
126126
*VPSMalwareScannerApi* | [**uninstallMonarxV1**](docs/Api/VPSMalwareScannerApi.md#uninstallmonarxv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/monarx | Uninstall Monarx
127127
*VPSOSTemplatesApi* | [**getTemplateDetailsV1**](docs/Api/VPSOSTemplatesApi.md#gettemplatedetailsv1) | **GET** /api/vps/v1/templates/{templateId} | Get template details
128128
*VPSOSTemplatesApi* | [**getTemplatesV1**](docs/Api/VPSOSTemplatesApi.md#gettemplatesv1) | **GET** /api/vps/v1/templates | Get templates
129-
*VPSPTRRecordsApi* | [**createPTRRecordV1**](docs/Api/VPSPTRRecordsApi.md#createptrrecordv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr | Create PTR record
130-
*VPSPTRRecordsApi* | [**deletePTRRecordV1**](docs/Api/VPSPTRRecordsApi.md#deleteptrrecordv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr | Delete PTR record
129+
*VPSPTRRecordsApi* | [**createPTRRecordV1**](docs/Api/VPSPTRRecordsApi.md#createptrrecordv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId} | Create PTR record
130+
*VPSPTRRecordsApi* | [**deletePTRRecordV1**](docs/Api/VPSPTRRecordsApi.md#deleteptrrecordv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId} | Delete PTR record
131131
*VPSPostInstallScriptsApi* | [**createPostInstallScriptV1**](docs/Api/VPSPostInstallScriptsApi.md#createpostinstallscriptv1) | **POST** /api/vps/v1/post-install-scripts | Create post-install script
132132
*VPSPostInstallScriptsApi* | [**deletePostInstallScriptV1**](docs/Api/VPSPostInstallScriptsApi.md#deletepostinstallscriptv1) | **DELETE** /api/vps/v1/post-install-scripts/{postInstallScriptId} | Delete post-install script
133133
*VPSPostInstallScriptsApi* | [**getPostInstallScriptV1**](docs/Api/VPSPostInstallScriptsApi.md#getpostinstallscriptv1) | **GET** /api/vps/v1/post-install-scripts/{postInstallScriptId} | Get post-install script
@@ -234,6 +234,7 @@ Class | Method | HTTP request | Description
234234
- [VPSV1VirtualMachineHostnameUpdateRequest](docs/Model/VPSV1VirtualMachineHostnameUpdateRequest.md)
235235
- [VPSV1VirtualMachineMetricGetRequest](docs/Model/VPSV1VirtualMachineMetricGetRequest.md)
236236
- [VPSV1VirtualMachineNameserversUpdateRequest](docs/Model/VPSV1VirtualMachineNameserversUpdateRequest.md)
237+
- [VPSV1VirtualMachinePTRStoreRequest](docs/Model/VPSV1VirtualMachinePTRStoreRequest.md)
237238
- [VPSV1VirtualMachinePanelPasswordUpdateRequest](docs/Model/VPSV1VirtualMachinePanelPasswordUpdateRequest.md)
238239
- [VPSV1VirtualMachinePurchaseRequest](docs/Model/VPSV1VirtualMachinePurchaseRequest.md)
239240
- [VPSV1VirtualMachineRecoveryStartRequest](docs/Model/VPSV1VirtualMachineRecoveryStartRequest.md)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hostinger/api-php-sdk",
3-
"version": "0.0.31",
3+
"version": "0.0.32",
44
"description": "Hostinger API PHP SDK",
55
"keywords": [
66
"hostinger",

docs/Api/VPSPTRRecordsApi.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ All URIs are relative to https://developers.hostinger.com, except if the operati
44

55
| Method | HTTP request | Description |
66
| ------------- | ------------- | ------------- |
7-
| [**createPTRRecordV1()**](VPSPTRRecordsApi.md#createPTRRecordV1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr | Create PTR record |
8-
| [**deletePTRRecordV1()**](VPSPTRRecordsApi.md#deletePTRRecordV1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr | Delete PTR record |
7+
| [**createPTRRecordV1()**](VPSPTRRecordsApi.md#createPTRRecordV1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId} | Create PTR record |
8+
| [**deletePTRRecordV1()**](VPSPTRRecordsApi.md#deletePTRRecordV1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId} | Delete PTR record |
99

1010

1111
## `createPTRRecordV1()`
1212

1313
```php
14-
createPTRRecordV1($virtualMachineId): \Hostinger\Model\VPSV1ActionActionResource
14+
createPTRRecordV1($virtualMachineId, $ipAddressId, $vPSV1VirtualMachinePTRStoreRequest): \Hostinger\Model\VPSV1ActionActionResource
1515
```
1616

1717
Create PTR record
@@ -31,9 +31,11 @@ $config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YO
3131

3232
$apiInstance = new Hostinger\Api\VPSPTRRecordsApi(config: $config);
3333
$virtualMachineId = 1268054; // int | Virtual Machine ID
34+
$ipAddressId = 246547; // int | IP Address ID
35+
$vPSV1VirtualMachinePTRStoreRequest = new \Hostinger\Model\VPSV1VirtualMachinePTRStoreRequest(); // \Hostinger\Model\VPSV1VirtualMachinePTRStoreRequest
3436

3537
try {
36-
$result = $apiInstance->createPTRRecordV1($virtualMachineId);
38+
$result = $apiInstance->createPTRRecordV1($virtualMachineId, $ipAddressId, $vPSV1VirtualMachinePTRStoreRequest);
3739
print_r($result);
3840
} catch (Exception $e) {
3941
echo 'Exception when calling VPSPTRRecordsApi->createPTRRecordV1: ', $e->getMessage(), PHP_EOL;
@@ -45,6 +47,8 @@ try {
4547
| Name | Type | Description | Notes |
4648
| ------------- | ------------- | ------------- | ------------- |
4749
| **virtualMachineId** | **int**| Virtual Machine ID | |
50+
| **ipAddressId** | **int**| IP Address ID | |
51+
| **vPSV1VirtualMachinePTRStoreRequest** | [**\Hostinger\Model\VPSV1VirtualMachinePTRStoreRequest**](../Model/VPSV1VirtualMachinePTRStoreRequest.md)| | |
4852

4953
### Return type
5054

@@ -57,7 +61,7 @@ try {
5761
## `deletePTRRecordV1()`
5862

5963
```php
60-
deletePTRRecordV1($virtualMachineId): \Hostinger\Model\VPSV1ActionActionResource
64+
deletePTRRecordV1($virtualMachineId, $ipAddressId): \Hostinger\Model\VPSV1ActionActionResource
6165
```
6266

6367
Delete PTR record
@@ -77,9 +81,10 @@ $config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YO
7781

7882
$apiInstance = new Hostinger\Api\VPSPTRRecordsApi(config: $config);
7983
$virtualMachineId = 1268054; // int | Virtual Machine ID
84+
$ipAddressId = 246547; // int | IP Address ID
8085

8186
try {
82-
$result = $apiInstance->deletePTRRecordV1($virtualMachineId);
87+
$result = $apiInstance->deletePTRRecordV1($virtualMachineId, $ipAddressId);
8388
print_r($result);
8489
} catch (Exception $e) {
8590
echo 'Exception when calling VPSPTRRecordsApi->deletePTRRecordV1: ', $e->getMessage(), PHP_EOL;
@@ -91,6 +96,7 @@ try {
9196
| Name | Type | Description | Notes |
9297
| ------------- | ------------- | ------------- | ------------- |
9398
| **virtualMachineId** | **int**| Virtual Machine ID | |
99+
| **ipAddressId** | **int**| IP Address ID | |
94100

95101
### Return type
96102

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# # VPSV1VirtualMachinePTRStoreRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**domain** | **string** | Pointer record domain |
8+
9+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

src/Api/BillingCatalogApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Hostinger API PHP SDK
77
*
8-
* API Version: 0.0.96
8+
* API Version: 0.0.97
99
* @url https://github.com/hostinger/api-php-sdk
1010
*
1111
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!

src/Api/BillingOrdersApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Hostinger API PHP SDK
77
*
8-
* API Version: 0.0.96
8+
* API Version: 0.0.97
99
* @url https://github.com/hostinger/api-php-sdk
1010
*
1111
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!

src/Api/BillingPaymentMethodsApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Hostinger API PHP SDK
77
*
8-
* API Version: 0.0.96
8+
* API Version: 0.0.97
99
* @url https://github.com/hostinger/api-php-sdk
1010
*
1111
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!

src/Api/BillingSubscriptionsApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Hostinger API PHP SDK
77
*
8-
* API Version: 0.0.96
8+
* API Version: 0.0.97
99
* @url https://github.com/hostinger/api-php-sdk
1010
*
1111
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!

src/Api/DNSSnapshotApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Hostinger API PHP SDK
77
*
8-
* API Version: 0.0.96
8+
* API Version: 0.0.97
99
* @url https://github.com/hostinger/api-php-sdk
1010
*
1111
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!

src/Api/DNSZoneApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Hostinger API PHP SDK
77
*
8-
* API Version: 0.0.96
8+
* API Version: 0.0.97
99
* @url https://github.com/hostinger/api-php-sdk
1010
*
1111
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!

0 commit comments

Comments
 (0)