@hostafrica/ha-sdk-typescript 1.0.12 → 1.0.14
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/workflows/codeql.yml +3 -3
- package/.github/workflows/release.yml +3 -3
- package/.github/workflows/semgrep.yml +1 -1
- package/dist/apis/SnapshotsApi.d.ts +63 -3
- package/dist/apis/SnapshotsApi.js +190 -2
- package/dist/apis/VPSManagementApi.d.ts +2 -2
- package/dist/apis/VPSManagementApi.js +2 -2
- package/dist/esm/apis/SnapshotsApi.d.ts +63 -3
- package/dist/esm/apis/SnapshotsApi.js +191 -3
- package/dist/esm/apis/VPSManagementApi.d.ts +2 -2
- package/dist/esm/apis/VPSManagementApi.js +2 -2
- package/dist/esm/models/CreateSnapshotJobRequestContent.d.ts +76 -0
- package/dist/esm/models/CreateSnapshotJobRequestContent.js +63 -0
- package/dist/esm/models/CreateSnapshotJobResponseContent.d.ts +40 -0
- package/dist/esm/models/CreateSnapshotJobResponseContent.js +49 -0
- package/dist/esm/models/CreateSnapshotRequestContent.d.ts +7 -1
- package/dist/esm/models/CreateSnapshotRequestContent.js +6 -2
- package/dist/esm/models/DeleteSnapshotJobRequestContent.d.ts +38 -0
- package/dist/esm/models/DeleteSnapshotJobRequestContent.js +47 -0
- package/dist/esm/models/DeleteSnapshotJobResponseContent.d.ts +40 -0
- package/dist/esm/models/DeleteSnapshotJobResponseContent.js +49 -0
- package/dist/esm/models/ListSnapshotJobsRequestContent.d.ts +32 -0
- package/dist/esm/models/ListSnapshotJobsRequestContent.js +43 -0
- package/dist/esm/models/ListSnapshotJobsResponseContent.d.ts +40 -0
- package/dist/esm/models/ListSnapshotJobsResponseContent.js +49 -0
- package/dist/esm/models/SnapshotJob.d.ts +88 -0
- package/dist/esm/models/SnapshotJob.js +67 -0
- package/dist/esm/models/SnapshotJobDeleteResponseData.d.ts +39 -0
- package/dist/esm/models/SnapshotJobDeleteResponseData.js +48 -0
- package/dist/esm/models/SnapshotJobLimits.d.ts +44 -0
- package/dist/esm/models/SnapshotJobLimits.js +51 -0
- package/dist/esm/models/SnapshotJobListResponseData.d.ts +52 -0
- package/dist/esm/models/SnapshotJobListResponseData.js +55 -0
- package/dist/esm/models/SnapshotJobMutationResponseData.d.ts +46 -0
- package/dist/esm/models/SnapshotJobMutationResponseData.js +53 -0
- package/dist/esm/models/SnapshotJobPeriod.d.ts +25 -0
- package/dist/esm/models/SnapshotJobPeriod.js +43 -0
- package/dist/esm/models/SnapshotJobUpdateResponseData.d.ts +39 -0
- package/dist/esm/models/SnapshotJobUpdateResponseData.js +48 -0
- package/dist/esm/models/UpdateSnapshotJobRequestContent.d.ts +82 -0
- package/dist/esm/models/UpdateSnapshotJobRequestContent.js +63 -0
- package/dist/esm/models/UpdateSnapshotJobResponseContent.d.ts +40 -0
- package/dist/esm/models/UpdateSnapshotJobResponseContent.js +49 -0
- package/dist/esm/models/index.d.ts +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/esm/retryablePaths.js +2 -1
- package/dist/esm/runtime.js +1 -3
- package/dist/models/CreateSnapshotJobRequestContent.d.ts +76 -0
- package/dist/models/CreateSnapshotJobRequestContent.js +70 -0
- package/dist/models/CreateSnapshotJobResponseContent.d.ts +40 -0
- package/dist/models/CreateSnapshotJobResponseContent.js +56 -0
- package/dist/models/CreateSnapshotRequestContent.d.ts +7 -1
- package/dist/models/CreateSnapshotRequestContent.js +6 -2
- package/dist/models/DeleteSnapshotJobRequestContent.d.ts +38 -0
- package/dist/models/DeleteSnapshotJobRequestContent.js +54 -0
- package/dist/models/DeleteSnapshotJobResponseContent.d.ts +40 -0
- package/dist/models/DeleteSnapshotJobResponseContent.js +56 -0
- package/dist/models/ListSnapshotJobsRequestContent.d.ts +32 -0
- package/dist/models/ListSnapshotJobsRequestContent.js +50 -0
- package/dist/models/ListSnapshotJobsResponseContent.d.ts +40 -0
- package/dist/models/ListSnapshotJobsResponseContent.js +56 -0
- package/dist/models/SnapshotJob.d.ts +88 -0
- package/dist/models/SnapshotJob.js +74 -0
- package/dist/models/SnapshotJobDeleteResponseData.d.ts +39 -0
- package/dist/models/SnapshotJobDeleteResponseData.js +55 -0
- package/dist/models/SnapshotJobLimits.d.ts +44 -0
- package/dist/models/SnapshotJobLimits.js +58 -0
- package/dist/models/SnapshotJobListResponseData.d.ts +52 -0
- package/dist/models/SnapshotJobListResponseData.js +62 -0
- package/dist/models/SnapshotJobMutationResponseData.d.ts +46 -0
- package/dist/models/SnapshotJobMutationResponseData.js +60 -0
- package/dist/models/SnapshotJobPeriod.d.ts +25 -0
- package/dist/models/SnapshotJobPeriod.js +51 -0
- package/dist/models/SnapshotJobUpdateResponseData.d.ts +39 -0
- package/dist/models/SnapshotJobUpdateResponseData.js +55 -0
- package/dist/models/UpdateSnapshotJobRequestContent.d.ts +82 -0
- package/dist/models/UpdateSnapshotJobRequestContent.js +70 -0
- package/dist/models/UpdateSnapshotJobResponseContent.d.ts +40 -0
- package/dist/models/UpdateSnapshotJobResponseContent.js +56 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/retryablePaths.js +2 -1
- package/dist/runtime.js +1 -3
- package/dist.zip +0 -0
- package/docs/CreateSnapshotJobRequestContent.md +48 -0
- package/docs/CreateSnapshotJobResponseContent.md +36 -0
- package/docs/CreateSnapshotRequestContent.md +4 -2
- package/docs/DeleteSnapshotJobRequestContent.md +36 -0
- package/docs/DeleteSnapshotJobResponseContent.md +36 -0
- package/docs/ListSnapshotJobsRequestContent.md +34 -0
- package/docs/ListSnapshotJobsResponseContent.md +36 -0
- package/docs/SnapshotJob.md +53 -0
- package/docs/SnapshotJobDeleteResponseData.md +37 -0
- package/docs/SnapshotJobLimits.md +39 -0
- package/docs/SnapshotJobListResponseData.md +41 -0
- package/docs/SnapshotJobMutationResponseData.md +39 -0
- package/docs/SnapshotJobPeriod.md +33 -0
- package/docs/SnapshotJobUpdateResponseData.md +37 -0
- package/docs/SnapshotsApi.md +321 -1
- package/docs/UpdateSnapshotJobRequestContent.md +50 -0
- package/docs/UpdateSnapshotJobResponseContent.md +36 -0
- package/docs/VPSManagementApi.md +1 -1
- package/package.json +1 -1
- package/src/apis/SnapshotsApi.ts +262 -2
- package/src/apis/VPSManagementApi.ts +2 -2
- package/src/models/CreateSnapshotJobRequestContent.ts +141 -0
- package/src/models/CreateSnapshotJobResponseContent.ts +92 -0
- package/src/models/CreateSnapshotRequestContent.ts +12 -3
- package/src/models/DeleteSnapshotJobRequestContent.ts +75 -0
- package/src/models/DeleteSnapshotJobResponseContent.ts +92 -0
- package/src/models/ListSnapshotJobsRequestContent.ts +66 -0
- package/src/models/ListSnapshotJobsResponseContent.ts +92 -0
- package/src/models/SnapshotJob.ts +157 -0
- package/src/models/SnapshotJobDeleteResponseData.ts +83 -0
- package/src/models/SnapshotJobLimits.ts +84 -0
- package/src/models/SnapshotJobListResponseData.ts +107 -0
- package/src/models/SnapshotJobMutationResponseData.ts +99 -0
- package/src/models/SnapshotJobPeriod.ts +53 -0
- package/src/models/SnapshotJobUpdateResponseData.ts +83 -0
- package/src/models/UpdateSnapshotJobRequestContent.ts +148 -0
- package/src/models/UpdateSnapshotJobResponseContent.ts +92 -0
- package/src/models/index.ts +15 -0
- package/src/retryablePaths.ts +2 -1
- package/src/runtime.ts +5 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SnapshotJob } from './SnapshotJob.js';
|
|
13
|
+
import type { SnapshotJobLimits } from './SnapshotJobLimits.js';
|
|
14
|
+
/**
|
|
15
|
+
* Response data for snapshot job create operation
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SnapshotJobMutationResponseData
|
|
18
|
+
*/
|
|
19
|
+
export interface SnapshotJobMutationResponseData {
|
|
20
|
+
/**
|
|
21
|
+
* Status message indicating the result
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SnapshotJobMutationResponseData
|
|
24
|
+
*/
|
|
25
|
+
message: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SnapshotJob}
|
|
29
|
+
* @memberof SnapshotJobMutationResponseData
|
|
30
|
+
*/
|
|
31
|
+
job: SnapshotJob;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {SnapshotJobLimits}
|
|
35
|
+
* @memberof SnapshotJobMutationResponseData
|
|
36
|
+
*/
|
|
37
|
+
limits: SnapshotJobLimits;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SnapshotJobMutationResponseData interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSnapshotJobMutationResponseData(value: object): value is SnapshotJobMutationResponseData;
|
|
43
|
+
export declare function SnapshotJobMutationResponseDataFromJSON(json: any): SnapshotJobMutationResponseData;
|
|
44
|
+
export declare function SnapshotJobMutationResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnapshotJobMutationResponseData;
|
|
45
|
+
export declare function SnapshotJobMutationResponseDataToJSON(json: any): SnapshotJobMutationResponseData;
|
|
46
|
+
export declare function SnapshotJobMutationResponseDataToJSONTyped(value?: SnapshotJobMutationResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
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
|
+
import { SnapshotJobFromJSON, SnapshotJobToJSON, } from './SnapshotJob.js';
|
|
15
|
+
import { SnapshotJobLimitsFromJSON, SnapshotJobLimitsToJSON, } from './SnapshotJobLimits.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the SnapshotJobMutationResponseData interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfSnapshotJobMutationResponseData(value) {
|
|
20
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('job' in value) || value['job'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('limits' in value) || value['limits'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function SnapshotJobMutationResponseDataFromJSON(json) {
|
|
29
|
+
return SnapshotJobMutationResponseDataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function SnapshotJobMutationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'job': SnapshotJobFromJSON(json['job']),
|
|
38
|
+
'limits': SnapshotJobLimitsFromJSON(json['limits']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function SnapshotJobMutationResponseDataToJSON(json) {
|
|
42
|
+
return SnapshotJobMutationResponseDataToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function SnapshotJobMutationResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
'job': SnapshotJobToJSON(value['job']),
|
|
51
|
+
'limits': SnapshotJobLimitsToJSON(value['limits']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Schedule period for snapshot jobs
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SnapshotJobPeriod: {
|
|
17
|
+
readonly Hourly: "hourly";
|
|
18
|
+
readonly Daily: "daily";
|
|
19
|
+
};
|
|
20
|
+
export type SnapshotJobPeriod = typeof SnapshotJobPeriod[keyof typeof SnapshotJobPeriod];
|
|
21
|
+
export declare function instanceOfSnapshotJobPeriod(value: any): boolean;
|
|
22
|
+
export declare function SnapshotJobPeriodFromJSON(json: any): SnapshotJobPeriod;
|
|
23
|
+
export declare function SnapshotJobPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnapshotJobPeriod;
|
|
24
|
+
export declare function SnapshotJobPeriodToJSON(value?: SnapshotJobPeriod | null): any;
|
|
25
|
+
export declare function SnapshotJobPeriodToJSONTyped(value: any, ignoreDiscriminator: boolean): SnapshotJobPeriod;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
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
|
+
* Schedule period for snapshot jobs
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SnapshotJobPeriod = {
|
|
19
|
+
Hourly: 'hourly',
|
|
20
|
+
Daily: 'daily'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfSnapshotJobPeriod(value) {
|
|
23
|
+
for (const key in SnapshotJobPeriod) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(SnapshotJobPeriod, key)) {
|
|
25
|
+
if (SnapshotJobPeriod[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function SnapshotJobPeriodFromJSON(json) {
|
|
33
|
+
return SnapshotJobPeriodFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function SnapshotJobPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function SnapshotJobPeriodToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function SnapshotJobPeriodToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SnapshotJob } from './SnapshotJob.js';
|
|
13
|
+
/**
|
|
14
|
+
* Response data for snapshot job update operation
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SnapshotJobUpdateResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface SnapshotJobUpdateResponseData {
|
|
19
|
+
/**
|
|
20
|
+
* Status message indicating the result
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SnapshotJobUpdateResponseData
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SnapshotJob}
|
|
28
|
+
* @memberof SnapshotJobUpdateResponseData
|
|
29
|
+
*/
|
|
30
|
+
job: SnapshotJob;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SnapshotJobUpdateResponseData interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSnapshotJobUpdateResponseData(value: object): value is SnapshotJobUpdateResponseData;
|
|
36
|
+
export declare function SnapshotJobUpdateResponseDataFromJSON(json: any): SnapshotJobUpdateResponseData;
|
|
37
|
+
export declare function SnapshotJobUpdateResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnapshotJobUpdateResponseData;
|
|
38
|
+
export declare function SnapshotJobUpdateResponseDataToJSON(json: any): SnapshotJobUpdateResponseData;
|
|
39
|
+
export declare function SnapshotJobUpdateResponseDataToJSONTyped(value?: SnapshotJobUpdateResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
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
|
+
import { SnapshotJobFromJSON, SnapshotJobToJSON, } from './SnapshotJob.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SnapshotJobUpdateResponseData interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSnapshotJobUpdateResponseData(value) {
|
|
19
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('job' in value) || value['job'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function SnapshotJobUpdateResponseDataFromJSON(json) {
|
|
26
|
+
return SnapshotJobUpdateResponseDataFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function SnapshotJobUpdateResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'message': json['message'],
|
|
34
|
+
'job': SnapshotJobFromJSON(json['job']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function SnapshotJobUpdateResponseDataToJSON(json) {
|
|
38
|
+
return SnapshotJobUpdateResponseDataToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function SnapshotJobUpdateResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'message': value['message'],
|
|
46
|
+
'job': SnapshotJobToJSON(value['job']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DayOfWeek } from './DayOfWeek.js';
|
|
13
|
+
import type { SnapshotJobPeriod } from './SnapshotJobPeriod.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdateSnapshotJobRequestContent
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateSnapshotJobRequestContent {
|
|
20
|
+
/**
|
|
21
|
+
* Service ID - must be sent as a string
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
24
|
+
*/
|
|
25
|
+
serviceId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Snapshot job ID to update
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
30
|
+
*/
|
|
31
|
+
jobId: string;
|
|
32
|
+
/**
|
|
33
|
+
* New name for the snapshot job
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
36
|
+
*/
|
|
37
|
+
name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* New description for the snapshot job
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
42
|
+
*/
|
|
43
|
+
description?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to include VM state in the snapshot
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
48
|
+
*/
|
|
49
|
+
vmstate?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {SnapshotJobPeriod}
|
|
53
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
54
|
+
*/
|
|
55
|
+
period?: SnapshotJobPeriod;
|
|
56
|
+
/**
|
|
57
|
+
* For hourly jobs: run every N hours (e.g. 6 = every 6 hours)
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
60
|
+
*/
|
|
61
|
+
runEvery?: number;
|
|
62
|
+
/**
|
|
63
|
+
* For daily jobs: days of week when the job should run
|
|
64
|
+
* @type {Array<DayOfWeek>}
|
|
65
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
66
|
+
*/
|
|
67
|
+
days?: Array<DayOfWeek>;
|
|
68
|
+
/**
|
|
69
|
+
* For daily jobs: start time in HH:MM format (e.g. '02:30')
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof UpdateSnapshotJobRequestContent
|
|
72
|
+
*/
|
|
73
|
+
startTime?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the UpdateSnapshotJobRequestContent interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfUpdateSnapshotJobRequestContent(value: object): value is UpdateSnapshotJobRequestContent;
|
|
79
|
+
export declare function UpdateSnapshotJobRequestContentFromJSON(json: any): UpdateSnapshotJobRequestContent;
|
|
80
|
+
export declare function UpdateSnapshotJobRequestContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSnapshotJobRequestContent;
|
|
81
|
+
export declare function UpdateSnapshotJobRequestContentToJSON(json: any): UpdateSnapshotJobRequestContent;
|
|
82
|
+
export declare function UpdateSnapshotJobRequestContentToJSONTyped(value?: UpdateSnapshotJobRequestContent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
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
|
+
import { DayOfWeekFromJSON, DayOfWeekToJSON, } from './DayOfWeek.js';
|
|
15
|
+
import { SnapshotJobPeriodFromJSON, SnapshotJobPeriodToJSON, } from './SnapshotJobPeriod.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the UpdateSnapshotJobRequestContent interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfUpdateSnapshotJobRequestContent(value) {
|
|
20
|
+
if (!('serviceId' in value) || value['serviceId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('jobId' in value) || value['jobId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function UpdateSnapshotJobRequestContentFromJSON(json) {
|
|
27
|
+
return UpdateSnapshotJobRequestContentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function UpdateSnapshotJobRequestContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'serviceId': json['service_id'],
|
|
35
|
+
'jobId': json['job_id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
38
|
+
'vmstate': json['vmstate'] == null ? undefined : json['vmstate'],
|
|
39
|
+
'period': json['period'] == null ? undefined : SnapshotJobPeriodFromJSON(json['period']),
|
|
40
|
+
'runEvery': json['run_every'] == null ? undefined : json['run_every'],
|
|
41
|
+
'days': json['days'] == null ? undefined : (json['days'].map(DayOfWeekFromJSON)),
|
|
42
|
+
'startTime': json['start_time'] == null ? undefined : json['start_time'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function UpdateSnapshotJobRequestContentToJSON(json) {
|
|
46
|
+
return UpdateSnapshotJobRequestContentToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function UpdateSnapshotJobRequestContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'service_id': value['serviceId'],
|
|
54
|
+
'job_id': value['jobId'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'description': value['description'],
|
|
57
|
+
'vmstate': value['vmstate'],
|
|
58
|
+
'period': SnapshotJobPeriodToJSON(value['period']),
|
|
59
|
+
'run_every': value['runEvery'],
|
|
60
|
+
'days': value['days'] == null ? undefined : (value['days'].map(DayOfWeekToJSON)),
|
|
61
|
+
'start_time': value['startTime'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SnapshotJobUpdateResponseData } from './SnapshotJobUpdateResponseData.js';
|
|
13
|
+
import type { OperationStatus } from './OperationStatus.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdateSnapshotJobResponseContent
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateSnapshotJobResponseContent {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {OperationStatus}
|
|
23
|
+
* @memberof UpdateSnapshotJobResponseContent
|
|
24
|
+
*/
|
|
25
|
+
status: OperationStatus;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SnapshotJobUpdateResponseData}
|
|
29
|
+
* @memberof UpdateSnapshotJobResponseContent
|
|
30
|
+
*/
|
|
31
|
+
data: SnapshotJobUpdateResponseData;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the UpdateSnapshotJobResponseContent interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfUpdateSnapshotJobResponseContent(value: object): value is UpdateSnapshotJobResponseContent;
|
|
37
|
+
export declare function UpdateSnapshotJobResponseContentFromJSON(json: any): UpdateSnapshotJobResponseContent;
|
|
38
|
+
export declare function UpdateSnapshotJobResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSnapshotJobResponseContent;
|
|
39
|
+
export declare function UpdateSnapshotJobResponseContentToJSON(json: any): UpdateSnapshotJobResponseContent;
|
|
40
|
+
export declare function UpdateSnapshotJobResponseContentToJSONTyped(value?: UpdateSnapshotJobResponseContent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-01-01
|
|
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
|
+
import { SnapshotJobUpdateResponseDataFromJSON, SnapshotJobUpdateResponseDataToJSON, } from './SnapshotJobUpdateResponseData.js';
|
|
15
|
+
import { OperationStatusFromJSON, OperationStatusToJSON, } from './OperationStatus.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the UpdateSnapshotJobResponseContent interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfUpdateSnapshotJobResponseContent(value) {
|
|
20
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function UpdateSnapshotJobResponseContentFromJSON(json) {
|
|
27
|
+
return UpdateSnapshotJobResponseContentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function UpdateSnapshotJobResponseContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'status': OperationStatusFromJSON(json['status']),
|
|
35
|
+
'data': SnapshotJobUpdateResponseDataFromJSON(json['data']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function UpdateSnapshotJobResponseContentToJSON(json) {
|
|
39
|
+
return UpdateSnapshotJobResponseContentToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function UpdateSnapshotJobResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'status': OperationStatusToJSON(value['status']),
|
|
47
|
+
'data': SnapshotJobUpdateResponseDataToJSON(value['data']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -39,6 +39,8 @@ export * from './CreatePowerTaskResponseContent.js';
|
|
|
39
39
|
export * from './CreateRdnsRecordRequestContent.js';
|
|
40
40
|
export * from './CreateRdnsRecordResponseContent.js';
|
|
41
41
|
export * from './CreateRdnsRecordResponseData.js';
|
|
42
|
+
export * from './CreateSnapshotJobRequestContent.js';
|
|
43
|
+
export * from './CreateSnapshotJobResponseContent.js';
|
|
42
44
|
export * from './CreateSnapshotRequestContent.js';
|
|
43
45
|
export * from './CreateSnapshotResponseContent.js';
|
|
44
46
|
export * from './DayOfWeek.js';
|
|
@@ -54,6 +56,8 @@ export * from './DeletePowerTaskRequestContent.js';
|
|
|
54
56
|
export * from './DeletePowerTaskResponseContent.js';
|
|
55
57
|
export * from './DeleteRdnsRecordRequestContent.js';
|
|
56
58
|
export * from './DeleteRdnsRecordResponseContent.js';
|
|
59
|
+
export * from './DeleteSnapshotJobRequestContent.js';
|
|
60
|
+
export * from './DeleteSnapshotJobResponseContent.js';
|
|
57
61
|
export * from './DeleteSnapshotRequestContent.js';
|
|
58
62
|
export * from './DeleteSnapshotResponseContent.js';
|
|
59
63
|
export * from './EditBackupScheduleRequestContent.js';
|
|
@@ -96,6 +100,8 @@ export * from './ListRdnsResponseData.js';
|
|
|
96
100
|
export * from './ListReinstallOsRequestContent.js';
|
|
97
101
|
export * from './ListReinstallOsResponseContent.js';
|
|
98
102
|
export * from './ListReinstallOsResponseData.js';
|
|
103
|
+
export * from './ListSnapshotJobsRequestContent.js';
|
|
104
|
+
export * from './ListSnapshotJobsResponseContent.js';
|
|
99
105
|
export * from './ListSnapshotsRequestContent.js';
|
|
100
106
|
export * from './ListSnapshotsResponseContent.js';
|
|
101
107
|
export * from './ListVpsServicesData.js';
|
|
@@ -144,6 +150,13 @@ export * from './ShutdownVpsRequestContent.js';
|
|
|
144
150
|
export * from './ShutdownVpsResponseContent.js';
|
|
145
151
|
export * from './SnapshotCreateResponseData.js';
|
|
146
152
|
export * from './SnapshotItem.js';
|
|
153
|
+
export * from './SnapshotJob.js';
|
|
154
|
+
export * from './SnapshotJobDeleteResponseData.js';
|
|
155
|
+
export * from './SnapshotJobLimits.js';
|
|
156
|
+
export * from './SnapshotJobListResponseData.js';
|
|
157
|
+
export * from './SnapshotJobMutationResponseData.js';
|
|
158
|
+
export * from './SnapshotJobPeriod.js';
|
|
159
|
+
export * from './SnapshotJobUpdateResponseData.js';
|
|
147
160
|
export * from './StartVpsRequestContent.js';
|
|
148
161
|
export * from './StartVpsResponseContent.js';
|
|
149
162
|
export * from './StopVpsRequestContent.js';
|
|
@@ -159,6 +172,8 @@ export * from './UpdateNotificationRequestContent.js';
|
|
|
159
172
|
export * from './UpdateNotificationResponseContent.js';
|
|
160
173
|
export * from './UpdatePowerTaskRequestContent.js';
|
|
161
174
|
export * from './UpdatePowerTaskResponseContent.js';
|
|
175
|
+
export * from './UpdateSnapshotJobRequestContent.js';
|
|
176
|
+
export * from './UpdateSnapshotJobResponseContent.js';
|
|
162
177
|
export * from './UpdateSnapshotRequestContent.js';
|
|
163
178
|
export * from './UpdateSnapshotResponseContent.js';
|
|
164
179
|
export * from './UpdateVpsConfigRequestContent.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -41,6 +41,8 @@ export * from './CreatePowerTaskResponseContent.js';
|
|
|
41
41
|
export * from './CreateRdnsRecordRequestContent.js';
|
|
42
42
|
export * from './CreateRdnsRecordResponseContent.js';
|
|
43
43
|
export * from './CreateRdnsRecordResponseData.js';
|
|
44
|
+
export * from './CreateSnapshotJobRequestContent.js';
|
|
45
|
+
export * from './CreateSnapshotJobResponseContent.js';
|
|
44
46
|
export * from './CreateSnapshotRequestContent.js';
|
|
45
47
|
export * from './CreateSnapshotResponseContent.js';
|
|
46
48
|
export * from './DayOfWeek.js';
|
|
@@ -56,6 +58,8 @@ export * from './DeletePowerTaskRequestContent.js';
|
|
|
56
58
|
export * from './DeletePowerTaskResponseContent.js';
|
|
57
59
|
export * from './DeleteRdnsRecordRequestContent.js';
|
|
58
60
|
export * from './DeleteRdnsRecordResponseContent.js';
|
|
61
|
+
export * from './DeleteSnapshotJobRequestContent.js';
|
|
62
|
+
export * from './DeleteSnapshotJobResponseContent.js';
|
|
59
63
|
export * from './DeleteSnapshotRequestContent.js';
|
|
60
64
|
export * from './DeleteSnapshotResponseContent.js';
|
|
61
65
|
export * from './EditBackupScheduleRequestContent.js';
|
|
@@ -98,6 +102,8 @@ export * from './ListRdnsResponseData.js';
|
|
|
98
102
|
export * from './ListReinstallOsRequestContent.js';
|
|
99
103
|
export * from './ListReinstallOsResponseContent.js';
|
|
100
104
|
export * from './ListReinstallOsResponseData.js';
|
|
105
|
+
export * from './ListSnapshotJobsRequestContent.js';
|
|
106
|
+
export * from './ListSnapshotJobsResponseContent.js';
|
|
101
107
|
export * from './ListSnapshotsRequestContent.js';
|
|
102
108
|
export * from './ListSnapshotsResponseContent.js';
|
|
103
109
|
export * from './ListVpsServicesData.js';
|
|
@@ -146,6 +152,13 @@ export * from './ShutdownVpsRequestContent.js';
|
|
|
146
152
|
export * from './ShutdownVpsResponseContent.js';
|
|
147
153
|
export * from './SnapshotCreateResponseData.js';
|
|
148
154
|
export * from './SnapshotItem.js';
|
|
155
|
+
export * from './SnapshotJob.js';
|
|
156
|
+
export * from './SnapshotJobDeleteResponseData.js';
|
|
157
|
+
export * from './SnapshotJobLimits.js';
|
|
158
|
+
export * from './SnapshotJobListResponseData.js';
|
|
159
|
+
export * from './SnapshotJobMutationResponseData.js';
|
|
160
|
+
export * from './SnapshotJobPeriod.js';
|
|
161
|
+
export * from './SnapshotJobUpdateResponseData.js';
|
|
149
162
|
export * from './StartVpsRequestContent.js';
|
|
150
163
|
export * from './StartVpsResponseContent.js';
|
|
151
164
|
export * from './StopVpsRequestContent.js';
|
|
@@ -161,6 +174,8 @@ export * from './UpdateNotificationRequestContent.js';
|
|
|
161
174
|
export * from './UpdateNotificationResponseContent.js';
|
|
162
175
|
export * from './UpdatePowerTaskRequestContent.js';
|
|
163
176
|
export * from './UpdatePowerTaskResponseContent.js';
|
|
177
|
+
export * from './UpdateSnapshotJobRequestContent.js';
|
|
178
|
+
export * from './UpdateSnapshotJobResponseContent.js';
|
|
164
179
|
export * from './UpdateSnapshotRequestContent.js';
|
|
165
180
|
export * from './UpdateSnapshotResponseContent.js';
|
|
166
181
|
export * from './UpdateVpsConfigRequestContent.js';
|
|
@@ -10,9 +10,10 @@ export const RETRYABLE_PATHS = new Set([
|
|
|
10
10
|
"/vps/novnc-console",
|
|
11
11
|
"/vps/list-backups",
|
|
12
12
|
"/vps/list-backup-schedules",
|
|
13
|
+
"/vps/list-snapshot-jobs",
|
|
13
14
|
"/vps/list-snapshots",
|
|
14
15
|
"/vps/list-firewall-rules",
|
|
15
|
-
"/vps/
|
|
16
|
+
"/vps/list-power-tasks",
|
|
16
17
|
"/vps/list-notifications",
|
|
17
18
|
"/vps/list-isos",
|
|
18
19
|
"/vps/list-reinstall-images",
|
package/dist/esm/runtime.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
1
|
/**
|
|
4
2
|
* HostAfricaApi
|
|
5
3
|
* HostAfrica API
|
|
@@ -168,7 +166,7 @@ export class BaseAPI {
|
|
|
168
166
|
// do not handle correctly sometimes.
|
|
169
167
|
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
170
168
|
}
|
|
171
|
-
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
169
|
+
const headers = Object.assign({ 'User-Agent': 'ha-sdk-typescript/1.0.0' }, this.configuration.headers, context.headers);
|
|
172
170
|
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
173
171
|
const initOverrideFn = typeof initOverrides === "function"
|
|
174
172
|
? initOverrides
|