hostinger-api-sdk 0.0.10 → 0.0.11

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 (119) hide show
  1. package/README.md +2 -2
  2. package/api.ts +386 -148
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +319 -143
  7. package/dist/api.js +139 -41
  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 +319 -143
  15. package/dist/esm/api.js +136 -38
  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/index.ts +1 -1
  27. package/package.json +1 -1
  28. package/docs/BillingCatalogApi.md +0 -54
  29. package/docs/BillingOrdersApi.md +0 -63
  30. package/docs/BillingPaymentMethodsApi.md +0 -162
  31. package/docs/BillingSubscriptionsApi.md +0 -113
  32. package/docs/BillingV1CatalogCatalogItemPriceResource.md +0 -32
  33. package/docs/BillingV1CatalogCatalogItemResource.md +0 -26
  34. package/docs/BillingV1OrderOrderBillingAddressResource.md +0 -40
  35. package/docs/BillingV1OrderOrderResource.md +0 -36
  36. package/docs/BillingV1OrderStoreRequest.md +0 -24
  37. package/docs/BillingV1OrderStoreRequestItemsInner.md +0 -22
  38. package/docs/BillingV1PaymentMethodPaymentMethodResource.md +0 -36
  39. package/docs/BillingV1SubscriptionCancelRequest.md +0 -22
  40. package/docs/BillingV1SubscriptionSubscriptionResource.md +0 -42
  41. package/docs/CommonSchemaErrorResponseSchema.md +0 -22
  42. package/docs/CommonSchemaPaginationMetaSchema.md +0 -24
  43. package/docs/CommonSchemaUnauthorizedResponseSchema.md +0 -22
  44. package/docs/CommonSchemaUnprocessableContentResponseSchema.md +0 -24
  45. package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +0 -22
  46. package/docs/CommonSuccessEmptyResource.md +0 -20
  47. package/docs/DNSSnapshotApi.md +0 -175
  48. package/docs/DNSV1SnapshotSnapshotResource.md +0 -24
  49. package/docs/DNSV1SnapshotSnapshotWithContentResource.md +0 -26
  50. package/docs/DNSV1ZoneDestroyRequest.md +0 -20
  51. package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +0 -22
  52. package/docs/DNSV1ZoneNameRecordResource.md +0 -22
  53. package/docs/DNSV1ZoneRecordResource.md +0 -26
  54. package/docs/DNSV1ZoneResetRequest.md +0 -24
  55. package/docs/DNSV1ZoneUpdateRequest.md +0 -22
  56. package/docs/DNSV1ZoneUpdateRequestZoneInner.md +0 -26
  57. package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +0 -20
  58. package/docs/DNSZoneApi.md +0 -297
  59. package/docs/DomainsAvailabilityApi.md +0 -63
  60. package/docs/DomainsForwardingApi.md +0 -171
  61. package/docs/DomainsPortfolioApi.md +0 -439
  62. package/docs/DomainsV1AvailabilityAvailabilityRequest.md +0 -24
  63. package/docs/DomainsV1AvailabilityAvailabilityResource.md +0 -26
  64. package/docs/DomainsV1DomainDomainExtendedResource.md +0 -48
  65. package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +0 -27
  66. package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +0 -23
  67. package/docs/DomainsV1DomainDomainResource.md +0 -30
  68. package/docs/DomainsV1ForwardingForwardingResource.md +0 -28
  69. package/docs/DomainsV1ForwardingStoreRequest.md +0 -24
  70. package/docs/DomainsV1PortfolioPurchaseRequest.md +0 -30
  71. package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +0 -27
  72. package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +0 -26
  73. package/docs/DomainsV1WHOISProfileResource.md +0 -34
  74. package/docs/DomainsV1WHOISStoreRequest.md +0 -28
  75. package/docs/DomainsWHOISApi.md +0 -279
  76. package/docs/VPSActionsApi.md +0 -121
  77. package/docs/VPSBackupsApi.md +0 -178
  78. package/docs/VPSDataCentersApi.md +0 -54
  79. package/docs/VPSFirewallApi.md +0 -577
  80. package/docs/VPSGetActionListV1200Response.md +0 -22
  81. package/docs/VPSGetBackupListV1200Response.md +0 -22
  82. package/docs/VPSGetFirewallListV1200Response.md +0 -22
  83. package/docs/VPSGetPostInstallScriptListV1200Response.md +0 -22
  84. package/docs/VPSGetPublicKeyListV1200Response.md +0 -22
  85. package/docs/VPSMalwareScannerApi.md +0 -172
  86. package/docs/VPSOSTemplatesApi.md +0 -108
  87. package/docs/VPSPTRRecordsApi.md +0 -115
  88. package/docs/VPSPostInstallScriptsApi.md +0 -284
  89. package/docs/VPSPublicKeysApi.md +0 -230
  90. package/docs/VPSRecoveryApi.md +0 -120
  91. package/docs/VPSSnapshotsApi.md +0 -223
  92. package/docs/VPSV1ActionActionResource.md +0 -28
  93. package/docs/VPSV1BackupBackupResource.md +0 -24
  94. package/docs/VPSV1DataCenterDataCenterResource.md +0 -28
  95. package/docs/VPSV1FirewallFirewallResource.md +0 -30
  96. package/docs/VPSV1FirewallFirewallRuleResource.md +0 -30
  97. package/docs/VPSV1FirewallRulesStoreRequest.md +0 -26
  98. package/docs/VPSV1FirewallStoreRequest.md +0 -20
  99. package/docs/VPSV1IPAddressIPAddressResource.md +0 -24
  100. package/docs/VPSV1MalwareMetricsResource.md +0 -30
  101. package/docs/VPSV1MetricsMetricsCollection.md +0 -30
  102. package/docs/VPSV1MetricsMetricsResource.md +0 -22
  103. package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +0 -28
  104. package/docs/VPSV1PostInstallScriptStoreRequest.md +0 -22
  105. package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
  106. package/docs/VPSV1PublicKeyPublicKeyResource.md +0 -24
  107. package/docs/VPSV1PublicKeyStoreRequest.md +0 -22
  108. package/docs/VPSV1SnapshotSnapshotResource.md +0 -24
  109. package/docs/VPSV1TemplateTemplateResource.md +0 -26
  110. package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +0 -20
  111. package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +0 -22
  112. package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +0 -20
  113. package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +0 -20
  114. package/docs/VPSV1VirtualMachineRecreateRequest.md +0 -24
  115. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +0 -20
  116. package/docs/VPSV1VirtualMachineSetupRequest.md +0 -38
  117. package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +0 -22
  118. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +0 -52
  119. package/docs/VPSVirtualMachineApi.md +0 -796
@@ -1,178 +0,0 @@
1
- # VPSBackupsApi
2
-
3
- All URIs are relative to *https://developers.hostinger.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**deleteBackupV1**](#deletebackupv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId} | Delete backup|
8
- |[**getBackupListV1**](#getbackuplistv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/backups | Get backup list|
9
- |[**restoreBackupV1**](#restorebackupv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restore | Restore backup|
10
-
11
- # **deleteBackupV1**
12
- > CommonSuccessEmptyResource deleteBackupV1()
13
-
14
- This endpoint deletes a specified backup for a virtual machine.
15
-
16
- ### Example
17
-
18
- ```typescript
19
- import {
20
- VPSBackupsApi,
21
- Configuration
22
- } from 'hostinger-api-sdk';
23
-
24
- const configuration = new Configuration();
25
- const apiInstance = new VPSBackupsApi(configuration);
26
-
27
- let virtualMachineId: number; //Virtual Machine ID (default to undefined)
28
- let backupId: number; //Backup ID (default to undefined)
29
-
30
- const { status, data } = await apiInstance.deleteBackupV1(
31
- virtualMachineId,
32
- backupId
33
- );
34
- ```
35
-
36
- ### Parameters
37
-
38
- |Name | Type | Description | Notes|
39
- |------------- | ------------- | ------------- | -------------|
40
- | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
41
- | **backupId** | [**number**] | Backup ID | defaults to undefined|
42
-
43
-
44
- ### Return type
45
-
46
- **CommonSuccessEmptyResource**
47
-
48
- ### Authorization
49
-
50
- [apiToken](../README.md#apiToken)
51
-
52
- ### HTTP request headers
53
-
54
- - **Content-Type**: Not defined
55
- - **Accept**: application/json
56
-
57
-
58
- ### HTTP response details
59
- | Status code | Description | Response headers |
60
- |-------------|-------------|------------------|
61
- |**200** | Success empty response | - |
62
- |**401** | Unauthenticated | - |
63
- |**500** | Error response | - |
64
-
65
- [[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)
66
-
67
- # **getBackupListV1**
68
- > VPSGetBackupListV1200Response getBackupListV1()
69
-
70
- This endpoint retrieves a list of backups for a specified virtual machine.
71
-
72
- ### Example
73
-
74
- ```typescript
75
- import {
76
- VPSBackupsApi,
77
- Configuration
78
- } from 'hostinger-api-sdk';
79
-
80
- const configuration = new Configuration();
81
- const apiInstance = new VPSBackupsApi(configuration);
82
-
83
- let virtualMachineId: number; //Virtual Machine ID (default to undefined)
84
- let page: number; //Page number (optional) (default to undefined)
85
-
86
- const { status, data } = await apiInstance.getBackupListV1(
87
- virtualMachineId,
88
- page
89
- );
90
- ```
91
-
92
- ### Parameters
93
-
94
- |Name | Type | Description | Notes|
95
- |------------- | ------------- | ------------- | -------------|
96
- | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
97
- | **page** | [**number**] | Page number | (optional) defaults to undefined|
98
-
99
-
100
- ### Return type
101
-
102
- **VPSGetBackupListV1200Response**
103
-
104
- ### Authorization
105
-
106
- [apiToken](../README.md#apiToken)
107
-
108
- ### HTTP request headers
109
-
110
- - **Content-Type**: Not defined
111
- - **Accept**: application/json
112
-
113
-
114
- ### HTTP response details
115
- | Status code | Description | Response headers |
116
- |-------------|-------------|------------------|
117
- |**200** | Success response | - |
118
- |**401** | Unauthenticated | - |
119
- |**500** | Error response | - |
120
-
121
- [[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)
122
-
123
- # **restoreBackupV1**
124
- > VPSV1ActionActionResource restoreBackupV1()
125
-
126
- This endpoint restores 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.**
127
-
128
- ### Example
129
-
130
- ```typescript
131
- import {
132
- VPSBackupsApi,
133
- Configuration
134
- } from 'hostinger-api-sdk';
135
-
136
- const configuration = new Configuration();
137
- const apiInstance = new VPSBackupsApi(configuration);
138
-
139
- let virtualMachineId: number; //Virtual Machine ID (default to undefined)
140
- let backupId: number; //Backup ID (default to undefined)
141
-
142
- const { status, data } = await apiInstance.restoreBackupV1(
143
- virtualMachineId,
144
- backupId
145
- );
146
- ```
147
-
148
- ### Parameters
149
-
150
- |Name | Type | Description | Notes|
151
- |------------- | ------------- | ------------- | -------------|
152
- | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
153
- | **backupId** | [**number**] | Backup ID | defaults to undefined|
154
-
155
-
156
- ### Return type
157
-
158
- **VPSV1ActionActionResource**
159
-
160
- ### Authorization
161
-
162
- [apiToken](../README.md#apiToken)
163
-
164
- ### HTTP request headers
165
-
166
- - **Content-Type**: Not defined
167
- - **Accept**: application/json
168
-
169
-
170
- ### HTTP response details
171
- | Status code | Description | Response headers |
172
- |-------------|-------------|------------------|
173
- |**200** | Success response | - |
174
- |**401** | Unauthenticated | - |
175
- |**500** | Error response | - |
176
-
177
- [[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)
178
-
@@ -1,54 +0,0 @@
1
- # VPSDataCentersApi
2
-
3
- All URIs are relative to *https://developers.hostinger.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getDataCentersListV1**](#getdatacenterslistv1) | **GET** /api/vps/v1/data-centers | Get data centers list|
8
-
9
- # **getDataCentersListV1**
10
- > Array<VPSV1DataCenterDataCenterResource> getDataCentersListV1()
11
-
12
- This endpoint retrieves a list of all data centers available.
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.getDataCentersListV1();
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 | - |
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
-