qovery-typescript-axios 1.1.952 → 1.1.954

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
@@ -7772,6 +7772,306 @@ export interface ClusterMetricsResponse {
7772
7772
  */
7773
7773
  'metrics'?: string;
7774
7774
  }
7775
+ /**
7776
+ * Sensitive bootstrap material used to install or manually upgrade the Qovery Operator on a self-managed cluster.
7777
+ * @export
7778
+ * @interface ClusterOperatorBootstrapResponse
7779
+ */
7780
+ export interface ClusterOperatorBootstrapResponse {
7781
+ /**
7782
+ *
7783
+ * @type {string}
7784
+ * @memberof ClusterOperatorBootstrapResponse
7785
+ */
7786
+ 'chart_repository': string;
7787
+ /**
7788
+ *
7789
+ * @type {string}
7790
+ * @memberof ClusterOperatorBootstrapResponse
7791
+ */
7792
+ 'chart_name': string;
7793
+ /**
7794
+ *
7795
+ * @type {string}
7796
+ * @memberof ClusterOperatorBootstrapResponse
7797
+ */
7798
+ 'chart_version': string;
7799
+ /**
7800
+ *
7801
+ * @type {string}
7802
+ * @memberof ClusterOperatorBootstrapResponse
7803
+ */
7804
+ 'chart_reference': string;
7805
+ /**
7806
+ *
7807
+ * @type {string}
7808
+ * @memberof ClusterOperatorBootstrapResponse
7809
+ */
7810
+ 'namespace': string;
7811
+ /**
7812
+ *
7813
+ * @type {string}
7814
+ * @memberof ClusterOperatorBootstrapResponse
7815
+ */
7816
+ 'release_name': string;
7817
+ /**
7818
+ * Structured Helm values. This object can contain cluster credentials.
7819
+ * @type {{ [key: string]: any; }}
7820
+ * @memberof ClusterOperatorBootstrapResponse
7821
+ */
7822
+ 'values': { [key: string]: any; };
7823
+ /**
7824
+ * Ready-to-write Helm values file. This value can contain cluster credentials.
7825
+ * @type {string}
7826
+ * @memberof ClusterOperatorBootstrapResponse
7827
+ */
7828
+ 'values_yaml': string;
7829
+ /**
7830
+ * Ready-to-run Helm upgrade/install command using values_yaml.
7831
+ * @type {string}
7832
+ * @memberof ClusterOperatorBootstrapResponse
7833
+ */
7834
+ 'helm_command': string;
7835
+ }
7836
+ /**
7837
+ *
7838
+ * @export
7839
+ * @interface ClusterOperatorFleetInventoryResponse
7840
+ */
7841
+ export interface ClusterOperatorFleetInventoryResponse {
7842
+ /**
7843
+ *
7844
+ * @type {string}
7845
+ * @memberof ClusterOperatorFleetInventoryResponse
7846
+ */
7847
+ 'organization_id': string;
7848
+ /**
7849
+ *
7850
+ * @type {string}
7851
+ * @memberof ClusterOperatorFleetInventoryResponse
7852
+ */
7853
+ 'cluster_id': string;
7854
+ /**
7855
+ *
7856
+ * @type {string}
7857
+ * @memberof ClusterOperatorFleetInventoryResponse
7858
+ */
7859
+ 'cluster_name': string;
7860
+ /**
7861
+ *
7862
+ * @type {SelfManagedClusterKind}
7863
+ * @memberof ClusterOperatorFleetInventoryResponse
7864
+ */
7865
+ 'cluster_kind': SelfManagedClusterKind;
7866
+ /**
7867
+ * Whether the cluster is explicitly routed through the Operator execution path.
7868
+ * @type {boolean}
7869
+ * @memberof ClusterOperatorFleetInventoryResponse
7870
+ */
7871
+ 'attached': boolean;
7872
+ /**
7873
+ * Whether the last heartbeat is within the Operator presence window.
7874
+ * @type {boolean}
7875
+ * @memberof ClusterOperatorFleetInventoryResponse
7876
+ */
7877
+ 'connected': boolean;
7878
+ /**
7879
+ *
7880
+ * @type {string}
7881
+ * @memberof ClusterOperatorFleetInventoryResponse
7882
+ */
7883
+ 'last_heartbeat'?: string | null;
7884
+ /**
7885
+ *
7886
+ * @type {string}
7887
+ * @memberof ClusterOperatorFleetInventoryResponse
7888
+ */
7889
+ 'desired_image_version'?: string | null;
7890
+ /**
7891
+ *
7892
+ * @type {string}
7893
+ * @memberof ClusterOperatorFleetInventoryResponse
7894
+ */
7895
+ 'reported_image_version'?: string | null;
7896
+ /**
7897
+ *
7898
+ * @type {string}
7899
+ * @memberof ClusterOperatorFleetInventoryResponse
7900
+ */
7901
+ 'desired_chart_version'?: string | null;
7902
+ /**
7903
+ *
7904
+ * @type {string}
7905
+ * @memberof ClusterOperatorFleetInventoryResponse
7906
+ */
7907
+ 'reported_chart_version'?: string | null;
7908
+ /**
7909
+ *
7910
+ * @type {ClusterOperatorFleetStatus}
7911
+ * @memberof ClusterOperatorFleetInventoryResponse
7912
+ */
7913
+ 'status': ClusterOperatorFleetStatus;
7914
+ }
7915
+
7916
+
7917
+ /**
7918
+ *
7919
+ * @export
7920
+ * @interface ClusterOperatorFleetInventoryResponseList
7921
+ */
7922
+ export interface ClusterOperatorFleetInventoryResponseList {
7923
+ /**
7924
+ *
7925
+ * @type {Array<ClusterOperatorFleetInventoryResponse>}
7926
+ * @memberof ClusterOperatorFleetInventoryResponseList
7927
+ */
7928
+ 'results': Array<ClusterOperatorFleetInventoryResponse>;
7929
+ }
7930
+ /**
7931
+ * Stable fleet classification. OUTDATED_IMAGE and OUTDATED_CHART identify which globally selected bootstrap target differs from the version reported by the running Operator.
7932
+ * @export
7933
+ * @enum {string}
7934
+ */
7935
+
7936
+ export const ClusterOperatorFleetStatus = {
7937
+ NOT_ATTACHED: 'NOT_ATTACHED',
7938
+ DISCONNECTED: 'DISCONNECTED',
7939
+ TARGET_UNKNOWN: 'TARGET_UNKNOWN',
7940
+ REPORTED_VERSION_UNKNOWN: 'REPORTED_VERSION_UNKNOWN',
7941
+ CURRENT: 'CURRENT',
7942
+ OUTDATED_IMAGE: 'OUTDATED_IMAGE',
7943
+ OUTDATED_CHART: 'OUTDATED_CHART',
7944
+ OUTDATED_IMAGE_AND_CHART: 'OUTDATED_IMAGE_AND_CHART'
7945
+ } as const;
7946
+
7947
+ export type ClusterOperatorFleetStatus = typeof ClusterOperatorFleetStatus[keyof typeof ClusterOperatorFleetStatus];
7948
+
7949
+
7950
+ /**
7951
+ *
7952
+ * @export
7953
+ * @interface ClusterOperatorStatusResponse
7954
+ */
7955
+ export interface ClusterOperatorStatusResponse {
7956
+ /**
7957
+ *
7958
+ * @type {string}
7959
+ * @memberof ClusterOperatorStatusResponse
7960
+ */
7961
+ 'organization_id': string;
7962
+ /**
7963
+ *
7964
+ * @type {string}
7965
+ * @memberof ClusterOperatorStatusResponse
7966
+ */
7967
+ 'cluster_id': string;
7968
+ /**
7969
+ * Whether the last heartbeat is within the Operator presence window.
7970
+ * @type {boolean}
7971
+ * @memberof ClusterOperatorStatusResponse
7972
+ */
7973
+ 'operator_connected': boolean;
7974
+ /**
7975
+ *
7976
+ * @type {string}
7977
+ * @memberof ClusterOperatorStatusResponse
7978
+ */
7979
+ 'last_heartbeat'?: string | null;
7980
+ /**
7981
+ * Display version reported by the Operator. For the POC version-reporting heartbeat, the official chart sets this to the exact installed image tag. Legacy Operators can report opaque build metadata instead.
7982
+ * @type {string}
7983
+ * @memberof ClusterOperatorStatusResponse
7984
+ */
7985
+ 'operator_version'?: string | null;
7986
+ /**
7987
+ *
7988
+ * @type {string}
7989
+ * @memberof ClusterOperatorStatusResponse
7990
+ */
7991
+ 'controller_version'?: string | null;
7992
+ /**
7993
+ *
7994
+ * @type {string}
7995
+ * @memberof ClusterOperatorStatusResponse
7996
+ */
7997
+ 'request_schema_version'?: string | null;
7998
+ /**
7999
+ * Image tag currently selected for a newly compiled Operator bootstrap.
8000
+ * @type {string}
8001
+ * @memberof ClusterOperatorStatusResponse
8002
+ */
8003
+ 'desired_image_version'?: string | null;
8004
+ /**
8005
+ * Helm chart version currently selected for a newly compiled Operator bootstrap.
8006
+ * @type {string}
8007
+ * @memberof ClusterOperatorStatusResponse
8008
+ */
8009
+ 'desired_chart_version'?: string | null;
8010
+ /**
8011
+ *
8012
+ * @type {ClusterOperatorFleetStatus}
8013
+ * @memberof ClusterOperatorStatusResponse
8014
+ */
8015
+ 'status': ClusterOperatorFleetStatus;
8016
+ /**
8017
+ * Helm chart version reported by the Operator, even without immutable identity.
8018
+ * @type {string}
8019
+ * @memberof ClusterOperatorStatusResponse
8020
+ */
8021
+ 'reported_chart_version'?: string | null;
8022
+ /**
8023
+ *
8024
+ * @type {ReportedClusterOperatorIdentity}
8025
+ * @memberof ClusterOperatorStatusResponse
8026
+ */
8027
+ 'reported_identity'?: ReportedClusterOperatorIdentity | null;
8028
+ }
8029
+
8030
+
8031
+ /**
8032
+ *
8033
+ * @export
8034
+ * @interface ClusterOperatorUpdateRequest
8035
+ */
8036
+ export interface ClusterOperatorUpdateRequest {
8037
+ /**
8038
+ * Exact Qovery Operator Helm chart version to install.
8039
+ * @type {string}
8040
+ * @memberof ClusterOperatorUpdateRequest
8041
+ */
8042
+ 'chart_version': string;
8043
+ /**
8044
+ * Optional Operator image tag overriding the image target selected by q-core.
8045
+ * @type {string}
8046
+ * @memberof ClusterOperatorUpdateRequest
8047
+ */
8048
+ 'image_version'?: string | null;
8049
+ }
8050
+ /**
8051
+ *
8052
+ * @export
8053
+ * @interface ClusterOperatorUpdateResponse
8054
+ */
8055
+ export interface ClusterOperatorUpdateResponse {
8056
+ /**
8057
+ * Identifier shared by the queued Engine execution and its infrastructure logs.
8058
+ * @type {string}
8059
+ * @memberof ClusterOperatorUpdateResponse
8060
+ */
8061
+ 'execution_id': string;
8062
+ /**
8063
+ * Operator image tag resolved for this execution.
8064
+ * @type {string}
8065
+ * @memberof ClusterOperatorUpdateResponse
8066
+ */
8067
+ 'image_version': string;
8068
+ /**
8069
+ * Operator Helm chart version resolved for this execution.
8070
+ * @type {string}
8071
+ * @memberof ClusterOperatorUpdateResponse
8072
+ */
8073
+ 'chart_version': string;
8074
+ }
7775
8075
  /**
7776
8076
  *
7777
8077
  * @export
@@ -23325,6 +23625,37 @@ export const RegistryMirroringModeEnum = {
23325
23625
  export type RegistryMirroringModeEnum = typeof RegistryMirroringModeEnum[keyof typeof RegistryMirroringModeEnum];
23326
23626
 
23327
23627
 
23628
+ /**
23629
+ *
23630
+ * @export
23631
+ * @interface ReportedClusterOperatorIdentity
23632
+ */
23633
+ export interface ReportedClusterOperatorIdentity {
23634
+ /**
23635
+ * Multi-architecture OCI index digest selected for the installed release.
23636
+ * @type {string}
23637
+ * @memberof ReportedClusterOperatorIdentity
23638
+ */
23639
+ 'release_digest': string;
23640
+ /**
23641
+ * OCI image reference resolved by the Kubernetes runtime.
23642
+ * @type {string}
23643
+ * @memberof ReportedClusterOperatorIdentity
23644
+ */
23645
+ 'runtime_image_id': string;
23646
+ /**
23647
+ *
23648
+ * @type {string}
23649
+ * @memberof ReportedClusterOperatorIdentity
23650
+ */
23651
+ 'chart_version': string;
23652
+ /**
23653
+ *
23654
+ * @type {string}
23655
+ * @memberof ReportedClusterOperatorIdentity
23656
+ */
23657
+ 'observed_at'?: string | null;
23658
+ }
23328
23659
  /**
23329
23660
  *
23330
23661
  * @export
@@ -23958,6 +24289,23 @@ export interface SecretResponseList {
23958
24289
  */
23959
24290
  'results'?: Array<Secret>;
23960
24291
  }
24292
+ /**
24293
+ *
24294
+ * @export
24295
+ * @enum {string}
24296
+ */
24297
+
24298
+ export const SelfManagedClusterKind = {
24299
+ EKS_SELF_MANAGED: 'EKS_SELF_MANAGED',
24300
+ SCW_SELF_MANAGED: 'SCW_SELF_MANAGED',
24301
+ GKE_SELF_MANAGED: 'GKE_SELF_MANAGED',
24302
+ AKS_SELF_MANAGED: 'AKS_SELF_MANAGED',
24303
+ SELF_MANAGED: 'SELF_MANAGED'
24304
+ } as const;
24305
+
24306
+ export type SelfManagedClusterKind = typeof SelfManagedClusterKind[keyof typeof SelfManagedClusterKind];
24307
+
24308
+
23961
24309
  /**
23962
24310
  *
23963
24311
  * @export
@@ -39833,6 +40181,455 @@ export class CloudProviderCredentialsApi extends BaseAPI {
39833
40181
 
39834
40182
 
39835
40183
 
40184
+ /**
40185
+ * ClusterOperatorApi - axios parameter creator
40186
+ * @export
40187
+ */
40188
+ export const ClusterOperatorApiAxiosParamCreator = function (configuration?: Configuration) {
40189
+ return {
40190
+ /**
40191
+ * Marks a self-managed cluster for routing through the Qovery Operator. This records the routing intent only; it does not install the Operator or prove that it is connected. Cluster administrator permission is required.
40192
+ * @summary Attach a cluster to the Qovery Operator execution path
40193
+ * @param {string} organizationId Organization ID
40194
+ * @param {string} clusterId Cluster ID
40195
+ * @param {*} [options] Override http request option.
40196
+ * @throws {RequiredError}
40197
+ */
40198
+ attachClusterOperator: async (organizationId: string, clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40199
+ // verify required parameter 'organizationId' is not null or undefined
40200
+ assertParamExists('attachClusterOperator', 'organizationId', organizationId)
40201
+ // verify required parameter 'clusterId' is not null or undefined
40202
+ assertParamExists('attachClusterOperator', 'clusterId', clusterId)
40203
+ const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/operator/attach`
40204
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
40205
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
40206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40208
+ let baseOptions;
40209
+ if (configuration) {
40210
+ baseOptions = configuration.baseOptions;
40211
+ }
40212
+
40213
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40214
+ const localVarHeaderParameter = {} as any;
40215
+ const localVarQueryParameter = {} as any;
40216
+
40217
+ // authentication ApiKeyAuth required
40218
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
40219
+
40220
+ // authentication bearerAuth required
40221
+ // http bearer authentication required
40222
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40223
+
40224
+
40225
+
40226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40228
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40229
+
40230
+ return {
40231
+ url: toPathString(localVarUrlObj),
40232
+ options: localVarRequestOptions,
40233
+ };
40234
+ },
40235
+ /**
40236
+ * Compiles the Helm chart coordinates, values file, and ready-to-run Helm command for a self-managed cluster. The response contains cluster credentials and must be handled as sensitive data. Cluster administrator permission is required.
40237
+ * @summary Get the Qovery Operator bootstrap
40238
+ * @param {string} organizationId Organization ID
40239
+ * @param {string} clusterId Cluster ID
40240
+ * @param {*} [options] Override http request option.
40241
+ * @throws {RequiredError}
40242
+ */
40243
+ getClusterOperatorBootstrap: async (organizationId: string, clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40244
+ // verify required parameter 'organizationId' is not null or undefined
40245
+ assertParamExists('getClusterOperatorBootstrap', 'organizationId', organizationId)
40246
+ // verify required parameter 'clusterId' is not null or undefined
40247
+ assertParamExists('getClusterOperatorBootstrap', 'clusterId', clusterId)
40248
+ const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/operator/bootstrap`
40249
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
40250
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
40251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40253
+ let baseOptions;
40254
+ if (configuration) {
40255
+ baseOptions = configuration.baseOptions;
40256
+ }
40257
+
40258
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40259
+ const localVarHeaderParameter = {} as any;
40260
+ const localVarQueryParameter = {} as any;
40261
+
40262
+ // authentication ApiKeyAuth required
40263
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
40264
+
40265
+ // authentication bearerAuth required
40266
+ // http bearer authentication required
40267
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40268
+
40269
+
40270
+
40271
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40272
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40273
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40274
+
40275
+ return {
40276
+ url: toPathString(localVarUrlObj),
40277
+ options: localVarRequestOptions,
40278
+ };
40279
+ },
40280
+ /**
40281
+ * Returns heartbeat freshness and the image, chart, and protocol versions last reported by the running Operator, together with the current bootstrap targets and a stable drift status. A false operator_connected value means that no heartbeat was received within the presence window. The status is a display-version drift verdict, not an immutable release compatibility decision. Cluster viewer permission is sufficient.
40282
+ * @summary Get the Qovery Operator status for a cluster
40283
+ * @param {string} organizationId Organization ID
40284
+ * @param {string} clusterId Cluster ID
40285
+ * @param {*} [options] Override http request option.
40286
+ * @throws {RequiredError}
40287
+ */
40288
+ getClusterOperatorStatus: async (organizationId: string, clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40289
+ // verify required parameter 'organizationId' is not null or undefined
40290
+ assertParamExists('getClusterOperatorStatus', 'organizationId', organizationId)
40291
+ // verify required parameter 'clusterId' is not null or undefined
40292
+ assertParamExists('getClusterOperatorStatus', 'clusterId', clusterId)
40293
+ const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/operator/status`
40294
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
40295
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
40296
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40297
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40298
+ let baseOptions;
40299
+ if (configuration) {
40300
+ baseOptions = configuration.baseOptions;
40301
+ }
40302
+
40303
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40304
+ const localVarHeaderParameter = {} as any;
40305
+ const localVarQueryParameter = {} as any;
40306
+
40307
+ // authentication ApiKeyAuth required
40308
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
40309
+
40310
+ // authentication bearerAuth required
40311
+ // http bearer authentication required
40312
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40313
+
40314
+
40315
+
40316
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40317
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40318
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40319
+
40320
+ return {
40321
+ url: toPathString(localVarUrlObj),
40322
+ options: localVarRequestOptions,
40323
+ };
40324
+ },
40325
+ /**
40326
+ * Returns every self-managed cluster with its attachment, heartbeat freshness, desired and reported image and Helm chart versions, and a stable drift status. This operation is restricted to Qovery administrators and is the source for internal fleet CLI and dashboard consumers.
40327
+ * @summary List the Qovery Operator fleet
40328
+ * @param {*} [options] Override http request option.
40329
+ * @throws {RequiredError}
40330
+ */
40331
+ listClusterOperatorFleet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40332
+ const localVarPath = `/admin/operator/clusters`;
40333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40334
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40335
+ let baseOptions;
40336
+ if (configuration) {
40337
+ baseOptions = configuration.baseOptions;
40338
+ }
40339
+
40340
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40341
+ const localVarHeaderParameter = {} as any;
40342
+ const localVarQueryParameter = {} as any;
40343
+
40344
+ // authentication ApiKeyAuth required
40345
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
40346
+
40347
+ // authentication bearerAuth required
40348
+ // http bearer authentication required
40349
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40350
+
40351
+
40352
+
40353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40355
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40356
+
40357
+ return {
40358
+ url: toPathString(localVarUrlObj),
40359
+ options: localVarRequestOptions,
40360
+ };
40361
+ },
40362
+ /**
40363
+ * Queues an Engine v2 execution containing only the Qovery Operator Helm release. The chart version is required; the optional image version overrides the image target selected by q-core. The current Operator must be attached, connected, and protocol-compatible. A successful response means that the execution was accepted, not that Helm has completed. Cluster administrator permission is required.
40364
+ * @summary Update the Qovery Operator on a cluster
40365
+ * @param {string} organizationId Organization ID
40366
+ * @param {string} clusterId Cluster ID
40367
+ * @param {ClusterOperatorUpdateRequest} clusterOperatorUpdateRequest
40368
+ * @param {*} [options] Override http request option.
40369
+ * @throws {RequiredError}
40370
+ */
40371
+ updateClusterOperator: async (organizationId: string, clusterId: string, clusterOperatorUpdateRequest: ClusterOperatorUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40372
+ // verify required parameter 'organizationId' is not null or undefined
40373
+ assertParamExists('updateClusterOperator', 'organizationId', organizationId)
40374
+ // verify required parameter 'clusterId' is not null or undefined
40375
+ assertParamExists('updateClusterOperator', 'clusterId', clusterId)
40376
+ // verify required parameter 'clusterOperatorUpdateRequest' is not null or undefined
40377
+ assertParamExists('updateClusterOperator', 'clusterOperatorUpdateRequest', clusterOperatorUpdateRequest)
40378
+ const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/operator/update`
40379
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
40380
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
40381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40382
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40383
+ let baseOptions;
40384
+ if (configuration) {
40385
+ baseOptions = configuration.baseOptions;
40386
+ }
40387
+
40388
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40389
+ const localVarHeaderParameter = {} as any;
40390
+ const localVarQueryParameter = {} as any;
40391
+
40392
+ // authentication ApiKeyAuth required
40393
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
40394
+
40395
+ // authentication bearerAuth required
40396
+ // http bearer authentication required
40397
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40398
+
40399
+
40400
+
40401
+ localVarHeaderParameter['Content-Type'] = 'application/json';
40402
+
40403
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40404
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40405
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40406
+ localVarRequestOptions.data = serializeDataIfNeeded(clusterOperatorUpdateRequest, localVarRequestOptions, configuration)
40407
+
40408
+ return {
40409
+ url: toPathString(localVarUrlObj),
40410
+ options: localVarRequestOptions,
40411
+ };
40412
+ },
40413
+ }
40414
+ };
40415
+
40416
+ /**
40417
+ * ClusterOperatorApi - functional programming interface
40418
+ * @export
40419
+ */
40420
+ export const ClusterOperatorApiFp = function(configuration?: Configuration) {
40421
+ const localVarAxiosParamCreator = ClusterOperatorApiAxiosParamCreator(configuration)
40422
+ return {
40423
+ /**
40424
+ * Marks a self-managed cluster for routing through the Qovery Operator. This records the routing intent only; it does not install the Operator or prove that it is connected. Cluster administrator permission is required.
40425
+ * @summary Attach a cluster to the Qovery Operator execution path
40426
+ * @param {string} organizationId Organization ID
40427
+ * @param {string} clusterId Cluster ID
40428
+ * @param {*} [options] Override http request option.
40429
+ * @throws {RequiredError}
40430
+ */
40431
+ async attachClusterOperator(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
40432
+ const localVarAxiosArgs = await localVarAxiosParamCreator.attachClusterOperator(organizationId, clusterId, options);
40433
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40434
+ const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.attachClusterOperator']?.[localVarOperationServerIndex]?.url;
40435
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40436
+ },
40437
+ /**
40438
+ * Compiles the Helm chart coordinates, values file, and ready-to-run Helm command for a self-managed cluster. The response contains cluster credentials and must be handled as sensitive data. Cluster administrator permission is required.
40439
+ * @summary Get the Qovery Operator bootstrap
40440
+ * @param {string} organizationId Organization ID
40441
+ * @param {string} clusterId Cluster ID
40442
+ * @param {*} [options] Override http request option.
40443
+ * @throws {RequiredError}
40444
+ */
40445
+ async getClusterOperatorBootstrap(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterOperatorBootstrapResponse>> {
40446
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterOperatorBootstrap(organizationId, clusterId, options);
40447
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40448
+ const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.getClusterOperatorBootstrap']?.[localVarOperationServerIndex]?.url;
40449
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40450
+ },
40451
+ /**
40452
+ * Returns heartbeat freshness and the image, chart, and protocol versions last reported by the running Operator, together with the current bootstrap targets and a stable drift status. A false operator_connected value means that no heartbeat was received within the presence window. The status is a display-version drift verdict, not an immutable release compatibility decision. Cluster viewer permission is sufficient.
40453
+ * @summary Get the Qovery Operator status for a cluster
40454
+ * @param {string} organizationId Organization ID
40455
+ * @param {string} clusterId Cluster ID
40456
+ * @param {*} [options] Override http request option.
40457
+ * @throws {RequiredError}
40458
+ */
40459
+ async getClusterOperatorStatus(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterOperatorStatusResponse>> {
40460
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterOperatorStatus(organizationId, clusterId, options);
40461
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40462
+ const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.getClusterOperatorStatus']?.[localVarOperationServerIndex]?.url;
40463
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40464
+ },
40465
+ /**
40466
+ * Returns every self-managed cluster with its attachment, heartbeat freshness, desired and reported image and Helm chart versions, and a stable drift status. This operation is restricted to Qovery administrators and is the source for internal fleet CLI and dashboard consumers.
40467
+ * @summary List the Qovery Operator fleet
40468
+ * @param {*} [options] Override http request option.
40469
+ * @throws {RequiredError}
40470
+ */
40471
+ async listClusterOperatorFleet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterOperatorFleetInventoryResponseList>> {
40472
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterOperatorFleet(options);
40473
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40474
+ const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.listClusterOperatorFleet']?.[localVarOperationServerIndex]?.url;
40475
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40476
+ },
40477
+ /**
40478
+ * Queues an Engine v2 execution containing only the Qovery Operator Helm release. The chart version is required; the optional image version overrides the image target selected by q-core. The current Operator must be attached, connected, and protocol-compatible. A successful response means that the execution was accepted, not that Helm has completed. Cluster administrator permission is required.
40479
+ * @summary Update the Qovery Operator on a cluster
40480
+ * @param {string} organizationId Organization ID
40481
+ * @param {string} clusterId Cluster ID
40482
+ * @param {ClusterOperatorUpdateRequest} clusterOperatorUpdateRequest
40483
+ * @param {*} [options] Override http request option.
40484
+ * @throws {RequiredError}
40485
+ */
40486
+ async updateClusterOperator(organizationId: string, clusterId: string, clusterOperatorUpdateRequest: ClusterOperatorUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterOperatorUpdateResponse>> {
40487
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClusterOperator(organizationId, clusterId, clusterOperatorUpdateRequest, options);
40488
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40489
+ const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.updateClusterOperator']?.[localVarOperationServerIndex]?.url;
40490
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40491
+ },
40492
+ }
40493
+ };
40494
+
40495
+ /**
40496
+ * ClusterOperatorApi - factory interface
40497
+ * @export
40498
+ */
40499
+ export const ClusterOperatorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
40500
+ const localVarFp = ClusterOperatorApiFp(configuration)
40501
+ return {
40502
+ /**
40503
+ * Marks a self-managed cluster for routing through the Qovery Operator. This records the routing intent only; it does not install the Operator or prove that it is connected. Cluster administrator permission is required.
40504
+ * @summary Attach a cluster to the Qovery Operator execution path
40505
+ * @param {string} organizationId Organization ID
40506
+ * @param {string} clusterId Cluster ID
40507
+ * @param {*} [options] Override http request option.
40508
+ * @throws {RequiredError}
40509
+ */
40510
+ attachClusterOperator(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
40511
+ return localVarFp.attachClusterOperator(organizationId, clusterId, options).then((request) => request(axios, basePath));
40512
+ },
40513
+ /**
40514
+ * Compiles the Helm chart coordinates, values file, and ready-to-run Helm command for a self-managed cluster. The response contains cluster credentials and must be handled as sensitive data. Cluster administrator permission is required.
40515
+ * @summary Get the Qovery Operator bootstrap
40516
+ * @param {string} organizationId Organization ID
40517
+ * @param {string} clusterId Cluster ID
40518
+ * @param {*} [options] Override http request option.
40519
+ * @throws {RequiredError}
40520
+ */
40521
+ getClusterOperatorBootstrap(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterOperatorBootstrapResponse> {
40522
+ return localVarFp.getClusterOperatorBootstrap(organizationId, clusterId, options).then((request) => request(axios, basePath));
40523
+ },
40524
+ /**
40525
+ * Returns heartbeat freshness and the image, chart, and protocol versions last reported by the running Operator, together with the current bootstrap targets and a stable drift status. A false operator_connected value means that no heartbeat was received within the presence window. The status is a display-version drift verdict, not an immutable release compatibility decision. Cluster viewer permission is sufficient.
40526
+ * @summary Get the Qovery Operator status for a cluster
40527
+ * @param {string} organizationId Organization ID
40528
+ * @param {string} clusterId Cluster ID
40529
+ * @param {*} [options] Override http request option.
40530
+ * @throws {RequiredError}
40531
+ */
40532
+ getClusterOperatorStatus(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterOperatorStatusResponse> {
40533
+ return localVarFp.getClusterOperatorStatus(organizationId, clusterId, options).then((request) => request(axios, basePath));
40534
+ },
40535
+ /**
40536
+ * Returns every self-managed cluster with its attachment, heartbeat freshness, desired and reported image and Helm chart versions, and a stable drift status. This operation is restricted to Qovery administrators and is the source for internal fleet CLI and dashboard consumers.
40537
+ * @summary List the Qovery Operator fleet
40538
+ * @param {*} [options] Override http request option.
40539
+ * @throws {RequiredError}
40540
+ */
40541
+ listClusterOperatorFleet(options?: RawAxiosRequestConfig): AxiosPromise<ClusterOperatorFleetInventoryResponseList> {
40542
+ return localVarFp.listClusterOperatorFleet(options).then((request) => request(axios, basePath));
40543
+ },
40544
+ /**
40545
+ * Queues an Engine v2 execution containing only the Qovery Operator Helm release. The chart version is required; the optional image version overrides the image target selected by q-core. The current Operator must be attached, connected, and protocol-compatible. A successful response means that the execution was accepted, not that Helm has completed. Cluster administrator permission is required.
40546
+ * @summary Update the Qovery Operator on a cluster
40547
+ * @param {string} organizationId Organization ID
40548
+ * @param {string} clusterId Cluster ID
40549
+ * @param {ClusterOperatorUpdateRequest} clusterOperatorUpdateRequest
40550
+ * @param {*} [options] Override http request option.
40551
+ * @throws {RequiredError}
40552
+ */
40553
+ updateClusterOperator(organizationId: string, clusterId: string, clusterOperatorUpdateRequest: ClusterOperatorUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterOperatorUpdateResponse> {
40554
+ return localVarFp.updateClusterOperator(organizationId, clusterId, clusterOperatorUpdateRequest, options).then((request) => request(axios, basePath));
40555
+ },
40556
+ };
40557
+ };
40558
+
40559
+ /**
40560
+ * ClusterOperatorApi - object-oriented interface
40561
+ * @export
40562
+ * @class ClusterOperatorApi
40563
+ * @extends {BaseAPI}
40564
+ */
40565
+ export class ClusterOperatorApi extends BaseAPI {
40566
+ /**
40567
+ * Marks a self-managed cluster for routing through the Qovery Operator. This records the routing intent only; it does not install the Operator or prove that it is connected. Cluster administrator permission is required.
40568
+ * @summary Attach a cluster to the Qovery Operator execution path
40569
+ * @param {string} organizationId Organization ID
40570
+ * @param {string} clusterId Cluster ID
40571
+ * @param {*} [options] Override http request option.
40572
+ * @throws {RequiredError}
40573
+ * @memberof ClusterOperatorApi
40574
+ */
40575
+ public attachClusterOperator(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig) {
40576
+ return ClusterOperatorApiFp(this.configuration).attachClusterOperator(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
40577
+ }
40578
+
40579
+ /**
40580
+ * Compiles the Helm chart coordinates, values file, and ready-to-run Helm command for a self-managed cluster. The response contains cluster credentials and must be handled as sensitive data. Cluster administrator permission is required.
40581
+ * @summary Get the Qovery Operator bootstrap
40582
+ * @param {string} organizationId Organization ID
40583
+ * @param {string} clusterId Cluster ID
40584
+ * @param {*} [options] Override http request option.
40585
+ * @throws {RequiredError}
40586
+ * @memberof ClusterOperatorApi
40587
+ */
40588
+ public getClusterOperatorBootstrap(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig) {
40589
+ return ClusterOperatorApiFp(this.configuration).getClusterOperatorBootstrap(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
40590
+ }
40591
+
40592
+ /**
40593
+ * Returns heartbeat freshness and the image, chart, and protocol versions last reported by the running Operator, together with the current bootstrap targets and a stable drift status. A false operator_connected value means that no heartbeat was received within the presence window. The status is a display-version drift verdict, not an immutable release compatibility decision. Cluster viewer permission is sufficient.
40594
+ * @summary Get the Qovery Operator status for a cluster
40595
+ * @param {string} organizationId Organization ID
40596
+ * @param {string} clusterId Cluster ID
40597
+ * @param {*} [options] Override http request option.
40598
+ * @throws {RequiredError}
40599
+ * @memberof ClusterOperatorApi
40600
+ */
40601
+ public getClusterOperatorStatus(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig) {
40602
+ return ClusterOperatorApiFp(this.configuration).getClusterOperatorStatus(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
40603
+ }
40604
+
40605
+ /**
40606
+ * Returns every self-managed cluster with its attachment, heartbeat freshness, desired and reported image and Helm chart versions, and a stable drift status. This operation is restricted to Qovery administrators and is the source for internal fleet CLI and dashboard consumers.
40607
+ * @summary List the Qovery Operator fleet
40608
+ * @param {*} [options] Override http request option.
40609
+ * @throws {RequiredError}
40610
+ * @memberof ClusterOperatorApi
40611
+ */
40612
+ public listClusterOperatorFleet(options?: RawAxiosRequestConfig) {
40613
+ return ClusterOperatorApiFp(this.configuration).listClusterOperatorFleet(options).then((request) => request(this.axios, this.basePath));
40614
+ }
40615
+
40616
+ /**
40617
+ * Queues an Engine v2 execution containing only the Qovery Operator Helm release. The chart version is required; the optional image version overrides the image target selected by q-core. The current Operator must be attached, connected, and protocol-compatible. A successful response means that the execution was accepted, not that Helm has completed. Cluster administrator permission is required.
40618
+ * @summary Update the Qovery Operator on a cluster
40619
+ * @param {string} organizationId Organization ID
40620
+ * @param {string} clusterId Cluster ID
40621
+ * @param {ClusterOperatorUpdateRequest} clusterOperatorUpdateRequest
40622
+ * @param {*} [options] Override http request option.
40623
+ * @throws {RequiredError}
40624
+ * @memberof ClusterOperatorApi
40625
+ */
40626
+ public updateClusterOperator(organizationId: string, clusterId: string, clusterOperatorUpdateRequest: ClusterOperatorUpdateRequest, options?: RawAxiosRequestConfig) {
40627
+ return ClusterOperatorApiFp(this.configuration).updateClusterOperator(organizationId, clusterId, clusterOperatorUpdateRequest, options).then((request) => request(this.axios, this.basePath));
40628
+ }
40629
+ }
40630
+
40631
+
40632
+
39836
40633
  /**
39837
40634
  * ClustersApi - axios parameter creator
39838
40635
  * @export