@hostafrica/ha-sdk-typescript 1.1.3 → 1.1.4
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/dist/apis/VPSManagementApi.d.ts +18 -3
- package/dist/apis/VPSManagementApi.js +49 -2
- package/dist/esm/apis/VPSManagementApi.d.ts +18 -3
- package/dist/esm/apis/VPSManagementApi.js +50 -3
- package/dist/esm/models/EncryptedPasswordResponseData.d.ts +45 -0
- package/dist/esm/models/EncryptedPasswordResponseData.js +52 -0
- package/dist/esm/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
- package/dist/esm/models/GetEncryptedPasswordRequestContent.js +47 -0
- package/dist/esm/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
- package/dist/esm/models/GetEncryptedPasswordResponseContent.js +49 -0
- package/dist/esm/models/NoVncConsoleDetails.d.ts +19 -1
- package/dist/esm/models/NoVncConsoleDetails.js +7 -3
- package/dist/esm/models/PasswordEncryptionInfo.d.ts +50 -0
- package/dist/esm/models/PasswordEncryptionInfo.js +55 -0
- package/dist/esm/models/VpsCredentials.d.ts +1 -1
- package/dist/esm/models/VpsDetailsResponse.d.ts +4 -3
- package/dist/esm/models/VpsDetailsResponse.js +3 -2
- package/dist/esm/models/VpsIpAddressDetail.d.ts +56 -0
- package/dist/esm/models/VpsIpAddressDetail.js +51 -0
- package/dist/esm/models/VpsVmInfo.d.ts +3 -3
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/retryablePaths.js +1 -0
- package/dist/models/EncryptedPasswordResponseData.d.ts +45 -0
- package/dist/models/EncryptedPasswordResponseData.js +59 -0
- package/dist/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
- package/dist/models/GetEncryptedPasswordRequestContent.js +54 -0
- package/dist/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
- package/dist/models/GetEncryptedPasswordResponseContent.js +56 -0
- package/dist/models/NoVncConsoleDetails.d.ts +19 -1
- package/dist/models/NoVncConsoleDetails.js +7 -3
- package/dist/models/PasswordEncryptionInfo.d.ts +50 -0
- package/dist/models/PasswordEncryptionInfo.js +62 -0
- package/dist/models/VpsCredentials.d.ts +1 -1
- package/dist/models/VpsDetailsResponse.d.ts +4 -3
- package/dist/models/VpsDetailsResponse.js +3 -2
- package/dist/models/VpsIpAddressDetail.d.ts +56 -0
- package/dist/models/VpsIpAddressDetail.js +58 -0
- package/dist/models/VpsVmInfo.d.ts +3 -3
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/retryablePaths.js +1 -0
- package/dist.zip +0 -0
- package/docs/EncryptedPasswordResponseData.md +39 -0
- package/docs/GetEncryptedPasswordRequestContent.md +36 -0
- package/docs/GetEncryptedPasswordResponseContent.md +36 -0
- package/docs/NoVncConsoleDetails.md +6 -0
- package/docs/PasswordEncryptionInfo.md +41 -0
- package/docs/VPSManagementApi.md +81 -1
- package/docs/VpsDetailsResponse.md +1 -1
- package/docs/VpsIpAddressDetail.md +43 -0
- package/docs/VpsVmInfo.md +1 -1
- package/package.json +1 -1
- package/src/apis/VPSManagementApi.ts +67 -2
- package/src/models/EncryptedPasswordResponseData.ts +92 -0
- package/src/models/GetEncryptedPasswordRequestContent.ts +75 -0
- package/src/models/GetEncryptedPasswordResponseContent.ts +92 -0
- package/src/models/NoVncConsoleDetails.ts +26 -3
- package/src/models/PasswordEncryptionInfo.ts +93 -0
- package/src/models/VpsCredentials.ts +1 -1
- package/src/models/VpsDetailsResponse.ts +12 -5
- package/src/models/VpsIpAddressDetail.ts +98 -0
- package/src/models/VpsVmInfo.ts +3 -3
- package/src/models/index.ts +5 -0
- package/src/retryablePaths.ts +1 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Detailed IP address assignment for a VPS
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VpsIpAddressDetail
|
|
20
|
+
*/
|
|
21
|
+
export interface VpsIpAddressDetail {
|
|
22
|
+
/**
|
|
23
|
+
* Primary IP address
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VpsIpAddressDetail
|
|
26
|
+
*/
|
|
27
|
+
ip: string;
|
|
28
|
+
/**
|
|
29
|
+
* IP address (may mirror ip)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VpsIpAddressDetail
|
|
32
|
+
*/
|
|
33
|
+
address?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Subnet mask
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof VpsIpAddressDetail
|
|
38
|
+
*/
|
|
39
|
+
subnet?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Gateway address
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VpsIpAddressDetail
|
|
44
|
+
*/
|
|
45
|
+
gateway?: string;
|
|
46
|
+
/**
|
|
47
|
+
* MAC address when available
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof VpsIpAddressDetail
|
|
50
|
+
*/
|
|
51
|
+
mac?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the VpsIpAddressDetail interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfVpsIpAddressDetail(value: object): value is VpsIpAddressDetail {
|
|
58
|
+
if (!('ip' in value) || value['ip'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function VpsIpAddressDetailFromJSON(json: any): VpsIpAddressDetail {
|
|
63
|
+
return VpsIpAddressDetailFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function VpsIpAddressDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpsIpAddressDetail {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'ip': json['ip'],
|
|
73
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
74
|
+
'subnet': json['subnet'] == null ? undefined : json['subnet'],
|
|
75
|
+
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
76
|
+
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function VpsIpAddressDetailToJSON(json: any): VpsIpAddressDetail {
|
|
81
|
+
return VpsIpAddressDetailToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function VpsIpAddressDetailToJSONTyped(value?: VpsIpAddressDetail | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'ip': value['ip'],
|
|
92
|
+
'address': value['address'],
|
|
93
|
+
'subnet': value['subnet'],
|
|
94
|
+
'gateway': value['gateway'],
|
|
95
|
+
'mac': value['mac'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
package/src/models/VpsVmInfo.ts
CHANGED
|
@@ -44,11 +44,11 @@ export interface VpsVmInfo {
|
|
|
44
44
|
*/
|
|
45
45
|
hostname?: string;
|
|
46
46
|
/**
|
|
47
|
-
* Boot devices configuration
|
|
48
|
-
* @type {string}
|
|
47
|
+
* Boot devices configuration (e.g., scsi0, scsi1)
|
|
48
|
+
* @type {Array<string>}
|
|
49
49
|
* @memberof VpsVmInfo
|
|
50
50
|
*/
|
|
51
|
-
bootDevices?: string
|
|
51
|
+
bootDevices?: Array<string>;
|
|
52
52
|
/**
|
|
53
53
|
* Proxmox VM ID
|
|
54
54
|
* @type {string}
|
package/src/models/index.ts
CHANGED
|
@@ -97,6 +97,7 @@ export * from './EditBackupScheduleRequestContent.js';
|
|
|
97
97
|
export * from './EditBackupScheduleResponseContent.js';
|
|
98
98
|
export * from './EditDnsRecordRequestContent.js';
|
|
99
99
|
export * from './EditDnsRecordResponseContent.js';
|
|
100
|
+
export * from './EncryptedPasswordResponseData.js';
|
|
100
101
|
export * from './FirewallListResponseData.js';
|
|
101
102
|
export * from './FirewallMoveDirection.js';
|
|
102
103
|
export * from './FirewallMoveResponseData.js';
|
|
@@ -116,6 +117,8 @@ export * from './GetDomainContactsResponseContent.js';
|
|
|
116
117
|
export * from './GetDomainData.js';
|
|
117
118
|
export * from './GetDomainRequestContent.js';
|
|
118
119
|
export * from './GetDomainResponseContent.js';
|
|
120
|
+
export * from './GetEncryptedPasswordRequestContent.js';
|
|
121
|
+
export * from './GetEncryptedPasswordResponseContent.js';
|
|
119
122
|
export * from './GetNoVncConsoleRequestContent.js';
|
|
120
123
|
export * from './GetNoVncConsoleResponseContent.js';
|
|
121
124
|
export * from './GetVpsConfigRequestContent.js';
|
|
@@ -176,6 +179,7 @@ export * from './OperationStatus.js';
|
|
|
176
179
|
export * from './Order.js';
|
|
177
180
|
export * from './OrderLastAttempt.js';
|
|
178
181
|
export * from './OrderWarning.js';
|
|
182
|
+
export * from './PasswordEncryptionInfo.js';
|
|
179
183
|
export * from './PaymentError.js';
|
|
180
184
|
export * from './PaymentStatus.js';
|
|
181
185
|
export * from './PowerTask.js';
|
|
@@ -272,6 +276,7 @@ export * from './VpsCpuInfo.js';
|
|
|
272
276
|
export * from './VpsCredentials.js';
|
|
273
277
|
export * from './VpsDetailsResponse.js';
|
|
274
278
|
export * from './VpsDiskInfo.js';
|
|
279
|
+
export * from './VpsIpAddressDetail.js';
|
|
275
280
|
export * from './VpsMemoryInfo.js';
|
|
276
281
|
export * from './VpsNetworkRate.js';
|
|
277
282
|
export * from './VpsOsInfo.js';
|