hostinger-api-sdk 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2331 -1287
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1698 -1056
  7. package/dist/api.js +1739 -976
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +1698 -1056
  15. package/dist/esm/api.js +1728 -969
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/BillingCatalogApi.md +64 -0
  27. package/docs/BillingOrdersApi.md +63 -0
  28. package/docs/BillingPaymentMethodsApi.md +162 -0
  29. package/docs/BillingSubscriptionsApi.md +113 -0
  30. package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
  31. package/docs/BillingV1CatalogCatalogItemResource.md +28 -0
  32. package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
  33. package/docs/BillingV1OrderOrderResource.md +36 -0
  34. package/docs/BillingV1OrderStoreRequest.md +24 -0
  35. package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
  36. package/docs/BillingV1OrderVirtualMachineOrderResource.md +22 -0
  37. package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
  38. package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
  39. package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
  40. package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
  41. package/docs/CommonSuccessEmptyResource.md +20 -0
  42. package/docs/DNSSnapshotApi.md +175 -0
  43. package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
  44. package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
  45. package/docs/DNSV1ZoneDestroyRequest.md +20 -0
  46. package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
  47. package/docs/DNSV1ZoneNameRecordResource.md +22 -0
  48. package/docs/DNSV1ZoneRecordResource.md +26 -0
  49. package/docs/DNSV1ZoneResetRequest.md +24 -0
  50. package/docs/DNSV1ZoneUpdateRequest.md +22 -0
  51. package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
  52. package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
  53. package/docs/DNSZoneApi.md +297 -0
  54. package/docs/DomainsAvailabilityApi.md +63 -0
  55. package/docs/DomainsForwardingApi.md +171 -0
  56. package/docs/DomainsPortfolioApi.md +439 -0
  57. package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
  58. package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
  59. package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
  60. package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
  61. package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
  62. package/docs/DomainsV1DomainDomainResource.md +30 -0
  63. package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
  64. package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
  65. package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
  66. package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
  67. package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
  68. package/docs/DomainsV1WHOISProfileResource.md +34 -0
  69. package/docs/DomainsV1WHOISStoreRequest.md +28 -0
  70. package/docs/DomainsWHOISApi.md +279 -0
  71. package/docs/InlineObject.md +22 -0
  72. package/docs/InlineObject1.md +22 -0
  73. package/docs/InlineObject2.md +24 -0
  74. package/docs/InlineObject2Errors.md +23 -0
  75. package/docs/VPSActionsApi.md +121 -0
  76. package/docs/VPSBackupsApi.md +121 -0
  77. package/docs/VPSDataCentersApi.md +54 -0
  78. package/docs/VPSDockerManagerApi.md +585 -0
  79. package/docs/VPSFirewallApi.md +577 -0
  80. package/docs/VPSGetActionsV1200Response.md +22 -0
  81. package/docs/VPSGetBackupsV1200Response.md +22 -0
  82. package/docs/VPSGetFirewallListV1200Response.md +22 -0
  83. package/docs/VPSGetPostInstallScriptsV1200Response.md +22 -0
  84. package/docs/VPSGetPublicKeysV1200Response.md +22 -0
  85. package/docs/VPSMalwareScannerApi.md +172 -0
  86. package/docs/VPSOSTemplatesApi.md +108 -0
  87. package/docs/VPSPTRRecordsApi.md +126 -0
  88. package/docs/VPSPostInstallScriptsApi.md +284 -0
  89. package/docs/VPSPublicKeysApi.md +230 -0
  90. package/docs/VPSRecoveryApi.md +120 -0
  91. package/docs/VPSSnapshotsApi.md +223 -0
  92. package/docs/VPSV1ActionActionResource.md +28 -0
  93. package/docs/VPSV1BackupBackupResource.md +24 -0
  94. package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
  95. package/docs/VPSV1DockerManagerContainerPortResource.md +36 -0
  96. package/docs/VPSV1DockerManagerContainerResource.md +34 -0
  97. package/docs/VPSV1DockerManagerContainerStatsResource.md +30 -0
  98. package/docs/VPSV1DockerManagerContentResource.md +20 -0
  99. package/docs/VPSV1DockerManagerLogEntryResource.md +22 -0
  100. package/docs/VPSV1DockerManagerLogsResource.md +22 -0
  101. package/docs/VPSV1DockerManagerProjectResource.md +26 -0
  102. package/docs/VPSV1FirewallFirewallResource.md +30 -0
  103. package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
  104. package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
  105. package/docs/VPSV1FirewallStoreRequest.md +20 -0
  106. package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
  107. package/docs/VPSV1MalwareMetricsResource.md +30 -0
  108. package/docs/VPSV1MetricsMetricsCollection.md +30 -0
  109. package/docs/VPSV1MetricsMetricsResource.md +22 -0
  110. package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
  111. package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
  112. package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
  113. package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
  114. package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
  115. package/docs/VPSV1SnapshotSnapshotResource.md +24 -0
  116. package/docs/VPSV1TemplateTemplateResource.md +26 -0
  117. package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +22 -0
  118. package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
  119. package/docs/VPSV1VirtualMachineMetricGetRequest.md +22 -0
  120. package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +24 -0
  121. package/docs/VPSV1VirtualMachinePTRStoreRequest.md +20 -0
  122. package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
  123. package/docs/VPSV1VirtualMachinePurchaseRequest.md +26 -0
  124. package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
  125. package/docs/VPSV1VirtualMachineRecreateRequest.md +26 -0
  126. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
  127. package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
  128. package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +23 -0
  129. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
  130. package/docs/VPSVirtualMachineApi.md +852 -0
  131. package/index.ts +1 -1
  132. package/package.json +1 -1
@@ -0,0 +1,121 @@
1
+ # VPSBackupsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getBackupsV1**](#getbackupsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/backups | Get backups|
8
+ |[**restoreBackupV1**](#restorebackupv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restore | Restore backup|
9
+
10
+ # **getBackupsV1**
11
+ > VPSGetBackupsV1200Response getBackupsV1()
12
+
13
+ Retrieve backups for a specified virtual machine. Use this endpoint to view available backup points for VPS data recovery.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ VPSBackupsApi,
20
+ Configuration
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new VPSBackupsApi(configuration);
25
+
26
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
27
+ let page: number; //Page number (optional) (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.getBackupsV1(
30
+ virtualMachineId,
31
+ page
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
40
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **VPSGetBackupsV1200Response**
46
+
47
+ ### Authorization
48
+
49
+ [apiToken](../README.md#apiToken)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | Success response | - |
61
+ |**401** | Unauthenticated response | - |
62
+ |**500** | Error response | - |
63
+
64
+ [[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)
65
+
66
+ # **restoreBackupV1**
67
+ > VPSV1ActionActionResource restoreBackupV1()
68
+
69
+ Restore a backup for a specified virtual machine. The system will then initiate the restore process, which may take some time depending on the size of the backup. **All data on the virtual machine will be overwritten with the data from the backup.** Use this endpoint to recover VPS data from backup points.
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ VPSBackupsApi,
76
+ Configuration
77
+ } from 'hostinger-api-sdk';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new VPSBackupsApi(configuration);
81
+
82
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
83
+ let backupId: number; //Backup ID (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.restoreBackupV1(
86
+ virtualMachineId,
87
+ backupId
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
96
+ | **backupId** | [**number**] | Backup ID | defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **VPSV1ActionActionResource**
102
+
103
+ ### Authorization
104
+
105
+ [apiToken](../README.md#apiToken)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
113
+ ### HTTP response details
114
+ | Status code | Description | Response headers |
115
+ |-------------|-------------|------------------|
116
+ |**200** | Success response | - |
117
+ |**401** | Unauthenticated response | - |
118
+ |**500** | Error response | - |
119
+
120
+ [[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)
121
+
@@ -0,0 +1,54 @@
1
+ # VPSDataCentersApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getDataCenterListV1**](#getdatacenterlistv1) | **GET** /api/vps/v1/data-centers | Get data center list|
8
+
9
+ # **getDataCenterListV1**
10
+ > Array<VPSV1DataCenterDataCenterResource> getDataCenterListV1()
11
+
12
+ Retrieve all available data centers. Use this endpoint to view location options before deploying VPS instances.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ VPSDataCentersApi,
19
+ Configuration
20
+ } from 'hostinger-api-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new VPSDataCentersApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getDataCenterListV1();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<VPSV1DataCenterDataCenterResource>**
35
+
36
+ ### Authorization
37
+
38
+ [apiToken](../README.md#apiToken)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Success response | - |
50
+ |**401** | Unauthenticated response | - |
51
+ |**500** | Error response | - |
52
+
53
+ [[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)
54
+