qovery-ws-typescript-axios 0.1.200 → 0.1.202
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/api.ts +179 -0
- package/dist/api.d.ts +181 -0
- package/dist/api.js +10 -1
- package/dist/esm/api.d.ts +181 -0
- package/dist/esm/api.js +9 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -210,6 +210,12 @@ export interface ClusterNodeDto {
|
|
|
210
210
|
* @interface ClusterStatusDto
|
|
211
211
|
*/
|
|
212
212
|
export interface ClusterStatusDto {
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {ClusterStatusDtoComputedStatus}
|
|
216
|
+
* @memberof ClusterStatusDto
|
|
217
|
+
*/
|
|
218
|
+
'computed_status': ClusterStatusDtoComputedStatus;
|
|
213
219
|
/**
|
|
214
220
|
*
|
|
215
221
|
* @type {Array<ClusterNodeDto>}
|
|
@@ -217,6 +223,64 @@ export interface ClusterStatusDto {
|
|
|
217
223
|
*/
|
|
218
224
|
'nodes': Array<ClusterNodeDto>;
|
|
219
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @export
|
|
229
|
+
* @interface ClusterStatusDtoComputedStatus
|
|
230
|
+
*/
|
|
231
|
+
export interface ClusterStatusDtoComputedStatus {
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
236
|
+
*/
|
|
237
|
+
'global_status'?: ClusterStatusDtoComputedStatusGlobalStatusEnum;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {Array<ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner>}
|
|
241
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
242
|
+
*/
|
|
243
|
+
'qovery_components_in_failure'?: Array<ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner>;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @type {{ [key: string]: NodeInWarning; }}
|
|
247
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
248
|
+
*/
|
|
249
|
+
'node_warnings'?: { [key: string]: NodeInWarning; };
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @type {boolean}
|
|
253
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
254
|
+
*/
|
|
255
|
+
'is_max_nodes_size_reached'?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @type {ClusterStatusDtoComputedStatusKubeVersionStatus}
|
|
259
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
260
|
+
*/
|
|
261
|
+
'kube_version_status'?: ClusterStatusDtoComputedStatusKubeVersionStatus;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export const ClusterStatusDtoComputedStatusGlobalStatusEnum = {
|
|
265
|
+
RUNNING: 'RUNNING',
|
|
266
|
+
WARNING: 'WARNING',
|
|
267
|
+
ERROR: 'ERROR'
|
|
268
|
+
} as const;
|
|
269
|
+
|
|
270
|
+
export type ClusterStatusDtoComputedStatusGlobalStatusEnum = typeof ClusterStatusDtoComputedStatusGlobalStatusEnum[keyof typeof ClusterStatusDtoComputedStatusGlobalStatusEnum];
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @type ClusterStatusDtoComputedStatusKubeVersionStatus
|
|
274
|
+
* @export
|
|
275
|
+
*/
|
|
276
|
+
export type ClusterStatusDtoComputedStatusKubeVersionStatus = { type: 'DRIFT' } & QoveryDriftKubeVersion | { type: 'OK' } & QoveryOkKubeVersion;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @type ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner
|
|
280
|
+
* @export
|
|
281
|
+
*/
|
|
282
|
+
export type ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner = { type: 'MISSING_COMPONENT' } & QoveryMissingComponentInFailure | { type: 'POD_IN_ERROR' } & QoveryPodInErrorComponentInFailure;
|
|
283
|
+
|
|
220
284
|
/**
|
|
221
285
|
*
|
|
222
286
|
* @export
|
|
@@ -527,6 +591,25 @@ export interface NodeConditionDto {
|
|
|
527
591
|
*/
|
|
528
592
|
'type': string;
|
|
529
593
|
}
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @export
|
|
597
|
+
* @interface NodeInWarning
|
|
598
|
+
*/
|
|
599
|
+
export interface NodeInWarning {
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @type {string}
|
|
603
|
+
* @memberof NodeInWarning
|
|
604
|
+
*/
|
|
605
|
+
'reason': string;
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @type {string}
|
|
609
|
+
* @memberof NodeInWarning
|
|
610
|
+
*/
|
|
611
|
+
'message': string;
|
|
612
|
+
}
|
|
530
613
|
/**
|
|
531
614
|
*
|
|
532
615
|
* @export
|
|
@@ -726,6 +809,102 @@ export interface PodStatusDto {
|
|
|
726
809
|
}
|
|
727
810
|
|
|
728
811
|
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @export
|
|
815
|
+
* @interface QoveryDriftKubeVersion
|
|
816
|
+
*/
|
|
817
|
+
export interface QoveryDriftKubeVersion {
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @type {string}
|
|
821
|
+
* @memberof QoveryDriftKubeVersion
|
|
822
|
+
*/
|
|
823
|
+
'kube_version': string;
|
|
824
|
+
/**
|
|
825
|
+
*
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof QoveryDriftKubeVersion
|
|
828
|
+
*/
|
|
829
|
+
'expected_kube_version': string;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @export
|
|
834
|
+
* @interface QoveryMissingComponentInFailure
|
|
835
|
+
*/
|
|
836
|
+
export interface QoveryMissingComponentInFailure {
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @type {string}
|
|
840
|
+
* @memberof QoveryMissingComponentInFailure
|
|
841
|
+
*/
|
|
842
|
+
'component_name': string;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @export
|
|
847
|
+
* @interface QoveryOkKubeVersion
|
|
848
|
+
*/
|
|
849
|
+
export interface QoveryOkKubeVersion {
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @type {string}
|
|
853
|
+
* @memberof QoveryOkKubeVersion
|
|
854
|
+
*/
|
|
855
|
+
'kube_version': string;
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @export
|
|
860
|
+
* @interface QoveryPodInErrorComponentInFailure
|
|
861
|
+
*/
|
|
862
|
+
export interface QoveryPodInErrorComponentInFailure {
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @type {string}
|
|
866
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
867
|
+
*/
|
|
868
|
+
'component_name': string;
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @type {string}
|
|
872
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
873
|
+
*/
|
|
874
|
+
'pod_name': string;
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @type {string}
|
|
878
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
879
|
+
*/
|
|
880
|
+
'container_name': string;
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @type {string}
|
|
884
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
885
|
+
*/
|
|
886
|
+
'level'?: QoveryPodInErrorComponentInFailureLevelEnum;
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* @type {string}
|
|
890
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
891
|
+
*/
|
|
892
|
+
'reason'?: string | null;
|
|
893
|
+
/**
|
|
894
|
+
*
|
|
895
|
+
* @type {string}
|
|
896
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
897
|
+
*/
|
|
898
|
+
'message'?: string | null;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
export const QoveryPodInErrorComponentInFailureLevelEnum = {
|
|
902
|
+
ERROR: 'ERROR',
|
|
903
|
+
WARNING: 'WARNING'
|
|
904
|
+
} as const;
|
|
905
|
+
|
|
906
|
+
export type QoveryPodInErrorComponentInFailureLevelEnum = typeof QoveryPodInErrorComponentInFailureLevelEnum[keyof typeof QoveryPodInErrorComponentInFailureLevelEnum];
|
|
907
|
+
|
|
729
908
|
/**
|
|
730
909
|
*
|
|
731
910
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -200,6 +200,12 @@ export interface ClusterNodeDto {
|
|
|
200
200
|
* @interface ClusterStatusDto
|
|
201
201
|
*/
|
|
202
202
|
export interface ClusterStatusDto {
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @type {ClusterStatusDtoComputedStatus}
|
|
206
|
+
* @memberof ClusterStatusDto
|
|
207
|
+
*/
|
|
208
|
+
'computed_status': ClusterStatusDtoComputedStatus;
|
|
203
209
|
/**
|
|
204
210
|
*
|
|
205
211
|
* @type {Array<ClusterNodeDto>}
|
|
@@ -207,6 +213,69 @@ export interface ClusterStatusDto {
|
|
|
207
213
|
*/
|
|
208
214
|
'nodes': Array<ClusterNodeDto>;
|
|
209
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @export
|
|
219
|
+
* @interface ClusterStatusDtoComputedStatus
|
|
220
|
+
*/
|
|
221
|
+
export interface ClusterStatusDtoComputedStatus {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
226
|
+
*/
|
|
227
|
+
'global_status'?: ClusterStatusDtoComputedStatusGlobalStatusEnum;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {Array<ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner>}
|
|
231
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
232
|
+
*/
|
|
233
|
+
'qovery_components_in_failure'?: Array<ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner>;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @type {{ [key: string]: NodeInWarning; }}
|
|
237
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
238
|
+
*/
|
|
239
|
+
'node_warnings'?: {
|
|
240
|
+
[key: string]: NodeInWarning;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {boolean}
|
|
245
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
246
|
+
*/
|
|
247
|
+
'is_max_nodes_size_reached'?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @type {ClusterStatusDtoComputedStatusKubeVersionStatus}
|
|
251
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
252
|
+
*/
|
|
253
|
+
'kube_version_status'?: ClusterStatusDtoComputedStatusKubeVersionStatus;
|
|
254
|
+
}
|
|
255
|
+
export declare const ClusterStatusDtoComputedStatusGlobalStatusEnum: {
|
|
256
|
+
readonly RUNNING: "RUNNING";
|
|
257
|
+
readonly WARNING: "WARNING";
|
|
258
|
+
readonly ERROR: "ERROR";
|
|
259
|
+
};
|
|
260
|
+
export type ClusterStatusDtoComputedStatusGlobalStatusEnum = typeof ClusterStatusDtoComputedStatusGlobalStatusEnum[keyof typeof ClusterStatusDtoComputedStatusGlobalStatusEnum];
|
|
261
|
+
/**
|
|
262
|
+
* @type ClusterStatusDtoComputedStatusKubeVersionStatus
|
|
263
|
+
* @export
|
|
264
|
+
*/
|
|
265
|
+
export type ClusterStatusDtoComputedStatusKubeVersionStatus = {
|
|
266
|
+
type: 'DRIFT';
|
|
267
|
+
} & QoveryDriftKubeVersion | {
|
|
268
|
+
type: 'OK';
|
|
269
|
+
} & QoveryOkKubeVersion;
|
|
270
|
+
/**
|
|
271
|
+
* @type ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner
|
|
272
|
+
* @export
|
|
273
|
+
*/
|
|
274
|
+
export type ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner = {
|
|
275
|
+
type: 'MISSING_COMPONENT';
|
|
276
|
+
} & QoveryMissingComponentInFailure | {
|
|
277
|
+
type: 'POD_IN_ERROR';
|
|
278
|
+
} & QoveryPodInErrorComponentInFailure;
|
|
210
279
|
/**
|
|
211
280
|
*
|
|
212
281
|
* @export
|
|
@@ -509,6 +578,25 @@ export interface NodeConditionDto {
|
|
|
509
578
|
*/
|
|
510
579
|
'type': string;
|
|
511
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @export
|
|
584
|
+
* @interface NodeInWarning
|
|
585
|
+
*/
|
|
586
|
+
export interface NodeInWarning {
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof NodeInWarning
|
|
591
|
+
*/
|
|
592
|
+
'reason': string;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof NodeInWarning
|
|
597
|
+
*/
|
|
598
|
+
'message': string;
|
|
599
|
+
}
|
|
512
600
|
/**
|
|
513
601
|
*
|
|
514
602
|
* @export
|
|
@@ -708,6 +796,99 @@ export interface PodStatusDto {
|
|
|
708
796
|
*/
|
|
709
797
|
'state_reason': string;
|
|
710
798
|
}
|
|
799
|
+
/**
|
|
800
|
+
*
|
|
801
|
+
* @export
|
|
802
|
+
* @interface QoveryDriftKubeVersion
|
|
803
|
+
*/
|
|
804
|
+
export interface QoveryDriftKubeVersion {
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @type {string}
|
|
808
|
+
* @memberof QoveryDriftKubeVersion
|
|
809
|
+
*/
|
|
810
|
+
'kube_version': string;
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
* @type {string}
|
|
814
|
+
* @memberof QoveryDriftKubeVersion
|
|
815
|
+
*/
|
|
816
|
+
'expected_kube_version': string;
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @export
|
|
821
|
+
* @interface QoveryMissingComponentInFailure
|
|
822
|
+
*/
|
|
823
|
+
export interface QoveryMissingComponentInFailure {
|
|
824
|
+
/**
|
|
825
|
+
*
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof QoveryMissingComponentInFailure
|
|
828
|
+
*/
|
|
829
|
+
'component_name': string;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @export
|
|
834
|
+
* @interface QoveryOkKubeVersion
|
|
835
|
+
*/
|
|
836
|
+
export interface QoveryOkKubeVersion {
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @type {string}
|
|
840
|
+
* @memberof QoveryOkKubeVersion
|
|
841
|
+
*/
|
|
842
|
+
'kube_version': string;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @export
|
|
847
|
+
* @interface QoveryPodInErrorComponentInFailure
|
|
848
|
+
*/
|
|
849
|
+
export interface QoveryPodInErrorComponentInFailure {
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @type {string}
|
|
853
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
854
|
+
*/
|
|
855
|
+
'component_name': string;
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @type {string}
|
|
859
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
860
|
+
*/
|
|
861
|
+
'pod_name': string;
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @type {string}
|
|
865
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
866
|
+
*/
|
|
867
|
+
'container_name': string;
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @type {string}
|
|
871
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
872
|
+
*/
|
|
873
|
+
'level'?: QoveryPodInErrorComponentInFailureLevelEnum;
|
|
874
|
+
/**
|
|
875
|
+
*
|
|
876
|
+
* @type {string}
|
|
877
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
878
|
+
*/
|
|
879
|
+
'reason'?: string | null;
|
|
880
|
+
/**
|
|
881
|
+
*
|
|
882
|
+
* @type {string}
|
|
883
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
884
|
+
*/
|
|
885
|
+
'message'?: string | null;
|
|
886
|
+
}
|
|
887
|
+
export declare const QoveryPodInErrorComponentInFailureLevelEnum: {
|
|
888
|
+
readonly ERROR: "ERROR";
|
|
889
|
+
readonly WARNING: "WARNING";
|
|
890
|
+
};
|
|
891
|
+
export type QoveryPodInErrorComponentInFailureLevelEnum = typeof QoveryPodInErrorComponentInFailureLevelEnum[keyof typeof QoveryPodInErrorComponentInFailureLevelEnum];
|
|
711
892
|
/**
|
|
712
893
|
*
|
|
713
894
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -22,13 +22,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ShellApi = exports.ShellApiFactory = exports.ShellApiFp = exports.ShellApiAxiosParamCreator = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = void 0;
|
|
25
|
+
exports.ShellApi = exports.ShellApiFactory = exports.ShellApiFp = exports.ShellApiAxiosParamCreator = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = exports.QoveryPodInErrorComponentInFailureLevelEnum = exports.ClusterStatusDtoComputedStatusGlobalStatusEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.ClusterStatusDtoComputedStatusGlobalStatusEnum = {
|
|
33
|
+
RUNNING: 'RUNNING',
|
|
34
|
+
WARNING: 'WARNING',
|
|
35
|
+
ERROR: 'ERROR'
|
|
36
|
+
};
|
|
37
|
+
exports.QoveryPodInErrorComponentInFailureLevelEnum = {
|
|
38
|
+
ERROR: 'ERROR',
|
|
39
|
+
WARNING: 'WARNING'
|
|
40
|
+
};
|
|
32
41
|
/**
|
|
33
42
|
*
|
|
34
43
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -200,6 +200,12 @@ export interface ClusterNodeDto {
|
|
|
200
200
|
* @interface ClusterStatusDto
|
|
201
201
|
*/
|
|
202
202
|
export interface ClusterStatusDto {
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @type {ClusterStatusDtoComputedStatus}
|
|
206
|
+
* @memberof ClusterStatusDto
|
|
207
|
+
*/
|
|
208
|
+
'computed_status': ClusterStatusDtoComputedStatus;
|
|
203
209
|
/**
|
|
204
210
|
*
|
|
205
211
|
* @type {Array<ClusterNodeDto>}
|
|
@@ -207,6 +213,69 @@ export interface ClusterStatusDto {
|
|
|
207
213
|
*/
|
|
208
214
|
'nodes': Array<ClusterNodeDto>;
|
|
209
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @export
|
|
219
|
+
* @interface ClusterStatusDtoComputedStatus
|
|
220
|
+
*/
|
|
221
|
+
export interface ClusterStatusDtoComputedStatus {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
226
|
+
*/
|
|
227
|
+
'global_status'?: ClusterStatusDtoComputedStatusGlobalStatusEnum;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {Array<ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner>}
|
|
231
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
232
|
+
*/
|
|
233
|
+
'qovery_components_in_failure'?: Array<ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner>;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @type {{ [key: string]: NodeInWarning; }}
|
|
237
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
238
|
+
*/
|
|
239
|
+
'node_warnings'?: {
|
|
240
|
+
[key: string]: NodeInWarning;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {boolean}
|
|
245
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
246
|
+
*/
|
|
247
|
+
'is_max_nodes_size_reached'?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @type {ClusterStatusDtoComputedStatusKubeVersionStatus}
|
|
251
|
+
* @memberof ClusterStatusDtoComputedStatus
|
|
252
|
+
*/
|
|
253
|
+
'kube_version_status'?: ClusterStatusDtoComputedStatusKubeVersionStatus;
|
|
254
|
+
}
|
|
255
|
+
export declare const ClusterStatusDtoComputedStatusGlobalStatusEnum: {
|
|
256
|
+
readonly RUNNING: "RUNNING";
|
|
257
|
+
readonly WARNING: "WARNING";
|
|
258
|
+
readonly ERROR: "ERROR";
|
|
259
|
+
};
|
|
260
|
+
export type ClusterStatusDtoComputedStatusGlobalStatusEnum = typeof ClusterStatusDtoComputedStatusGlobalStatusEnum[keyof typeof ClusterStatusDtoComputedStatusGlobalStatusEnum];
|
|
261
|
+
/**
|
|
262
|
+
* @type ClusterStatusDtoComputedStatusKubeVersionStatus
|
|
263
|
+
* @export
|
|
264
|
+
*/
|
|
265
|
+
export type ClusterStatusDtoComputedStatusKubeVersionStatus = {
|
|
266
|
+
type: 'DRIFT';
|
|
267
|
+
} & QoveryDriftKubeVersion | {
|
|
268
|
+
type: 'OK';
|
|
269
|
+
} & QoveryOkKubeVersion;
|
|
270
|
+
/**
|
|
271
|
+
* @type ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner
|
|
272
|
+
* @export
|
|
273
|
+
*/
|
|
274
|
+
export type ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner = {
|
|
275
|
+
type: 'MISSING_COMPONENT';
|
|
276
|
+
} & QoveryMissingComponentInFailure | {
|
|
277
|
+
type: 'POD_IN_ERROR';
|
|
278
|
+
} & QoveryPodInErrorComponentInFailure;
|
|
210
279
|
/**
|
|
211
280
|
*
|
|
212
281
|
* @export
|
|
@@ -509,6 +578,25 @@ export interface NodeConditionDto {
|
|
|
509
578
|
*/
|
|
510
579
|
'type': string;
|
|
511
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @export
|
|
584
|
+
* @interface NodeInWarning
|
|
585
|
+
*/
|
|
586
|
+
export interface NodeInWarning {
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof NodeInWarning
|
|
591
|
+
*/
|
|
592
|
+
'reason': string;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof NodeInWarning
|
|
597
|
+
*/
|
|
598
|
+
'message': string;
|
|
599
|
+
}
|
|
512
600
|
/**
|
|
513
601
|
*
|
|
514
602
|
* @export
|
|
@@ -708,6 +796,99 @@ export interface PodStatusDto {
|
|
|
708
796
|
*/
|
|
709
797
|
'state_reason': string;
|
|
710
798
|
}
|
|
799
|
+
/**
|
|
800
|
+
*
|
|
801
|
+
* @export
|
|
802
|
+
* @interface QoveryDriftKubeVersion
|
|
803
|
+
*/
|
|
804
|
+
export interface QoveryDriftKubeVersion {
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @type {string}
|
|
808
|
+
* @memberof QoveryDriftKubeVersion
|
|
809
|
+
*/
|
|
810
|
+
'kube_version': string;
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
* @type {string}
|
|
814
|
+
* @memberof QoveryDriftKubeVersion
|
|
815
|
+
*/
|
|
816
|
+
'expected_kube_version': string;
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @export
|
|
821
|
+
* @interface QoveryMissingComponentInFailure
|
|
822
|
+
*/
|
|
823
|
+
export interface QoveryMissingComponentInFailure {
|
|
824
|
+
/**
|
|
825
|
+
*
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof QoveryMissingComponentInFailure
|
|
828
|
+
*/
|
|
829
|
+
'component_name': string;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @export
|
|
834
|
+
* @interface QoveryOkKubeVersion
|
|
835
|
+
*/
|
|
836
|
+
export interface QoveryOkKubeVersion {
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @type {string}
|
|
840
|
+
* @memberof QoveryOkKubeVersion
|
|
841
|
+
*/
|
|
842
|
+
'kube_version': string;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @export
|
|
847
|
+
* @interface QoveryPodInErrorComponentInFailure
|
|
848
|
+
*/
|
|
849
|
+
export interface QoveryPodInErrorComponentInFailure {
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @type {string}
|
|
853
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
854
|
+
*/
|
|
855
|
+
'component_name': string;
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @type {string}
|
|
859
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
860
|
+
*/
|
|
861
|
+
'pod_name': string;
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @type {string}
|
|
865
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
866
|
+
*/
|
|
867
|
+
'container_name': string;
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @type {string}
|
|
871
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
872
|
+
*/
|
|
873
|
+
'level'?: QoveryPodInErrorComponentInFailureLevelEnum;
|
|
874
|
+
/**
|
|
875
|
+
*
|
|
876
|
+
* @type {string}
|
|
877
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
878
|
+
*/
|
|
879
|
+
'reason'?: string | null;
|
|
880
|
+
/**
|
|
881
|
+
*
|
|
882
|
+
* @type {string}
|
|
883
|
+
* @memberof QoveryPodInErrorComponentInFailure
|
|
884
|
+
*/
|
|
885
|
+
'message'?: string | null;
|
|
886
|
+
}
|
|
887
|
+
export declare const QoveryPodInErrorComponentInFailureLevelEnum: {
|
|
888
|
+
readonly ERROR: "ERROR";
|
|
889
|
+
readonly WARNING: "WARNING";
|
|
890
|
+
};
|
|
891
|
+
export type QoveryPodInErrorComponentInFailureLevelEnum = typeof QoveryPodInErrorComponentInFailureLevelEnum[keyof typeof QoveryPodInErrorComponentInFailureLevelEnum];
|
|
711
892
|
/**
|
|
712
893
|
*
|
|
713
894
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -26,6 +26,15 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI } from './base';
|
|
29
|
+
export const ClusterStatusDtoComputedStatusGlobalStatusEnum = {
|
|
30
|
+
RUNNING: 'RUNNING',
|
|
31
|
+
WARNING: 'WARNING',
|
|
32
|
+
ERROR: 'ERROR'
|
|
33
|
+
};
|
|
34
|
+
export const QoveryPodInErrorComponentInFailureLevelEnum = {
|
|
35
|
+
ERROR: 'ERROR',
|
|
36
|
+
WARNING: 'WARNING'
|
|
37
|
+
};
|
|
29
38
|
/**
|
|
30
39
|
*
|
|
31
40
|
* @export
|