qovery-ws-typescript-axios 0.1.90 → 0.1.93

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,110 @@ export interface CertificateStatusDto {
113
113
  }
114
114
 
115
115
 
116
+ /**
117
+ *
118
+ * @export
119
+ * @interface ClusterNodeDto
120
+ */
121
+ export interface ClusterNodeDto {
122
+ /**
123
+ *
124
+ * @type {Array<NodeAddressDto>}
125
+ * @memberof ClusterNodeDto
126
+ */
127
+ 'addresses': Array<NodeAddressDto>;
128
+ /**
129
+ *
130
+ * @type {{ [key: string]: string; }}
131
+ * @memberof ClusterNodeDto
132
+ */
133
+ 'annotations': { [key: string]: string; };
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof ClusterNodeDto
138
+ */
139
+ 'architecture': string;
140
+ /**
141
+ *
142
+ * @type {Array<NodeConditionDto>}
143
+ * @memberof ClusterNodeDto
144
+ */
145
+ 'conditions': Array<NodeConditionDto>;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof ClusterNodeDto
150
+ */
151
+ 'kernel_version': string;
152
+ /**
153
+ *
154
+ * @type {string}
155
+ * @memberof ClusterNodeDto
156
+ */
157
+ 'kubelet_version': string;
158
+ /**
159
+ *
160
+ * @type {{ [key: string]: string; }}
161
+ * @memberof ClusterNodeDto
162
+ */
163
+ 'labels': { [key: string]: string; };
164
+ /**
165
+ *
166
+ * @type {string}
167
+ * @memberof ClusterNodeDto
168
+ */
169
+ 'name': string;
170
+ /**
171
+ *
172
+ * @type {string}
173
+ * @memberof ClusterNodeDto
174
+ */
175
+ 'operating_system': string;
176
+ /**
177
+ *
178
+ * @type {string}
179
+ * @memberof ClusterNodeDto
180
+ */
181
+ 'os_image': string;
182
+ /**
183
+ *
184
+ * @type {Array<NodePodInfoDto>}
185
+ * @memberof ClusterNodeDto
186
+ */
187
+ 'pods': Array<NodePodInfoDto>;
188
+ /**
189
+ *
190
+ * @type {NodeResourceDto}
191
+ * @memberof ClusterNodeDto
192
+ */
193
+ 'resources_allocatable': NodeResourceDto;
194
+ /**
195
+ *
196
+ * @type {Array<NodeTaintDto>}
197
+ * @memberof ClusterNodeDto
198
+ */
199
+ 'taints': Array<NodeTaintDto>;
200
+ /**
201
+ *
202
+ * @type {boolean}
203
+ * @memberof ClusterNodeDto
204
+ */
205
+ 'unschedulable': boolean;
206
+ }
207
+ /**
208
+ *
209
+ * @export
210
+ * @interface ClusterStatusDto
211
+ */
212
+ export interface ClusterStatusDto {
213
+ /**
214
+ *
215
+ * @type {Array<ClusterNodeDto>}
216
+ * @memberof ClusterStatusDto
217
+ */
218
+ 'nodes': Array<ClusterNodeDto>;
219
+ }
116
220
  /**
117
221
  *
118
222
  * @export
@@ -361,6 +465,185 @@ export interface MetricDto {
361
465
  }
362
466
 
363
467
 
468
+ /**
469
+ *
470
+ * @export
471
+ * @interface NodeAddressDto
472
+ */
473
+ export interface NodeAddressDto {
474
+ /**
475
+ *
476
+ * @type {string}
477
+ * @memberof NodeAddressDto
478
+ */
479
+ 'address': string;
480
+ /**
481
+ *
482
+ * @type {string}
483
+ * @memberof NodeAddressDto
484
+ */
485
+ 'type': string;
486
+ }
487
+ /**
488
+ *
489
+ * @export
490
+ * @interface NodeConditionDto
491
+ */
492
+ export interface NodeConditionDto {
493
+ /**
494
+ * Unix timestamp with millisecond precision
495
+ * @type {number}
496
+ * @memberof NodeConditionDto
497
+ */
498
+ 'last_heartbeat_time'?: number | null;
499
+ /**
500
+ * Unix timestamp with millisecond precision
501
+ * @type {number}
502
+ * @memberof NodeConditionDto
503
+ */
504
+ 'last_transition_time'?: number | null;
505
+ /**
506
+ *
507
+ * @type {string}
508
+ * @memberof NodeConditionDto
509
+ */
510
+ 'message': string;
511
+ /**
512
+ *
513
+ * @type {string}
514
+ * @memberof NodeConditionDto
515
+ */
516
+ 'reason': string;
517
+ /**
518
+ *
519
+ * @type {string}
520
+ * @memberof NodeConditionDto
521
+ */
522
+ 'status': string;
523
+ /**
524
+ *
525
+ * @type {string}
526
+ * @memberof NodeConditionDto
527
+ */
528
+ 'type': string;
529
+ }
530
+ /**
531
+ *
532
+ * @export
533
+ * @interface NodePodInfoDto
534
+ */
535
+ export interface NodePodInfoDto {
536
+ /**
537
+ *
538
+ * @type {number}
539
+ * @memberof NodePodInfoDto
540
+ */
541
+ 'cpu_milli_limit'?: number | null;
542
+ /**
543
+ *
544
+ * @type {number}
545
+ * @memberof NodePodInfoDto
546
+ */
547
+ 'cpu_milli_request'?: number | null;
548
+ /**
549
+ *
550
+ * @type {string}
551
+ * @memberof NodePodInfoDto
552
+ */
553
+ 'environment_id'?: string | null;
554
+ /**
555
+ *
556
+ * @type {number}
557
+ * @memberof NodePodInfoDto
558
+ */
559
+ 'memory_mib_limit'?: number | null;
560
+ /**
561
+ *
562
+ * @type {number}
563
+ * @memberof NodePodInfoDto
564
+ */
565
+ 'memory_mib_request'?: number | null;
566
+ /**
567
+ *
568
+ * @type {string}
569
+ * @memberof NodePodInfoDto
570
+ */
571
+ 'name': string;
572
+ /**
573
+ *
574
+ * @type {string}
575
+ * @memberof NodePodInfoDto
576
+ */
577
+ 'namespace': string;
578
+ /**
579
+ *
580
+ * @type {string}
581
+ * @memberof NodePodInfoDto
582
+ */
583
+ 'project_id'?: string | null;
584
+ /**
585
+ *
586
+ * @type {string}
587
+ * @memberof NodePodInfoDto
588
+ */
589
+ 'service_id'?: string | null;
590
+ }
591
+ /**
592
+ *
593
+ * @export
594
+ * @interface NodeResourceDto
595
+ */
596
+ export interface NodeResourceDto {
597
+ /**
598
+ *
599
+ * @type {number}
600
+ * @memberof NodeResourceDto
601
+ */
602
+ 'cpu_milli': number;
603
+ /**
604
+ *
605
+ * @type {number}
606
+ * @memberof NodeResourceDto
607
+ */
608
+ 'ephemeral_storage_gib': number;
609
+ /**
610
+ *
611
+ * @type {number}
612
+ * @memberof NodeResourceDto
613
+ */
614
+ 'memory_mib': number;
615
+ /**
616
+ *
617
+ * @type {number}
618
+ * @memberof NodeResourceDto
619
+ */
620
+ 'pods': number;
621
+ }
622
+ /**
623
+ *
624
+ * @export
625
+ * @interface NodeTaintDto
626
+ */
627
+ export interface NodeTaintDto {
628
+ /**
629
+ *
630
+ * @type {string}
631
+ * @memberof NodeTaintDto
632
+ */
633
+ 'effect': string;
634
+ /**
635
+ *
636
+ * @type {string}
637
+ * @memberof NodeTaintDto
638
+ */
639
+ 'key': string;
640
+ /**
641
+ *
642
+ * @type {string}
643
+ * @memberof NodeTaintDto
644
+ */
645
+ 'value': string;
646
+ }
364
647
  /**
365
648
  *
366
649
  * @export
@@ -458,6 +741,12 @@ export interface ServiceInfraLogResponseDto {
458
741
  * @interface ServiceLogResponseDto
459
742
  */
460
743
  export interface ServiceLogResponseDto {
744
+ /**
745
+ *
746
+ * @type {string}
747
+ * @memberof ServiceLogResponseDto
748
+ */
749
+ 'container_name': string;
461
750
  /**
462
751
  * Unix timestamp with millisecond precision
463
752
  * @type {number}
@@ -579,6 +868,115 @@ export type UnitDto = typeof UnitDto[keyof typeof UnitDto];
579
868
 
580
869
 
581
870
 
871
+ /**
872
+ * ClusterStatusApi - axios parameter creator
873
+ * @export
874
+ */
875
+ export const ClusterStatusApiAxiosParamCreator = function (configuration?: Configuration) {
876
+ return {
877
+ /**
878
+ *
879
+ * @param {string} organization
880
+ * @param {string} cluster
881
+ * @param {*} [options] Override http request option.
882
+ * @throws {RequiredError}
883
+ */
884
+ handleClusterStatusRequest: async (organization: string, cluster: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
885
+ // verify required parameter 'organization' is not null or undefined
886
+ assertParamExists('handleClusterStatusRequest', 'organization', organization)
887
+ // verify required parameter 'cluster' is not null or undefined
888
+ assertParamExists('handleClusterStatusRequest', 'cluster', cluster)
889
+ const localVarPath = `/cluster/status`
890
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
891
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
892
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
893
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
894
+ let baseOptions;
895
+ if (configuration) {
896
+ baseOptions = configuration.baseOptions;
897
+ }
898
+
899
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
900
+ const localVarHeaderParameter = {} as any;
901
+ const localVarQueryParameter = {} as any;
902
+
903
+
904
+
905
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
907
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
908
+
909
+ return {
910
+ url: toPathString(localVarUrlObj),
911
+ options: localVarRequestOptions,
912
+ };
913
+ },
914
+ }
915
+ };
916
+
917
+ /**
918
+ * ClusterStatusApi - functional programming interface
919
+ * @export
920
+ */
921
+ export const ClusterStatusApiFp = function(configuration?: Configuration) {
922
+ const localVarAxiosParamCreator = ClusterStatusApiAxiosParamCreator(configuration)
923
+ return {
924
+ /**
925
+ *
926
+ * @param {string} organization
927
+ * @param {string} cluster
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ */
931
+ async handleClusterStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatusDto>> {
932
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleClusterStatusRequest(organization, cluster, options);
933
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
934
+ },
935
+ }
936
+ };
937
+
938
+ /**
939
+ * ClusterStatusApi - factory interface
940
+ * @export
941
+ */
942
+ export const ClusterStatusApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
943
+ const localVarFp = ClusterStatusApiFp(configuration)
944
+ return {
945
+ /**
946
+ *
947
+ * @param {string} organization
948
+ * @param {string} cluster
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ */
952
+ handleClusterStatusRequest(organization: string, cluster: string, options?: any): AxiosPromise<ClusterStatusDto> {
953
+ return localVarFp.handleClusterStatusRequest(organization, cluster, options).then((request) => request(axios, basePath));
954
+ },
955
+ };
956
+ };
957
+
958
+ /**
959
+ * ClusterStatusApi - object-oriented interface
960
+ * @export
961
+ * @class ClusterStatusApi
962
+ * @extends {BaseAPI}
963
+ */
964
+ export class ClusterStatusApi extends BaseAPI {
965
+ /**
966
+ *
967
+ * @param {string} organization
968
+ * @param {string} cluster
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ * @memberof ClusterStatusApi
972
+ */
973
+ public handleClusterStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig) {
974
+ return ClusterStatusApiFp(this.configuration).handleClusterStatusRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
975
+ }
976
+ }
977
+
978
+
979
+
582
980
  /**
583
981
  * DeploymentApi - axios parameter creator
584
982
  * @export
@@ -800,115 +1198,6 @@ export class DeploymentApi extends BaseAPI {
800
1198
 
801
1199
 
802
1200
 
803
- /**
804
- * InfraStatusApi - axios parameter creator
805
- * @export
806
- */
807
- export const InfraStatusApiAxiosParamCreator = function (configuration?: Configuration) {
808
- return {
809
- /**
810
- *
811
- * @param {string} organization
812
- * @param {string} cluster
813
- * @param {*} [options] Override http request option.
814
- * @throws {RequiredError}
815
- */
816
- handleInfraStatusRequest: async (organization: string, cluster: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
817
- // verify required parameter 'organization' is not null or undefined
818
- assertParamExists('handleInfraStatusRequest', 'organization', organization)
819
- // verify required parameter 'cluster' is not null or undefined
820
- assertParamExists('handleInfraStatusRequest', 'cluster', cluster)
821
- const localVarPath = `/infra/status`
822
- .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
823
- .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
824
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
825
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
826
- let baseOptions;
827
- if (configuration) {
828
- baseOptions = configuration.baseOptions;
829
- }
830
-
831
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
832
- const localVarHeaderParameter = {} as any;
833
- const localVarQueryParameter = {} as any;
834
-
835
-
836
-
837
- setSearchParams(localVarUrlObj, localVarQueryParameter);
838
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
839
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
840
-
841
- return {
842
- url: toPathString(localVarUrlObj),
843
- options: localVarRequestOptions,
844
- };
845
- },
846
- }
847
- };
848
-
849
- /**
850
- * InfraStatusApi - functional programming interface
851
- * @export
852
- */
853
- export const InfraStatusApiFp = function(configuration?: Configuration) {
854
- const localVarAxiosParamCreator = InfraStatusApiAxiosParamCreator(configuration)
855
- return {
856
- /**
857
- *
858
- * @param {string} organization
859
- * @param {string} cluster
860
- * @param {*} [options] Override http request option.
861
- * @throws {RequiredError}
862
- */
863
- async handleInfraStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
864
- const localVarAxiosArgs = await localVarAxiosParamCreator.handleInfraStatusRequest(organization, cluster, options);
865
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
866
- },
867
- }
868
- };
869
-
870
- /**
871
- * InfraStatusApi - factory interface
872
- * @export
873
- */
874
- export const InfraStatusApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
875
- const localVarFp = InfraStatusApiFp(configuration)
876
- return {
877
- /**
878
- *
879
- * @param {string} organization
880
- * @param {string} cluster
881
- * @param {*} [options] Override http request option.
882
- * @throws {RequiredError}
883
- */
884
- handleInfraStatusRequest(organization: string, cluster: string, options?: any): AxiosPromise<object> {
885
- return localVarFp.handleInfraStatusRequest(organization, cluster, options).then((request) => request(axios, basePath));
886
- },
887
- };
888
- };
889
-
890
- /**
891
- * InfraStatusApi - object-oriented interface
892
- * @export
893
- * @class InfraStatusApi
894
- * @extends {BaseAPI}
895
- */
896
- export class InfraStatusApi extends BaseAPI {
897
- /**
898
- *
899
- * @param {string} organization
900
- * @param {string} cluster
901
- * @param {*} [options] Override http request option.
902
- * @throws {RequiredError}
903
- * @memberof InfraStatusApi
904
- */
905
- public handleInfraStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig) {
906
- return InfraStatusApiFp(this.configuration).handleInfraStatusRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
907
- }
908
- }
909
-
910
-
911
-
912
1201
  /**
913
1202
  * LogsApi - axios parameter creator
914
1203
  * @export