hostinger-api-sdk 3.4.1 → 3.4.2
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 +1 -183
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1 -96
- package/dist/api.js +1 -160
- 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 +1 -96
- package/dist/esm/api.js +1 -160
- 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/docs/VPSPublicKeysApi.md +0 -59
- package/docs/VPSVirtualMachineApi.md +0 -57
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.4.
|
|
7
|
+
* API Version: 3.4.2
|
|
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
|
|
@@ -34169,44 +34169,6 @@ exports.VPSPostInstallScriptsApi = VPSPostInstallScriptsApi;
|
|
|
34169
34169
|
*/
|
|
34170
34170
|
const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
34171
34171
|
return {
|
|
34172
|
-
/**
|
|
34173
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
34174
|
-
* @summary Attach public key
|
|
34175
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
34176
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
34177
|
-
* @param {*} [options] Override http request option.
|
|
34178
|
-
* @deprecated
|
|
34179
|
-
* @throws {RequiredError}
|
|
34180
|
-
*/
|
|
34181
|
-
attachPublicKeyV1: (virtualMachineId_1, vPSV1PublicKeyAttachRequest_1, ...args_1) => __awaiter(this, [virtualMachineId_1, vPSV1PublicKeyAttachRequest_1, ...args_1], void 0, function* (virtualMachineId, vPSV1PublicKeyAttachRequest, options = {}) {
|
|
34182
|
-
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
34183
|
-
(0, common_1.assertParamExists)('attachPublicKeyV1', 'virtualMachineId', virtualMachineId);
|
|
34184
|
-
// verify required parameter 'vPSV1PublicKeyAttachRequest' is not null or undefined
|
|
34185
|
-
(0, common_1.assertParamExists)('attachPublicKeyV1', 'vPSV1PublicKeyAttachRequest', vPSV1PublicKeyAttachRequest);
|
|
34186
|
-
const localVarPath = `/api/vps/v1/public-keys/attach/{virtualMachineId}`
|
|
34187
|
-
.replace(`{${"virtualMachineId"}}`, (0, common_1.encodePathParam)('virtualMachineId', virtualMachineId));
|
|
34188
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34189
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
34190
|
-
let baseOptions;
|
|
34191
|
-
if (configuration) {
|
|
34192
|
-
baseOptions = configuration.baseOptions;
|
|
34193
|
-
}
|
|
34194
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
34195
|
-
const localVarHeaderParameter = {};
|
|
34196
|
-
const localVarQueryParameter = {};
|
|
34197
|
-
// authentication apiToken required
|
|
34198
|
-
// http bearer authentication required
|
|
34199
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
34200
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34201
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
34202
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34203
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34204
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(vPSV1PublicKeyAttachRequest, localVarRequestOptions, configuration);
|
|
34205
|
-
return {
|
|
34206
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
34207
|
-
options: localVarRequestOptions,
|
|
34208
|
-
};
|
|
34209
|
-
}),
|
|
34210
34172
|
/**
|
|
34211
34173
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
34212
34174
|
* @summary Create public key
|
|
@@ -34317,23 +34279,6 @@ exports.VPSPublicKeysApiAxiosParamCreator = VPSPublicKeysApiAxiosParamCreator;
|
|
|
34317
34279
|
const VPSPublicKeysApiFp = function (configuration) {
|
|
34318
34280
|
const localVarAxiosParamCreator = (0, exports.VPSPublicKeysApiAxiosParamCreator)(configuration);
|
|
34319
34281
|
return {
|
|
34320
|
-
/**
|
|
34321
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
34322
|
-
* @summary Attach public key
|
|
34323
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
34324
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
34325
|
-
* @param {*} [options] Override http request option.
|
|
34326
|
-
* @deprecated
|
|
34327
|
-
* @throws {RequiredError}
|
|
34328
|
-
*/
|
|
34329
|
-
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
34330
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34331
|
-
var _a, _b;
|
|
34332
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options);
|
|
34333
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['VPSPublicKeysApi.attachPublicKeyV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
34334
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34335
|
-
});
|
|
34336
|
-
},
|
|
34337
34282
|
/**
|
|
34338
34283
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
34339
34284
|
* @summary Create public key
|
|
@@ -34392,18 +34337,6 @@ exports.VPSPublicKeysApiFp = VPSPublicKeysApiFp;
|
|
|
34392
34337
|
const VPSPublicKeysApiFactory = function (configuration, basePath, axios) {
|
|
34393
34338
|
const localVarFp = (0, exports.VPSPublicKeysApiFp)(configuration);
|
|
34394
34339
|
return {
|
|
34395
|
-
/**
|
|
34396
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
34397
|
-
* @summary Attach public key
|
|
34398
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
34399
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
34400
|
-
* @param {*} [options] Override http request option.
|
|
34401
|
-
* @deprecated
|
|
34402
|
-
* @throws {RequiredError}
|
|
34403
|
-
*/
|
|
34404
|
-
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
34405
|
-
return localVarFp.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(axios, basePath));
|
|
34406
|
-
},
|
|
34407
34340
|
/**
|
|
34408
34341
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
34409
34342
|
* @summary Create public key
|
|
@@ -34447,19 +34380,6 @@ exports.VPSPublicKeysApiFactory = VPSPublicKeysApiFactory;
|
|
|
34447
34380
|
* @extends {BaseAPI}
|
|
34448
34381
|
*/
|
|
34449
34382
|
class VPSPublicKeysApi extends base_1.BaseAPI {
|
|
34450
|
-
/**
|
|
34451
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
34452
|
-
* @summary Attach public key
|
|
34453
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
34454
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
34455
|
-
* @param {*} [options] Override http request option.
|
|
34456
|
-
* @deprecated
|
|
34457
|
-
* @throws {RequiredError}
|
|
34458
|
-
* @memberof VPSPublicKeysApi
|
|
34459
|
-
*/
|
|
34460
|
-
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
34461
|
-
return (0, exports.VPSPublicKeysApiFp)(this.configuration).attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34462
|
-
}
|
|
34463
34383
|
/**
|
|
34464
34384
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
34465
34385
|
* @summary Create public key
|
|
@@ -35254,43 +35174,6 @@ exports.VPSSnapshotsApi = VPSSnapshotsApi;
|
|
|
35254
35174
|
*/
|
|
35255
35175
|
const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
35256
35176
|
return {
|
|
35257
|
-
/**
|
|
35258
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
35259
|
-
* @summary Get attached public keys
|
|
35260
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
35261
|
-
* @param {number} [page] Page number
|
|
35262
|
-
* @param {*} [options] Override http request option.
|
|
35263
|
-
* @deprecated
|
|
35264
|
-
* @throws {RequiredError}
|
|
35265
|
-
*/
|
|
35266
|
-
getAttachedPublicKeysV1: (virtualMachineId_1, page_1, ...args_1) => __awaiter(this, [virtualMachineId_1, page_1, ...args_1], void 0, function* (virtualMachineId, page, options = {}) {
|
|
35267
|
-
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
35268
|
-
(0, common_1.assertParamExists)('getAttachedPublicKeysV1', 'virtualMachineId', virtualMachineId);
|
|
35269
|
-
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/public-keys`
|
|
35270
|
-
.replace(`{${"virtualMachineId"}}`, (0, common_1.encodePathParam)('virtualMachineId', virtualMachineId));
|
|
35271
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35272
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
35273
|
-
let baseOptions;
|
|
35274
|
-
if (configuration) {
|
|
35275
|
-
baseOptions = configuration.baseOptions;
|
|
35276
|
-
}
|
|
35277
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
35278
|
-
const localVarHeaderParameter = {};
|
|
35279
|
-
const localVarQueryParameter = {};
|
|
35280
|
-
// authentication apiToken required
|
|
35281
|
-
// http bearer authentication required
|
|
35282
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
35283
|
-
if (page !== undefined) {
|
|
35284
|
-
localVarQueryParameter['page'] = page;
|
|
35285
|
-
}
|
|
35286
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
35287
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35288
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35289
|
-
return {
|
|
35290
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
35291
|
-
options: localVarRequestOptions,
|
|
35292
|
-
};
|
|
35293
|
-
}),
|
|
35294
35177
|
/**
|
|
35295
35178
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
35296
35179
|
* @summary Get metrics
|
|
@@ -35792,23 +35675,6 @@ exports.VPSVirtualMachineApiAxiosParamCreator = VPSVirtualMachineApiAxiosParamCr
|
|
|
35792
35675
|
const VPSVirtualMachineApiFp = function (configuration) {
|
|
35793
35676
|
const localVarAxiosParamCreator = (0, exports.VPSVirtualMachineApiAxiosParamCreator)(configuration);
|
|
35794
35677
|
return {
|
|
35795
|
-
/**
|
|
35796
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
35797
|
-
* @summary Get attached public keys
|
|
35798
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
35799
|
-
* @param {number} [page] Page number
|
|
35800
|
-
* @param {*} [options] Override http request option.
|
|
35801
|
-
* @deprecated
|
|
35802
|
-
* @throws {RequiredError}
|
|
35803
|
-
*/
|
|
35804
|
-
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
35805
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35806
|
-
var _a, _b;
|
|
35807
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAttachedPublicKeysV1(virtualMachineId, page, options);
|
|
35808
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['VPSVirtualMachineApi.getAttachedPublicKeysV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
35809
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35810
|
-
});
|
|
35811
|
-
},
|
|
35812
35678
|
/**
|
|
35813
35679
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
35814
35680
|
* @summary Get metrics
|
|
@@ -36036,18 +35902,6 @@ exports.VPSVirtualMachineApiFp = VPSVirtualMachineApiFp;
|
|
|
36036
35902
|
const VPSVirtualMachineApiFactory = function (configuration, basePath, axios) {
|
|
36037
35903
|
const localVarFp = (0, exports.VPSVirtualMachineApiFp)(configuration);
|
|
36038
35904
|
return {
|
|
36039
|
-
/**
|
|
36040
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
36041
|
-
* @summary Get attached public keys
|
|
36042
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
36043
|
-
* @param {number} [page] Page number
|
|
36044
|
-
* @param {*} [options] Override http request option.
|
|
36045
|
-
* @deprecated
|
|
36046
|
-
* @throws {RequiredError}
|
|
36047
|
-
*/
|
|
36048
|
-
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
36049
|
-
return localVarFp.getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
|
|
36050
|
-
},
|
|
36051
35905
|
/**
|
|
36052
35906
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
36053
35907
|
* @summary Get metrics
|
|
@@ -36205,19 +36059,6 @@ exports.VPSVirtualMachineApiFactory = VPSVirtualMachineApiFactory;
|
|
|
36205
36059
|
* @extends {BaseAPI}
|
|
36206
36060
|
*/
|
|
36207
36061
|
class VPSVirtualMachineApi extends base_1.BaseAPI {
|
|
36208
|
-
/**
|
|
36209
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
36210
|
-
* @summary Get attached public keys
|
|
36211
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
36212
|
-
* @param {number} [page] Page number
|
|
36213
|
-
* @param {*} [options] Override http request option.
|
|
36214
|
-
* @deprecated
|
|
36215
|
-
* @throws {RequiredError}
|
|
36216
|
-
* @memberof VPSVirtualMachineApi
|
|
36217
|
-
*/
|
|
36218
|
-
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
36219
|
-
return (0, exports.VPSVirtualMachineApiFp)(this.configuration).getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(this.axios, this.basePath));
|
|
36220
|
-
}
|
|
36221
36062
|
/**
|
|
36222
36063
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
36223
36064
|
* @summary Get metrics
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
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/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.4.
|
|
7
|
+
* API Version: 3.4.2
|
|
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/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
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/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.4.
|
|
7
|
+
* API Version: 3.4.2
|
|
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/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.4.
|
|
7
|
+
* API Version: 3.4.2
|
|
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
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.4.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.4.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
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
|
|
@@ -17755,19 +17755,6 @@ export interface VPSV1PostInstallScriptStoreRequest {
|
|
|
17755
17755
|
*/
|
|
17756
17756
|
'content': string;
|
|
17757
17757
|
}
|
|
17758
|
-
/**
|
|
17759
|
-
*
|
|
17760
|
-
* @export
|
|
17761
|
-
* @interface VPSV1PublicKeyAttachRequest
|
|
17762
|
-
*/
|
|
17763
|
-
export interface VPSV1PublicKeyAttachRequest {
|
|
17764
|
-
/**
|
|
17765
|
-
* Public Key IDs to attach
|
|
17766
|
-
* @type {Array<number>}
|
|
17767
|
-
* @memberof VPSV1PublicKeyAttachRequest
|
|
17768
|
-
*/
|
|
17769
|
-
'ids': Array<number>;
|
|
17770
|
-
}
|
|
17771
17758
|
/**
|
|
17772
17759
|
*
|
|
17773
17760
|
* @export
|
|
@@ -36679,16 +36666,6 @@ export declare class VPSPostInstallScriptsApi extends BaseAPI {
|
|
|
36679
36666
|
* @export
|
|
36680
36667
|
*/
|
|
36681
36668
|
export declare const VPSPublicKeysApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
36682
|
-
/**
|
|
36683
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
36684
|
-
* @summary Attach public key
|
|
36685
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
36686
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
36687
|
-
* @param {*} [options] Override http request option.
|
|
36688
|
-
* @deprecated
|
|
36689
|
-
* @throws {RequiredError}
|
|
36690
|
-
*/
|
|
36691
|
-
attachPublicKeyV1: (virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36692
36669
|
/**
|
|
36693
36670
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
36694
36671
|
* @summary Create public key
|
|
@@ -36722,16 +36699,6 @@ export declare const VPSPublicKeysApiAxiosParamCreator: (configuration?: Configu
|
|
|
36722
36699
|
* @export
|
|
36723
36700
|
*/
|
|
36724
36701
|
export declare const VPSPublicKeysApiFp: (configuration?: Configuration) => {
|
|
36725
|
-
/**
|
|
36726
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
36727
|
-
* @summary Attach public key
|
|
36728
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
36729
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
36730
|
-
* @param {*} [options] Override http request option.
|
|
36731
|
-
* @deprecated
|
|
36732
|
-
* @throws {RequiredError}
|
|
36733
|
-
*/
|
|
36734
|
-
attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionActionResource>>;
|
|
36735
36702
|
/**
|
|
36736
36703
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
36737
36704
|
* @summary Create public key
|
|
@@ -36765,16 +36732,6 @@ export declare const VPSPublicKeysApiFp: (configuration?: Configuration) => {
|
|
|
36765
36732
|
* @export
|
|
36766
36733
|
*/
|
|
36767
36734
|
export declare const VPSPublicKeysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
36768
|
-
/**
|
|
36769
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
36770
|
-
* @summary Attach public key
|
|
36771
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
36772
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
36773
|
-
* @param {*} [options] Override http request option.
|
|
36774
|
-
* @deprecated
|
|
36775
|
-
* @throws {RequiredError}
|
|
36776
|
-
*/
|
|
36777
|
-
attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionActionResource>;
|
|
36778
36735
|
/**
|
|
36779
36736
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
36780
36737
|
* @summary Create public key
|
|
@@ -36810,17 +36767,6 @@ export declare const VPSPublicKeysApiFactory: (configuration?: Configuration, ba
|
|
|
36810
36767
|
* @extends {BaseAPI}
|
|
36811
36768
|
*/
|
|
36812
36769
|
export declare class VPSPublicKeysApi extends BaseAPI {
|
|
36813
|
-
/**
|
|
36814
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
36815
|
-
* @summary Attach public key
|
|
36816
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
36817
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
36818
|
-
* @param {*} [options] Override http request option.
|
|
36819
|
-
* @deprecated
|
|
36820
|
-
* @throws {RequiredError}
|
|
36821
|
-
* @memberof VPSPublicKeysApi
|
|
36822
|
-
*/
|
|
36823
|
-
attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1ActionActionResource, any, {}, any>>;
|
|
36824
36770
|
/**
|
|
36825
36771
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
36826
36772
|
* @summary Create public key
|
|
@@ -37244,16 +37190,6 @@ export declare class VPSSnapshotsApi extends BaseAPI {
|
|
|
37244
37190
|
* @export
|
|
37245
37191
|
*/
|
|
37246
37192
|
export declare const VPSVirtualMachineApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
37247
|
-
/**
|
|
37248
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
37249
|
-
* @summary Get attached public keys
|
|
37250
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
37251
|
-
* @param {number} [page] Page number
|
|
37252
|
-
* @param {*} [options] Override http request option.
|
|
37253
|
-
* @deprecated
|
|
37254
|
-
* @throws {RequiredError}
|
|
37255
|
-
*/
|
|
37256
|
-
getAttachedPublicKeysV1: (virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37257
37193
|
/**
|
|
37258
37194
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
37259
37195
|
* @summary Get metrics
|
|
@@ -37379,16 +37315,6 @@ export declare const VPSVirtualMachineApiAxiosParamCreator: (configuration?: Con
|
|
|
37379
37315
|
* @export
|
|
37380
37316
|
*/
|
|
37381
37317
|
export declare const VPSVirtualMachineApiFp: (configuration?: Configuration) => {
|
|
37382
|
-
/**
|
|
37383
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
37384
|
-
* @summary Get attached public keys
|
|
37385
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
37386
|
-
* @param {number} [page] Page number
|
|
37387
|
-
* @param {*} [options] Override http request option.
|
|
37388
|
-
* @deprecated
|
|
37389
|
-
* @throws {RequiredError}
|
|
37390
|
-
*/
|
|
37391
|
-
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>>;
|
|
37392
37318
|
/**
|
|
37393
37319
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
37394
37320
|
* @summary Get metrics
|
|
@@ -37514,16 +37440,6 @@ export declare const VPSVirtualMachineApiFp: (configuration?: Configuration) =>
|
|
|
37514
37440
|
* @export
|
|
37515
37441
|
*/
|
|
37516
37442
|
export declare const VPSVirtualMachineApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
37517
|
-
/**
|
|
37518
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
37519
|
-
* @summary Get attached public keys
|
|
37520
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
37521
|
-
* @param {number} [page] Page number
|
|
37522
|
-
* @param {*} [options] Override http request option.
|
|
37523
|
-
* @deprecated
|
|
37524
|
-
* @throws {RequiredError}
|
|
37525
|
-
*/
|
|
37526
|
-
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse>;
|
|
37527
37443
|
/**
|
|
37528
37444
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
37529
37445
|
* @summary Get metrics
|
|
@@ -37651,17 +37567,6 @@ export declare const VPSVirtualMachineApiFactory: (configuration?: Configuration
|
|
|
37651
37567
|
* @extends {BaseAPI}
|
|
37652
37568
|
*/
|
|
37653
37569
|
export declare class VPSVirtualMachineApi extends BaseAPI {
|
|
37654
|
-
/**
|
|
37655
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
37656
|
-
* @summary Get attached public keys
|
|
37657
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
37658
|
-
* @param {number} [page] Page number
|
|
37659
|
-
* @param {*} [options] Override http request option.
|
|
37660
|
-
* @deprecated
|
|
37661
|
-
* @throws {RequiredError}
|
|
37662
|
-
* @memberof VPSVirtualMachineApi
|
|
37663
|
-
*/
|
|
37664
|
-
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1PublicKeyListResponse, any, {}, any>>;
|
|
37665
37570
|
/**
|
|
37666
37571
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
37667
37572
|
* @summary Get metrics
|