hostinger-api-sdk 0.0.13 → 0.0.15
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/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- package/README.md +2 -2
- package/api.ts +557 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +469 -103
- package/dist/api.js +352 -12
- 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 +469 -103
- package/dist/esm/api.js +345 -9
- 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/ReachContactsApi.md +224 -0
- package/docs/ReachListContactsV1200Response.md +22 -0
- package/docs/ReachV1ContactsContactResource.md +34 -0
- package/docs/ReachV1ContactsGroupsContactGroupResource.md +22 -0
- package/docs/ReachV1ContactsStoreRequest.md +28 -0
- package/docs/VPSDockerManagerApi.md +2 -2
- package/docs/VPSV1BackupBackupResource.md +4 -0
- package/docs/VPSV1DockerManagerContainerResource.md +2 -0
- package/docs/VPSV1DockerManagerContentResource.md +2 -0
- package/docs/VPSV1DockerManagerProjectResource.md +2 -0
- package/docs/VPSV1SnapshotSnapshotResource.md +2 -0
- package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +2 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# ReachContactsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createANewContactV1**](#createanewcontactv1) | **POST** /api/reach/v1/contacts | Create a new contact|
|
|
8
|
+
|[**deleteAContactV1**](#deleteacontactv1) | **DELETE** /api/reach/v1/contacts/{uuid} | Delete a contact|
|
|
9
|
+
|[**listContactGroupsV1**](#listcontactgroupsv1) | **GET** /api/reach/v1/contacts/groups | List contact groups|
|
|
10
|
+
|[**listContactsV1**](#listcontactsv1) | **GET** /api/reach/v1/contacts | List contacts|
|
|
11
|
+
|
|
12
|
+
# **createANewContactV1**
|
|
13
|
+
> ReachV1ContactsContactResource createANewContactV1(reachV1ContactsStoreRequest)
|
|
14
|
+
|
|
15
|
+
Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ReachContactsApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
ReachV1ContactsStoreRequest
|
|
24
|
+
} from 'hostinger-api-sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
28
|
+
|
|
29
|
+
let reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.createANewContactV1(
|
|
32
|
+
reachV1ContactsStoreRequest
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **reachV1ContactsStoreRequest** | **ReachV1ContactsStoreRequest**| | |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**ReachV1ContactsContactResource**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[apiToken](../README.md#apiToken)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Success response | - |
|
|
61
|
+
|**422** | Validation error response | - |
|
|
62
|
+
|**401** | Unauthenticated response | - |
|
|
63
|
+
|**500** | Error response | - |
|
|
64
|
+
|
|
65
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
66
|
+
|
|
67
|
+
# **deleteAContactV1**
|
|
68
|
+
> CommonSuccessEmptyResource deleteAContactV1()
|
|
69
|
+
|
|
70
|
+
Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
ReachContactsApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from 'hostinger-api-sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
82
|
+
|
|
83
|
+
let uuid: string; //UUID of the contact to delete (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.deleteAContactV1(
|
|
86
|
+
uuid
|
|
87
|
+
);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameters
|
|
91
|
+
|
|
92
|
+
|Name | Type | Description | Notes|
|
|
93
|
+
|------------- | ------------- | ------------- | -------------|
|
|
94
|
+
| **uuid** | [**string**] | UUID of the contact to delete | defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
**CommonSuccessEmptyResource**
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
[apiToken](../README.md#apiToken)
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: Not defined
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | Success response | - |
|
|
115
|
+
|**401** | Unauthenticated response | - |
|
|
116
|
+
|**500** | Error response | - |
|
|
117
|
+
|
|
118
|
+
[[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)
|
|
119
|
+
|
|
120
|
+
# **listContactGroupsV1**
|
|
121
|
+
> Array<ReachV1ContactsGroupsContactGroupResource> listContactGroupsV1()
|
|
122
|
+
|
|
123
|
+
Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
124
|
+
|
|
125
|
+
### Example
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
import {
|
|
129
|
+
ReachContactsApi,
|
|
130
|
+
Configuration
|
|
131
|
+
} from 'hostinger-api-sdk';
|
|
132
|
+
|
|
133
|
+
const configuration = new Configuration();
|
|
134
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
135
|
+
|
|
136
|
+
const { status, data } = await apiInstance.listContactGroupsV1();
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Parameters
|
|
140
|
+
This endpoint does not have any parameters.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
**Array<ReachV1ContactsGroupsContactGroupResource>**
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[apiToken](../README.md#apiToken)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: Not defined
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### HTTP response details
|
|
158
|
+
| Status code | Description | Response headers |
|
|
159
|
+
|-------------|-------------|------------------|
|
|
160
|
+
|**200** | Success response | - |
|
|
161
|
+
|**401** | Unauthenticated response | - |
|
|
162
|
+
|**500** | Error response | - |
|
|
163
|
+
|
|
164
|
+
[[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)
|
|
165
|
+
|
|
166
|
+
# **listContactsV1**
|
|
167
|
+
> ReachListContactsV1200Response listContactsV1()
|
|
168
|
+
|
|
169
|
+
Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
170
|
+
|
|
171
|
+
### Example
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
import {
|
|
175
|
+
ReachContactsApi,
|
|
176
|
+
Configuration
|
|
177
|
+
} from 'hostinger-api-sdk';
|
|
178
|
+
|
|
179
|
+
const configuration = new Configuration();
|
|
180
|
+
const apiInstance = new ReachContactsApi(configuration);
|
|
181
|
+
|
|
182
|
+
let groupUuid: string; //Filter contacts by group UUID (optional) (default to undefined)
|
|
183
|
+
let subscriptionStatus: 'subscribed' | 'unsubscribed'; //Filter contacts by subscription status (optional) (default to undefined)
|
|
184
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
185
|
+
|
|
186
|
+
const { status, data } = await apiInstance.listContactsV1(
|
|
187
|
+
groupUuid,
|
|
188
|
+
subscriptionStatus,
|
|
189
|
+
page
|
|
190
|
+
);
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Parameters
|
|
194
|
+
|
|
195
|
+
|Name | Type | Description | Notes|
|
|
196
|
+
|------------- | ------------- | ------------- | -------------|
|
|
197
|
+
| **groupUuid** | [**string**] | Filter contacts by group UUID | (optional) defaults to undefined|
|
|
198
|
+
| **subscriptionStatus** | [**'subscribed' | 'unsubscribed'**]**Array<'subscribed' | 'unsubscribed'>** | Filter contacts by subscription status | (optional) defaults to undefined|
|
|
199
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### Return type
|
|
203
|
+
|
|
204
|
+
**ReachListContactsV1200Response**
|
|
205
|
+
|
|
206
|
+
### Authorization
|
|
207
|
+
|
|
208
|
+
[apiToken](../README.md#apiToken)
|
|
209
|
+
|
|
210
|
+
### HTTP request headers
|
|
211
|
+
|
|
212
|
+
- **Content-Type**: Not defined
|
|
213
|
+
- **Accept**: application/json
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### HTTP response details
|
|
217
|
+
| Status code | Description | Response headers |
|
|
218
|
+
|-------------|-------------|------------------|
|
|
219
|
+
|**200** | Success response | - |
|
|
220
|
+
|**401** | Unauthenticated response | - |
|
|
221
|
+
|**500** | Error response | - |
|
|
222
|
+
|
|
223
|
+
[[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)
|
|
224
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ReachListContactsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<ReachV1ContactsContactResource>**](ReachV1ContactsContactResource.md) | Array of [`Reach.V1.Contacts.ContactResource`](#model/reachv1contactscontactresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReachListContactsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ReachListContactsV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ReachV1ContactsContactResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**surname** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**subscription_status** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**subscribed_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**source** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**note** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ReachV1ContactsContactResource } from 'hostinger-api-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ReachV1ContactsContactResource = {
|
|
23
|
+
uuid,
|
|
24
|
+
name,
|
|
25
|
+
surname,
|
|
26
|
+
email,
|
|
27
|
+
subscription_status,
|
|
28
|
+
subscribed_at,
|
|
29
|
+
source,
|
|
30
|
+
note,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ReachV1ContactsGroupsContactGroupResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReachV1ContactsGroupsContactGroupResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ReachV1ContactsGroupsContactGroupResource = {
|
|
17
|
+
uuid,
|
|
18
|
+
title,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ReachV1ContactsStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**surname** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**group_uuids** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**note** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ReachV1ContactsStoreRequest } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ReachV1ContactsStoreRequest = {
|
|
20
|
+
email,
|
|
21
|
+
name,
|
|
22
|
+
surname,
|
|
23
|
+
group_uuids,
|
|
24
|
+
note,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -18,7 +18,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
18
18
|
# **createNewProjectV1**
|
|
19
19
|
> VPSV1ActionActionResource createNewProjectV1(vPSV1VirtualMachineDockerManagerUpRequest)
|
|
20
20
|
|
|
21
|
-
Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project already exists,
|
|
21
|
+
Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
|
|
22
22
|
|
|
23
23
|
### Example
|
|
24
24
|
|
|
@@ -247,7 +247,7 @@ const { status, data } = await apiInstance.getProjectContentsV1(
|
|
|
247
247
|
# **getProjectListV1**
|
|
248
248
|
> Array<VPSV1DockerManagerProjectResource> getProjectListV1()
|
|
249
249
|
|
|
250
|
-
Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, and
|
|
250
|
+
Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
|
|
251
251
|
|
|
252
252
|
### Example
|
|
253
253
|
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **number** | Backup ID | [optional] [default to undefined]
|
|
9
|
+
**size** | **number** | Backup size in kilobytes | [optional] [default to undefined]
|
|
10
|
+
**restore_time** | **number** | Estimated backup restore time in seconds | [optional] [default to undefined]
|
|
9
11
|
**location** | **string** | Location of the backup | [optional] [default to undefined]
|
|
10
12
|
**created_at** | **string** | | [optional] [default to undefined]
|
|
11
13
|
|
|
@@ -16,6 +18,8 @@ import { VPSV1BackupBackupResource } from 'hostinger-api-sdk';
|
|
|
16
18
|
|
|
17
19
|
const instance: VPSV1BackupBackupResource = {
|
|
18
20
|
id,
|
|
21
|
+
size,
|
|
22
|
+
restore_time,
|
|
19
23
|
location,
|
|
20
24
|
created_at,
|
|
21
25
|
};
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**command** | **string** | Command being executed inside the container (may be truncated with ...) | [optional] [default to undefined]
|
|
12
12
|
**status** | **string** | Human-readable container status including uptime, exit codes, or error information | [optional] [default to undefined]
|
|
13
13
|
**state** | **string** | Programmatic container lifecycle state for automated processing | [optional] [default to undefined]
|
|
14
|
+
**health** | **string** | Container health status | [optional] [default to undefined]
|
|
14
15
|
**ports** | [**Array<VPSV1DockerManagerContainerPortResource>**](VPSV1DockerManagerContainerPortResource.md) | Array of [`VPS.V1.DockerManager.ContainerPortResource`](#model/vpsv1dockermanagercontainerportresource) | [optional] [default to undefined]
|
|
15
16
|
**stats** | [**VPSV1DockerManagerContainerStatsResource**](VPSV1DockerManagerContainerStatsResource.md) | | [optional] [default to undefined]
|
|
16
17
|
|
|
@@ -26,6 +27,7 @@ const instance: VPSV1DockerManagerContainerResource = {
|
|
|
26
27
|
command,
|
|
27
28
|
status,
|
|
28
29
|
state,
|
|
30
|
+
health,
|
|
29
31
|
ports,
|
|
30
32
|
stats,
|
|
31
33
|
};
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**content** | **string** | Contents of docker-compose file | [optional] [default to undefined]
|
|
9
|
+
**environment** | **string** | Project environment variables | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ import { VPSV1DockerManagerContentResource } from 'hostinger-api-sdk';
|
|
|
14
15
|
|
|
15
16
|
const instance: VPSV1DockerManagerContentResource = {
|
|
16
17
|
content,
|
|
18
|
+
environment,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**status** | **string** | Raw output from docker compose ps command showing service count and states | [optional] [default to undefined]
|
|
10
10
|
**state** | **string** | Derived project state parsed from the raw docker compose status | [optional] [default to undefined]
|
|
11
11
|
**path** | **string** | Full filesystem path to the docker-compose.yml file | [optional] [default to undefined]
|
|
12
|
+
**containers** | [**Array<VPSV1DockerManagerContainerResource>**](VPSV1DockerManagerContainerResource.md) | Array of [`VPS.V1.DockerManager.ContainerResource`](#model/vpsv1dockermanagercontainerresource) | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: VPSV1DockerManagerProjectResource = {
|
|
|
20
21
|
status,
|
|
21
22
|
state,
|
|
22
23
|
path,
|
|
24
|
+
containers,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **number** | Snapshot ID | [optional] [default to undefined]
|
|
9
|
+
**restore_time** | **number** | Estimated snapshot restore time in seconds | [optional] [default to undefined]
|
|
9
10
|
**created_at** | **string** | | [optional] [default to undefined]
|
|
10
11
|
**expires_at** | **string** | | [optional] [default to undefined]
|
|
11
12
|
|
|
@@ -16,6 +17,7 @@ import { VPSV1SnapshotSnapshotResource } from 'hostinger-api-sdk';
|
|
|
16
17
|
|
|
17
18
|
const instance: VPSV1SnapshotSnapshotResource = {
|
|
18
19
|
id,
|
|
20
|
+
restore_time,
|
|
19
21
|
created_at,
|
|
20
22
|
expires_at,
|
|
21
23
|
};
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**project_name** | **string** | Docker Compose project name using alphanumeric characters, dashes, and underscores only | [default to undefined]
|
|
9
9
|
**content** | **string** | URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file | [default to undefined]
|
|
10
|
+
**environment** | **string** | Project environment variables | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { VPSV1VirtualMachineDockerManagerUpRequest } from 'hostinger-api-sdk';
|
|
|
16
17
|
const instance: VPSV1VirtualMachineDockerManagerUpRequest = {
|
|
17
18
|
project_name,
|
|
18
19
|
content,
|
|
20
|
+
environment,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **number** | Virtual machine ID | [optional] [default to undefined]
|
|
9
9
|
**firewall_group_id** | **number** | Active firewall ID, `null` if disabled | [optional] [default to undefined]
|
|
10
10
|
**subscription_id** | **string** | Subscription ID | [optional] [default to undefined]
|
|
11
|
+
**data_center_id** | **number** | Data center ID | [optional] [default to undefined]
|
|
11
12
|
**plan** | **string** | VPS plan name | [optional] [default to undefined]
|
|
12
13
|
**hostname** | **string** | | [optional] [default to undefined]
|
|
13
14
|
**state** | **string** | | [optional] [default to undefined]
|
|
@@ -32,6 +33,7 @@ const instance: VPSV1VirtualMachineVirtualMachineResource = {
|
|
|
32
33
|
id,
|
|
33
34
|
firewall_group_id,
|
|
34
35
|
subscription_id,
|
|
36
|
+
data_center_id,
|
|
35
37
|
plan,
|
|
36
38
|
hostname,
|
|
37
39
|
state,
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.1.7
|
|
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
|