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.
- package/README.md +2 -2
- package/api.ts +386 -148
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +319 -143
- package/dist/api.js +139 -41
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +319 -143
- package/dist/esm/api.js +136 -38
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingCatalogApi.md +0 -54
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingPaymentMethodsApi.md +0 -162
- package/docs/BillingSubscriptionsApi.md +0 -113
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +0 -32
- package/docs/BillingV1CatalogCatalogItemResource.md +0 -26
- package/docs/BillingV1OrderOrderBillingAddressResource.md +0 -40
- package/docs/BillingV1OrderOrderResource.md +0 -36
- package/docs/BillingV1OrderStoreRequest.md +0 -24
- package/docs/BillingV1OrderStoreRequestItemsInner.md +0 -22
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +0 -36
- package/docs/BillingV1SubscriptionCancelRequest.md +0 -22
- package/docs/BillingV1SubscriptionSubscriptionResource.md +0 -42
- package/docs/CommonSchemaErrorResponseSchema.md +0 -22
- package/docs/CommonSchemaPaginationMetaSchema.md +0 -24
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +0 -22
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +0 -24
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +0 -22
- package/docs/CommonSuccessEmptyResource.md +0 -20
- package/docs/DNSSnapshotApi.md +0 -175
- package/docs/DNSV1SnapshotSnapshotResource.md +0 -24
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +0 -26
- package/docs/DNSV1ZoneDestroyRequest.md +0 -20
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +0 -22
- package/docs/DNSV1ZoneNameRecordResource.md +0 -22
- package/docs/DNSV1ZoneRecordResource.md +0 -26
- package/docs/DNSV1ZoneResetRequest.md +0 -24
- package/docs/DNSV1ZoneUpdateRequest.md +0 -22
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +0 -26
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +0 -20
- package/docs/DNSZoneApi.md +0 -297
- package/docs/DomainsAvailabilityApi.md +0 -63
- package/docs/DomainsForwardingApi.md +0 -171
- package/docs/DomainsPortfolioApi.md +0 -439
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +0 -24
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +0 -26
- package/docs/DomainsV1DomainDomainExtendedResource.md +0 -48
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +0 -27
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +0 -23
- package/docs/DomainsV1DomainDomainResource.md +0 -30
- package/docs/DomainsV1ForwardingForwardingResource.md +0 -28
- package/docs/DomainsV1ForwardingStoreRequest.md +0 -24
- package/docs/DomainsV1PortfolioPurchaseRequest.md +0 -30
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +0 -27
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +0 -26
- package/docs/DomainsV1WHOISProfileResource.md +0 -34
- package/docs/DomainsV1WHOISStoreRequest.md +0 -28
- package/docs/DomainsWHOISApi.md +0 -279
- package/docs/VPSActionsApi.md +0 -121
- package/docs/VPSBackupsApi.md +0 -178
- package/docs/VPSDataCentersApi.md +0 -54
- package/docs/VPSFirewallApi.md +0 -577
- package/docs/VPSGetActionListV1200Response.md +0 -22
- package/docs/VPSGetBackupListV1200Response.md +0 -22
- package/docs/VPSGetFirewallListV1200Response.md +0 -22
- package/docs/VPSGetPostInstallScriptListV1200Response.md +0 -22
- package/docs/VPSGetPublicKeyListV1200Response.md +0 -22
- package/docs/VPSMalwareScannerApi.md +0 -172
- package/docs/VPSOSTemplatesApi.md +0 -108
- package/docs/VPSPTRRecordsApi.md +0 -115
- package/docs/VPSPostInstallScriptsApi.md +0 -284
- package/docs/VPSPublicKeysApi.md +0 -230
- package/docs/VPSRecoveryApi.md +0 -120
- package/docs/VPSSnapshotsApi.md +0 -223
- package/docs/VPSV1ActionActionResource.md +0 -28
- package/docs/VPSV1BackupBackupResource.md +0 -24
- package/docs/VPSV1DataCenterDataCenterResource.md +0 -28
- package/docs/VPSV1FirewallFirewallResource.md +0 -30
- package/docs/VPSV1FirewallFirewallRuleResource.md +0 -30
- package/docs/VPSV1FirewallRulesStoreRequest.md +0 -26
- package/docs/VPSV1FirewallStoreRequest.md +0 -20
- package/docs/VPSV1IPAddressIPAddressResource.md +0 -24
- package/docs/VPSV1MalwareMetricsResource.md +0 -30
- package/docs/VPSV1MetricsMetricsCollection.md +0 -30
- package/docs/VPSV1MetricsMetricsResource.md +0 -22
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +0 -28
- package/docs/VPSV1PostInstallScriptStoreRequest.md +0 -22
- package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
- package/docs/VPSV1PublicKeyPublicKeyResource.md +0 -24
- package/docs/VPSV1PublicKeyStoreRequest.md +0 -22
- package/docs/VPSV1SnapshotSnapshotResource.md +0 -24
- package/docs/VPSV1TemplateTemplateResource.md +0 -26
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +0 -22
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecreateRequest.md +0 -24
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineSetupRequest.md +0 -38
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +0 -22
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +0 -52
- package/docs/VPSVirtualMachineApi.md +0 -796
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.68
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -202,10 +202,12 @@ export const BillingCatalogApiAxiosParamCreator = function (configuration) {
|
|
|
202
202
|
/**
|
|
203
203
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
204
204
|
* @summary Get catalog item list
|
|
205
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
206
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
205
207
|
* @param {*} [options] Override http request option.
|
|
206
208
|
* @throws {RequiredError}
|
|
207
209
|
*/
|
|
208
|
-
getCatalogItemListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
210
|
+
getCatalogItemListV1: (category_1, name_1, ...args_1) => __awaiter(this, [category_1, name_1, ...args_1], void 0, function* (category, name, options = {}) {
|
|
209
211
|
const localVarPath = `/api/billing/v1/catalog`;
|
|
210
212
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
213
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -219,6 +221,12 @@ export const BillingCatalogApiAxiosParamCreator = function (configuration) {
|
|
|
219
221
|
// authentication apiToken required
|
|
220
222
|
// http bearer authentication required
|
|
221
223
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
224
|
+
if (category !== undefined) {
|
|
225
|
+
localVarQueryParameter['category'] = category;
|
|
226
|
+
}
|
|
227
|
+
if (name !== undefined) {
|
|
228
|
+
localVarQueryParameter['name'] = name;
|
|
229
|
+
}
|
|
222
230
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
223
231
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
224
232
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -239,13 +247,15 @@ export const BillingCatalogApiFp = function (configuration) {
|
|
|
239
247
|
/**
|
|
240
248
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
241
249
|
* @summary Get catalog item list
|
|
250
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
251
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
242
252
|
* @param {*} [options] Override http request option.
|
|
243
253
|
* @throws {RequiredError}
|
|
244
254
|
*/
|
|
245
|
-
getCatalogItemListV1(options) {
|
|
255
|
+
getCatalogItemListV1(category, name, options) {
|
|
246
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
247
257
|
var _a, _b;
|
|
248
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCatalogItemListV1(options);
|
|
258
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCatalogItemListV1(category, name, options);
|
|
249
259
|
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingCatalogApi.getCatalogItemListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
250
260
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
251
261
|
});
|
|
@@ -262,11 +272,13 @@ export const BillingCatalogApiFactory = function (configuration, basePath, axios
|
|
|
262
272
|
/**
|
|
263
273
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
264
274
|
* @summary Get catalog item list
|
|
275
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
276
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
265
277
|
* @param {*} [options] Override http request option.
|
|
266
278
|
* @throws {RequiredError}
|
|
267
279
|
*/
|
|
268
|
-
getCatalogItemListV1(options) {
|
|
269
|
-
return localVarFp.getCatalogItemListV1(options).then((request) => request(axios, basePath));
|
|
280
|
+
getCatalogItemListV1(category, name, options) {
|
|
281
|
+
return localVarFp.getCatalogItemListV1(category, name, options).then((request) => request(axios, basePath));
|
|
270
282
|
},
|
|
271
283
|
};
|
|
272
284
|
};
|
|
@@ -280,14 +292,23 @@ export class BillingCatalogApi extends BaseAPI {
|
|
|
280
292
|
/**
|
|
281
293
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
282
294
|
* @summary Get catalog item list
|
|
295
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
296
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
283
297
|
* @param {*} [options] Override http request option.
|
|
284
298
|
* @throws {RequiredError}
|
|
285
299
|
* @memberof BillingCatalogApi
|
|
286
300
|
*/
|
|
287
|
-
getCatalogItemListV1(options) {
|
|
288
|
-
return BillingCatalogApiFp(this.configuration).getCatalogItemListV1(options).then((request) => request(this.axios, this.basePath));
|
|
301
|
+
getCatalogItemListV1(category, name, options) {
|
|
302
|
+
return BillingCatalogApiFp(this.configuration).getCatalogItemListV1(category, name, options).then((request) => request(this.axios, this.basePath));
|
|
289
303
|
}
|
|
290
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* @export
|
|
307
|
+
*/
|
|
308
|
+
export const GetCatalogItemListV1CategoryEnum = {
|
|
309
|
+
Domain: 'DOMAIN',
|
|
310
|
+
Vps: 'VPS'
|
|
311
|
+
};
|
|
291
312
|
/**
|
|
292
313
|
* BillingOrdersApi - axios parameter creator
|
|
293
314
|
* @export
|
|
@@ -295,10 +316,11 @@ export class BillingCatalogApi extends BaseAPI {
|
|
|
295
316
|
export const BillingOrdersApiAxiosParamCreator = function (configuration) {
|
|
296
317
|
return {
|
|
297
318
|
/**
|
|
298
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
319
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
299
320
|
* @summary Create new service order
|
|
300
321
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
301
322
|
* @param {*} [options] Override http request option.
|
|
323
|
+
* @deprecated
|
|
302
324
|
* @throws {RequiredError}
|
|
303
325
|
*/
|
|
304
326
|
createNewServiceOrderV1: (billingV1OrderStoreRequest_1, ...args_1) => __awaiter(this, [billingV1OrderStoreRequest_1, ...args_1], void 0, function* (billingV1OrderStoreRequest, options = {}) {
|
|
@@ -337,10 +359,11 @@ export const BillingOrdersApiFp = function (configuration) {
|
|
|
337
359
|
const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration);
|
|
338
360
|
return {
|
|
339
361
|
/**
|
|
340
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
362
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
341
363
|
* @summary Create new service order
|
|
342
364
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
343
365
|
* @param {*} [options] Override http request option.
|
|
366
|
+
* @deprecated
|
|
344
367
|
* @throws {RequiredError}
|
|
345
368
|
*/
|
|
346
369
|
createNewServiceOrderV1(billingV1OrderStoreRequest, options) {
|
|
@@ -361,10 +384,11 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
|
|
|
361
384
|
const localVarFp = BillingOrdersApiFp(configuration);
|
|
362
385
|
return {
|
|
363
386
|
/**
|
|
364
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
387
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
365
388
|
* @summary Create new service order
|
|
366
389
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
367
390
|
* @param {*} [options] Override http request option.
|
|
391
|
+
* @deprecated
|
|
368
392
|
* @throws {RequiredError}
|
|
369
393
|
*/
|
|
370
394
|
createNewServiceOrderV1(billingV1OrderStoreRequest, options) {
|
|
@@ -380,10 +404,11 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
|
|
|
380
404
|
*/
|
|
381
405
|
export class BillingOrdersApi extends BaseAPI {
|
|
382
406
|
/**
|
|
383
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
407
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
384
408
|
* @summary Create new service order
|
|
385
409
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
386
410
|
* @param {*} [options] Override http request option.
|
|
411
|
+
* @deprecated
|
|
387
412
|
* @throws {RequiredError}
|
|
388
413
|
* @memberof BillingOrdersApi
|
|
389
414
|
*/
|
|
@@ -1458,7 +1483,7 @@ export class DNSZoneApi extends BaseAPI {
|
|
|
1458
1483
|
export const DomainsAvailabilityApiAxiosParamCreator = function (configuration) {
|
|
1459
1484
|
return {
|
|
1460
1485
|
/**
|
|
1461
|
-
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
1486
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
1462
1487
|
* @summary Check domain availability
|
|
1463
1488
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1464
1489
|
* @param {*} [options] Override http request option.
|
|
@@ -1500,7 +1525,7 @@ export const DomainsAvailabilityApiFp = function (configuration) {
|
|
|
1500
1525
|
const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration);
|
|
1501
1526
|
return {
|
|
1502
1527
|
/**
|
|
1503
|
-
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
1528
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
1504
1529
|
* @summary Check domain availability
|
|
1505
1530
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1506
1531
|
* @param {*} [options] Override http request option.
|
|
@@ -1524,7 +1549,7 @@ export const DomainsAvailabilityApiFactory = function (configuration, basePath,
|
|
|
1524
1549
|
const localVarFp = DomainsAvailabilityApiFp(configuration);
|
|
1525
1550
|
return {
|
|
1526
1551
|
/**
|
|
1527
|
-
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
1552
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
1528
1553
|
* @summary Check domain availability
|
|
1529
1554
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1530
1555
|
* @param {*} [options] Override http request option.
|
|
@@ -1543,7 +1568,7 @@ export const DomainsAvailabilityApiFactory = function (configuration, basePath,
|
|
|
1543
1568
|
*/
|
|
1544
1569
|
export class DomainsAvailabilityApi extends BaseAPI {
|
|
1545
1570
|
/**
|
|
1546
|
-
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
1571
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
1547
1572
|
* @summary Check domain availability
|
|
1548
1573
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
1549
1574
|
* @param {*} [options] Override http request option.
|
|
@@ -1988,7 +2013,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
1988
2013
|
};
|
|
1989
2014
|
}),
|
|
1990
2015
|
/**
|
|
1991
|
-
* This endpoint
|
|
2016
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
1992
2017
|
* @summary Purchase new domain
|
|
1993
2018
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
1994
2019
|
* @param {*} [options] Override http request option.
|
|
@@ -2156,7 +2181,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
2156
2181
|
});
|
|
2157
2182
|
},
|
|
2158
2183
|
/**
|
|
2159
|
-
* This endpoint
|
|
2184
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
2160
2185
|
* @summary Purchase new domain
|
|
2161
2186
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2162
2187
|
* @param {*} [options] Override http request option.
|
|
@@ -2255,7 +2280,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
2255
2280
|
return localVarFp.getDomainV1(domain, options).then((request) => request(axios, basePath));
|
|
2256
2281
|
},
|
|
2257
2282
|
/**
|
|
2258
|
-
* This endpoint
|
|
2283
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
2259
2284
|
* @summary Purchase new domain
|
|
2260
2285
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2261
2286
|
* @param {*} [options] Override http request option.
|
|
@@ -2350,7 +2375,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
2350
2375
|
return DomainsPortfolioApiFp(this.configuration).getDomainV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
2351
2376
|
}
|
|
2352
2377
|
/**
|
|
2353
|
-
* This endpoint
|
|
2378
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
2354
2379
|
* @summary Purchase new domain
|
|
2355
2380
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2356
2381
|
* @param {*} [options] Override http request option.
|
|
@@ -2447,7 +2472,7 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
|
|
|
2447
2472
|
/**
|
|
2448
2473
|
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2449
2474
|
* @summary Get WHOIS profile list
|
|
2450
|
-
* @param {string} [tld] Filter by TLD (without
|
|
2475
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
2451
2476
|
* @param {*} [options] Override http request option.
|
|
2452
2477
|
* @throws {RequiredError}
|
|
2453
2478
|
*/
|
|
@@ -2582,7 +2607,7 @@ export const DomainsWHOISApiFp = function (configuration) {
|
|
|
2582
2607
|
/**
|
|
2583
2608
|
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2584
2609
|
* @summary Get WHOIS profile list
|
|
2585
|
-
* @param {string} [tld] Filter by TLD (without
|
|
2610
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
2586
2611
|
* @param {*} [options] Override http request option.
|
|
2587
2612
|
* @throws {RequiredError}
|
|
2588
2613
|
*/
|
|
@@ -2656,7 +2681,7 @@ export const DomainsWHOISApiFactory = function (configuration, basePath, axios)
|
|
|
2656
2681
|
/**
|
|
2657
2682
|
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2658
2683
|
* @summary Get WHOIS profile list
|
|
2659
|
-
* @param {string} [tld] Filter by TLD (without
|
|
2684
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
2660
2685
|
* @param {*} [options] Override http request option.
|
|
2661
2686
|
* @throws {RequiredError}
|
|
2662
2687
|
*/
|
|
@@ -2717,7 +2742,7 @@ export class DomainsWHOISApi extends BaseAPI {
|
|
|
2717
2742
|
/**
|
|
2718
2743
|
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
2719
2744
|
* @summary Get WHOIS profile list
|
|
2720
|
-
* @param {string} [tld] Filter by TLD (without
|
|
2745
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
2721
2746
|
* @param {*} [options] Override http request option.
|
|
2722
2747
|
* @throws {RequiredError}
|
|
2723
2748
|
* @memberof DomainsWHOISApi
|
|
@@ -5851,8 +5876,8 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
5851
5876
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
5852
5877
|
* @summary Get metrics
|
|
5853
5878
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5854
|
-
* @param {string} dateFrom
|
|
5855
|
-
* @param {string} dateTo
|
|
5879
|
+
* @param {string} dateFrom
|
|
5880
|
+
* @param {string} dateTo
|
|
5856
5881
|
* @param {*} [options] Override http request option.
|
|
5857
5882
|
* @throws {RequiredError}
|
|
5858
5883
|
*/
|
|
@@ -5878,10 +5903,14 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
5878
5903
|
// http bearer authentication required
|
|
5879
5904
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5880
5905
|
if (dateFrom !== undefined) {
|
|
5881
|
-
localVarQueryParameter['date_from'] = dateFrom
|
|
5906
|
+
localVarQueryParameter['date_from'] = (dateFrom instanceof Date) ?
|
|
5907
|
+
dateFrom.toISOString() :
|
|
5908
|
+
dateFrom;
|
|
5882
5909
|
}
|
|
5883
5910
|
if (dateTo !== undefined) {
|
|
5884
|
-
localVarQueryParameter['date_to'] = dateTo
|
|
5911
|
+
localVarQueryParameter['date_to'] = (dateTo instanceof Date) ?
|
|
5912
|
+
dateTo.toISOString() :
|
|
5913
|
+
dateTo;
|
|
5885
5914
|
}
|
|
5886
5915
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5887
5916
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -5951,6 +5980,39 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
5951
5980
|
options: localVarRequestOptions,
|
|
5952
5981
|
};
|
|
5953
5982
|
}),
|
|
5983
|
+
/**
|
|
5984
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
5985
|
+
* @summary Purchase new virtual machine
|
|
5986
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
5987
|
+
* @param {*} [options] Override http request option.
|
|
5988
|
+
* @throws {RequiredError}
|
|
5989
|
+
*/
|
|
5990
|
+
purchaseNewVirtualMachineV1: (vPSV1VirtualMachinePurchaseRequest_1, ...args_1) => __awaiter(this, [vPSV1VirtualMachinePurchaseRequest_1, ...args_1], void 0, function* (vPSV1VirtualMachinePurchaseRequest, options = {}) {
|
|
5991
|
+
// verify required parameter 'vPSV1VirtualMachinePurchaseRequest' is not null or undefined
|
|
5992
|
+
assertParamExists('purchaseNewVirtualMachineV1', 'vPSV1VirtualMachinePurchaseRequest', vPSV1VirtualMachinePurchaseRequest);
|
|
5993
|
+
const localVarPath = `/api/vps/v1/virtual-machines`;
|
|
5994
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5995
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5996
|
+
let baseOptions;
|
|
5997
|
+
if (configuration) {
|
|
5998
|
+
baseOptions = configuration.baseOptions;
|
|
5999
|
+
}
|
|
6000
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6001
|
+
const localVarHeaderParameter = {};
|
|
6002
|
+
const localVarQueryParameter = {};
|
|
6003
|
+
// authentication apiToken required
|
|
6004
|
+
// http bearer authentication required
|
|
6005
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6006
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6007
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6008
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6009
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6010
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1VirtualMachinePurchaseRequest, localVarRequestOptions, configuration);
|
|
6011
|
+
return {
|
|
6012
|
+
url: toPathString(localVarUrlObj),
|
|
6013
|
+
options: localVarRequestOptions,
|
|
6014
|
+
};
|
|
6015
|
+
}),
|
|
5954
6016
|
/**
|
|
5955
6017
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
5956
6018
|
* @summary Recreate virtual machine
|
|
@@ -6201,7 +6263,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
6201
6263
|
};
|
|
6202
6264
|
}),
|
|
6203
6265
|
/**
|
|
6204
|
-
* This endpoint will setup newly purchased virtual machine
|
|
6266
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
6205
6267
|
* @summary Setup new virtual machine
|
|
6206
6268
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6207
6269
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -6330,8 +6392,8 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
6330
6392
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
6331
6393
|
* @summary Get metrics
|
|
6332
6394
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6333
|
-
* @param {string} dateFrom
|
|
6334
|
-
* @param {string} dateTo
|
|
6395
|
+
* @param {string} dateFrom
|
|
6396
|
+
* @param {string} dateTo
|
|
6335
6397
|
* @param {*} [options] Override http request option.
|
|
6336
6398
|
* @throws {RequiredError}
|
|
6337
6399
|
*/
|
|
@@ -6372,6 +6434,21 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
6372
6434
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6373
6435
|
});
|
|
6374
6436
|
},
|
|
6437
|
+
/**
|
|
6438
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
6439
|
+
* @summary Purchase new virtual machine
|
|
6440
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
6441
|
+
* @param {*} [options] Override http request option.
|
|
6442
|
+
* @throws {RequiredError}
|
|
6443
|
+
*/
|
|
6444
|
+
purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options) {
|
|
6445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6446
|
+
var _a, _b;
|
|
6447
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options);
|
|
6448
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSVirtualMachineApi.purchaseNewVirtualMachineV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6449
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6450
|
+
});
|
|
6451
|
+
},
|
|
6375
6452
|
/**
|
|
6376
6453
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
6377
6454
|
* @summary Recreate virtual machine
|
|
@@ -6483,7 +6560,7 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
6483
6560
|
});
|
|
6484
6561
|
},
|
|
6485
6562
|
/**
|
|
6486
|
-
* This endpoint will setup newly purchased virtual machine
|
|
6563
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
6487
6564
|
* @summary Setup new virtual machine
|
|
6488
6565
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6489
6566
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -6552,8 +6629,8 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
6552
6629
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
6553
6630
|
* @summary Get metrics
|
|
6554
6631
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6555
|
-
* @param {string} dateFrom
|
|
6556
|
-
* @param {string} dateTo
|
|
6632
|
+
* @param {string} dateFrom
|
|
6633
|
+
* @param {string} dateTo
|
|
6557
6634
|
* @param {*} [options] Override http request option.
|
|
6558
6635
|
* @throws {RequiredError}
|
|
6559
6636
|
*/
|
|
@@ -6579,6 +6656,16 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
6579
6656
|
getVirtualMachineV1(virtualMachineId, options) {
|
|
6580
6657
|
return localVarFp.getVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
6581
6658
|
},
|
|
6659
|
+
/**
|
|
6660
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
6661
|
+
* @summary Purchase new virtual machine
|
|
6662
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
6663
|
+
* @param {*} [options] Override http request option.
|
|
6664
|
+
* @throws {RequiredError}
|
|
6665
|
+
*/
|
|
6666
|
+
purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options) {
|
|
6667
|
+
return localVarFp.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(axios, basePath));
|
|
6668
|
+
},
|
|
6582
6669
|
/**
|
|
6583
6670
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
6584
6671
|
* @summary Recreate virtual machine
|
|
@@ -6655,7 +6742,7 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
6655
6742
|
return localVarFp.setRootPasswordV1(virtualMachineId, vPSV1VirtualMachineRootPasswordUpdateRequest, options).then((request) => request(axios, basePath));
|
|
6656
6743
|
},
|
|
6657
6744
|
/**
|
|
6658
|
-
* This endpoint will setup newly purchased virtual machine
|
|
6745
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
6659
6746
|
* @summary Setup new virtual machine
|
|
6660
6747
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6661
6748
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -6710,8 +6797,8 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
6710
6797
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
6711
6798
|
* @summary Get metrics
|
|
6712
6799
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6713
|
-
* @param {string} dateFrom
|
|
6714
|
-
* @param {string} dateTo
|
|
6800
|
+
* @param {string} dateFrom
|
|
6801
|
+
* @param {string} dateTo
|
|
6715
6802
|
* @param {*} [options] Override http request option.
|
|
6716
6803
|
* @throws {RequiredError}
|
|
6717
6804
|
* @memberof VPSVirtualMachineApi
|
|
@@ -6740,6 +6827,17 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
6740
6827
|
getVirtualMachineV1(virtualMachineId, options) {
|
|
6741
6828
|
return VPSVirtualMachineApiFp(this.configuration).getVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
6742
6829
|
}
|
|
6830
|
+
/**
|
|
6831
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
6832
|
+
* @summary Purchase new virtual machine
|
|
6833
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
6834
|
+
* @param {*} [options] Override http request option.
|
|
6835
|
+
* @throws {RequiredError}
|
|
6836
|
+
* @memberof VPSVirtualMachineApi
|
|
6837
|
+
*/
|
|
6838
|
+
purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options) {
|
|
6839
|
+
return VPSVirtualMachineApiFp(this.configuration).purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6840
|
+
}
|
|
6743
6841
|
/**
|
|
6744
6842
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
6745
6843
|
* @summary Recreate virtual machine
|
|
@@ -6823,7 +6921,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
6823
6921
|
return VPSVirtualMachineApiFp(this.configuration).setRootPasswordV1(virtualMachineId, vPSV1VirtualMachineRootPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6824
6922
|
}
|
|
6825
6923
|
/**
|
|
6826
|
-
* This endpoint will setup newly purchased virtual machine
|
|
6924
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
6827
6925
|
* @summary Setup new virtual machine
|
|
6828
6926
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6829
6927
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.68
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.68
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.68
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.68
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.68
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.68
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.11" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.68
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.68
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.68
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.0.
|
|
7
|
+
* API Version: 0.0.68
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.68
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|