@pidginhost/sdk 0.3.0 → 0.5.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.
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **kube_version** | [**KubeVersionEnum**](KubeVersionEnum.md) | | [optional] [default to undefined]
13
13
  **features** | [**Array<FeaturesEnum>**](FeaturesEnum.md) | | [optional] [default to undefined]
14
14
  **enable_gateway_api** | **boolean** | | [optional] [default to undefined]
15
+ **generation** | **string** | | [optional] [default to undefined]
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const instance: ClusterAdd = {
26
27
  kube_version,
27
28
  features,
28
29
  enable_gateway_api,
30
+ generation,
29
31
  };
30
32
  ```
31
33
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **number** | | [readonly] [default to undefined]
9
9
  **status** | [**StatusA57Enum**](StatusA57Enum.md) | | [readonly] [default to undefined]
10
10
  **name** | **string** | | [optional] [default to undefined]
11
+ **generation** | **string** | | [readonly] [default to undefined]
11
12
  **cluster_type** | **string** | | [readonly] [default to undefined]
12
13
  **kube_version** | **string** | | [readonly] [default to undefined]
13
14
  **price_per_month** | **string** | | [default to undefined]
@@ -20,6 +21,9 @@ Name | Type | Description | Notes
20
21
  **talos_version** | **string** | | [readonly] [default to undefined]
21
22
  **talos_upgrade_available** | **string** | | [readonly] [default to undefined]
22
23
  **talos_next_version** | **string** | | [readonly] [default to undefined]
24
+ **storage_quota_gb** | **string** | | [readonly] [default to undefined]
25
+ **last_pool_used_bytes** | **string** | | [readonly] [default to undefined]
26
+ **last_storage_sync_at** | **string** | | [readonly] [default to undefined]
23
27
 
24
28
  ## Example
25
29
 
@@ -30,6 +34,7 @@ const instance: ClusterDetail = {
30
34
  id,
31
35
  status,
32
36
  name,
37
+ generation,
33
38
  cluster_type,
34
39
  kube_version,
35
40
  price_per_month,
@@ -42,6 +47,9 @@ const instance: ClusterDetail = {
42
47
  talos_version,
43
48
  talos_upgrade_available,
44
49
  talos_next_version,
50
+ storage_quota_gb,
51
+ last_pool_used_bytes,
52
+ last_storage_sync_at,
45
53
  };
46
54
  ```
47
55
 
@@ -5,15 +5,10 @@ All URIs are relative to *https://www.pidginhost.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**dedicatedServersList**](#dedicatedserverslist) | **GET** /api/dedicated/servers/ | |
8
- |[**dedicatedServersList2**](#dedicatedserverslist2) | **GET** /api/v1/dedicated/servers/ | |
9
8
  |[**dedicatedServersPowerCreate**](#dedicatedserverspowercreate) | **POST** /api/dedicated/servers/{id}/power/ | |
10
- |[**dedicatedServersPowerCreate2**](#dedicatedserverspowercreate2) | **POST** /api/v1/dedicated/servers/{id}/power/ | |
11
9
  |[**dedicatedServersRdnsCreate**](#dedicatedserversrdnscreate) | **POST** /api/dedicated/servers/{id}/rdns/ | |
12
- |[**dedicatedServersRdnsCreate2**](#dedicatedserversrdnscreate2) | **POST** /api/v1/dedicated/servers/{id}/rdns/ | |
13
10
  |[**dedicatedServersReinstallCreate**](#dedicatedserversreinstallcreate) | **POST** /api/dedicated/servers/{id}/reinstall/ | |
14
- |[**dedicatedServersReinstallCreate2**](#dedicatedserversreinstallcreate2) | **POST** /api/v1/dedicated/servers/{id}/reinstall/ | |
15
11
  |[**dedicatedServersRetrieve**](#dedicatedserversretrieve) | **GET** /api/dedicated/servers/{id}/ | |
16
- |[**dedicatedServersRetrieve2**](#dedicatedserversretrieve2) | **GET** /api/v1/dedicated/servers/{id}/ | |
17
12
 
18
13
  # **dedicatedServersList**
19
14
  > PaginatedDedicatedServerList dedicatedServersList()
@@ -45,57 +40,6 @@ const { status, data } = await apiInstance.dedicatedServersList(
45
40
  | **page** | [**number**] | A page number within the paginated result set. | (optional) defaults to undefined|
46
41
 
47
42
 
48
- ### Return type
49
-
50
- **PaginatedDedicatedServerList**
51
-
52
- ### Authorization
53
-
54
- [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
55
-
56
- ### HTTP request headers
57
-
58
- - **Content-Type**: Not defined
59
- - **Accept**: application/json
60
-
61
-
62
- ### HTTP response details
63
- | Status code | Description | Response headers |
64
- |-------------|-------------|------------------|
65
- |**200** | | - |
66
-
67
- [[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)
68
-
69
- # **dedicatedServersList2**
70
- > PaginatedDedicatedServerList dedicatedServersList2()
71
-
72
- List and manage dedicated server services.
73
-
74
- ### Example
75
-
76
- ```typescript
77
- import {
78
- DedicatedApi,
79
- Configuration
80
- } from '@pidginhost/sdk';
81
-
82
- const configuration = new Configuration();
83
- const apiInstance = new DedicatedApi(configuration);
84
-
85
- let page: number; //A page number within the paginated result set. (optional) (default to undefined)
86
-
87
- const { status, data } = await apiInstance.dedicatedServersList2(
88
- page
89
- );
90
- ```
91
-
92
- ### Parameters
93
-
94
- |Name | Type | Description | Notes|
95
- |------------- | ------------- | ------------- | -------------|
96
- | **page** | [**number**] | A page number within the paginated result set. | (optional) defaults to undefined|
97
-
98
-
99
43
  ### Return type
100
44
 
101
45
  **PaginatedDedicatedServerList**
@@ -151,61 +95,6 @@ const { status, data } = await apiInstance.dedicatedServersPowerCreate(
151
95
  | **id** | [**string**] | | defaults to undefined|
152
96
 
153
97
 
154
- ### Return type
155
-
156
- **PowerActionResponse**
157
-
158
- ### Authorization
159
-
160
- [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
161
-
162
- ### HTTP request headers
163
-
164
- - **Content-Type**: application/json
165
- - **Accept**: application/json
166
-
167
-
168
- ### HTTP response details
169
- | Status code | Description | Response headers |
170
- |-------------|-------------|------------------|
171
- |**200** | | - |
172
-
173
- [[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)
174
-
175
- # **dedicatedServersPowerCreate2**
176
- > PowerActionResponse dedicatedServersPowerCreate2(powerAction)
177
-
178
- Execute a power management action (start, stop, restart, shutdown).
179
-
180
- ### Example
181
-
182
- ```typescript
183
- import {
184
- DedicatedApi,
185
- Configuration,
186
- PowerAction
187
- } from '@pidginhost/sdk';
188
-
189
- const configuration = new Configuration();
190
- const apiInstance = new DedicatedApi(configuration);
191
-
192
- let id: string; // (default to undefined)
193
- let powerAction: PowerAction; //
194
-
195
- const { status, data } = await apiInstance.dedicatedServersPowerCreate2(
196
- id,
197
- powerAction
198
- );
199
- ```
200
-
201
- ### Parameters
202
-
203
- |Name | Type | Description | Notes|
204
- |------------- | ------------- | ------------- | -------------|
205
- | **powerAction** | **PowerAction**| | |
206
- | **id** | [**string**] | | defaults to undefined|
207
-
208
-
209
98
  ### Return type
210
99
 
211
100
  **PowerActionResponse**
@@ -261,61 +150,6 @@ const { status, data } = await apiInstance.dedicatedServersRdnsCreate(
261
150
  | **id** | [**string**] | | defaults to undefined|
262
151
 
263
152
 
264
- ### Return type
265
-
266
- **RDNSUpdateResponse**
267
-
268
- ### Authorization
269
-
270
- [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
271
-
272
- ### HTTP request headers
273
-
274
- - **Content-Type**: application/json
275
- - **Accept**: application/json
276
-
277
-
278
- ### HTTP response details
279
- | Status code | Description | Response headers |
280
- |-------------|-------------|------------------|
281
- |**200** | | - |
282
-
283
- [[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)
284
-
285
- # **dedicatedServersRdnsCreate2**
286
- > RDNSUpdateResponse dedicatedServersRdnsCreate2(dedicatedRDNS)
287
-
288
- Update reverse DNS for a dedicated server IP.
289
-
290
- ### Example
291
-
292
- ```typescript
293
- import {
294
- DedicatedApi,
295
- Configuration,
296
- DedicatedRDNS
297
- } from '@pidginhost/sdk';
298
-
299
- const configuration = new Configuration();
300
- const apiInstance = new DedicatedApi(configuration);
301
-
302
- let id: string; // (default to undefined)
303
- let dedicatedRDNS: DedicatedRDNS; //
304
-
305
- const { status, data } = await apiInstance.dedicatedServersRdnsCreate2(
306
- id,
307
- dedicatedRDNS
308
- );
309
- ```
310
-
311
- ### Parameters
312
-
313
- |Name | Type | Description | Notes|
314
- |------------- | ------------- | ------------- | -------------|
315
- | **dedicatedRDNS** | **DedicatedRDNS**| | |
316
- | **id** | [**string**] | | defaults to undefined|
317
-
318
-
319
153
  ### Return type
320
154
 
321
155
  **RDNSUpdateResponse**
@@ -371,61 +205,6 @@ const { status, data } = await apiInstance.dedicatedServersReinstallCreate(
371
205
  | **id** | [**string**] | | defaults to undefined|
372
206
 
373
207
 
374
- ### Return type
375
-
376
- **ReinstallResponse**
377
-
378
- ### Authorization
379
-
380
- [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
381
-
382
- ### HTTP request headers
383
-
384
- - **Content-Type**: application/json
385
- - **Accept**: application/json
386
-
387
-
388
- ### HTTP response details
389
- | Status code | Description | Response headers |
390
- |-------------|-------------|------------------|
391
- |**200** | | - |
392
-
393
- [[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)
394
-
395
- # **dedicatedServersReinstallCreate2**
396
- > ReinstallResponse dedicatedServersReinstallCreate2(reinstall)
397
-
398
- Reinstall the dedicated server with a new operating system.
399
-
400
- ### Example
401
-
402
- ```typescript
403
- import {
404
- DedicatedApi,
405
- Configuration,
406
- Reinstall
407
- } from '@pidginhost/sdk';
408
-
409
- const configuration = new Configuration();
410
- const apiInstance = new DedicatedApi(configuration);
411
-
412
- let id: string; // (default to undefined)
413
- let reinstall: Reinstall; //
414
-
415
- const { status, data } = await apiInstance.dedicatedServersReinstallCreate2(
416
- id,
417
- reinstall
418
- );
419
- ```
420
-
421
- ### Parameters
422
-
423
- |Name | Type | Description | Notes|
424
- |------------- | ------------- | ------------- | -------------|
425
- | **reinstall** | **Reinstall**| | |
426
- | **id** | [**string**] | | defaults to undefined|
427
-
428
-
429
208
  ### Return type
430
209
 
431
210
  **ReinstallResponse**
@@ -498,54 +277,3 @@ const { status, data } = await apiInstance.dedicatedServersRetrieve(
498
277
 
499
278
  [[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)
500
279
 
501
- # **dedicatedServersRetrieve2**
502
- > DedicatedServer dedicatedServersRetrieve2()
503
-
504
- List and manage dedicated server services.
505
-
506
- ### Example
507
-
508
- ```typescript
509
- import {
510
- DedicatedApi,
511
- Configuration
512
- } from '@pidginhost/sdk';
513
-
514
- const configuration = new Configuration();
515
- const apiInstance = new DedicatedApi(configuration);
516
-
517
- let id: string; // (default to undefined)
518
-
519
- const { status, data } = await apiInstance.dedicatedServersRetrieve2(
520
- id
521
- );
522
- ```
523
-
524
- ### Parameters
525
-
526
- |Name | Type | Description | Notes|
527
- |------------- | ------------- | ------------- | -------------|
528
- | **id** | [**string**] | | defaults to undefined|
529
-
530
-
531
- ### Return type
532
-
533
- **DedicatedServer**
534
-
535
- ### Authorization
536
-
537
- [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
538
-
539
- ### HTTP request headers
540
-
541
- - **Content-Type**: Not defined
542
- - **Accept**: application/json
543
-
544
-
545
- ### HTTP response details
546
- | Status code | Description | Response headers |
547
- |-------------|-------------|------------------|
548
- |**200** | | - |
549
-
550
- [[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)
551
-