qovery-ws-typescript-axios 0.1.231 → 0.1.233

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 CHANGED
@@ -113,6 +113,58 @@ export interface CertificateStatusDto {
113
113
  }
114
114
 
115
115
 
116
+ /**
117
+ *
118
+ * @export
119
+ * @interface ClusterComputedStatusDto
120
+ */
121
+ export interface ClusterComputedStatusDto {
122
+ /**
123
+ *
124
+ * @type {ClusterStatusGlobalStatus}
125
+ * @memberof ClusterComputedStatusDto
126
+ */
127
+ 'global_status': ClusterStatusGlobalStatus;
128
+ /**
129
+ *
130
+ * @type {boolean}
131
+ * @memberof ClusterComputedStatusDto
132
+ */
133
+ 'is_max_nodes_size_reached': boolean;
134
+ /**
135
+ *
136
+ * @type {QoveryClusterKubeVersionStatus}
137
+ * @memberof ClusterComputedStatusDto
138
+ */
139
+ 'kube_version_status': QoveryClusterKubeVersionStatus;
140
+ /**
141
+ *
142
+ * @type {{ [key: string]: Array<QoveryNodeFailure>; }}
143
+ * @memberof ClusterComputedStatusDto
144
+ */
145
+ 'node_warnings': { [key: string]: Array<QoveryNodeFailure>; };
146
+ /**
147
+ *
148
+ * @type {Array<QoveryComponentInFailure>}
149
+ * @memberof ClusterComputedStatusDto
150
+ */
151
+ 'qovery_components_in_failure': Array<QoveryComponentInFailure>;
152
+ }
153
+
154
+
155
+ /**
156
+ *
157
+ * @export
158
+ * @interface ClusterListNodesResponseDto
159
+ */
160
+ export interface ClusterListNodesResponseDto {
161
+ /**
162
+ *
163
+ * @type {Array<NodeDto>}
164
+ * @memberof ClusterListNodesResponseDto
165
+ */
166
+ 'nodes': Array<NodeDto>;
167
+ }
116
168
  /**
117
169
  *
118
170
  * @export
@@ -212,10 +264,10 @@ export interface ClusterNodeDto {
212
264
  export interface ClusterStatusDto {
213
265
  /**
214
266
  *
215
- * @type {ClusterStatusDtoComputedStatus}
267
+ * @type {ClusterComputedStatusDto}
216
268
  * @memberof ClusterStatusDto
217
269
  */
218
- 'computed_status': ClusterStatusDtoComputedStatus;
270
+ 'computed_status': ClusterComputedStatusDto;
219
271
  /**
220
272
  *
221
273
  * @type {Array<ClusterNodeDto>}
@@ -226,60 +278,17 @@ export interface ClusterStatusDto {
226
278
  /**
227
279
  *
228
280
  * @export
229
- * @interface ClusterStatusDtoComputedStatus
281
+ * @enum {string}
230
282
  */
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
283
 
264
- export const ClusterStatusDtoComputedStatusGlobalStatusEnum = {
284
+ export const ClusterStatusGlobalStatus = {
265
285
  RUNNING: 'RUNNING',
266
286
  WARNING: 'WARNING',
267
287
  ERROR: 'ERROR'
268
288
  } as const;
269
289
 
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;
290
+ export type ClusterStatusGlobalStatus = typeof ClusterStatusGlobalStatus[keyof typeof ClusterStatusGlobalStatus];
277
291
 
278
- /**
279
- * @type ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner
280
- * @export
281
- */
282
- export type ClusterStatusDtoComputedStatusQoveryComponentsInFailureInner = { type: 'MISSING_COMPONENT' } & QoveryMissingComponentInFailure | { type: 'POD_IN_ERROR' } & QoveryPodInErrorComponentInFailure;
283
292
 
284
293
  /**
285
294
  *
@@ -594,21 +603,15 @@ export interface NodeConditionDto {
594
603
  /**
595
604
  *
596
605
  * @export
597
- * @interface NodeInWarning
606
+ * @interface NodeDto
598
607
  */
599
- export interface NodeInWarning {
608
+ export interface NodeDto {
600
609
  /**
601
610
  *
602
611
  * @type {string}
603
- * @memberof NodeInWarning
612
+ * @memberof NodeDto
604
613
  */
605
- 'reason': string;
606
- /**
607
- *
608
- * @type {string}
609
- * @memberof NodeInWarning
610
- */
611
- 'message': string;
614
+ 'name': string;
612
615
  }
613
616
  /**
614
617
  *
@@ -809,102 +812,241 @@ export interface PodStatusDto {
809
812
  }
810
813
 
811
814
 
815
+ /**
816
+ * @type QoveryClusterKubeVersionStatus
817
+ * @export
818
+ */
819
+ export type QoveryClusterKubeVersionStatus = QoveryClusterKubeVersionStatusOneOf | QoveryClusterKubeVersionStatusOneOf1 | QoveryClusterKubeVersionStatusOneOf2;
820
+
812
821
  /**
813
822
  *
814
823
  * @export
815
- * @interface QoveryDriftKubeVersion
824
+ * @interface QoveryClusterKubeVersionStatusOneOf
816
825
  */
817
- export interface QoveryDriftKubeVersion {
826
+ export interface QoveryClusterKubeVersionStatusOneOf {
818
827
  /**
819
828
  *
820
829
  * @type {string}
821
- * @memberof QoveryDriftKubeVersion
830
+ * @memberof QoveryClusterKubeVersionStatusOneOf
822
831
  */
823
832
  'kube_version': string;
824
833
  /**
825
834
  *
826
835
  * @type {string}
827
- * @memberof QoveryDriftKubeVersion
836
+ * @memberof QoveryClusterKubeVersionStatusOneOf
837
+ */
838
+ 'type': QoveryClusterKubeVersionStatusOneOfTypeEnum;
839
+ }
840
+
841
+ export const QoveryClusterKubeVersionStatusOneOfTypeEnum = {
842
+ OK: 'Ok',
843
+ DRIFT: 'Drift',
844
+ UNKNOWN: 'Unknown'
845
+ } as const;
846
+
847
+ export type QoveryClusterKubeVersionStatusOneOfTypeEnum = typeof QoveryClusterKubeVersionStatusOneOfTypeEnum[keyof typeof QoveryClusterKubeVersionStatusOneOfTypeEnum];
848
+
849
+ /**
850
+ *
851
+ * @export
852
+ * @interface QoveryClusterKubeVersionStatusOneOf1
853
+ */
854
+ export interface QoveryClusterKubeVersionStatusOneOf1 {
855
+ /**
856
+ *
857
+ * @type {string}
858
+ * @memberof QoveryClusterKubeVersionStatusOneOf1
828
859
  */
829
860
  'expected_kube_version': string;
861
+ /**
862
+ *
863
+ * @type {string}
864
+ * @memberof QoveryClusterKubeVersionStatusOneOf1
865
+ */
866
+ 'kube_version': string;
867
+ /**
868
+ *
869
+ * @type {string}
870
+ * @memberof QoveryClusterKubeVersionStatusOneOf1
871
+ */
872
+ 'type': QoveryClusterKubeVersionStatusOneOf1TypeEnum;
830
873
  }
874
+
875
+ export const QoveryClusterKubeVersionStatusOneOf1TypeEnum = {
876
+ DRIFT: 'Drift'
877
+ } as const;
878
+
879
+ export type QoveryClusterKubeVersionStatusOneOf1TypeEnum = typeof QoveryClusterKubeVersionStatusOneOf1TypeEnum[keyof typeof QoveryClusterKubeVersionStatusOneOf1TypeEnum];
880
+
831
881
  /**
832
882
  *
833
883
  * @export
834
- * @interface QoveryMissingComponentInFailure
884
+ * @interface QoveryClusterKubeVersionStatusOneOf2
835
885
  */
836
- export interface QoveryMissingComponentInFailure {
886
+ export interface QoveryClusterKubeVersionStatusOneOf2 {
837
887
  /**
838
888
  *
839
889
  * @type {string}
840
- * @memberof QoveryMissingComponentInFailure
890
+ * @memberof QoveryClusterKubeVersionStatusOneOf2
841
891
  */
842
- 'component_name': string;
892
+ 'type': QoveryClusterKubeVersionStatusOneOf2TypeEnum;
843
893
  }
894
+
895
+ export const QoveryClusterKubeVersionStatusOneOf2TypeEnum = {
896
+ UNKNOWN: 'Unknown'
897
+ } as const;
898
+
899
+ export type QoveryClusterKubeVersionStatusOneOf2TypeEnum = typeof QoveryClusterKubeVersionStatusOneOf2TypeEnum[keyof typeof QoveryClusterKubeVersionStatusOneOf2TypeEnum];
900
+
844
901
  /**
845
902
  *
846
903
  * @export
847
- * @interface QoveryOkKubeVersion
904
+ * @interface QoveryComponentContainerStatusIssue
848
905
  */
849
- export interface QoveryOkKubeVersion {
906
+ export interface QoveryComponentContainerStatusIssue {
907
+ /**
908
+ *
909
+ * @type {QoveryComponentContainerStatusLevel}
910
+ * @memberof QoveryComponentContainerStatusIssue
911
+ */
912
+ 'level': QoveryComponentContainerStatusLevel;
850
913
  /**
851
914
  *
852
915
  * @type {string}
853
- * @memberof QoveryOkKubeVersion
916
+ * @memberof QoveryComponentContainerStatusIssue
854
917
  */
855
- 'kube_version': string;
918
+ 'message'?: string | null;
919
+ /**
920
+ *
921
+ * @type {string}
922
+ * @memberof QoveryComponentContainerStatusIssue
923
+ */
924
+ 'reason'?: string | null;
856
925
  }
926
+
927
+
928
+ /**
929
+ *
930
+ * @export
931
+ * @enum {string}
932
+ */
933
+
934
+ export const QoveryComponentContainerStatusLevel = {
935
+ ERROR: 'ERROR',
936
+ WARNING: 'WARNING'
937
+ } as const;
938
+
939
+ export type QoveryComponentContainerStatusLevel = typeof QoveryComponentContainerStatusLevel[keyof typeof QoveryComponentContainerStatusLevel];
940
+
941
+
942
+ /**
943
+ * @type QoveryComponentInFailure
944
+ * @export
945
+ */
946
+ export type QoveryComponentInFailure = QoveryComponentInFailureOneOf | QoveryComponentInFailureOneOf1;
947
+
857
948
  /**
858
949
  *
859
950
  * @export
860
- * @interface QoveryPodInErrorComponentInFailure
951
+ * @interface QoveryComponentInFailureOneOf
861
952
  */
862
- export interface QoveryPodInErrorComponentInFailure {
953
+ export interface QoveryComponentInFailureOneOf {
863
954
  /**
864
955
  *
865
956
  * @type {string}
866
- * @memberof QoveryPodInErrorComponentInFailure
957
+ * @memberof QoveryComponentInFailureOneOf
867
958
  */
868
959
  'component_name': string;
869
960
  /**
870
961
  *
871
962
  * @type {string}
872
- * @memberof QoveryPodInErrorComponentInFailure
963
+ * @memberof QoveryComponentInFailureOneOf
873
964
  */
874
- 'pod_name': string;
965
+ 'container_name': string;
966
+ /**
967
+ *
968
+ * @type {QoveryComponentContainerStatusLevel}
969
+ * @memberof QoveryComponentInFailureOneOf
970
+ */
971
+ 'level': QoveryComponentContainerStatusLevel;
875
972
  /**
876
973
  *
877
974
  * @type {string}
878
- * @memberof QoveryPodInErrorComponentInFailure
975
+ * @memberof QoveryComponentInFailureOneOf
879
976
  */
880
- 'container_name': string;
977
+ 'message'?: string | null;
881
978
  /**
882
979
  *
883
980
  * @type {string}
884
- * @memberof QoveryPodInErrorComponentInFailure
981
+ * @memberof QoveryComponentInFailureOneOf
885
982
  */
886
- 'level'?: QoveryPodInErrorComponentInFailureLevelEnum;
983
+ 'pod_name': string;
887
984
  /**
888
985
  *
889
986
  * @type {string}
890
- * @memberof QoveryPodInErrorComponentInFailure
987
+ * @memberof QoveryComponentInFailureOneOf
891
988
  */
892
989
  'reason'?: string | null;
893
990
  /**
894
991
  *
895
992
  * @type {string}
896
- * @memberof QoveryPodInErrorComponentInFailure
993
+ * @memberof QoveryComponentInFailureOneOf
897
994
  */
898
- 'message'?: string | null;
995
+ 'type': QoveryComponentInFailureOneOfTypeEnum;
899
996
  }
900
997
 
901
- export const QoveryPodInErrorComponentInFailureLevelEnum = {
902
- ERROR: 'ERROR',
903
- WARNING: 'WARNING'
998
+ export const QoveryComponentInFailureOneOfTypeEnum = {
999
+ POD_IN_ERROR: 'POD_IN_ERROR',
1000
+ MISSING_COMPONENT: 'MISSING_COMPONENT'
904
1001
  } as const;
905
1002
 
906
- export type QoveryPodInErrorComponentInFailureLevelEnum = typeof QoveryPodInErrorComponentInFailureLevelEnum[keyof typeof QoveryPodInErrorComponentInFailureLevelEnum];
1003
+ export type QoveryComponentInFailureOneOfTypeEnum = typeof QoveryComponentInFailureOneOfTypeEnum[keyof typeof QoveryComponentInFailureOneOfTypeEnum];
907
1004
 
1005
+ /**
1006
+ *
1007
+ * @export
1008
+ * @interface QoveryComponentInFailureOneOf1
1009
+ */
1010
+ export interface QoveryComponentInFailureOneOf1 {
1011
+ /**
1012
+ *
1013
+ * @type {string}
1014
+ * @memberof QoveryComponentInFailureOneOf1
1015
+ */
1016
+ 'component_name': string;
1017
+ /**
1018
+ *
1019
+ * @type {string}
1020
+ * @memberof QoveryComponentInFailureOneOf1
1021
+ */
1022
+ 'type': QoveryComponentInFailureOneOf1TypeEnum;
1023
+ }
1024
+
1025
+ export const QoveryComponentInFailureOneOf1TypeEnum = {
1026
+ MISSING_COMPONENT: 'MISSING_COMPONENT'
1027
+ } as const;
1028
+
1029
+ export type QoveryComponentInFailureOneOf1TypeEnum = typeof QoveryComponentInFailureOneOf1TypeEnum[keyof typeof QoveryComponentInFailureOneOf1TypeEnum];
1030
+
1031
+ /**
1032
+ *
1033
+ * @export
1034
+ * @interface QoveryNodeFailure
1035
+ */
1036
+ export interface QoveryNodeFailure {
1037
+ /**
1038
+ *
1039
+ * @type {string}
1040
+ * @memberof QoveryNodeFailure
1041
+ */
1042
+ 'message': string;
1043
+ /**
1044
+ *
1045
+ * @type {string}
1046
+ * @memberof QoveryNodeFailure
1047
+ */
1048
+ 'reason': string;
1049
+ }
908
1050
  /**
909
1051
  *
910
1052
  * @export
@@ -1085,6 +1227,115 @@ export type UnitDto = typeof UnitDto[keyof typeof UnitDto];
1085
1227
 
1086
1228
 
1087
1229
 
1230
+ /**
1231
+ * ClusterListNodesApi - axios parameter creator
1232
+ * @export
1233
+ */
1234
+ export const ClusterListNodesApiAxiosParamCreator = function (configuration?: Configuration) {
1235
+ return {
1236
+ /**
1237
+ *
1238
+ * @param {string} organization
1239
+ * @param {string} cluster
1240
+ * @param {*} [options] Override http request option.
1241
+ * @throws {RequiredError}
1242
+ */
1243
+ handleClusterListNodesRequest: async (organization: string, cluster: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1244
+ // verify required parameter 'organization' is not null or undefined
1245
+ assertParamExists('handleClusterListNodesRequest', 'organization', organization)
1246
+ // verify required parameter 'cluster' is not null or undefined
1247
+ assertParamExists('handleClusterListNodesRequest', 'cluster', cluster)
1248
+ const localVarPath = `/cluster/node`
1249
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
1250
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
1251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1253
+ let baseOptions;
1254
+ if (configuration) {
1255
+ baseOptions = configuration.baseOptions;
1256
+ }
1257
+
1258
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1259
+ const localVarHeaderParameter = {} as any;
1260
+ const localVarQueryParameter = {} as any;
1261
+
1262
+
1263
+
1264
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1265
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1266
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1267
+
1268
+ return {
1269
+ url: toPathString(localVarUrlObj),
1270
+ options: localVarRequestOptions,
1271
+ };
1272
+ },
1273
+ }
1274
+ };
1275
+
1276
+ /**
1277
+ * ClusterListNodesApi - functional programming interface
1278
+ * @export
1279
+ */
1280
+ export const ClusterListNodesApiFp = function(configuration?: Configuration) {
1281
+ const localVarAxiosParamCreator = ClusterListNodesApiAxiosParamCreator(configuration)
1282
+ return {
1283
+ /**
1284
+ *
1285
+ * @param {string} organization
1286
+ * @param {string} cluster
1287
+ * @param {*} [options] Override http request option.
1288
+ * @throws {RequiredError}
1289
+ */
1290
+ async handleClusterListNodesRequest(organization: string, cluster: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterListNodesResponseDto>> {
1291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleClusterListNodesRequest(organization, cluster, options);
1292
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1293
+ },
1294
+ }
1295
+ };
1296
+
1297
+ /**
1298
+ * ClusterListNodesApi - factory interface
1299
+ * @export
1300
+ */
1301
+ export const ClusterListNodesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1302
+ const localVarFp = ClusterListNodesApiFp(configuration)
1303
+ return {
1304
+ /**
1305
+ *
1306
+ * @param {string} organization
1307
+ * @param {string} cluster
1308
+ * @param {*} [options] Override http request option.
1309
+ * @throws {RequiredError}
1310
+ */
1311
+ handleClusterListNodesRequest(organization: string, cluster: string, options?: any): AxiosPromise<ClusterListNodesResponseDto> {
1312
+ return localVarFp.handleClusterListNodesRequest(organization, cluster, options).then((request) => request(axios, basePath));
1313
+ },
1314
+ };
1315
+ };
1316
+
1317
+ /**
1318
+ * ClusterListNodesApi - object-oriented interface
1319
+ * @export
1320
+ * @class ClusterListNodesApi
1321
+ * @extends {BaseAPI}
1322
+ */
1323
+ export class ClusterListNodesApi extends BaseAPI {
1324
+ /**
1325
+ *
1326
+ * @param {string} organization
1327
+ * @param {string} cluster
1328
+ * @param {*} [options] Override http request option.
1329
+ * @throws {RequiredError}
1330
+ * @memberof ClusterListNodesApi
1331
+ */
1332
+ public handleClusterListNodesRequest(organization: string, cluster: string, options?: AxiosRequestConfig) {
1333
+ return ClusterListNodesApiFp(this.configuration).handleClusterListNodesRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
1334
+ }
1335
+ }
1336
+
1337
+
1338
+
1088
1339
  /**
1089
1340
  * ClusterStatusApi - axios parameter creator
1090
1341
  * @export