@hostinger/sdk 1.60.1 → 1.62.0
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 +371 -21
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +231 -21
- package/dist/api.js +301 -23
- 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 +231 -21
- package/dist/esm/api.js +295 -21
- 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 +4 -4
- package/docs/VPSSSHKeysApi.md +179 -0
- package/docs/VPSV1SshKeyDestroyRequest.md +20 -0
- package/docs/VPSV1SshKeySshKeyResource.md +26 -0
- package/docs/VPSV1SshKeyStoreRequest.md +20 -0
- package/docs/VPSVirtualMachineApi.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.62.0
|
|
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
|
|
@@ -29741,11 +29741,12 @@ export class VPSPostInstallScriptsApi extends BaseAPI {
|
|
|
29741
29741
|
export const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
29742
29742
|
return {
|
|
29743
29743
|
/**
|
|
29744
|
-
* 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.
|
|
29744
|
+
* 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.
|
|
29745
29745
|
* @summary Attach public key
|
|
29746
29746
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
29747
29747
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
29748
29748
|
* @param {*} [options] Override http request option.
|
|
29749
|
+
* @deprecated
|
|
29749
29750
|
* @throws {RequiredError}
|
|
29750
29751
|
*/
|
|
29751
29752
|
attachPublicKeyV1: (virtualMachineId_1, vPSV1PublicKeyAttachRequest_1, ...args_1) => __awaiter(this, [virtualMachineId_1, vPSV1PublicKeyAttachRequest_1, ...args_1], void 0, function* (virtualMachineId, vPSV1PublicKeyAttachRequest, options = {}) {
|
|
@@ -29778,10 +29779,11 @@ export const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
|
29778
29779
|
};
|
|
29779
29780
|
}),
|
|
29780
29781
|
/**
|
|
29781
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
29782
|
+
* 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.
|
|
29782
29783
|
* @summary Create public key
|
|
29783
29784
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
29784
29785
|
* @param {*} [options] Override http request option.
|
|
29786
|
+
* @deprecated
|
|
29785
29787
|
* @throws {RequiredError}
|
|
29786
29788
|
*/
|
|
29787
29789
|
createPublicKeyV1: (vPSV1PublicKeyStoreRequest_1, ...args_1) => __awaiter(this, [vPSV1PublicKeyStoreRequest_1, ...args_1], void 0, function* (vPSV1PublicKeyStoreRequest, options = {}) {
|
|
@@ -29811,10 +29813,11 @@ export const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
|
29811
29813
|
};
|
|
29812
29814
|
}),
|
|
29813
29815
|
/**
|
|
29814
|
-
* Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
29816
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
29815
29817
|
* @summary Delete public key
|
|
29816
29818
|
* @param {number} publicKeyId Public Key ID
|
|
29817
29819
|
* @param {*} [options] Override http request option.
|
|
29820
|
+
* @deprecated
|
|
29818
29821
|
* @throws {RequiredError}
|
|
29819
29822
|
*/
|
|
29820
29823
|
deletePublicKeyV1: (publicKeyId_1, ...args_1) => __awaiter(this, [publicKeyId_1, ...args_1], void 0, function* (publicKeyId, options = {}) {
|
|
@@ -29843,10 +29846,11 @@ export const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
|
29843
29846
|
};
|
|
29844
29847
|
}),
|
|
29845
29848
|
/**
|
|
29846
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
29849
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
29847
29850
|
* @summary Get public keys
|
|
29848
29851
|
* @param {number} [page] Page number
|
|
29849
29852
|
* @param {*} [options] Override http request option.
|
|
29853
|
+
* @deprecated
|
|
29850
29854
|
* @throws {RequiredError}
|
|
29851
29855
|
*/
|
|
29852
29856
|
getPublicKeysV1: (page_1, ...args_1) => __awaiter(this, [page_1, ...args_1], void 0, function* (page, options = {}) {
|
|
@@ -29884,11 +29888,12 @@ export const VPSPublicKeysApiFp = function (configuration) {
|
|
|
29884
29888
|
const localVarAxiosParamCreator = VPSPublicKeysApiAxiosParamCreator(configuration);
|
|
29885
29889
|
return {
|
|
29886
29890
|
/**
|
|
29887
|
-
* 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.
|
|
29891
|
+
* 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.
|
|
29888
29892
|
* @summary Attach public key
|
|
29889
29893
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
29890
29894
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
29891
29895
|
* @param {*} [options] Override http request option.
|
|
29896
|
+
* @deprecated
|
|
29892
29897
|
* @throws {RequiredError}
|
|
29893
29898
|
*/
|
|
29894
29899
|
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
@@ -29900,10 +29905,11 @@ export const VPSPublicKeysApiFp = function (configuration) {
|
|
|
29900
29905
|
});
|
|
29901
29906
|
},
|
|
29902
29907
|
/**
|
|
29903
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
29908
|
+
* 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.
|
|
29904
29909
|
* @summary Create public key
|
|
29905
29910
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
29906
29911
|
* @param {*} [options] Override http request option.
|
|
29912
|
+
* @deprecated
|
|
29907
29913
|
* @throws {RequiredError}
|
|
29908
29914
|
*/
|
|
29909
29915
|
createPublicKeyV1(vPSV1PublicKeyStoreRequest, options) {
|
|
@@ -29915,10 +29921,11 @@ export const VPSPublicKeysApiFp = function (configuration) {
|
|
|
29915
29921
|
});
|
|
29916
29922
|
},
|
|
29917
29923
|
/**
|
|
29918
|
-
* Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
29924
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
29919
29925
|
* @summary Delete public key
|
|
29920
29926
|
* @param {number} publicKeyId Public Key ID
|
|
29921
29927
|
* @param {*} [options] Override http request option.
|
|
29928
|
+
* @deprecated
|
|
29922
29929
|
* @throws {RequiredError}
|
|
29923
29930
|
*/
|
|
29924
29931
|
deletePublicKeyV1(publicKeyId, options) {
|
|
@@ -29930,10 +29937,11 @@ export const VPSPublicKeysApiFp = function (configuration) {
|
|
|
29930
29937
|
});
|
|
29931
29938
|
},
|
|
29932
29939
|
/**
|
|
29933
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
29940
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
29934
29941
|
* @summary Get public keys
|
|
29935
29942
|
* @param {number} [page] Page number
|
|
29936
29943
|
* @param {*} [options] Override http request option.
|
|
29944
|
+
* @deprecated
|
|
29937
29945
|
* @throws {RequiredError}
|
|
29938
29946
|
*/
|
|
29939
29947
|
getPublicKeysV1(page, options) {
|
|
@@ -29954,41 +29962,45 @@ export const VPSPublicKeysApiFactory = function (configuration, basePath, axios)
|
|
|
29954
29962
|
const localVarFp = VPSPublicKeysApiFp(configuration);
|
|
29955
29963
|
return {
|
|
29956
29964
|
/**
|
|
29957
|
-
* 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.
|
|
29965
|
+
* 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.
|
|
29958
29966
|
* @summary Attach public key
|
|
29959
29967
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
29960
29968
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
29961
29969
|
* @param {*} [options] Override http request option.
|
|
29970
|
+
* @deprecated
|
|
29962
29971
|
* @throws {RequiredError}
|
|
29963
29972
|
*/
|
|
29964
29973
|
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
29965
29974
|
return localVarFp.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(axios, basePath));
|
|
29966
29975
|
},
|
|
29967
29976
|
/**
|
|
29968
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
29977
|
+
* 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.
|
|
29969
29978
|
* @summary Create public key
|
|
29970
29979
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
29971
29980
|
* @param {*} [options] Override http request option.
|
|
29981
|
+
* @deprecated
|
|
29972
29982
|
* @throws {RequiredError}
|
|
29973
29983
|
*/
|
|
29974
29984
|
createPublicKeyV1(vPSV1PublicKeyStoreRequest, options) {
|
|
29975
29985
|
return localVarFp.createPublicKeyV1(vPSV1PublicKeyStoreRequest, options).then((request) => request(axios, basePath));
|
|
29976
29986
|
},
|
|
29977
29987
|
/**
|
|
29978
|
-
* Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
29988
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
29979
29989
|
* @summary Delete public key
|
|
29980
29990
|
* @param {number} publicKeyId Public Key ID
|
|
29981
29991
|
* @param {*} [options] Override http request option.
|
|
29992
|
+
* @deprecated
|
|
29982
29993
|
* @throws {RequiredError}
|
|
29983
29994
|
*/
|
|
29984
29995
|
deletePublicKeyV1(publicKeyId, options) {
|
|
29985
29996
|
return localVarFp.deletePublicKeyV1(publicKeyId, options).then((request) => request(axios, basePath));
|
|
29986
29997
|
},
|
|
29987
29998
|
/**
|
|
29988
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
29999
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
29989
30000
|
* @summary Get public keys
|
|
29990
30001
|
* @param {number} [page] Page number
|
|
29991
30002
|
* @param {*} [options] Override http request option.
|
|
30003
|
+
* @deprecated
|
|
29992
30004
|
* @throws {RequiredError}
|
|
29993
30005
|
*/
|
|
29994
30006
|
getPublicKeysV1(page, options) {
|
|
@@ -30004,11 +30016,12 @@ export const VPSPublicKeysApiFactory = function (configuration, basePath, axios)
|
|
|
30004
30016
|
*/
|
|
30005
30017
|
export class VPSPublicKeysApi extends BaseAPI {
|
|
30006
30018
|
/**
|
|
30007
|
-
* 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.
|
|
30019
|
+
* 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.
|
|
30008
30020
|
* @summary Attach public key
|
|
30009
30021
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
30010
30022
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
30011
30023
|
* @param {*} [options] Override http request option.
|
|
30024
|
+
* @deprecated
|
|
30012
30025
|
* @throws {RequiredError}
|
|
30013
30026
|
* @memberof VPSPublicKeysApi
|
|
30014
30027
|
*/
|
|
@@ -30016,10 +30029,11 @@ export class VPSPublicKeysApi extends BaseAPI {
|
|
|
30016
30029
|
return VPSPublicKeysApiFp(this.configuration).attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30017
30030
|
}
|
|
30018
30031
|
/**
|
|
30019
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
30032
|
+
* 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.
|
|
30020
30033
|
* @summary Create public key
|
|
30021
30034
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
30022
30035
|
* @param {*} [options] Override http request option.
|
|
30036
|
+
* @deprecated
|
|
30023
30037
|
* @throws {RequiredError}
|
|
30024
30038
|
* @memberof VPSPublicKeysApi
|
|
30025
30039
|
*/
|
|
@@ -30027,10 +30041,11 @@ export class VPSPublicKeysApi extends BaseAPI {
|
|
|
30027
30041
|
return VPSPublicKeysApiFp(this.configuration).createPublicKeyV1(vPSV1PublicKeyStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30028
30042
|
}
|
|
30029
30043
|
/**
|
|
30030
|
-
* Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30044
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30031
30045
|
* @summary Delete public key
|
|
30032
30046
|
* @param {number} publicKeyId Public Key ID
|
|
30033
30047
|
* @param {*} [options] Override http request option.
|
|
30048
|
+
* @deprecated
|
|
30034
30049
|
* @throws {RequiredError}
|
|
30035
30050
|
* @memberof VPSPublicKeysApi
|
|
30036
30051
|
*/
|
|
@@ -30038,10 +30053,11 @@ export class VPSPublicKeysApi extends BaseAPI {
|
|
|
30038
30053
|
return VPSPublicKeysApiFp(this.configuration).deletePublicKeyV1(publicKeyId, options).then((request) => request(this.axios, this.basePath));
|
|
30039
30054
|
}
|
|
30040
30055
|
/**
|
|
30041
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30056
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30042
30057
|
* @summary Get public keys
|
|
30043
30058
|
* @param {number} [page] Page number
|
|
30044
30059
|
* @param {*} [options] Override http request option.
|
|
30060
|
+
* @deprecated
|
|
30045
30061
|
* @throws {RequiredError}
|
|
30046
30062
|
* @memberof VPSPublicKeysApi
|
|
30047
30063
|
*/
|
|
@@ -30227,6 +30243,260 @@ export class VPSRecoveryApi extends BaseAPI {
|
|
|
30227
30243
|
return VPSRecoveryApiFp(this.configuration).stopRecoveryModeV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
30228
30244
|
}
|
|
30229
30245
|
}
|
|
30246
|
+
/**
|
|
30247
|
+
* VPSSSHKeysApi - axios parameter creator
|
|
30248
|
+
* @export
|
|
30249
|
+
*/
|
|
30250
|
+
export const VPSSSHKeysApiAxiosParamCreator = function (configuration) {
|
|
30251
|
+
return {
|
|
30252
|
+
/**
|
|
30253
|
+
* Add one or more SSH public keys to a specified virtual machine. Keys are added to the `root` user and can be used for passwordless SSH authentication. Returns the complete list of SSH keys currently configured on the virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
30254
|
+
* @summary Add virtual machine SSH keys
|
|
30255
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30256
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
30257
|
+
* @param {*} [options] Override http request option.
|
|
30258
|
+
* @throws {RequiredError}
|
|
30259
|
+
*/
|
|
30260
|
+
addVirtualMachineSSHKeysV1: (virtualMachineId_1, vPSV1SshKeyStoreRequest_1, ...args_1) => __awaiter(this, [virtualMachineId_1, vPSV1SshKeyStoreRequest_1, ...args_1], void 0, function* (virtualMachineId, vPSV1SshKeyStoreRequest, options = {}) {
|
|
30261
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
30262
|
+
assertParamExists('addVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId);
|
|
30263
|
+
// verify required parameter 'vPSV1SshKeyStoreRequest' is not null or undefined
|
|
30264
|
+
assertParamExists('addVirtualMachineSSHKeysV1', 'vPSV1SshKeyStoreRequest', vPSV1SshKeyStoreRequest);
|
|
30265
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
30266
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
30267
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30268
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30269
|
+
let baseOptions;
|
|
30270
|
+
if (configuration) {
|
|
30271
|
+
baseOptions = configuration.baseOptions;
|
|
30272
|
+
}
|
|
30273
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
30274
|
+
const localVarHeaderParameter = {};
|
|
30275
|
+
const localVarQueryParameter = {};
|
|
30276
|
+
// authentication apiToken required
|
|
30277
|
+
// http bearer authentication required
|
|
30278
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
30279
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30280
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30281
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30282
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30283
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1SshKeyStoreRequest, localVarRequestOptions, configuration);
|
|
30284
|
+
return {
|
|
30285
|
+
url: toPathString(localVarUrlObj),
|
|
30286
|
+
options: localVarRequestOptions,
|
|
30287
|
+
};
|
|
30288
|
+
}),
|
|
30289
|
+
/**
|
|
30290
|
+
* Retrieve SSH public keys currently configured on a specified virtual machine. Only keys of the `root` user are listed. Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
|
|
30291
|
+
* @summary List virtual machine SSH keys
|
|
30292
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30293
|
+
* @param {*} [options] Override http request option.
|
|
30294
|
+
* @throws {RequiredError}
|
|
30295
|
+
*/
|
|
30296
|
+
listVirtualMachineSSHKeysV1: (virtualMachineId_1, ...args_1) => __awaiter(this, [virtualMachineId_1, ...args_1], void 0, function* (virtualMachineId, options = {}) {
|
|
30297
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
30298
|
+
assertParamExists('listVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId);
|
|
30299
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
30300
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
30301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30302
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30303
|
+
let baseOptions;
|
|
30304
|
+
if (configuration) {
|
|
30305
|
+
baseOptions = configuration.baseOptions;
|
|
30306
|
+
}
|
|
30307
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
30308
|
+
const localVarHeaderParameter = {};
|
|
30309
|
+
const localVarQueryParameter = {};
|
|
30310
|
+
// authentication apiToken required
|
|
30311
|
+
// http bearer authentication required
|
|
30312
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
30313
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30315
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30316
|
+
return {
|
|
30317
|
+
url: toPathString(localVarUrlObj),
|
|
30318
|
+
options: localVarRequestOptions,
|
|
30319
|
+
};
|
|
30320
|
+
}),
|
|
30321
|
+
/**
|
|
30322
|
+
* Remove one or more SSH public keys from a specified virtual machine. Removed keys can no longer be used to authenticate via SSH as the `root` user. Returns the remaining list of SSH keys configured on the virtual machine. Use this endpoint to revoke SSH key access to VPS instances.
|
|
30323
|
+
* @summary Remove virtual machine SSH keys
|
|
30324
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30325
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
30326
|
+
* @param {*} [options] Override http request option.
|
|
30327
|
+
* @throws {RequiredError}
|
|
30328
|
+
*/
|
|
30329
|
+
removeVirtualMachineSSHKeysV1: (virtualMachineId_1, vPSV1SshKeyDestroyRequest_1, ...args_1) => __awaiter(this, [virtualMachineId_1, vPSV1SshKeyDestroyRequest_1, ...args_1], void 0, function* (virtualMachineId, vPSV1SshKeyDestroyRequest, options = {}) {
|
|
30330
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
30331
|
+
assertParamExists('removeVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId);
|
|
30332
|
+
// verify required parameter 'vPSV1SshKeyDestroyRequest' is not null or undefined
|
|
30333
|
+
assertParamExists('removeVirtualMachineSSHKeysV1', 'vPSV1SshKeyDestroyRequest', vPSV1SshKeyDestroyRequest);
|
|
30334
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
30335
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
30336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30337
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30338
|
+
let baseOptions;
|
|
30339
|
+
if (configuration) {
|
|
30340
|
+
baseOptions = configuration.baseOptions;
|
|
30341
|
+
}
|
|
30342
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
30343
|
+
const localVarHeaderParameter = {};
|
|
30344
|
+
const localVarQueryParameter = {};
|
|
30345
|
+
// authentication apiToken required
|
|
30346
|
+
// http bearer authentication required
|
|
30347
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
30348
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30349
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30351
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30352
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1SshKeyDestroyRequest, localVarRequestOptions, configuration);
|
|
30353
|
+
return {
|
|
30354
|
+
url: toPathString(localVarUrlObj),
|
|
30355
|
+
options: localVarRequestOptions,
|
|
30356
|
+
};
|
|
30357
|
+
}),
|
|
30358
|
+
};
|
|
30359
|
+
};
|
|
30360
|
+
/**
|
|
30361
|
+
* VPSSSHKeysApi - functional programming interface
|
|
30362
|
+
* @export
|
|
30363
|
+
*/
|
|
30364
|
+
export const VPSSSHKeysApiFp = function (configuration) {
|
|
30365
|
+
const localVarAxiosParamCreator = VPSSSHKeysApiAxiosParamCreator(configuration);
|
|
30366
|
+
return {
|
|
30367
|
+
/**
|
|
30368
|
+
* Add one or more SSH public keys to a specified virtual machine. Keys are added to the `root` user and can be used for passwordless SSH authentication. Returns the complete list of SSH keys currently configured on the virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
30369
|
+
* @summary Add virtual machine SSH keys
|
|
30370
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30371
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
30372
|
+
* @param {*} [options] Override http request option.
|
|
30373
|
+
* @throws {RequiredError}
|
|
30374
|
+
*/
|
|
30375
|
+
addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options) {
|
|
30376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30377
|
+
var _a, _b;
|
|
30378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options);
|
|
30379
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSSSHKeysApi.addVirtualMachineSSHKeysV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
30380
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30381
|
+
});
|
|
30382
|
+
},
|
|
30383
|
+
/**
|
|
30384
|
+
* Retrieve SSH public keys currently configured on a specified virtual machine. Only keys of the `root` user are listed. Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
|
|
30385
|
+
* @summary List virtual machine SSH keys
|
|
30386
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30387
|
+
* @param {*} [options] Override http request option.
|
|
30388
|
+
* @throws {RequiredError}
|
|
30389
|
+
*/
|
|
30390
|
+
listVirtualMachineSSHKeysV1(virtualMachineId, options) {
|
|
30391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30392
|
+
var _a, _b;
|
|
30393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listVirtualMachineSSHKeysV1(virtualMachineId, options);
|
|
30394
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSSSHKeysApi.listVirtualMachineSSHKeysV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
30395
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30396
|
+
});
|
|
30397
|
+
},
|
|
30398
|
+
/**
|
|
30399
|
+
* Remove one or more SSH public keys from a specified virtual machine. Removed keys can no longer be used to authenticate via SSH as the `root` user. Returns the remaining list of SSH keys configured on the virtual machine. Use this endpoint to revoke SSH key access to VPS instances.
|
|
30400
|
+
* @summary Remove virtual machine SSH keys
|
|
30401
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30402
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
30403
|
+
* @param {*} [options] Override http request option.
|
|
30404
|
+
* @throws {RequiredError}
|
|
30405
|
+
*/
|
|
30406
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options) {
|
|
30407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30408
|
+
var _a, _b;
|
|
30409
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options);
|
|
30410
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSSSHKeysApi.removeVirtualMachineSSHKeysV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
30411
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30412
|
+
});
|
|
30413
|
+
},
|
|
30414
|
+
};
|
|
30415
|
+
};
|
|
30416
|
+
/**
|
|
30417
|
+
* VPSSSHKeysApi - factory interface
|
|
30418
|
+
* @export
|
|
30419
|
+
*/
|
|
30420
|
+
export const VPSSSHKeysApiFactory = function (configuration, basePath, axios) {
|
|
30421
|
+
const localVarFp = VPSSSHKeysApiFp(configuration);
|
|
30422
|
+
return {
|
|
30423
|
+
/**
|
|
30424
|
+
* Add one or more SSH public keys to a specified virtual machine. Keys are added to the `root` user and can be used for passwordless SSH authentication. Returns the complete list of SSH keys currently configured on the virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
30425
|
+
* @summary Add virtual machine SSH keys
|
|
30426
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30427
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
30428
|
+
* @param {*} [options] Override http request option.
|
|
30429
|
+
* @throws {RequiredError}
|
|
30430
|
+
*/
|
|
30431
|
+
addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options) {
|
|
30432
|
+
return localVarFp.addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options).then((request) => request(axios, basePath));
|
|
30433
|
+
},
|
|
30434
|
+
/**
|
|
30435
|
+
* Retrieve SSH public keys currently configured on a specified virtual machine. Only keys of the `root` user are listed. Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
|
|
30436
|
+
* @summary List virtual machine SSH keys
|
|
30437
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30438
|
+
* @param {*} [options] Override http request option.
|
|
30439
|
+
* @throws {RequiredError}
|
|
30440
|
+
*/
|
|
30441
|
+
listVirtualMachineSSHKeysV1(virtualMachineId, options) {
|
|
30442
|
+
return localVarFp.listVirtualMachineSSHKeysV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
30443
|
+
},
|
|
30444
|
+
/**
|
|
30445
|
+
* Remove one or more SSH public keys from a specified virtual machine. Removed keys can no longer be used to authenticate via SSH as the `root` user. Returns the remaining list of SSH keys configured on the virtual machine. Use this endpoint to revoke SSH key access to VPS instances.
|
|
30446
|
+
* @summary Remove virtual machine SSH keys
|
|
30447
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30448
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
30449
|
+
* @param {*} [options] Override http request option.
|
|
30450
|
+
* @throws {RequiredError}
|
|
30451
|
+
*/
|
|
30452
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options) {
|
|
30453
|
+
return localVarFp.removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options).then((request) => request(axios, basePath));
|
|
30454
|
+
},
|
|
30455
|
+
};
|
|
30456
|
+
};
|
|
30457
|
+
/**
|
|
30458
|
+
* VPSSSHKeysApi - object-oriented interface
|
|
30459
|
+
* @export
|
|
30460
|
+
* @class VPSSSHKeysApi
|
|
30461
|
+
* @extends {BaseAPI}
|
|
30462
|
+
*/
|
|
30463
|
+
export class VPSSSHKeysApi extends BaseAPI {
|
|
30464
|
+
/**
|
|
30465
|
+
* Add one or more SSH public keys to a specified virtual machine. Keys are added to the `root` user and can be used for passwordless SSH authentication. Returns the complete list of SSH keys currently configured on the virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
30466
|
+
* @summary Add virtual machine SSH keys
|
|
30467
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30468
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
30469
|
+
* @param {*} [options] Override http request option.
|
|
30470
|
+
* @throws {RequiredError}
|
|
30471
|
+
* @memberof VPSSSHKeysApi
|
|
30472
|
+
*/
|
|
30473
|
+
addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options) {
|
|
30474
|
+
return VPSSSHKeysApiFp(this.configuration).addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30475
|
+
}
|
|
30476
|
+
/**
|
|
30477
|
+
* Retrieve SSH public keys currently configured on a specified virtual machine. Only keys of the `root` user are listed. Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
|
|
30478
|
+
* @summary List virtual machine SSH keys
|
|
30479
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30480
|
+
* @param {*} [options] Override http request option.
|
|
30481
|
+
* @throws {RequiredError}
|
|
30482
|
+
* @memberof VPSSSHKeysApi
|
|
30483
|
+
*/
|
|
30484
|
+
listVirtualMachineSSHKeysV1(virtualMachineId, options) {
|
|
30485
|
+
return VPSSSHKeysApiFp(this.configuration).listVirtualMachineSSHKeysV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
30486
|
+
}
|
|
30487
|
+
/**
|
|
30488
|
+
* Remove one or more SSH public keys from a specified virtual machine. Removed keys can no longer be used to authenticate via SSH as the `root` user. Returns the remaining list of SSH keys configured on the virtual machine. Use this endpoint to revoke SSH key access to VPS instances.
|
|
30489
|
+
* @summary Remove virtual machine SSH keys
|
|
30490
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30491
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
30492
|
+
* @param {*} [options] Override http request option.
|
|
30493
|
+
* @throws {RequiredError}
|
|
30494
|
+
* @memberof VPSSSHKeysApi
|
|
30495
|
+
*/
|
|
30496
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options) {
|
|
30497
|
+
return VPSSSHKeysApiFp(this.configuration).removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30498
|
+
}
|
|
30499
|
+
}
|
|
30230
30500
|
/**
|
|
30231
30501
|
* VPSSnapshotsApi - axios parameter creator
|
|
30232
30502
|
* @export
|
|
@@ -30540,11 +30810,12 @@ export class VPSSnapshotsApi extends BaseAPI {
|
|
|
30540
30810
|
export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
30541
30811
|
return {
|
|
30542
30812
|
/**
|
|
30543
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
30813
|
+
* 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.
|
|
30544
30814
|
* @summary Get attached public keys
|
|
30545
30815
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
30546
30816
|
* @param {number} [page] Page number
|
|
30547
30817
|
* @param {*} [options] Override http request option.
|
|
30818
|
+
* @deprecated
|
|
30548
30819
|
* @throws {RequiredError}
|
|
30549
30820
|
*/
|
|
30550
30821
|
getAttachedPublicKeysV1: (virtualMachineId_1, page_1, ...args_1) => __awaiter(this, [virtualMachineId_1, page_1, ...args_1], void 0, function* (virtualMachineId, page, options = {}) {
|
|
@@ -31076,11 +31347,12 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
31076
31347
|
const localVarAxiosParamCreator = VPSVirtualMachineApiAxiosParamCreator(configuration);
|
|
31077
31348
|
return {
|
|
31078
31349
|
/**
|
|
31079
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
31350
|
+
* 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.
|
|
31080
31351
|
* @summary Get attached public keys
|
|
31081
31352
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31082
31353
|
* @param {number} [page] Page number
|
|
31083
31354
|
* @param {*} [options] Override http request option.
|
|
31355
|
+
* @deprecated
|
|
31084
31356
|
* @throws {RequiredError}
|
|
31085
31357
|
*/
|
|
31086
31358
|
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
@@ -31318,11 +31590,12 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
31318
31590
|
const localVarFp = VPSVirtualMachineApiFp(configuration);
|
|
31319
31591
|
return {
|
|
31320
31592
|
/**
|
|
31321
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
31593
|
+
* 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.
|
|
31322
31594
|
* @summary Get attached public keys
|
|
31323
31595
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31324
31596
|
* @param {number} [page] Page number
|
|
31325
31597
|
* @param {*} [options] Override http request option.
|
|
31598
|
+
* @deprecated
|
|
31326
31599
|
* @throws {RequiredError}
|
|
31327
31600
|
*/
|
|
31328
31601
|
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
@@ -31485,11 +31758,12 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
31485
31758
|
*/
|
|
31486
31759
|
export class VPSVirtualMachineApi extends BaseAPI {
|
|
31487
31760
|
/**
|
|
31488
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
31761
|
+
* 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.
|
|
31489
31762
|
* @summary Get attached public keys
|
|
31490
31763
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31491
31764
|
* @param {number} [page] Page number
|
|
31492
31765
|
* @param {*} [options] Override http request option.
|
|
31766
|
+
* @deprecated
|
|
31493
31767
|
* @throws {RequiredError}
|
|
31494
31768
|
* @memberof VPSVirtualMachineApi
|
|
31495
31769
|
*/
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.62.0
|
|
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: 1.
|
|
6
|
+
* API Version: 1.62.0
|
|
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: 1.
|
|
4
|
+
* API Version: 1.62.0
|
|
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: 1.
|
|
6
|
+
* API Version: 1.62.0
|
|
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: 1.
|
|
4
|
+
* API Version: 1.62.0
|
|
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: 1.
|
|
6
|
+
* API Version: 1.62.0
|
|
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/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.62.0" }, (_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: 1.
|
|
4
|
+
* API Version: 1.62.0
|
|
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: 1.
|
|
6
|
+
* API Version: 1.62.0
|
|
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: 1.
|
|
4
|
+
* API Version: 1.62.0
|
|
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: 1.
|
|
7
|
+
* API Version: 1.62.0
|
|
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
|