hostinger-api-sdk 3.4.1 → 3.4.3

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.
@@ -4,69 +4,10 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**attachPublicKeyV1**](#attachpublickeyv1) | **POST** /api/vps/v1/public-keys/attach/{virtualMachineId} | Attach public key|
8
7
  |[**createPublicKeyV1**](#createpublickeyv1) | **POST** /api/vps/v1/public-keys | Create public key|
9
8
  |[**deletePublicKeyV1**](#deletepublickeyv1) | **DELETE** /api/vps/v1/public-keys/{publicKeyId} | Delete public key|
10
9
  |[**getPublicKeysV1**](#getpublickeysv1) | **GET** /api/vps/v1/public-keys | Get public keys|
11
10
 
12
- # **attachPublicKeyV1**
13
- > VPSV1ActionActionResource attachPublicKeyV1(vPSV1PublicKeyAttachRequest)
14
-
15
- 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.
16
-
17
- ### Example
18
-
19
- ```typescript
20
- import {
21
- VPSPublicKeysApi,
22
- Configuration,
23
- VPSV1PublicKeyAttachRequest
24
- } from '@hostinger/sdk';
25
-
26
- const configuration = new Configuration();
27
- const apiInstance = new VPSPublicKeysApi(configuration);
28
-
29
- let virtualMachineId: number; //Virtual Machine ID (default to undefined)
30
- let vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest; //
31
-
32
- const { status, data } = await apiInstance.attachPublicKeyV1(
33
- virtualMachineId,
34
- vPSV1PublicKeyAttachRequest
35
- );
36
- ```
37
-
38
- ### Parameters
39
-
40
- |Name | Type | Description | Notes|
41
- |------------- | ------------- | ------------- | -------------|
42
- | **vPSV1PublicKeyAttachRequest** | **VPSV1PublicKeyAttachRequest**| | |
43
- | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
44
-
45
-
46
- ### Return type
47
-
48
- **VPSV1ActionActionResource**
49
-
50
- ### Authorization
51
-
52
- [apiToken](../README.md#apiToken)
53
-
54
- ### HTTP request headers
55
-
56
- - **Content-Type**: application/json
57
- - **Accept**: application/json
58
-
59
-
60
- ### HTTP response details
61
- | Status code | Description | Response headers |
62
- |-------------|-------------|------------------|
63
- |**200** | Success response | - |
64
- |**422** | Validation error response | - |
65
- |**401** | Unauthenticated response | - |
66
- |**500** | Error response | - |
67
-
68
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
69
-
70
11
  # **createPublicKeyV1**
71
12
  > VPSV1PublicKeyPublicKeyResource createPublicKeyV1(vPSV1PublicKeyStoreRequest)
72
13
 
@@ -4,7 +4,6 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getAttachedPublicKeysV1**](#getattachedpublickeysv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/public-keys | Get attached public keys|
8
7
  |[**getMetricsV1**](#getmetricsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics|
9
8
  |[**getVirtualMachineDetailsV1**](#getvirtualmachinedetailsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId} | Get virtual machine details|
10
9
  |[**getVirtualMachinesV1**](#getvirtualmachinesv1) | **GET** /api/vps/v1/virtual-machines | Get virtual machines|
@@ -20,62 +19,6 @@ All URIs are relative to *https://developers.hostinger.com*
20
19
  |[**startVirtualMachineV1**](#startvirtualmachinev1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/start | Start virtual machine|
21
20
  |[**stopVirtualMachineV1**](#stopvirtualmachinev1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/stop | Stop virtual machine|
22
21
 
23
- # **getAttachedPublicKeysV1**
24
- > VPSV1PublicKeyListResponse getAttachedPublicKeysV1()
25
-
26
- 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.
27
-
28
- ### Example
29
-
30
- ```typescript
31
- import {
32
- VPSVirtualMachineApi,
33
- Configuration
34
- } from '@hostinger/sdk';
35
-
36
- const configuration = new Configuration();
37
- const apiInstance = new VPSVirtualMachineApi(configuration);
38
-
39
- let virtualMachineId: number; //Virtual Machine ID (default to undefined)
40
- let page: number; //Page number (optional) (default to undefined)
41
-
42
- const { status, data } = await apiInstance.getAttachedPublicKeysV1(
43
- virtualMachineId,
44
- page
45
- );
46
- ```
47
-
48
- ### Parameters
49
-
50
- |Name | Type | Description | Notes|
51
- |------------- | ------------- | ------------- | -------------|
52
- | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
53
- | **page** | [**number**] | Page number | (optional) defaults to undefined|
54
-
55
-
56
- ### Return type
57
-
58
- **VPSV1PublicKeyListResponse**
59
-
60
- ### Authorization
61
-
62
- [apiToken](../README.md#apiToken)
63
-
64
- ### HTTP request headers
65
-
66
- - **Content-Type**: Not defined
67
- - **Accept**: application/json
68
-
69
-
70
- ### HTTP response details
71
- | Status code | Description | Response headers |
72
- |-------------|-------------|------------------|
73
- |**200** | Success response | - |
74
- |**401** | Unauthenticated response | - |
75
- |**500** | Error response | - |
76
-
77
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
78
-
79
22
  # **getMetricsV1**
80
23
  > VPSV1MetricsMetricsCollection getMetricsV1()
81
24
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.4.1
6
+ * API Version: 3.4.3
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {