@pidginhost/sdk 0.3.0 → 0.6.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/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/CHANGELOG.md +68 -0
- package/README.md +6 -219
- package/api.ts +11352 -26965
- package/dist/api.d.ts +686 -7134
- package/dist/api.js +10749 -25515
- package/dist/esm/api.d.ts +686 -7134
- package/dist/esm/api.js +11032 -25798
- package/docs/AccountApi.md +142 -1138
- package/docs/AuthApi.md +0 -97
- package/docs/BillingApi.md +134 -1073
- package/docs/CloudApi.md +904 -4985
- package/docs/ClusterAdd.md +4 -0
- package/docs/ClusterDetail.md +12 -0
- package/docs/DedicatedApi.md +0 -272
- package/docs/DomainApi.md +144 -1164
- package/docs/FreednsApi.md +0 -324
- package/docs/HardwareGeneration.md +34 -0
- package/docs/HostingApi.md +0 -160
- package/docs/KubeVersionEnum.md +4 -4
- package/docs/KubernetesApi.md +534 -3739
- package/docs/PatchedClusterDetail.md +12 -0
- package/docs/PatchedResourcePool.md +2 -0
- package/docs/PatchedServerDetail.md +2 -0
- package/docs/ResourcePool.md +2 -0
- package/docs/ResourcePoolAdd.md +2 -0
- package/docs/SchemaApi.md +0 -55
- package/docs/Server.md +2 -0
- package/docs/ServerAdd.md +4 -0
- package/docs/ServerDetail.md +2 -0
- package/docs/SupportApi.md +0 -417
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **number** | | [optional] [readonly] [default to undefined]
|
|
9
9
|
**status** | [**StatusA57Enum**](StatusA57Enum.md) | | [optional] [readonly] [default to undefined]
|
|
10
10
|
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**generation** | **string** | | [optional] [readonly] [default to undefined]
|
|
11
12
|
**cluster_type** | **string** | | [optional] [readonly] [default to undefined]
|
|
12
13
|
**kube_version** | **string** | | [optional] [readonly] [default to undefined]
|
|
13
14
|
**price_per_month** | **string** | | [optional] [default to undefined]
|
|
@@ -16,10 +17,15 @@ Name | Type | Description | Notes
|
|
|
16
17
|
**features_ready** | **boolean** | | [optional] [readonly] [default to undefined]
|
|
17
18
|
**kubeconfig_valid_until** | **string** | | [optional] [readonly] [default to undefined]
|
|
18
19
|
**ipv4_address** | **string** | | [optional] [readonly] [default to undefined]
|
|
20
|
+
**ipv6_address** | **string** | | [optional] [readonly] [default to undefined]
|
|
21
|
+
**dual_stack** | **string** | | [optional] [readonly] [default to undefined]
|
|
19
22
|
**_protected** | **boolean** | | [optional] [default to undefined]
|
|
20
23
|
**talos_version** | **string** | | [optional] [readonly] [default to undefined]
|
|
21
24
|
**talos_upgrade_available** | **string** | | [optional] [readonly] [default to undefined]
|
|
22
25
|
**talos_next_version** | **string** | | [optional] [readonly] [default to undefined]
|
|
26
|
+
**storage_quota_gb** | **string** | | [optional] [readonly] [default to undefined]
|
|
27
|
+
**last_pool_used_bytes** | **string** | | [optional] [readonly] [default to undefined]
|
|
28
|
+
**last_storage_sync_at** | **string** | | [optional] [readonly] [default to undefined]
|
|
23
29
|
|
|
24
30
|
## Example
|
|
25
31
|
|
|
@@ -30,6 +36,7 @@ const instance: PatchedClusterDetail = {
|
|
|
30
36
|
id,
|
|
31
37
|
status,
|
|
32
38
|
name,
|
|
39
|
+
generation,
|
|
33
40
|
cluster_type,
|
|
34
41
|
kube_version,
|
|
35
42
|
price_per_month,
|
|
@@ -38,10 +45,15 @@ const instance: PatchedClusterDetail = {
|
|
|
38
45
|
features_ready,
|
|
39
46
|
kubeconfig_valid_until,
|
|
40
47
|
ipv4_address,
|
|
48
|
+
ipv6_address,
|
|
49
|
+
dual_stack,
|
|
41
50
|
_protected,
|
|
42
51
|
talos_version,
|
|
43
52
|
talos_upgrade_available,
|
|
44
53
|
talos_next_version,
|
|
54
|
+
storage_quota_gb,
|
|
55
|
+
last_pool_used_bytes,
|
|
56
|
+
last_storage_sync_at,
|
|
45
57
|
};
|
|
46
58
|
```
|
|
47
59
|
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **number** | | [optional] [readonly] [default to undefined]
|
|
9
9
|
**_package** | **string** | | [optional] [readonly] [default to undefined]
|
|
10
|
+
**generation** | **string** | | [optional] [readonly] [default to undefined]
|
|
10
11
|
**size** | **string** | | [optional] [readonly] [default to undefined]
|
|
11
12
|
**nodes** | [**Array<ResourcePoolNode>**](ResourcePoolNode.md) | | [optional] [readonly] [default to undefined]
|
|
12
13
|
**new_size** | **number** | | [optional] [default to undefined]
|
|
@@ -19,6 +20,7 @@ import { PatchedResourcePool } from '@pidginhost/sdk';
|
|
|
19
20
|
const instance: PatchedResourcePool = {
|
|
20
21
|
id,
|
|
21
22
|
_package,
|
|
23
|
+
generation,
|
|
22
24
|
size,
|
|
23
25
|
nodes,
|
|
24
26
|
new_size,
|
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**cpus** | **number** | | [optional] [readonly] [default to undefined]
|
|
14
14
|
**memory** | **number** | | [optional] [readonly] [default to undefined]
|
|
15
15
|
**disk_size** | **number** | | [optional] [readonly] [default to undefined]
|
|
16
|
+
**generation** | **string** | | [optional] [readonly] [default to undefined]
|
|
16
17
|
**machine** | **{ [key: string]: any; }** | | [optional] [readonly] [default to undefined]
|
|
17
18
|
**volumes** | [**Array<Volume>**](Volume.md) | | [optional] [readonly] [default to undefined]
|
|
18
19
|
**networks** | **{ [key: string]: any; }** | | [optional] [readonly] [default to undefined]
|
|
@@ -36,6 +37,7 @@ const instance: PatchedServerDetail = {
|
|
|
36
37
|
cpus,
|
|
37
38
|
memory,
|
|
38
39
|
disk_size,
|
|
40
|
+
generation,
|
|
39
41
|
machine,
|
|
40
42
|
volumes,
|
|
41
43
|
networks,
|
package/docs/ResourcePool.md
CHANGED
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **number** | | [readonly] [default to undefined]
|
|
9
9
|
**_package** | **string** | | [readonly] [default to undefined]
|
|
10
|
+
**generation** | **string** | | [readonly] [default to undefined]
|
|
10
11
|
**size** | **string** | | [readonly] [default to undefined]
|
|
11
12
|
**nodes** | [**Array<ResourcePoolNode>**](ResourcePoolNode.md) | | [readonly] [default to undefined]
|
|
12
13
|
**new_size** | **number** | | [optional] [default to undefined]
|
|
@@ -19,6 +20,7 @@ import { ResourcePool } from '@pidginhost/sdk';
|
|
|
19
20
|
const instance: ResourcePool = {
|
|
20
21
|
id,
|
|
21
22
|
_package,
|
|
23
|
+
generation,
|
|
22
24
|
size,
|
|
23
25
|
nodes,
|
|
24
26
|
new_size,
|
package/docs/ResourcePoolAdd.md
CHANGED
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**resource_pool_package** | **string** | ID or slug | [default to undefined]
|
|
9
9
|
**resource_pool_size** | **number** | | [default to undefined]
|
|
10
|
+
**generation** | **string** | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { ResourcePoolAdd } from '@pidginhost/sdk';
|
|
|
16
17
|
const instance: ResourcePoolAdd = {
|
|
17
18
|
resource_pool_package,
|
|
18
19
|
resource_pool_size,
|
|
20
|
+
generation,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
package/docs/SchemaApi.md
CHANGED
|
@@ -5,7 +5,6 @@ All URIs are relative to *https://www.pidginhost.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**schemaRetrieve**](#schemaretrieve) | **GET** /api/schema/ | |
|
|
8
|
-
|[**schemaRetrieve2**](#schemaretrieve2) | **GET** /api/v1/schema/ | |
|
|
9
8
|
|
|
10
9
|
# **schemaRetrieve**
|
|
11
10
|
> { [key: string]: any; } schemaRetrieve()
|
|
@@ -61,57 +60,3 @@ const { status, data } = await apiInstance.schemaRetrieve(
|
|
|
61
60
|
|
|
62
61
|
[[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)
|
|
63
62
|
|
|
64
|
-
# **schemaRetrieve2**
|
|
65
|
-
> { [key: string]: any; } schemaRetrieve2()
|
|
66
|
-
|
|
67
|
-
OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
|
|
68
|
-
|
|
69
|
-
### Example
|
|
70
|
-
|
|
71
|
-
```typescript
|
|
72
|
-
import {
|
|
73
|
-
SchemaApi,
|
|
74
|
-
Configuration
|
|
75
|
-
} from '@pidginhost/sdk';
|
|
76
|
-
|
|
77
|
-
const configuration = new Configuration();
|
|
78
|
-
const apiInstance = new SchemaApi(configuration);
|
|
79
|
-
|
|
80
|
-
let format: 'json' | 'yaml'; // (optional) (default to undefined)
|
|
81
|
-
let lang: 'en' | 'ro'; // (optional) (default to undefined)
|
|
82
|
-
|
|
83
|
-
const { status, data } = await apiInstance.schemaRetrieve2(
|
|
84
|
-
format,
|
|
85
|
-
lang
|
|
86
|
-
);
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Parameters
|
|
90
|
-
|
|
91
|
-
|Name | Type | Description | Notes|
|
|
92
|
-
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **format** | [**'json' | 'yaml'**]**Array<'json' | 'yaml'>** | | (optional) defaults to undefined|
|
|
94
|
-
| **lang** | [**'en' | 'ro'**]**Array<'en' | 'ro'>** | | (optional) defaults to undefined|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
### Return type
|
|
98
|
-
|
|
99
|
-
**{ [key: string]: any; }**
|
|
100
|
-
|
|
101
|
-
### Authorization
|
|
102
|
-
|
|
103
|
-
[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
|
|
104
|
-
|
|
105
|
-
### HTTP request headers
|
|
106
|
-
|
|
107
|
-
- **Content-Type**: Not defined
|
|
108
|
-
- **Accept**: application/vnd.oai.openapi, application/yaml, application/vnd.oai.openapi+json, application/json
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
### HTTP response details
|
|
112
|
-
| Status code | Description | Response headers |
|
|
113
|
-
|-------------|-------------|------------------|
|
|
114
|
-
|**200** | | - |
|
|
115
|
-
|
|
116
|
-
[[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)
|
|
117
|
-
|
package/docs/Server.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**cpus** | **number** | | [readonly] [default to undefined]
|
|
14
14
|
**memory** | **number** | | [readonly] [default to undefined]
|
|
15
15
|
**disk_size** | **number** | | [readonly] [default to undefined]
|
|
16
|
+
**generation** | **string** | | [readonly] [default to undefined]
|
|
16
17
|
**status** | [**StatusA57Enum**](StatusA57Enum.md) | | [optional] [default to undefined]
|
|
17
18
|
**destroy_protection** | **boolean** | Prevents the server from being destroyed until disabled. | [readonly] [default to undefined]
|
|
18
19
|
**ha_enabled** | **boolean** | Enables Proxmox HA — automatic restart and migration on node failure. | [readonly] [default to undefined]
|
|
@@ -32,6 +33,7 @@ const instance: Server = {
|
|
|
32
33
|
cpus,
|
|
33
34
|
memory,
|
|
34
35
|
disk_size,
|
|
36
|
+
generation,
|
|
35
37
|
status,
|
|
36
38
|
destroy_protection,
|
|
37
39
|
ha_enabled,
|
package/docs/ServerAdd.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**password** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**ssh_pub_key** | **string** | New SSH key | [optional] [default to undefined]
|
|
14
14
|
**ssh_pub_key_id** | **string** | ID or fingerprint | [optional] [default to undefined]
|
|
15
|
+
**user_data** | **string** | Optional startup script. Must be an executable script with a shebang. Stored in cleartext. | [optional] [default to undefined]
|
|
15
16
|
**public_ip** | **string** | ID or slug | [optional] [default to undefined]
|
|
16
17
|
**new_ipv4** | **boolean** | | [optional] [default to undefined]
|
|
17
18
|
**public_ipv6** | **string** | ID or slug | [optional] [default to undefined]
|
|
@@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|
|
25
26
|
**extra_volume_size** | **number** | | [optional] [default to 0]
|
|
26
27
|
**no_network_acknowledged** | **boolean** | | [optional] [default to undefined]
|
|
27
28
|
**enable_ha** | **boolean** | | [optional] [default to false]
|
|
29
|
+
**generation** | **string** | | [optional] [default to undefined]
|
|
28
30
|
|
|
29
31
|
## Example
|
|
30
32
|
|
|
@@ -39,6 +41,7 @@ const instance: ServerAdd = {
|
|
|
39
41
|
password,
|
|
40
42
|
ssh_pub_key,
|
|
41
43
|
ssh_pub_key_id,
|
|
44
|
+
user_data,
|
|
42
45
|
public_ip,
|
|
43
46
|
new_ipv4,
|
|
44
47
|
public_ipv6,
|
|
@@ -52,6 +55,7 @@ const instance: ServerAdd = {
|
|
|
52
55
|
extra_volume_size,
|
|
53
56
|
no_network_acknowledged,
|
|
54
57
|
enable_ha,
|
|
58
|
+
generation,
|
|
55
59
|
};
|
|
56
60
|
```
|
|
57
61
|
|
package/docs/ServerDetail.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**cpus** | **number** | | [readonly] [default to undefined]
|
|
14
14
|
**memory** | **number** | | [readonly] [default to undefined]
|
|
15
15
|
**disk_size** | **number** | | [readonly] [default to undefined]
|
|
16
|
+
**generation** | **string** | | [readonly] [default to undefined]
|
|
16
17
|
**machine** | **{ [key: string]: any; }** | | [readonly] [default to undefined]
|
|
17
18
|
**volumes** | [**Array<Volume>**](Volume.md) | | [readonly] [default to undefined]
|
|
18
19
|
**networks** | **{ [key: string]: any; }** | | [readonly] [default to undefined]
|
|
@@ -36,6 +37,7 @@ const instance: ServerDetail = {
|
|
|
36
37
|
cpus,
|
|
37
38
|
memory,
|
|
38
39
|
disk_size,
|
|
40
|
+
generation,
|
|
39
41
|
machine,
|
|
40
42
|
volumes,
|
|
41
43
|
networks,
|